- Index
- » Programming
- » Modelica Language
- » Dymola "Component type specifier not...
Dymola "Component type specifier not found" Error
Dymola "Component type specifier not found" Error
I have made a simple program of Modelica. It can be ran successfully in Openmodelica. But when I ran this in Dymola, the compiler error shows that "Component type specifier Testhome.HPComponents.Motor not found the class Testhome.HPcomponents.Motor exists, but Modelica is case-sensitive and uses scoping".
What is the reason and how can I fix it? Thank you.
Code:
model HPtest
import Testhome;
Testhome.HPComponents.Motor Motors;
Testhome.HPComponents.Cop Cops;
Testhome.HPComponents.Tes Tess;
...
end HPtest;
Re: Dymola "Component type specifier not found" Error
Given that OpenModelica is also case-sensitive, can you check if you have a file HPcomponents.mo or HPcomponents/package.mo that contains a class HPComponents (could be that Windows OpenModelica ignores the error in that file and Dymola silently renames the class)? Otherwise, I am really unsure what could be wrong and would have liked to see a zip of the library...
- sjoelund.se
- 1700 Posts
- Index
- » Programming
- » Modelica Language
- » Dymola "Component type specifier not...