Record remaining energy to file