Skip to content
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

datetime stamp not always unique when running with jobs #139

Open
VDB-Bram opened this issue Jun 28, 2024 · 1 comment
Open

datetime stamp not always unique when running with jobs #139

VDB-Bram opened this issue Jun 28, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@VDB-Bram
Copy link
Collaborator

Before submitting a bug report, read the error messages in MATLAB. Some errors are there to inform you about inconsistent inputs for certain settings.

Describe the bug
When using jobs to run multiple simulations simultaneously, it can happen that two simulations start at approximately the same time which leads to a non-unique name for the saved files.

To Reproduce
Steps to reproduce the behavior:
The risk of this happening is present when running any simulations in parallel using the PredSim code (last commit d294d85)

Log file
The log files will tell us what the error is, and where it occurred.
When running main.m, you can find a log file of each simulation in the folder S.subject.save_folder. The name of this file ends with _log.txt. If there is no log file, copy the MATLAB command window to a .txt file and attach that instead.

If you run main.m and encountered an error before seeing "...PreProcessing done. Time elapsed ** s" in the MATLAB command window, we need more detailed logs. Set S.OpenSimADOptions.verbose_mode = true; and run again. This will not solve your problem, but the new log file will give us more information.

Software versions

  • Windows 10
  • MATLAB ...
  • OpenSim ...
  • CasADi ...
  • Microsoft Visual Studio ...
  • CMake ...

Additional context
Add any other context about the problem here.

@VDB-Bram VDB-Bram added the bug Something isn't working label Jun 28, 2024
@VDB-Bram
Copy link
Collaborator Author

Intermediate update.

It seems that even though jobs have a different CreateDateTime and SubmitDateTime the StartDateTime - and therefore the datetime filename - can be the same.

I was able to trigger this 'bug' by starting 2 predsims right after each other on two workers. I could also trigger it by having two jobs queued and then canceling the two previous jobs right after each other. Triggering the bug did not always work.

No clear idea yet why this happens and why this does not always happens.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant