Skip to content
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

Error running FMU on Raspberry 3B #585

Open
iscopa opened this issue Jul 24, 2023 · 0 comments
Open

Error running FMU on Raspberry 3B #585

iscopa opened this issue Jul 24, 2023 · 0 comments

Comments

@iscopa
Copy link

iscopa commented Jul 24, 2023

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.
image

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant