Set RTC to compile time, but RTC not retaining time after power cycle.

if (! RTC.isrunning())

Not applicable to the 3231. It's a flag set on the 1307.

Take a look at the data sheet.