How does the energy lose in hydro generator?