Check total energy conservation