Dynamic modeling of hydroturbine generating set