The internal battery of the games run dry when it has barely enough power to keep time based events.
How long it takes varies from amounts of energy used to how many times you save.
Saving uses energy too- when your internal battery completely runs out, your game eventually will not be able to save at all.