Dynamic of electromechanical system