Long simulation stoppes temporarily

Hallo together,
I have a simulation which makes a simulink model run with variing parameters. As it takes about 10 hours to get through all the parameter sets, I left yesterday the simulation run automatically through the night. In the log file I've found this today:
21:4:25
Current Phi: -15, Current Error Time: 0.1493
Time left: 5:14:47
Finish time: 2:19:13
8:0:42
Current Phi: -15, Current Error Time: 0.1494
Time left: 20:5:21
Finish time: 4:6:3
That means, the simulation was stopped at 21:04 until I have come. The hibernation, stand-by and hard drive switch off were all disabled so it can be excluded.. May there be any preferences in Matlab to fix it? Or has anyone of you already faced something like this?
Thank you very much!

Réponses (1)

Andreas Goser
Andreas Goser le 18 Fév 2014

0 votes

It looks like this logfile is self-written? Can you break the behaviour down to standard MATLAB commands like tic, sim, toc? I am not aware of Simulink simulations stop like this. I see situations where users believe it stops when time steps get super-small sometimes.

7 commentaires

Andreas Goser
Andreas Goser le 18 Fév 2014
I see you contacted also Technical Support. Lets resolve it through this channel and I will feedback solution into MATLAB Answers.
Andreas Goser
Andreas Goser le 18 Fév 2014
The next steps we agreed on are removing Simulink and PLECS dependencies in order to see if it happens in pure MATLAB too. User has WinXP32 and consciously disabled energy saving settings, however we wonder if there are settings somewhere under the hood that have an effect here?
Andrey
Andrey le 19 Fév 2014
Modifié(e) : Andrey le 19 Fév 2014
So, I replaced Simulink with some MATLAB code with similar execution time and the simulation has succeed at 3 a.m., as it should. Hmm.. I would like now to add a dummy Simulink/PLECS block to see if it was my specific occasion or generally Simulink or PLECS. What do you mean?
Andreas Goser
Andreas Goser le 19 Fév 2014
Right. I can think of either using the SIM command with a different and simple model like the demo 'vdp', or you may be able to replace PLECS blocks by something like "gain with factor 1" blocks. I do not know enough of PLECS to make a more specific suggestion.
Andrey
Andrey le 20 Fév 2014
Now it has worked with a simple Simulink and PLECS model without problems. Remarkable is that the simulation steps with the parameter sets where my first simulation stopped are running good when tested separately. I'll try now to run it one more time, but clearing every step all variables except for those with test results..
Andrey
Andrey le 21 Fév 2014
Ok, now it works. Maybe I'll try in the next days/weeks to approve the couse of the trouble that time with some more experiments. Anyway, many thanks for your support!
Andreas Goser
Andreas Goser le 21 Fév 2014
My pleasure - I will close the "official" support request too.

Connectez-vous pour commenter.

Catégories

Question posée :

le 18 Fév 2014

Commenté :

le 21 Fév 2014

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by