Computer aided modelling and simulation of complex mechanical systems