-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
load_fmu documentation #1
Comments
If you are looking for none code documentation, see either http://www.jmodelica.org/page/4924 or http://www.jmodelica.org/api-docs/usersguide/1.14.0/ch05.html . Regarding your stackoverflow question (I'm unable to comment), I cannot reproduce the error. Running the same code on two models, I get: where they have different memory adress. Although trying to run load too many models you will eventually run out of memory and an error will occur which might be hard to diagnose. |
Chris, Thanks for the reply. I found the doc and method for load_fmu in pyfmi.fmi.load_fmu() Helper function for loading FMUs of different kinds. From what I can tell, it appears that each instance of a FMUModelCS1 object I see there's an inaccesible method parameter "location", which is passed I'm not too familiar with C and it's memory management abilities, but if The issue occurs for any number of calls to load_fmu greater than 1. In Do you have any thoughts on how I can further diagnose my issue? Thanks a lot, Mike On Tue, Sep 23, 2014 at 10:39 PM, Christian Andersson <
Michael Street |
The default value for the location is NULL which means that FMI Library will replace this value with the path to where the FMU was actually unpacked to, see http://www.jmodelica.org/api-docs/FMIL_docs/2.0/group__fmi1__import__capi__cs.html#gabd57224b28ac604720e46267d88aad54 . From where are the FMUs? Best |
Okay, thank you for the information. I don't believe this is the issue load_fmu(fmu = "foo.fmu", path = "/path/to/fmu/") Each of the fmu's is stored in "/path/to/fmu/". self.callBackFunctions.allocateMemory = FMIL.calloc; and it makes me wonder if this is interacting in some unforseen way on my Of, assuming this is working fine, does the call to self.instantiate_slave Again, thanks for looking deeper into this with me. Mike On Wed, Sep 24, 2014 at 1:02 PM, Christian Andersson <
Michael Street |
No problem. I'm also confused why this happens. We are relying on Pythons internal process for created the instances of FMUModelCS1 and I don't believe there would be a problem here. If there were I believe it would have been detected in other situations and fixed in Python. Regarding the callback functions, here we are just providing references to the allocation and de-allocation methods in FMIL there is really no connection to how the instance of FMUModelCS1 are created here (the instance is already created when we are this far) Regarding the expected name, I don't believe that it would have any impact on how Python creates the instances (as above, the instance is already created). So I'm really at loss on how to proceed. Best |
Hi chria, I'm wondering if there are any documents about PyFMI and Jmodelica on the internet since the links you listed were all "not found". |
There is currently no accessible version of load_fmu help docs outside of the file pyfmi.so
load_fmu is generates this result:
http://stackoverflow.com/q/25999554/1258390
The text was updated successfully, but these errors were encountered: