I'm currently facing a problem I can't really troubleshoot on my own. I already asked my surrounding OpenSim experts in my lab and nobody could figure out the cause for this problem.
The problem is, that when I run a Joint Reaction Analysis (following Static Optimization), I get different outputs (sometimes "normal" and sometimes completely useless) when I repeat the Analysis with same Setup and Input Files. These outputs as shown below, sometimes contain extremly large numbers, NaNs or are completely fine (not yet validated). I can rerun the analysis quickly and the position of the NaNs or large numbers randomly switch around, so I can not link them to any time step etc. Also this problem occurs for multiple task types, so it does not directly relate to infeasible motions etc. Further the output files and log file do not indicate any problems during Static Optimization.
My current workaround is to check the integrity of the Joint Reaction Analysis output file after running the analysis and rerun the analysis if the output file seems to be corrupted. This works fine as the Analysis only takes a couple seconds and I so far never required more than 4 iterations. But this does not realy solve the problem and is more a hack of sorts.
Further steps I've undertaken to troubleshoot this problem. But none resulted in any difference.
- Rerun the Analysis with the OpenSim GUI instead of Matlab with the same input file
- Turn on/off filtering for kinematic data in Joint Reaction Analysis
- Run Matlab Pipeline Code on two other Windows Machines
- Run Matlab Pipeline Code on OpenSim 4.0 and OpenSim 4.1
- Add/remove external forces
Attached I'm adding the XML Setup Files for Static Optimization, Joint Reaction Analysis and for the GRF.
Thank you in advance for looking at my problem and for any feedback from your side.
Best regards,
Lukas
Example Output File Screenshots:
Good Output
Output with NaNs
Output with HUGE numbers