End sim on arrival, calculate total energy