Open kosmylo opened 3 years ago
Could you possibly add your fmu file (for Linux) so that I can double check it.
Here it is: FMU.zip
Just to mention that if I export it as FMU for ME it simulates fine. The problem appears when I export it as FMU for CS.
I investigate this issue with the nightly build version OpenModelica 1.19.0~dev-47-gd4b39c9
Investigated model: PhotoVoltaics_TGM.TGM_Trina_Measurement_20160808
PhotoVoltaics_TGM.TGM_Trina_Measurement_20160808
as FMU for ME (model exchange)
PhotoVoltaics_TGM.TGM_Trina_Measurement_20160808
as FMU for CS (co-simulation)
Error: The following error was detected at time: 0
/home/data/work/Resources/Library/FMU/PhotoVoltaics_TGM.TGM_Trina_Measurement_20160808/binaries/linux64/PhotoVoltaics_TGM_TGM_Trina_Measurement_20160808_FMU.libs: invalid ELF header
The stack of functions is:
PhotoVoltaics_TGM_TGM_Trina_Measurement_20160808_fmu.fmi_Functions.fmiModel
PhotoVoltaics_TGM_TGM_Trina_Measurement_20160808_fmu.fmi_Functions.fmiModel("PhotoVoltaics_TGM_TGM_Trina_Measurement_20160808_fmu", photoVoltaics_TGM_TGM_Trina_Measurement_20160808_fmu.fmi_loggingOn, "file:////home/data/work/Resources/Library/FMU/PhotoVoltaics_TGM.TGM_Trina_Measurement_20160808/resources", 0, 1)
Investigated model: PhotoVoltaics_TGM.TGM_Comax_Measurement_20160808
PhotoVoltaics_TGM.TGM_Comax_Measurement_20160808
as FMU for ME (model exchange)
PhotoVoltaics_TGM.TGM_Comax_Measurement_20160808
as FMU for CS (co-simulation)
So I cannot reproduce the FMPy error message for Case 2 processing the co-simulation FMU. Possible causes are:
I am getting the same error when I am trying to simulate the CS model at both fmpy 0.2.14 and fmpy 0.3.0.
I have exported the model PhotoVoltaics_TGM.TGM_Comax_Measurement_20160808 as fmu and when I am trying to simulate it in python through FMPy I am getting the following error:
assert | debug | Model error: Argument of sqrt(converter.iAC.re ^ 2.0 + converter.iAC.im ^ 2.0) was nan should be >= 0
Any idea of what is going on?