I've recently been modelling a crane in using Simulink, and as part of that, I am modelling the electronics of the crane's hoist motor. Howevever, when I brought the motor; modelled using a field oriented control induction motor drive, into my multibody model, the time to simulate increased to the point where it takes over ten minuted to simulate a tenth of a second. Without the motor, it takes just a few minutes to simulate a 22 second simulation. I believe this is a consequence of the Powergui timestep, affecting the time steps in which the multibody systems are actuated. For context I use a discrete Powergui, and the ODE23T solvers, respectively.
Any advice on how to reduce time to simulate would be greatly appreciated.