Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

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;

Edited by: Logik - Nov-22-16 14:15:52

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...

Re: Dymola "Component type specifier not found" Error

Thank you very much. I checked and found a case error in the parent package... current/sad

There are 0 guests and 0 other users also viewing this topic
You are here: