Description
@nicos1993 and I were playing around with the BushingForce in a model and were trying some simple simulations. Passing Moco a model that has the BushingForce component seems to crash Moco (tested in both Matlab and Python, windows and mac). This seems to be an issue that has been on the forum as well, though I don't think it was ever fully captured.
The problem is a really simple toy problem / model. The model opens fine in the GUI and in a script I am able to call model.initSystem()
, as well as realizeAccelerations().
However, solving the simulation just causes a crash, whereas the script runs fine after removing the BushingForce. I added a back trace using lldb, and its included in a .txt file. Seems to be an issue somewhere in realizing dynamics, one of the last function calls is OpenSim::MocoCasOCProblem::calcMultibodySystemExplicit
before it throws errors stop reason = EXC_BAD_ACCESS (code=1, address=0x0).
GUI Ver. 4.5
Scripting from commit: cf3ef35
IssueBushingForce.zip