queraltab / Greenhouses-Library

The Greenhouse Modelica Library aims at providing a fully open-source modeling framework for the simulation of greenhouse climate, crop yield and the energy integration of greenhouses with thermal systems (e.g. generation units, thermal storage units, district heating networks, etc.).
BSD 3-Clause "New" or "Revised" License
45 stars 18 forks source link

Errors in Example model "Green House 1" #16

Open ELINT599X opened 3 years ago

ELINT599X commented 3 years ago

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 commented 2 years ago

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 commented 1 year ago

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