Hysteresis and bifurcations in the classical model of generator