Why is one Parallel Worker getting stuck on Compiling while using parsim?
조회 수: 12 (최근 30일)
이전 댓글 표시
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
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Simulink Functions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!