Hi, I am treating to use OpenSim to scripting in Mathlab 18a on Kubuntu 18.4. I Installed OpenSim 4.0 on Kubuntu 18.04 (as https://github.com/opensim-org/opensim- ... -makefiles). However, when ctest was running, java.TableTest() failed.
Then, I can configure OpenSim with Mathlab well through configureOpenSim.m.
However, I get fatal error (I attach) in Mathlab and it crash when I run setupAndRunIKBatchExample.m.
I see in other post that could be a problem of libstddc++.so.6 library, but I have the same library in Mathlab and the system.
Finaly, I have installed Mathlab 18.4 in /usr/local and Opensim 4.0 in /opt/opensim-core. Also, I have included the /opt/opensim-core/lib in LD_LIBRARY_PATH and /opt/opensim-core/lib in PATH.
Any idea?
Thanks for the help!
Mathlab craching with OpenSiin 4.0 on Kubuntu 18.4
- Emiliano Ravera
- Posts: 6
- Joined: Wed Nov 25, 2009 6:40 am
- Christopher Dembia
- Posts: 506
- Joined: Fri Oct 12, 2012 4:09 pm
Re: Mathlab craching with OpenSiin 4.0 on Kubuntu 18.4
What do you plan to do in Matlab? The failure sems to be caused by using Intel's BLAS library instead of the BLAS library with which you compiled Simbody. This only occurs because you are attempting to run IK, an optimization, within Matlab. If you do not plan on running IK within Matlab, then this is no issue. Furthermore, you could simply use `system('opensim-cmd run-tool ik_setup_file.xml')` instead of running the tool within Matlab.
You could try using RPATH when building Simbody to force Simbody to use the correct BLAS.
You could try using RPATH when building Simbody to force Simbody to use the correct BLAS.
- Emiliano Ravera
- Posts: 6
- Joined: Wed Nov 25, 2009 6:40 am
Re: Mathlab craching with OpenSiin 4.0 on Kubuntu 18.4
Hi Christopher,
Thanks for you response. I have the idea to perform a sensitivity study of a custom model within Matlab.
So, I run again setupAndRunIKBatchExample.m using `system('opensim-cmd run-tool ik_setup_file.xml')` but I have a new error message in Matlab:
were ikfile is the xml file that was generated by the script.
Any idea?
Emiliano
Thanks for you response. I have the idea to perform a sensitivity study of a custom model within Matlab.
So, I run again setupAndRunIKBatchExample.m using `system('opensim-cmd run-tool ik_setup_file.xml')` but I have a new error message in Matlab:
Code: Select all
Updating Model file from 20303 to latest format...
Loaded model subject01 from file /home/emi/Documentos/Investigacion/Biomecanica/OpenSim/Resources/Code/Matlab/testData/Subject01/subject01_gait2392_scaled.osim
fullpath =
'/home/emi/Documentos/Investigacion/Biomecanica/OpenSim/Resources/Code/Matlab/testData/Subject01/MarkerData/walk_free_01.trc'
Loaded marker file /home/emi/Documentos/Investigacion/Biomecanica/OpenSim/Resources/Code/Matlab/testData/Subject01/MarkerData/walk_free_01.trc (41 markers, 73 frames)
Performing IK on cycle # 1
SimTK Exception thrown at Xml.cpp:108:
Error detected by Simbody method Xml::readFromFile(): Failed to load the Xml file 'ikfile' with error 'Failed to open file (line=0, col=0)'.
(Required condition 'loadOK' was not met.)
A problem occurred when trying to load file 'ikfile'.
Any idea?
Emiliano