Long-time behavior of the energy