Electro-Mechanical Energy Coversion with Dynamics of Machines