Why is one Parallel Worker getting stuck on Compiling while using parsim?
15 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I am trying to run an optimisation algorithm within Python, where i call a Matlab Function (using matlab-engine) which uses parsim to run a number of Simulink Simulations in parallel. This does work for multiple iterations but it always ends the same way with one of the parallel workers getting stuck in the following state ("Compiling: Starting model compilation: Completed"). I do not understand why and what can be done. The Operating System is Debian 12, though the problem also occured on Windows.
- I am closely monitoring the RAM-capacity which is nowhere near the limit.
- I use a new engine (=Matlab Session) for each iteration of the optimisation.
- I catch if a Simulations breaks due to an error.
- When I try to run the datapoint which is stuck in a seperate simulations by its own it runs without any problems.
I am at my wits end.

And when I try to close the session and shut down the pool, the cleaning up of the parallel workers also gets stuck in a loop:

0 commentaires
Réponses (0)
Voir également
Catégories
En savoir plus sur Simulink Functions dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!