Dear,
I'm trying to import and run FMU's in JModelica.
First I need to say that this really works fine. Thanks for this great work!
I have one question: how can i influence the size and type of the resulting file? It seems that the keyword protected is not taken into account in the FMU, blowing up my result file. Is there another solution? Also, I'd rather have the .mat format for the output file cause it is more compact, is this supported by JModelica?
If I cannot influence the size of the output file, I'm unable to run my building simulations for a whole year, and the whole FMU-thing becomes irrelevant for me.
And finally an issue. Sometimes however I get an error when I try to import the same FMU again. Could it be influenced by opening the FMU in Dymola? I can't reproduce it on purpose.
Here's an error log:
---------------------------------------------------------------------------
WindowsError Traceback (most recent call last)
c:\workspace\modelica\tests\FMURun.py in ()
17
18 # Simulation ###########################################################
####
---> 19 mymodel=FMUModel(fmu_name)
20 opts = mymodel.simulate_options()
21 opts['ncp'] = final_time / interval
C:\JModelica.org-1.6b1\Python\jmodelica\fmi.pyc in __init__(self, fmu, path, rel
oad_dll, enable_logging)
300 #Retrieve and load the binary
301 self._dll = jmodelica.jmi.load_DLL(
--> 302 self._tempdll[:-len(suffix)],self._tempdir)
303
304 #Load calloc and free
C:\JModelica.org-1.6b1\Python\jmodelica\jmi.pyc in load_DLL(libname, path)
306 # Don't catch this exception since it hides the actual source
307 # of the error.
--> 308 dll = Nct.load_library(libname, path)
309 return dll
310
C:\Python27\lib\site-packages\numpy\ctypeslib.pyc in load_library(libname, loade
r_path)
129 except OSError, e:
130 exc = e
--> 131 raise exc
132
133 ctypes_load_library = deprecate(load_library, 'ctypes_load_library',
WindowsError: [Error 126] The specified module could not be found
WARNING: Failure executing file:
Thanks a lot for your answers,
Roel