- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » Closer to the top level scope
Closer to the top level scope
Closer to the top level scope
I am trying to use a model which depends on the Buildings library. The model contains for example
Buildings.Airflow.Multizone.Orifice Orifice1(
redeclare package Medium = Medium,
A=0.01,
m=0.5);
I put the file and a package.mo into a directory which is in OpenModelica's libraries directory, loaded the package, and tried to simulate. I got this error. What is the solution?
"Warning: Alias set with different nominal values\n * candidate: MediumColumn1.sta_a.p(nominal = 100000.0)\n * candidate: Orifice2.port_b.p(nominal = 101325.0)\n * candidate: MediumColumn1.port_a.p(nominal = 101325.0)\n=> select value from MediumColumn1.port_a.p(nominal = 101325.0)\n because its component reference (or its binding component reference) is closer to the top level scope with depth: 3.\n If we have equal component reference depth for several components choose the one with non zero binding."
Re: Closer to the top level scope
It's not an error; just a notification that two different nominal values were set for an alias (nominal values are not as important as start-values, but nominal values do affect some simulation results):
Code:
model M
Real a(start=0),b(start=1);
equation
a = b;
der(a) = 1.0;
end M;
(Here, omc picks b.start=1.0 in my version as it is ambiguous)
- sjoelund.se
- 1700 Posts
- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » Closer to the top level scope