You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have created a source code co-simulation FMU 2.0 -attached- from Matlab r2023a using FMIKit3.1 in Windows10.
I could generate the linux32 binaries for running the FMU on a Raspi 3B using FMPy 0.2.27 and Python2.7. I used Python2.7 for the compilation because it was not possible to generate the binaries with Python 3.6 on the Raspberry.
python -m fmpy compile <FMU_name.fmu>
When I try to run the FMU on the Raspberry with FMPy 0.3.15 and Python 3.6, I get the error:
python3 -m fmpy simulate <FMU_name>.fmu
<FMU_name>.so: undefined symbol: rt_lu_real
I get the same error if I use FMPy 0.2.27 and Python2.7
python -m fmpy simulate <FMU_name>.fmu
Note: The "rt_lu_real" is described in the file "rt_matrixlib.h" and "rt_lu_real.c of the source code FMU
Note: In order to import the FMU, I changed /fmpy/util.py as shown below. Otherwise, importing fails as some variables have no initial value assigned.
Hello,
I have created a source code co-simulation FMU 2.0 -attached- from Matlab r2023a using FMIKit3.1 in Windows10.
I could generate the linux32 binaries for running the FMU on a Raspi 3B using FMPy 0.2.27 and Python2.7. I used Python2.7 for the compilation because it was not possible to generate the binaries with Python 3.6 on the Raspberry.
python -m fmpy compile <FMU_name.fmu>
When I try to run the FMU on the Raspberry with FMPy 0.3.15 and Python 3.6, I get the error:
python3 -m fmpy simulate <FMU_name>.fmu
<FMU_name>.so: undefined symbol: rt_lu_real
I get the same error if I use FMPy 0.2.27 and Python2.7
python -m fmpy simulate <FMU_name>.fmu
Note: The "rt_lu_real" is described in the file "rt_matrixlib.h" and "rt_lu_real.c of the source code FMU
Note: In order to import the FMU, I changed /fmpy/util.py as shown below. Otherwise, importing fails as some variables have no initial value assigned.
Could you please help on this?
Thank you
FMU1_Leader_w_FMIKit_v2.zip
Update: The error regarding "rt_lu_real" is solved if the FMU is exported using a "FixedStepDiscrete" solver in Simulink
The text was updated successfully, but these errors were encountered: