Dear OpenModelic interested,
lately we ran into a problem with interpretation of naming rules in the
Modelica Standard. Or more precise: The default naming of components in Dymola
is not accepted by omc.
Consider the following structure, generated using Dymolas drag and drop
facilities and its defaulf naming.
package Package1
package SubPackage1
model component
end component;
end SubPackage1;
model test
SubPackage1.component component;
end test;
end Package1;
Compilation with omc gives the warning:
Warning: Component component has the same name as its type
Package1.SubPackage2.test.SubPackage1.component.
This is forbidden by Modelica specifications and may lead to lookup errors.
According to the Dymola support:
The "type specifier is 'Package1.Subpackage1.component' and that is different
from 'component' so that is ok."
My problem here is that the suitabality of Modelica to be a tool independ
standard has to changelled if tools behave such different.
With best regards,
Kilian Link
Siemens AG
Energy Sector
Fossil Power Generation Division
Energy Solutions
E F ES EN 1 2
Freyeslebenstr. 1
91058 Erlangen, Germany
Tel.: +49 (9131) 18-6634
Fax: +49 (9131) 18-6471
mailto:[email protected]
Siemens Aktiengesellschaft: Chairman of the Supervisory Board: Gerhard Cromme;
Managing Board: Peter Loescher, Chairman, President and Chief Executive
Officer; Wolfgang Dehen, Brigitte Ederer, Joe Kaeser, Barbara Kux, Hermann
Requardt, Siegfried Russwurm, Peter Y. Solmssen; Registered offices: Berlin and
Munich, Germany; Commercial registries: Berlin Charlottenburg, HRB 12300,
Munich, HRB 6684; WEEE-Reg.-No. DE 23691322