Mathematical model of the dc machine