Search found 5 matches
- Tue Feb 04, 2020 10:56 am
- Forum: OpenSim
- Topic: memory leak during set joint coordinate value
- Replies: 6
- Views: 1028
Re: memory leak during set joint coordinate value
Loading arm26.osim from the example models, I don't get the same behavior. Memory usage stays constant. Must be something about my model. Maybe that it uses the Schutte muscle model? I tend to blame everything weird on that. Thanks for your quick replies. I'll dig around some more to figure out
- Tue Feb 04, 2020 10:48 am
- Forum: OpenSim
- Topic: memory leak during set joint coordinate value
- Replies: 6
- Views: 1028
Re: memory leak during set joint coordinate value
Hmmm, weird. If I run the same code you did, at first the memory used by matlab stays pretty constant, but after a bit (that takes a few minutes to run 3000 iterations on my slow computer) - the memory usage starts to climb. And no matter what I do from matlab - I can't clear it unless I restart the...
- Tue Feb 04, 2020 8:53 am
- Forum: OpenSim
- Topic: memory leak during set joint coordinate value
- Replies: 6
- Views: 1028
Re: memory leak during set joint coordinate value
That code was just example code to isolate the problem. I am doing an optimization of wrapping surfaces to match experimental moment arm data. During each call to my objection function, I modify the wrap surface parameters and need to re-initialize the system in order for the changes to take effect ...
- Mon Feb 03, 2020 3:01 pm
- Forum: OpenSim
- Topic: memory leak during set joint coordinate value
- Replies: 6
- Views: 1028
memory leak during set joint coordinate value
I'm running into a memory leak when scripting in Matlab. Here's code to reproduce: import org.opensim.modeling.* [Model_In, path] = uigetfile('.osim'); Model1 = Model(fullfile(path, Model_In)); state =Model1.initSystem(); for i=1:3000 Model1.updCoordinateSet().get('ankle_flexion').setValue(state,0.4...
- Sat Nov 02, 2019 6:00 am
- Forum: OpenSim
- Topic: OpenSim API: set-translation/rotation for wrapping objects
- Replies: 10
- Views: 2690
Re: OpenSim API: set-translation/rotation for wrapping objects
Thank you for this thread. Using the suggested approach, I was able to use MATLAB optimization tools to fit wrap surfaces to experimentally collected moment arm data. I'm using it to make subject specific models - but it would have been a lot easier to build the model in the first place without hand...