ThummeTo / FMIFlux.jl

FMIFlux.jl is a free-to-use software library for the Julia programming language, which offers the ability to place FMUs (fmi-standard.org) everywhere inside of your ML topologies and still keep the resulting model trainable with a standard (or custom) FluxML training process.
MIT License
57 stars 15 forks source link

Example-FMUs work in Linux? #24

Closed mroehrl closed 2 years ago

mroehrl commented 2 years ago

Thanks you for the nice repository! I tried to run the examples and get the following error:

realFMU = fmiLoad(realFMUPath)
[ Info: fmi2Unzip(...): Successfully unzipped 28 files at `/tmp/fmijl_Gr71rS/SpringFrictionPendulum1D`.
ERROR: LoadError: AssertionError: Target platform is Linux, but can't find valid FMU binary at `` for path `/tmp/fmijl_Gr71rS/SpringFrictionPendulum1D`.

I think this is because I work in linux and the FMU only works in windows. Is that possible? Are there also Linux-FMUs for the examples?

mroehrl commented 2 years ago

Problem solved! I compiled the required binaries for Linux with fmpy. Now the example runs smoothly 👍

ThummeTo commented 2 years ago

Good to hear that! As you said, the FMUs in the Repo are currentyl only compiled for windows.