Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors in Example model "Green House 1" #16

Open
ELINT599X opened this issue Jul 22, 2021 · 2 comments
Open

Errors in Example model "Green House 1" #16

ELINT599X opened this issue Jul 22, 2021 · 2 comments

Comments

@ELINT599X
Copy link

Dear Developers,

Nice to meet you.

Thank you so much for your great work creating Greenhouses Model in Modelica Libraries.

Today, I would like to run examples prepared in Greenhouses libraries.
I have tested to run "Green House 1" but it never run due to the following errors.
I appreciate if you have any clue to solve these errors
I use either Modelica3.2.3 or Modelica 4.0.0 as a base library.

[7] 09:35:45 Script Error
[C:/Users/AppData/Roaming/.openmodelica/libraries/index.json: 0:0-0:0]: The package index C:/Users/AppData/Roaming/.openmodelica/libraries/index.json could not be parsed.

[8] 09:35:45 Script Notification
Skipped loading package DymolaCommands (1.1,default) using MODELICAPATH C:/Program Files/OpenModelica1.17.0-64bit/lib/omlibrary;C:/Users/AppData/Roaming/.openmodelica/libraries/ (uses-annotation may be wrong).

[9] 09:35:45 Error
[Greenhouses.Flows.FluidFlow.Reservoirs.SourceMdot: 54:5-54:54]:

Type mismatch for positional argument 3 in Greenhouses.Flows.FluidFlow.Reservoirs.SourceMdot$sourceMdot_1ry.Medium.specificEnthalpy_pTX(X={}). The argument has type: Integer[0]expected type: Real[1]

[10] 09:35:45 Error
Error occurred while flattening model Greenhouses.Examples.Greenhouse_1

Thank you.

Best Regards,

@RobertoMCV
Copy link

Dear developer,

I'm also having problems running all of the examples from the greenhouse library in OpenModelica v1.18. Any advice on how to debug this would be greatly appreciated. The errors I'm getting are as follows:

[12] 18:58:06 Translation Error
[Greenhouses.Flows.FluidFlow.Reservoirs.SourceMdot: 54:5-54:54]: Type mismatch for positional argument 3 in Greenhouses.Flows.FluidFlow.Reservoirs.SourceMdot$sourceMdot_1ry.Medium.specificEnthalpy_pTX(X={}). The argument has type:
Integer[0]
expected type:
Real[1]

[13] 18:58:06 Translation Error
Error occurred while flattening model Greenhouses.Examples.Greenhouse_2

@adrpo
Copy link

adrpo commented Aug 16, 2023

PR #20 gets the models to compile with OpenModelica. Simulating them still fails because of issues at initialization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants