Modeling Electromechanical Systems