Skip to content
Snippets Groups Projects
Unverified Commit ff213d52 authored by Martin Rätz's avatar Martin Rätz Committed by GitHub
Browse files

Merge branch 'development' into issue665_baseclass

parents c2bc0a82 c2ded844
No related tags found
1 merge request!668Use common base class for all Archetypes
Pipeline #112727 failed
Showing
with 523 additions and 1 deletion
......@@ -47,6 +47,7 @@ setup(
"package_order",
"conversion",
"modelica_language",
"modelica_test_script",
],
"teaser.data.output.modelicatemplate.AixLib": [
"AixLib_Multizone",
......
......@@ -5,7 +5,7 @@ double tab1(8760,30)
#TYPICAL/EXTREME PERIODS,6,Summer - Week Nearest Max Temperature For Period,Extreme,7/13,7/19,Summer - Week Nearest Average Temperature For Period,Typical,8/ 3,8/ 9,Winter - Week Nearest Min Temperature For Period,Extreme,12/ 8,12/14,Winter - Week Nearest Average Temperature For Period,Typical,12/15,12/21,Autumn - Week Nearest Average Temperature For Period,Typical,10/20,10/26,Spring - Week Nearest Average Temperature For Period,Typical,4/19,4/25
#GROUND TEMPERATURES,3,.5,,,,3.79,3.08,4.35,6.34,11.55,15.57,18.29,19.11,17.71,14.58,10.41,6.54,2,,,,6.44,5.16,5.42,6.48,9.96,13.11,15.64,16.99,16.70,14.93,12.06,9.01,4,,,,8.62,7.31,7.02,7.42,9.39,11.52,13.46,14.82,15.14,14.37,12.68,10.62
#HOLIDAYS/DAYLIGHT SAVINGS,No,0,0,0
#COMMENTS 1,"Custom/User Format -- WMO#107290; Bundesinstitut für Bau-, Stadt- und Raumforschung im Bundesamt für Bauwesen und Raumordnung. 1) DWD are the original author of the DTRY dataset on which these EPWs are based. 2) The EPWs were converted by Climate.OneBuilding.Org. Neither the DWD nor the BBSR were responsible for the conversion, and they disclaim all liability associated with the use of the converted DTRY EPW data set."
#COMMENTS 1,"Custom/User Format -- WMO#107290; Bundesinstitut fuer Bau-, Stadt- und Raumforschung im Bundesamt fuer Bauwesen und Raumordnung. 1) DWD are the original author of the DTRY dataset on which these EPWs are based. 2) The EPWs were converted by Climate.OneBuilding.Org. Neither the DWD nor the BBSR were responsible for the conversion, and they disclaim all liability associated with the use of the converted DTRY EPW data set."
#COMMENTS 2,"Downloaded from Climate.OneBuilding.Org -- Ground temps represent undisturbed earth temperatures - calculated from this weather data."
#DATA PERIODS,1,1,Data,Monday, 1/ 1,12/31
#C1 Time in seconds. Beginning of a year is 0s.
......@@ -82,6 +82,10 @@ def export_multizone(buildings, prj, path=None):
filename=utilities.get_full_path(
"data/output/modelicatemplate/AixLib/AixLib_Multizone"),
lookup=lookup)
test_script_template = Template(
filename=utilities.get_full_path(
"data/output/modelicatemplate/modelica_test_script"),
lookup=lookup)
uses = [
'Modelica(version="' + prj.modelica_info.version + '")',
......@@ -146,6 +150,17 @@ def export_multizone(buildings, prj, path=None):
modelica_info=bldg.parent.modelica_info))
out_file.close()
dir_resources = os.path.join(path, "Resources")
if not os.path.exists(dir_resources):
os.mkdir(dir_resources)
dir_scripts = os.path.join(dir_resources, "Scripts")
if not os.path.exists(dir_scripts):
os.mkdir(dir_scripts)
dir_dymola = os.path.join(dir_scripts, "Dymola")
if not os.path.exists(dir_dymola):
os.mkdir(dir_dymola)
_help_test_script(bldg, dir_dymola, test_script_template)
zone_path = os.path.join(bldg_path, bldg.name + "_DataBase")
for zone in bldg.thermal_zones:
......@@ -173,10 +188,76 @@ def export_multizone(buildings, prj, path=None):
addition=bldg.name + "_",
extra=None)
_copy_script_unit_tests(os.path.join(dir_scripts, "runUnitTests.py"))
_copy_reference_results(dir_resources, prj)
print("Exports can be found here:")
print(path)
def _copy_reference_results(dir_resources, prj):
"""Copy reference results to modelica output.
Parameters
----------
dir_resources : str
Resources directory of the modelica output
prj : teaser.project.Project
Project to be exported
"""
if prj.dir_reference_results is not None:
dir_ref_out = os.path.join(dir_resources, "ReferenceResults")
if not os.path.exists(dir_ref_out):
os.mkdir(dir_ref_out)
dir_ref_out_dymola = os.path.join(dir_ref_out, "Dymola")
if not os.path.exists(dir_ref_out_dymola):
os.mkdir(dir_ref_out_dymola)
for filename in os.listdir(prj.dir_reference_results):
if filename.endswith(".txt"):
shutil.copy2(
os.path.join(prj.dir_reference_results, filename),
os.path.join(dir_ref_out_dymola, filename)
)
def _help_test_script(bldg, dir_dymola, test_script_template):
"""Create a test script for regression testing with BuildingsPy
Parameters
----------
bldg : teaser.logic.buildingobjects.building.Building
Building for which test script is created
dir_dymola : str
Output directory for Dymola scripts
test_script_template : mako.template.Template
Template for the test script
Returns
-------
dir_scripts : str
Path to the scripts directory
"""
dir_building = os.path.join(dir_dymola, bldg.name)
if not os.path.exists(dir_building):
os.mkdir(dir_building)
out_file = open(utilities.get_full_path
(os.path.join(dir_building, bldg.name + ".mos")), 'w')
names_variables = []
for i, zone in enumerate(bldg.thermal_zones):
names_variables.append(f"multizone.PHeater[{i+1}]")
names_variables.append(f"multizone.PCooler[{i+1}]")
names_variables.append(f"multizone.TAir[{i+1}]")
out_file.write(test_script_template.render_unicode(
project=bldg.parent,
bldg=bldg,
stop_time=3600 * 24 * 365,
names_variables=names_variables,
))
out_file.close()
def _help_package(path, name, uses=None, within=None):
"""creates a package.mo file
......@@ -248,3 +329,16 @@ def _copy_weather_data(source_path, destination_path):
"""
shutil.copy2(source_path, destination_path)
def _copy_script_unit_tests(destination_path):
"""Copies the script to run the unit tests.
Parameters
----------
destination_path : str
path of where the weather file should be placed
"""
source_path = utilities.get_full_path("data/output/runUnitTests.py")
shutil.copy2(source_path, destination_path)
......@@ -140,9 +140,13 @@ equation
StartTime=${str(zone.parent.parent.modelica_info.start_time)},
StopTime=${str(zone.parent.parent.modelica_info.stop_time)},
Interval=${modelica_info.interval_output},
Tolerance=0.0001,
__Dymola_Algorithm="${modelica_info.current_solver}"),
__Dymola_experimentSetupOutput(equidistant=${get_true_false(modelica_info.equidistant_output)},
events=${get_true_false(modelica_info.results_at_events)}),
__Dymola_Commands(file=
"Resources/Scripts/Dymola/${bldg.name}/${bldg.name}.mos"
"Simulate and Plot"),
Icon(coordinateSystem(preserveAspectRatio=false, extent={{-100,-100},{100,100}}),
graphics={
Line(points={{80,-82}}, color={28,108,200}),
......
simulateModel("${project.name}.${bldg.name}.${bldg.name}", method="Dassl", tolerance=0.0001, stopTime=${stop_time}, resultFile="${bldg.name}");
% for name_variable in names_variables:
createPlot(id=${loop.index + 1}, y={"${name_variable}"});
% endfor
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#######################################################
# Script that runs all unit tests or, optionally,
# only checks the html syntax or the validity of
# the simulation parameters of the models
#
# To run the unit tests, this script
# - creates temporary directories for each processor,
# - copies the library directory into these
# temporary directories,
# - creates run scripts that run all unit tests,
# - runs these unit tests,
# - collects the dymola log files from each process,
# - writes the combined log file 'unitTests.log'
# in the current directory,
# - checks whether all unit tests run successfully,
# and produced the same results as the reference
# results, and
# - exits with the message
# 'Unit tests completed successfully.' or with
# an error message.
#
# If no errors occurred during the unit tests, then
# this script returns 0. Otherwise, it returns a
# non-zero exit value.
#
# MWetter@lbl.gov 2011-02-23
# TSNouidui@lbl.gov 2017-04-11
#######################################################
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
def _validate_experiment_setup(path):
import buildingspy.development.validator as v
val = v.Validator()
retVal = val.validateExperimentSetup(path)
return retVal
def _validate_html(path):
import buildingspy.development.validator as v
val = v.Validator()
errMsg = val.validateHTMLInPackage(path)
n_msg = len(errMsg)
for i in range(n_msg):
if i == 0:
print(
"The following malformed html syntax has been found:\n{}".format(
errMsg[i]
)
)
else:
print(errMsg[i])
if n_msg == 0:
return 0
else:
return 1
def _setEnvironmentVariables(var, value):
""" Add to the environment variable `var` the value `value`
"""
import os
import platform
if var in os.environ:
if platform.system() == "Windows":
os.environ[var] = value + ";" + os.environ[var]
else:
os.environ[var] = value + ":" + os.environ[var]
else:
os.environ[var] = value
def _runUnitTests(batch, tool, package, path, n_pro, show_gui, skip_verification):
import buildingspy.development.regressiontest as u
ut = u.Tester(tool=tool, skip_verification=skip_verification)
ut.batchMode(batch)
ut.setLibraryRoot(path)
if package is not None:
ut.setSinglePackage(package)
ut.setNumberOfThreads(n_pro)
ut.pedanticModelica(False)
ut.showGUI(show_gui)
# Below are some option that may occassionally be used.
# These are currently not exposed as command line arguments.
# ut.setNumberOfThreads(1)
# ut.deleteTemporaryDirectories(False)
# ut.useExistingResults(['/tmp/tmp-Buildings-0-fagmeZ'])
# ut.writeOpenModelicaResultDictionary()
# Run the regression tests
retVal = ut.run()
# Display HTML report if not run in batch mode.
# (For buildingspy.__version__ >= 2)
if not batch:
try:
if not skip_verification:
ut.report()
except AttributeError:
pass
return retVal
if __name__ == "__main__":
import multiprocessing
import platform
import argparse
import os
import sys
# Configure the argument parser
parser = argparse.ArgumentParser(
description="Run the unit tests or the html validation only."
)
unit_test_group = parser.add_argument_group("arguments to run unit tests")
unit_test_group.add_argument(
"-b",
"--batch",
action="store_true",
help="Run in batch mode without user interaction",
)
unit_test_group.add_argument(
"-t",
"--tool",
metavar="dymola",
default="dymola",
help="Tool for the regression tests. Set to dymola or jmodelica",
)
unit_test_group.add_argument(
"-s",
"--single-package",
metavar="Modelica.Package",
help="Test only the Modelica package Modelica.Package",
)
unit_test_group.add_argument(
"-p",
"--path",
default=".",
help="Path where top-level package.mo of the library is located",
)
unit_test_group.add_argument(
"-n",
"--number-of-processors",
type=int,
default=multiprocessing.cpu_count(),
help="Maximum number of processors to be used",
)
unit_test_group.add_argument(
"--show-gui", help="Show the GUI of the simulator", action="store_true"
)
unit_test_group.add_argument(
"--skip-verification",
help="If specified, do not verify simulation results against reference points",
action="store_true",
)
html_group = parser.add_argument_group("arguments to check html syntax only")
html_group.add_argument("--validate-html-only", action="store_true")
experiment_setup_group = parser.add_argument_group(
"arguments to check validity of .mos and .mo experiment setup only"
)
experiment_setup_group.add_argument(
"--validate-experiment-setup", action="store_true"
)
# Set environment variables
if platform.system() == "Windows":
_setEnvironmentVariables(
"PATH", os.path.join(os.path.abspath("."), "Resources", "Library", "win32")
)
else:
# For https://github.com/lbl-srg/modelica-buildings/issues/559, we add
# 32 and 64 bit resources to run the Utilities.IO.Python27 regression tests.
_setEnvironmentVariables(
"LD_LIBRARY_PATH",
os.path.join(os.path.abspath("."), "Resources", "Library", "linux32")
+ ":"
+ os.path.join(os.path.abspath("."), "Resources", "Library", "linux64"),
)
# The path to buildingspy must be added to sys.path to work on Linux.
# If only added to os.environ, the Python interpreter won't find buildingspy
sys.path.append(os.path.join(os.path.abspath("."), "..", "..", "BuildingsPy"))
# Parse the arguments
args = parser.parse_args()
if args.validate_html_only:
# Validate the html syntax only, and then exit
ret_val = _validate_html(args.path)
exit(ret_val)
if args.validate_experiment_setup:
# Match the mos file parameters with the mo files only, and then exit
ret_val = _validate_experiment_setup(args.path)
exit(ret_val)
if args.single_package:
single_package = args.single_package
else:
single_package = None
retVal = _runUnitTests(
batch=args.batch,
tool=args.tool,
package=single_package,
path=args.path,
n_pro=args.number_of_processors,
show_gui=args.show_gui,
skip_verification=args.skip_verification,
)
exit(retVal)
# _runOpenModelicaUnitTests()
......@@ -33,6 +33,17 @@ def example_export_aixlib():
# Be careful: Dymola does not like whitespaces in names and filenames,
# thus we will delete them anyway in TEASER.
# for CI testing purpose we set the reference result folder
prj.dir_reference_results = utilities.get_full_path(
os.path.join(
"examples",
"examplefiles",
"ReferenceResults",
"Dymola"))
print(prj.dir_reference_results)
prj.used_library_calc = 'AixLib'
prj.number_of_elements_calc = 2
prj.weather_file_path = utilities.get_full_path(
......
......@@ -32,6 +32,7 @@ def example_export_ibpsa():
# file by setting Project().weather_file_path. However we will use default
# weather file.
prj.name = "ArchetypeExampleIBPSA"
prj.used_library_calc = 'IBPSA'
prj.number_of_elements_calc = 4
prj.merge_windows_calc = False
......
last-generated=2020-12-28
statistics-initialization=
{
"linear": "4"
}
statistics-simulation=
{
"linear": "0, 4, 0",
"nonlinear": "0, 1, 0, 1, 0, 1",
"number of continuous time states": "7",
"numerical Jacobians": "0"
}
time=[0e+00, 3.1536e+07]
multizone.PHeater[1]=[1e+02, 3.466923095703125e+03, 1.01184228515625e+04, 9.812837890625e+03, 3.801811767578125e+03, 8.9068955078125e+03, 7.0581142578125e+03, 1.108831420898438e+03, 1.10702568359375e+04, 4.79801123046875e+03, 1.959134765625e+03, 1.26604482421875e+04, 6.11798486328125e+03, 4.8084150390625e+03, 1.11085673828125e+04, 1.563703460693359e+02, 1.066820068359375e+03, 1.26604482421875e+04, 0e+00, 3.178488525390625e+03, 6.934626953125e+03, 0e+00, 5.29049609375e+03, 7.524859375e+03, 0e+00, 8.688400390625e+03, 5.2929697265625e+03, 0e+00, 9.860193359375e+03, 3.235479248046875e+03, 6.393383178710938e+02, 4.11072216796875e+03, 7.580407104492188e+02, 0e+00, 8.41329296875e+03, 0e+00, 0e+00, 2.379198974609375e+03, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 3.598443359375e+03, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 7.34684375e+03, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 8.7357939453125e+03, 0e+00, 0e+00, 6.28271630859375e+03, 0e+00, 4.25444775390625e+03, 3.655798828125e+03, 0e+00, 1.115835546875e+04, 7.95489208984375e+03, 2.401925537109375e+03, 9.054751953125e+03, 7.95885888671875e+03, 3.00062158203125e+03, 1.10716923828125e+04, 8.5875068359375e+03, 3.514698486328125e+03, 1.1890859375e+04, 6.662337890625e+03, 5.29915869140625e+03, 9.55251171875e+03, 4.48772900390625e+03, 5.7819609375e+03, 8.4009140625e+03, 3.125276123046875e+03, 7.20480908203125e+03, 9.8369365234375e+03]
multizone.PCooler[1]=[0e+00, 0e+00]
multizone.TAir[1]=[2.931499938964844e+02, 2.94056640625e+02, 2.944435119628906e+02, 2.940682983398438e+02, 2.941714477539062e+02, 2.941483459472656e+02, 2.940296936035156e+02, 2.94081298828125e+02, 2.941351623535156e+02, 2.939469909667969e+02, 2.941412658691406e+02, 2.933776245117188e+02, 2.939266052246094e+02, 2.941763000488281e+02, 2.9409326171875e+02, 2.940877685546875e+02, 2.944278564453125e+02, 2.9404931640625e+02, 2.944402160644531e+02, 2.944149169921875e+02, 2.939154357910156e+02, 2.947320556640625e+02, 2.945196533203125e+02, 2.939523620605469e+02, 2.955085754394531e+02, 2.942497863769531e+02, 2.936143798828125e+02, 2.942721252441406e+02, 2.941383361816406e+02, 2.940029602050781e+02, 2.941717224121094e+02, 2.939831848144531e+02, 2.939364624023438e+02, 2.955259399414062e+02, 2.940990905761719e+02, 2.963341674804688e+02, 2.945153198242188e+02, 2.939222717285156e+02, 2.964259033203125e+02, 2.957108764648438e+02, 2.954263305664062e+02, 2.961323547363281e+02, 2.951771545410156e+02, 2.979957275390625e+02, 3.004150085449219e+02, 2.975819091796875e+02, 2.978973999023438e+02, 2.96130859375e+02, 2.941138610839844e+02, 2.964907836914062e+02, 2.96347900390625e+02, 2.9532177734375e+02, 2.966252136230469e+02, 2.9677197265625e+02, 3.011120910644531e+02, 3.007285766601562e+02, 2.991670837402344e+02, 2.957938232421875e+02, 3.015155944824219e+02, 2.992958984375e+02, 2.965816955566406e+02, 2.977373046875e+02, 2.991528625488281e+02, 2.995721740722656e+02, 3.00389404296875e+02, 2.963534851074219e+02, 2.952516479492188e+02, 2.966152038574219e+02, 2.940210876464844e+02, 2.946044921875e+02, 2.981876525878906e+02, 2.9538330078125e+02, 2.950161743164062e+02, 2.952445678710938e+02, 2.941419677734375e+02, 2.94518798828125e+02, 2.949424438476562e+02, 2.941319580078125e+02, 2.945099487304688e+02, 2.947291259765625e+02, 2.940360107421875e+02, 2.945507507324219e+02, 2.945558166503906e+02, 2.939536743164062e+02, 2.941912841796875e+02, 2.941564331054688e+02, 2.939171447753906e+02, 2.940648498535156e+02, 2.942085876464844e+02, 2.9397607421875e+02, 2.941446533203125e+02, 2.941288146972656e+02, 2.938313293457031e+02, 2.942008056640625e+02, 2.941187744140625e+02, 2.9409228515625e+02, 2.942802734375e+02, 2.941236572265625e+02, 2.940320739746094e+02, 2.9436376953125e+02, 2.940067443847656e+02]
last-generated=2020-12-28
statistics-initialization=
{
"linear": "4"
}
statistics-simulation=
{
"linear": "0, 4, 0",
"nonlinear": "0, 1, 0, 1, 0, 1",
"number of continuous time states": "7",
"numerical Jacobians": "0"
}
time=[0e+00, 3.1536e+07]
multizone.PHeater[1]=[1e+02, 8.6575341796875e+03, 1.33576279296875e+04, 1.132526953125e+04, 8.5665e+03, 1.19146611328125e+04, 8.14199755859375e+03, 3.406088134765625e+03, 1.001233984375e+04, 6.0491083984375e+03, 5.15764111328125e+03, 1.4804013671875e+04, 1.05012021484375e+04, 9.4354208984375e+03, 1.11212802734375e+04, 7.27977490234375e+03, 6.271904296875e+03, 1.19836083984375e+04, 2.0838818359375e+03, 7.1237978515625e+03, 9.6080947265625e+03, 7.064845581054688e+02, 7.50741064453125e+03, 9.8445576171875e+03, 7.10501708984375e+02, 1.09567919921875e+04, 7.520623046875e+03, 3.700921142578125e+03, 9.8512216796875e+03, 6.43785986328125e+03, 4.1928134765625e+03, 4.71130419921875e+03, 1.593420776367188e+03, 0e+00, 8.2085634765625e+03, 0e+00, 3.826472900390625e+03, 3.723998779296875e+03, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 1.911102172851562e+03, 6.63539111328125e+03, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 8.234000854492188e+02, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 3.2071279296875e+03, 0e+00, 7.37506494140625e+03, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 8.60675e+03, 7.940450286865234e+01, 9.776784057617188e+02, 7.77633544921875e+03, 1.01426830291748e+01, 7.03880224609375e+03, 8.43660546875e+03, 1.513714111328125e+03, 1.0225337890625e+04, 7.6114423828125e+03, 5.2302548828125e+03, 1.34367705078125e+04, 8.14801318359375e+03, 5.39834912109375e+03, 1.1997216796875e+04, 1.02793193359375e+04, 6.40329931640625e+03, 1.1643091796875e+04, 9.19640625e+03, 8.630044921875e+03, 1.40361748046875e+04, 9.91954296875e+03, 8.1321767578125e+03, 1.08806669921875e+04, 5.76684521484375e+03, 1.0572603515625e+04, 9.6693037109375e+03]
multizone.PCooler[1]=[0e+00, 0e+00]
multizone.TAir[1]=[2.931499938964844e+02, 2.94033203125e+02, 2.943142395019531e+02, 2.941126708984375e+02, 2.941722106933594e+02, 2.941630554199219e+02, 2.940847473144531e+02, 2.941233520507812e+02, 2.941449279785156e+02, 2.940216064453125e+02, 2.941399536132812e+02, 2.941575012207031e+02, 2.940272521972656e+02, 2.941596069335938e+02, 2.941241149902344e+02, 2.940468444824219e+02, 2.943848571777344e+02, 2.941090087890625e+02, 2.940085754394531e+02, 2.942796020507812e+02, 2.940026245117188e+02, 2.942675170898438e+02, 2.943846740722656e+02, 2.94026611328125e+02, 2.942300109863281e+02, 2.941998901367188e+02, 2.937952880859375e+02, 2.941632385253906e+02, 2.941486511230469e+02, 2.940731811523438e+02, 2.941975708007812e+02, 2.940205383300781e+02, 2.93917724609375e+02, 2.951478881835938e+02, 2.941003723144531e+02, 2.964219970703125e+02, 2.942316589355469e+02, 2.939555053710938e+02, 2.954800415039062e+02, 2.947214965820312e+02, 2.945752258300781e+02, 2.949997863769531e+02, 2.947052917480469e+02, 2.982052917480469e+02, 2.999659729003906e+02, 2.969647216796875e+02, 2.968999633789062e+02, 2.940688171386719e+02, 2.941590576171875e+02, 2.967655944824219e+02, 2.956038208007812e+02, 2.942501831054688e+02, 2.962274475097656e+02, 2.960502319335938e+02, 3.018351440429688e+02, 3.002860717773438e+02, 2.973734741210938e+02, 2.939591064453125e+02, 3.016444091796875e+02, 2.980275268554688e+02, 2.942789306640625e+02, 2.967112121582031e+02, 2.993411865234375e+02, 2.992125244140625e+02, 2.997469177246094e+02, 2.9442041015625e+02, 2.938382873535156e+02, 2.961131896972656e+02, 2.940359497070312e+02, 2.946819763183594e+02, 2.98025634765625e+02, 2.943230285644531e+02, 2.95063720703125e+02, 2.94856689453125e+02, 2.941456604003906e+02, 2.940836791992188e+02, 2.943645629882812e+02, 2.941535034179688e+02, 2.941290588378906e+02, 2.945419616699219e+02, 2.940758056640625e+02, 2.941758422851562e+02, 2.944412841796875e+02, 2.940251159667969e+02, 2.941583251953125e+02, 2.941631164550781e+02, 2.939994812011719e+02, 2.9411572265625e+02, 2.941745300292969e+02, 2.940423278808594e+02, 2.941622619628906e+02, 2.941314697265625e+02, 2.939640808105469e+02, 2.941682739257812e+02, 2.941233520507812e+02, 2.941183776855469e+02, 2.942051391601562e+02, 2.941484375e+02, 2.940541687011719e+02, 2.942393493652344e+02, 2.940620422363281e+02]
last-generated=2020-12-28
statistics-initialization=
{
"linear": "4"
}
statistics-simulation=
{
"linear": "0, 4, 0",
"nonlinear": "0, 1, 0, 1, 0, 1",
"number of continuous time states": "7",
"numerical Jacobians": "0"
}
time=[0e+00, 3.1536e+07]
multizone.PHeater[1]=[1e+02, 5.837548828125e+03, 8.6076376953125e+03, 7.48322705078125e+03, 5.9122939453125e+03, 7.85309521484375e+03, 5.8231787109375e+03, 3.068011962890625e+03, 6.863033203125e+03, 4.72740673828125e+03, 3.43483251953125e+03, 9.5234140625e+03, 7.06010986328125e+03, 6.24994091796875e+03, 7.46167578125e+03, 4.9066806640625e+03, 3.98367578125e+03, 7.874013671875e+03, 1.938365600585938e+03, 4.4601806640625e+03, 6.43075146484375e+03, 9.338873901367188e+02, 4.50545068359375e+03, 6.2612998046875e+03, 8.925325927734375e+02, 6.3764091796875e+03, 5.12906884765625e+03, 2.688965087890625e+03, 6.35441845703125e+03, 4.1915302734375e+03, 2.998763427734375e+03, 3.87101318359375e+03, 1.979489868164062e+03, 0e+00, 5.16443798828125e+03, 0e+00, 1.568837280273438e+03, 2.860285888671875e+03, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 4.1242900390625e+03, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 7.618522338867188e+02, 0e+00, 4.74965966796875e+03, 1.466049861907959e+01, 0e+00, 0e+00, 0e+00, 0e+00, 5.42339453125e+03, 6.520242309570312e+02, 4.120696716308594e+02, 4.82222607421875e+03, 5.554049682617188e+02, 3.9714755859375e+03, 5.17198681640625e+03, 1.504346313476562e+03, 6.235896484375e+03, 5.30514697265625e+03, 3.71017724609375e+03, 8.2276943359375e+03, 5.7319365234375e+03, 4.06977880859375e+03, 7.3254794921875e+03, 6.8343134765625e+03, 4.41931689453125e+03, 7.70217626953125e+03, 6.30690673828125e+03, 5.68326171875e+03, 8.6731875e+03, 6.7892470703125e+03, 5.5727890625e+03, 7.33410107421875e+03, 4.1628955078125e+03, 6.565318359375e+03, 6.80211572265625e+03]
multizone.PCooler[1]=[0e+00, 0e+00]
multizone.TAir[1]=[2.931499938964844e+02, 2.940860595703125e+02, 2.942623901367188e+02, 2.941320495605469e+02, 2.941648254394531e+02, 2.941555786132812e+02, 2.94099365234375e+02, 2.941364135742188e+02, 2.941513061523438e+02, 2.941030578613281e+02, 2.9412646484375e+02, 2.941903991699219e+02, 2.9407470703125e+02, 2.941542358398438e+02, 2.941387939453125e+02, 2.940956420898438e+02, 2.942732238769531e+02, 2.941255187988281e+02, 2.940630493164062e+02, 2.942260437011719e+02, 2.940857849121094e+02, 2.94202880859375e+02, 2.943092346191406e+02, 2.940903930664062e+02, 2.941941223144531e+02, 2.941840209960938e+02, 2.939102783203125e+02, 2.941488647460938e+02, 2.94154296875e+02, 2.941196899414062e+02, 2.941596374511719e+02, 2.940877990722656e+02, 2.940142822265625e+02, 2.948589172363281e+02, 2.941278381347656e+02, 2.957046508789062e+02, 2.942000427246094e+02, 2.940511474609375e+02, 2.955669555664062e+02, 2.947687683105469e+02, 2.946338195800781e+02, 2.950477294921875e+02, 2.945350341796875e+02, 2.976086730957031e+02, 2.991759948730469e+02, 2.969783935546875e+02, 2.970798950195312e+02, 2.945870056152344e+02, 2.941599426269531e+02, 2.960394897460938e+02, 2.955128173828125e+02, 2.944027709960938e+02, 2.959061279296875e+02, 2.95853515625e+02, 3.010486145019531e+02, 3.002670288085938e+02, 2.977368774414062e+02, 2.944126892089844e+02, 3.007781677246094e+02, 2.983176574707031e+02, 2.950347595214844e+02, 2.965157470703125e+02, 2.984030151367188e+02, 2.990641784667969e+02, 2.998330078125e+02, 2.951142883300781e+02, 2.939609680175781e+02, 2.957509460449219e+02, 2.9407373046875e+02, 2.941134033203125e+02, 2.976092529296875e+02, 2.943722839355469e+02, 2.944902038574219e+02, 2.945709838867188e+02, 2.941499633789062e+02, 2.940568237304688e+02, 2.942462768554688e+02, 2.941498413085938e+02, 2.940962219238281e+02, 2.943907470703125e+02, 2.941038513183594e+02, 2.941595458984375e+02, 2.943617858886719e+02, 2.940703735351562e+02, 2.941656494140625e+02, 2.941629943847656e+02, 2.940546569824219e+02, 2.941284484863281e+02, 2.9416552734375e+02, 2.940852661132812e+02, 2.941377868652344e+02, 2.941412353515625e+02, 2.940384826660156e+02, 2.941595458984375e+02, 2.941355285644531e+02, 2.941261596679688e+02, 2.941864624023438e+02, 2.941489562988281e+02, 2.9407763671875e+02, 2.941971130371094e+02, 2.940895690917969e+02]
......@@ -86,6 +86,10 @@ class Project(object):
IBPSA)
used_library_calc : str
used library (AixLib and IBPSA are supported)
dir_reference_results : str
Path to reference results in BuildingsPy format. If not None, the results
will be copied into the model output directories so that the exported
models can be regression tested against these results with BuildingsPy.
"""
def __init__(self, load_data=False):
......@@ -117,6 +121,8 @@ class Project(object):
else:
self.data = None
self.dir_reference_results = None
@staticmethod
def instantiate_data_class():
"""Initialization of DataClass
......
"""
Created August 2019
@author: TEASER Development Team
"""
from teaser.logic import utilities
from teaser.project import Project
import math
import os
import warnings as warnings
prj = Project(True)
class Simulation_export(object):
"""Unit Tests for TEASER"""
global prj
def export_e2_example_export_aixlib(self):
"""Tests the executability of example 2"""
from teaser.examples import e2_export_aixlib_models as e2
prj = e2.example_export_aixlib()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment