I use Matlab to access the Opensim API (Matlab R2013a (32-bit) and Opensim 3.2 (32-bit)).
When I repeatedly call the function:
Coordinate::setValue (with the flag to enforce constraints=true)
...Matlab freezes with an "out of memory" message and the attached log file.
To make sure there is nothing wrong with a specific set of coordinate values that makes it impossible to assemble the model, I ran a test with just a loop that repeatedly sets one of the coordinates to the default value (zero) - it still gives the same error.
I do not get any errors if I set the flag to enforce constraints=false.
CoordSet = Mod.getCoordinateSet;
currentDof = CoordSet.get(2);
for istep = 1:10000