modelling electro-mechanical systems