Variables fill_color_static not found in scopes of source/sink components
Some components may change colors depending on parameters used (dynamic_mass_balance, diffusion...) thanks to fillColor=DynamicSelect(...)
in the annotations of the component.
Sources such as ThermoSysPro.Fluid.BoundaryConditions.Source
use DynamicSelect even if no choice has to be made (fillColor=DynamicSelect({255,255,0}, fill_color_static)
). But variable fill_color_static
here is not defined.
Dymola has no issue with having this variable not defined as it is in annotations. However OpenModelica has a TraductionError when opening the component (not if this component is used in a model).
Solution:
As it is made for Volumes, extends ThermoSysPro.Fluid.Interfaces.IconColors;
should be added at the top of all those components (sources, sinks, turbines).