Description
In the example demonstrating how to import SimpleAdder.fmu
, the FMU file only includes Linux binaries and lacks support for Windows platforms. This makes it incompatible for users working on Windows systems.
I can provide a version that includes Windows binaries generated using OpenModelica, but I believe it would be safer and more consistent if the maintainers regenerated the FMU on their end.
💡 Suggestions
-
Add a Warning Block
Include a note in the documentation/example clarifying that users may need to generate their own FMU if they are on a different platform. You could also share theSimpleAdder.mo
source file (which is already available) and point users to tools like OpenModelica for FMU export. -
Clarify FMU Path Requirements
The current example assumes the FMU is in thetest/fmi/fmus/
directory. However, many users may copy the example elsewhere. Please include anote
block stating that users should:-
Ensure a copy of
SimpleAdder.fmu
is placed in the working directory. -
Modify the
loadFMU
path accordingly:fmu = loadFMU(joinpath(@__DIR__, "SimpleAdder.fmu"); type = :ME)
-
-
Optional: Use
ModelingToolkit
Package Path
If you prefer referencing the internal FMU in tests, this approach works:pkg_path = Base.identify_package("ModelingToolkit") |> Base.locate_package |> dirname |> dirname fmu = loadFMU(joinpath(pkg_path, "test", "fmi", "fmus", "SimpleAdder.fmu"); type = :ME)
However, this is more suitable for internal testing and may be confusing for new users. Explicitly copying the FMU and setting the path is likely more user-friendly.