rtc mega 2560 r3 time is set/ time is not set SOLVED

Hi everyone, My name is Alan Im new to ardiuno Im trying get the rtc1307 to print time on monitor
hope someone can shed some light on this, Im using the ds1307_test to set my time in the rtc ,
this is the code I used and at the bottom of this is what prints in the monitor , time set and then not set
Sorry about how this is posted I will get better. I did not put all the code in. But shows version and whats included what is puzzling me is
time is set and time is not set

 : 2011-04-08
// # Version    : 1.21
// *********************************************
// INCLUDE
// *********************************************
#include <Wire.h>                       // For some strange reasons, Wire.h must be included here
#include <DS1307new.h>
}
this is what the monitor reads

13:04:42 05-04-2013 FRI seconds since 1.1.2000:418482282 MEZ=0, MESZ=1 : 1 - Address in NV-RAM is: 20 - Clock was set!
13:04:47 05-04-2013 FRI seconds since 1.1.2000:418482287 MEZ=0, MESZ=1 : 1 - Address in NV-RAM is: 21 - Clock was NOT set!
13:04:52 05-04-2013 FRI seconds since 1.1.2000:418482292 MEZ=0, MESZ=1 : 1 - Address in NV-RAM is: 22 - Clock was NOT set!
25:04:57 165-165-2165 MON seconds since 1.1.2000:1075919801 MEZ=0, MESZ=1 : 0 - Address in NV-RAM is: 23 - Clock was NOT set!
13:05:02 05-04-2013 FRI seconds since 1.1.2000:418482302 MEZ=0, MESZ=1 : 1 - Address in NV-RAM is: 24 - Clock was NOT set!
13:05:07 05-04-2013 FRI seconds since 1.1.2000:418482307 MEZ=0, MESZ=1 : 1 - Address in NV-RAM is: 25 - Clock was set!
165:07:12 165-165-2165 MON seconds since 1.1.2000:1076423936 MEZ=0, MESZ=1 : 0 - Address in NV-RAM is: 26 - Clock was set!
25:05:17 165-165-2165 MON seconds since 1.1.2000:1075919821 MEZ=0, MESZ=1 : 0 - Address in NV-RAM is: 27 - Clock was set!
 and it will keep doing that till forever

so if your looking at the bottom, the the clock is set and then change to not set . can someone let me know whats happening ,is the ram messed up inthe rtc. Im new at all the ardiuno stuff so you have to explain to me like im new to this

thanks Alan

Im new at all the ardiuno stuff so you have to explain to me like im new to this

I hope that POST YOUR CODE is easy enough to understand.

Thanks paul you were a big help , the code is, ds1307new/ds1307_test And when I set the time with that code ,I get what is shown above .
can you see it paul, Im new at this and if you can just look at what the serial monitor prints you will notice the odd times it is printing and time is set and time is not set

What I see is that you still want us to go find a library you haven't posted a link to, and assume that you have made no changes to that code. I'm not willing to do either one.

Sorry about the code not being there, I got the code with the ardiuno ide its DS1307new/DS1307_Test, it is sample code I was using it to set my Tinyrtc v1.0 Real Time Clock. this is the tinyrtc I have
http://www.ebay.com/itm/181107370099?ssPageName=STRK:MEWAX:IT&_trksid=p3984.m1438.l2649
I just got started with ardiuno, Its been 2 weeks now, and I am just learning. I now know that there is two smd 332 on my rtc module that messes up i2c comunication I removed the resisters and now it works, they are pullup resisters and the board i got has its own, who would of known that!