-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* only test for 1 day so tests work and can be unskipped * move use_m_flow_in to correct place in ambient instance template * add container info logging and update log statements * use OMv1.21 in container * teeny change to log usage in om.py * skip chp test until we figure out what OM wants in initial values * teaser heating test step size set to 1 hour * add pytest marker for docker tests [skip ci] * refactor os.path to pathlib.Path in test_borefield.py * add docstring and fix typo in ambient_water_stub.py [skip ci] * log additional reason for simulation failure to ease debugging * test simple cooling plant for only 1 day in the summer * update dependencies * `poetry update` to pick up the upgraded dependencies * more permissive versioning of syrupy, to get additional feature releases * update dependencies again for newer syrupy * mark one more test as docker * update GMT_lib snapshot because new version of syrupy * change step_size in one test so it passes locally for me * test that users can provide number_of_intervals instead of step_size * add a forgotten test file to gitignore * clean up raw/endraw tags in templates * use local container with OMv1.22 * fix typo made when cleaning up raw/endraw tags * set m-b dependency properly for this branch * Revert "clean up raw/endraw tags in templates" This reverts commit e325478. * update dependencies * update OM version in dockerfile and add timestamp logging * clean up spawn scripts when running with OM * skip teaser heating because of simulation weirdness * one more cleanup of dymola/spawn-specific stuff no longer necessary * include OM version in stdout.log file when running OM * use new docker image with OMv1.22.0 * add OM version logging to the rest of the relevant functions * use updated BuildFMU method from OM * slightly cleaner syntax for Path.chmod in modelica_runner.py * add cmake to base image for OpenModelica FMU compilation * change interval & step size so local tests are happy * remove redundant boolean in 5G instance template * update dependencies --------- Co-authored-by: Nicholas Long <[email protected]>
- Loading branch information
Showing
31 changed files
with
793 additions
and
746 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
...elica_translator/model_connectors/load_connectors/templates/RunSpawnCouplingBuilding.most
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
...lica_translator/model_connectors/load_connectors/templates/RunTeaserCouplingBuilding.most
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
simulateModel("{{full_model_name}}", | ||
method="cvode", | ||
tolerance=1e-6, | ||
numberOfIntervals=500, | ||
stopTime=604800.0, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
geojson_modelica_translator/modelica/GMT_Lib/DHC/Components/Plants/Cooling/CoolingPlant.mos
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 7 additions & 2 deletions
9
geojson_modelica_translator/modelica/model_connectors/templates/RunSpawnBuilding.mot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,7 @@ | ||
simulateModel("{{project_name}}.Loads.{{model_name}}",stopTime=604800, method="Cvode", tolerance=1e-06, resultFile="{{model_name}}"); | ||
createPlot(id=1, position={55, 50, 1783, 995}, y={% raw %}{{% endraw %}{% for zone in data['thermal_zones']%}"{{zone['modelica_object_name']}}.TAir", {% endfor %} {% raw %} "weaDat.weaBus.TDryBul", "datRea.y[1]", "datRea.y[2]", "datRea.y[3]", "datRea.y[4]", "datRea.y[5]", "datRea.y[6]", "datRea.y[7]"}, range={0.0, 620000.0, -30.0, 25.0}, grid=true, colors={{28,108,200}, {238,46,47}, {0,140,72}, {217,67,180}, {0,0,0}, {162,29,33}, {244,125,35}, {102,44,145}, {28,108,200}, {238,46,47}, {0,140,72}, {217,67,180}, {0,0,0}, {162,29,33}}, patterns={LinePattern.Solid, LinePattern.Solid, LinePattern.Solid, LinePattern.Solid, LinePattern.Solid, LinePattern.Solid, LinePattern.Solid, LinePattern.Solid, LinePattern.Dash, LinePattern.Dash, LinePattern.Dash, LinePattern.Dash, LinePattern.Dash, LinePattern.Dash});{% endraw %} | ||
simulateModel( | ||
"{{project_name}}.Loads.{{model_name}}", | ||
stopTime=604800, | ||
tolerance=1e-06, | ||
resultFile="{{model_name}}" | ||
); | ||
createPlot(id=1, position={55, 50, 1783, 995}, y={ {% for zone in data['thermal_zones']%}"{{zone['modelica_object_name']}}.TAir", {% endfor %} {% raw %} "weaDat.weaBus.TDryBul", "datRea.y[1]", "datRea.y[2]", "datRea.y[3]", "datRea.y[4]", "datRea.y[5]", "datRea.y[6]", "datRea.y[7]"}, range={0.0, 620000.0, -30.0, 25.0}, grid=true, colors={{28,108,200}, {238,46,47}, {0,140,72}, {217,67,180}, {0,0,0}, {162,29,33}, {244,125,35}, {102,44,145}, {28,108,200}, {238,46,47}, {0,140,72}, {217,67,180}, {0,0,0}, {162,29,33}}, patterns={LinePattern.Solid, LinePattern.Solid, LinePattern.Solid, LinePattern.Solid, LinePattern.Solid, LinePattern.Solid, LinePattern.Solid, LinePattern.Solid, LinePattern.Dash, LinePattern.Dash, LinePattern.Dash, LinePattern.Dash, LinePattern.Dash, LinePattern.Dash});{% endraw %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.