Thank you, that is reassuring!
Is there some way to recover the gravitational potential energy from that?
It seems like a simple shift in the zero-point is all that is needed but I don’t see how to calculate that. It must be a different baseline at each timestep, and presumably it isn’t just subtracting the largest value.