Why is my simulation time longer than the listed 'Summary' times?
During the simulation process MapleSim provides concurrent plotting in the GUI. This uses multiple threads, so the timing here is “wall time” rather than “CPU time”.
Lastly, the first simulation will always be a fair bit slower than other runs due to the loading of the library. If you would like to know the start to finish CPU time of a simulation, the best method is using the MapleSim API as follows:
- Attach a Maple worksheet to your MapleSim model. This is done by "Add Apps or Templates" > Double-click "Worksheet" > If desired, change the name of the attached worksheet > Click the check mark to open the worksheet.
- Execute the listed command:
A := MapleSim:-LinkModel():
- Type in the following in one execution group:
t0 := time(): A:-Simulate(): cpuTime := time() - t0;
You can now view the total cpu time MapleSim has taken for the simulation.
Did you find this article helpful?