Knowledge Base
Welcome to OPAL-RT’s Knowledge Base
OPAL-RT offers a repository of support information for optimal use of its technology.
Please note that OPAL-RT knowledge base is not fully optimized for mobile platforms.
For optimal experience, use a desktop computer.
Reference Number: AA-01253// Views: AA-01253// Created: 2017-01-10 17:28:56// Last Updated: 2020-04-01 18:13:46 Problem & Solution FMU Creator: An FMU could not be created. Dependencies setting. FMU Creator: An FMU could not be created. Dependencies setting.
When creating FMU's through the "FMU Creator" tool, it is important to add any "Dependencies libraries” necessary to compile the intended component. Component design in OpenModelica follows an object oriented modelling approach in which base classes (or parent classes) inherit properties to derived (or child) classes. In this example, the component “GENROU_EXT1” is a derived class contained in the library “GenUnit.mo” that needs to be compiled. If we try to compile the FMU, we get the following error:
This happens because “GENROU_EXT1” depends on a parent class named “GENROU_BASE” which in turn is contained in a the library named “OpalRT_Dev.mo”. Thus it is necessary to add the “OPALRT_Dev.mo” library path in the “Dependencies” section of the “FMU creator” tool. Look for the parent library “OpalRT_Dev.mo”…
Launch compilation, which should be successful now.
Worth noting that more than one library could be necessary in the “dependency” section depending on how the Modelica classes and components have been packaged for distribution.
|