Modelica DHC Errors When Adding My Own Data

asked 2025-06-05 14:00:54 -0500

annieliesemari's avatar

updated 2025-06-05 15:23:04 -0500

Hello! I am working with the Modelica buildings library from LBNL. I want to use the BuildingTimeSeriesWithETS model as a basis for my project. I ran the example and everything comes out fine, the simulation produces results.

When I go to add my own data, I start to get hysteresis errors. Specifically, it seems to be with the ETS itself. I formatted the data in columns as time in seconds, heating load, cooling load, and then exported it as a CSV. I then put that in as the file in the building field for the file.

The errors I'm getting are below. Any ideas on how to fix this? I'm also having issues that I can't seem to edit the component when I click into it.

Translation of TestETS.BaseExample

Current version of the Modelica translator can only handle conditional components with fixed condition. But component bui.ets.swiFlo.con.posDom.greHys had non-fixed condition if have_hysteresis. File: //psf/Home/Documents/Dymola/Library/Buildings 12.1.0/Controls/OBC/CDL/Reals/GreaterThreshold.mo, line 24 But component bui.ets.swiFlo.con.posDom.greNoHys had non-fixed condition if not have_hysteresis. File: //psf/Home/Documents/Dymola/Library/Buildings 12.1.0/Controls/OBC/CDL/Reals/GreaterThreshold.mo, line 30 All variables used in condition of conditonal declaration must be declared as constants or parameters.

The model contained invalid expressions.

Translation aborted.

ERRORS have been issued.

edit retag flag offensive close merge delete