Describe the bug
The battery life model calculates both cycle and calendar degradation, however battery replacements appear to only be triggered when there is cycle degradation.
The replacement code is triggered, but then something overwrites the replacement and it ends up re-running every timestep.
lifetime_replacements_test.zip
See https://sam.nrel.gov/forum/forum-general/5101-battery-degradation-and-lifetime.html#14386.