Reference-FMUs
Reference-FMUs copied to clipboard
Reference FMU with dependency on an additional binary libary in the FMU
Create an example for importing FMUs with dependencies on additional binary libraries (e.g., DLLs in Windows) in the corresponding binary folder, see e.g. e.g. https://github.com/modelica/fmi-design/tree/master/Reference_FMUs/src/resources (see https://github.com/modelica/Reference-FMUs/pull/34#issuecomment-636517783)
What aspect of the importer would this FMU test?
What aspect of the importer would this FMU test?
That it puts all the dlls of the current binary type (e.g. win64) at the same storage location, so that the FMU can figure out, form where to load the additional binary (e.g. DLL)
See also discussion in https://github.com/modelica/fmi-standard/issues/1405.
This might be related to unifmu as a possible generator for test cases: There, a static loader is used as the binary FMU DLL/SO/DYLIB. This one will then load (at least in the python case) provide a python environment and load all imported/linked python files from the resources folder. AFAIK when using the C# interface, I think (but have not verified) it works very similarly but loads a dynamic library from the resources folder.
This could be used as a test case at least.