Skip to content

Using Parallel Toolbox, Matlab Exit Status: 0x00000001 #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Vahila opened this issue Mar 21, 2025 · 1 comment
Open

Using Parallel Toolbox, Matlab Exit Status: 0x00000001 #11

Vahila opened this issue Mar 21, 2025 · 1 comment

Comments

@Vahila
Copy link
Collaborator

Vahila commented Mar 21, 2025

Hello,

i have several Unittests and at least one of them checks if everything works properly using the parallel toolbox. The test is not failing after all, but Jenkins returns "ERROR: MATLAB error Exit Status: 0x00000001". The reports itself tell me that the test went sucessfull, so it must happen somehow after the test. I could also narrow down the problem to this one test, because i started to deactivate all other tests until only the ones with the parallel toolbox were left.

I assume that Jenkins just kills the process, because the window of the simulation manager closes on it's own, maybe this has to do with the problem. Do you have an idea how to solve this problem? I'm shutting down the pool within the script, so i'm not sure what exactly the problem is.

Thanks!
Adrian

Starting parallel pool (parpool) using the 'local' profile ...
Preserving jobs with IDs: 1 2 3 4 5 6 7 because they contain crash dump files.
You can use 'delete(myCluster.Jobs)' to remove all jobs created with profile local. To create 'myCluster' use 'myCluster = parcluster('local')'.
Connected to the parallel pool (number of workers: 6).
[26-Jan-2022 16:31:32] Checking for availability of parallel pool...
[26-Jan-2022 16:31:33] Starting Simulink on parallel workers...
[26-Jan-2022 16:31:40] Configuring simulation cache folder on parallel workers...
[26-Jan-2022 16:31:41] Loading model on parallel workers...
[26-Jan-2022 16:31:45] Running simulations...
[26-Jan-2022 16:31:47] Completed 1 of 1 simulation runs
[26-Jan-2022 16:31:47] Cleaning up parallel workers...
Unsupported file format for export.
Cleared PLECS module
Parallel pool using the 'local' profile is shutting down.
   Done UnitTest_Debugging/RunModel_MultiCore in 55.8235 seconds
  Tearing down UnitTest_Debugging
  Done tearing down UnitTest_Debugging in 0 seconds
 Done UnitTest_Debugging in 89.689 seconds
__________

ERROR: MATLAB error Exit Status: 0x00000001
Build step 'Run MATLAB Tests' changed build result to FAILURE
Finished: FAILURE

The error happens when the Simulation Manager window opens during the unit test, passing to the parsim "'ShowSimulationManager', 'off'" solves the problem.

Is this a problem that is known when doing unit tests that include GUI elements or is it a problem exclusively with the Simulation Manager?

@Vahila
Copy link
Collaborator Author

Vahila commented Mar 21, 2025

This issue has been created based on an older issue. For additional details, please refer to that issue.

Summary of conversation on the old issue:
This issue has been identified to originate from '-batch' mode. It was forwarded to appropriate MATLAB component. In a follow-up, the user was asked if the issue persisted, but there was not response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant