Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_3.0.0_Buildings.HeatTransfer.Windows.Examples.BeamDepthInRoom.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo", uses=false)
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false)
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false)
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false)
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 3.0.0/package.mo", uses=false)
Using package Buildings with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 3.0.0/package.mo)
Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo)
Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo)
Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo)
Using package Modelica_StateGraph2 with version 2.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo)
Running command: translateModel(Buildings.HeatTransfer.Windows.Examples.BeamDepthInRoom,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.HeatTransfer.Windows.Examples.BeamDepthInRoom")
translateModel(Buildings.HeatTransfer.Windows.Examples.BeamDepthInRoom,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.HeatTransfer.Windows.Examples.BeamDepthInRoom")
[/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:257:38-257:110:writable] Warning: The file was not encoded in UTF-8:
"
An important practical aspect of state machines is the abilit...".
Defaulting to 7-bit ASCII with unknown characters replaced by '?'.
To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY").
To change it in a package: add a file package.encoding at the top-level.
Note: The Modelica Language Specification only allows files encoded in UTF-8.
[/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:761:36-761:108:writable] Warning: The file was not encoded in UTF-8:
"
The Modelica_StateGraph2 library is described in detail in (O...".
Defaulting to 7-bit ASCII with unknown characters replaced by '?'.
To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY").
To change it in a package: add a file package.encoding at the top-level.
Note: The Modelica Language Specification only allows files encoded in UTF-8.
[/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:1435:36-1435:108:writable] Warning: The file was not encoded in UTF-8:
"
- Main Authors:
-
SCode: time 0.1776/0.1783, allocations: 82.22 MB / 0.5941 GB, free: 5.578 MB / 446.1 MB
Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.Examples.BeamDepthInRoom): time 0.005916/0.1843, allocations: 4.279 MB / 0.5983 GB, free: 1.27 MB / 446.1 MB
Notification: Performance of NFInst.instExpressions: time 0.00557/0.1899, allocations: 2.648 MB / 0.6009 GB, free: 14.61 MB / 462.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.001219/0.1912, allocations: 23.88 kB / 0.6009 GB, free: 14.59 MB / 462.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0004209/0.1916, allocations: 71.2 kB / 0.601 GB, free: 14.52 MB / 462.1 MB
[/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 3.0.0/BoundaryConditions/WeatherData/BaseClasses/getAbsolutePath.mo:7:3-16:19:writable] Warning: Pure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getAbsolutePath.loadResource‘ contains a call to impure function ‘Modelica.Utilities.Files.fullPathName‘.
[/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 3.0.0/BoundaryConditions/WeatherData/BaseClasses/getAbsolutePath.mo:2:1-80:20:writable] Warning: Pure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getAbsolutePath‘ contains a call to impure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getAbsolutePath.loadResource‘.
[/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 3.0.0/BoundaryConditions/WeatherData/BaseClasses/getHeaderElementTMY3.mo:2:1-92:25:writable] Warning: Pure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3‘ contains a call to impure function ‘Modelica.Utilities.Streams.readLine‘.
[/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 3.0.0/BoundaryConditions/WeatherData/BaseClasses/getLongitudeTMY3.mo:2:1-47:21:writable] Warning: Pure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getLongitudeTMY3‘ contains a call to impure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3‘.
[/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 3.0.0/BoundaryConditions/WeatherData/BaseClasses/getLatitudeTMY3.mo:2:1-47:20:writable] Warning: Pure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getLatitudeTMY3‘ contains a call to impure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3‘.
[/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 3.0.0/BoundaryConditions/WeatherData/BaseClasses/getTimeZoneTMY3.mo:2:1-46:20:writable] Warning: Pure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getTimeZoneTMY3‘ contains a call to impure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3‘.
Notification: Performance of NFTyping.typeBindings: time 0.002241/0.1939, allocations: 409 kB / 0.6013 GB, free: 14.12 MB / 462.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.001103/0.195, allocations: 419.6 kB / 0.6017 GB, free: 13.71 MB / 462.1 MB
Notification: Performance of NFFlatten.flatten: time 0.00193/0.1969, allocations: 1.252 MB / 0.603 GB, free: 12.45 MB / 462.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.001056/0.198, allocations: 0.5205 MB / 0.6035 GB, free: 11.91 MB / 462.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 2.687/2.885, allocations: 157.4 MB / 0.7571 GB, free: 56.78 MB / 0.5294 GB
Notification: Performance of NFSimplifyModel.simplify: time 0.0007018/2.886, allocations: 394.3 kB / 0.7575 GB, free: 56.44 MB / 0.5294 GB
Notification: Performance of NFPackage.collectConstants: time 9.32e-05/2.886, allocations: 20 kB / 0.7575 GB, free: 56.42 MB / 0.5294 GB
Notification: Performance of NFFlatten.collectFunctions: time 7.559e-05/2.886, allocations: 24 kB / 0.7576 GB, free: 56.4 MB / 0.5294 GB
Notification: Performance of NFScalarize.scalarize: time 0.0001087/2.886, allocations: 119.1 kB / 0.7577 GB, free: 56.31 MB / 0.5294 GB
Notification: Performance of NFVerifyModel.verify: time 0.000415/2.887, allocations: 468.2 kB / 0.7581 GB, free: 55.95 MB / 0.5294 GB
Notification: Performance of NFConvertDAE.convert: time 0.001015/2.888, allocations: 1.28 MB / 0.7594 GB, free: 54.86 MB / 0.5294 GB
Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/2.888, allocations: 0 / 0.7594 GB, free: 54.86 MB / 0.5294 GB
Notification: Performance of FrontEnd: time 1.242e-06/2.888, allocations: 0 / 0.7594 GB, free: 54.86 MB / 0.5294 GB
Notification: Performance of Transformations before backend: time 1.223e-05/2.888, allocations: 0 / 0.7594 GB, free: 54.86 MB / 0.5294 GB
Notification: Model statistics after passing the front-end and creating the data structures used by the back-end:
* Number of equations: 208
* Number of variables: 208
Notification: Performance of Generate backend data structure: time 0.001744/2.89, allocations: 1.186 MB / 0.7605 GB, free: 53.68 MB / 0.5294 GB
Notification: Performance of prepare preOptimizeDAE: time 4.305e-05/2.89, allocations: 8.031 kB / 0.7605 GB, free: 53.67 MB / 0.5294 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000144/2.89, allocations: 119.5 kB / 0.7607 GB, free: 53.55 MB / 0.5294 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.000844/2.891, allocations: 0.7289 MB / 0.7614 GB, free: 52.95 MB / 0.5294 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.605e-05/2.891, allocations: 61.62 kB / 0.7614 GB, free: 52.91 MB / 0.5294 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 9.317e-05/2.891, allocations: 80.06 kB / 0.7615 GB, free: 52.86 MB / 0.5294 GB
Error: An independent subset of the model has imbalanced number of equations (52) and variables (50).
variables:
winNor.zer.y
winNor.max.y
winNor.max.u2
winNor.max.u1
winNor.depth.y
winNor.depInRoo.y
winNor.depInRoo.u2
winNor.depInRoo.u1
winNor.proShaLen.zer.y
winNor.proShaLen.switch1.y
winNor.proShaLen.switch1.u3
winNor.proShaLen.switch1.u2
winNor.proShaLen.switch1.u1
winNor.proShaLen.lessThreshold.y
winNor.proShaLen.lessThreshold.u
winNor.proShaLen.solHouAng.solHouAng
winNor.proShaLen.solHouAng.solTim
winNor.proShaLen.proShaLen.y
winNor.proShaLen.proShaLen.u2
winNor.proShaLen.proShaLen.u1
winNor.proShaLen.cos.y
winNor.proShaLen.cos.u
winNor.proShaLen.add.y
winNor.proShaLen.add.u2
winNor.proShaLen.add.u1
winNor.proShaLen.surAzi.y
winNor.proShaLen.solAzi.decAng
winNor.proShaLen.solAzi.solAzi
winNor.proShaLen.solAzi.solTim
winNor.proShaLen.solAzi.zen
winNor.proShaLen.shaLen.y
winNor.proShaLen.shaLen.u
winNor.proShaLen.tan.y
winNor.proShaLen.tan.u
winNor.proShaLen.zen.zen
winNor.proShaLen.zen.decAng
winNor.proShaLen.zen.solHouAng
winNor.proShaLen.decAng.decAng
winNor.proShaLen.decAng.nDay
winNor.proShaLen.modTim.y
winNor.proShaLen.solTim.solTim
winNor.proShaLen.solTim.equTim
winNor.proShaLen.solTim.locTim
winNor.proShaLen.eqnTim.Bt
winNor.proShaLen.eqnTim.eqnTim
winNor.proShaLen.eqnTim.nDay
winNor.proShaLen.locTim.locTim
winNor.proShaLen.locTim.cloTim
winNor.proShaLen.y
winNor.y
equations:
1 : algorithm
if noEvent(winNor.proShaLen.solAzi.solTim - /*Real*/(integer(winNor.proShaLen.solAzi.solTim / 86400.0)) * 86400.0 < 43200.0) then
winNor.proShaLen.solAzi.solAzi := -winNor.proShaLen.solAzi.solAzi;
end if;
2 : winNor.proShaLen.lessThreshold.u = winNor.proShaLen.zen.zen
3 : winNor.proShaLen.lessThreshold.u = winNor.proShaLen.solAzi.zen
4 : winNor.proShaLen.lessThreshold.u = winNor.proShaLen.tan.u
5 : winNor.proShaLen.tan.y = winNor.proShaLen.shaLen.u
6 : winNor.proShaLen.add.u1 = winNor.proShaLen.surAzi.y
7 : winNor.proShaLen.solAzi.solAzi = winNor.proShaLen.add.u2
8 : winNor.proShaLen.add.y = winNor.proShaLen.cos.u
9 : winNor.proShaLen.shaLen.y = winNor.proShaLen.proShaLen.u2
10 : winNor.proShaLen.proShaLen.u1 = winNor.proShaLen.cos.y
11 : winNor.proShaLen.solHouAng.solHouAng = winNor.proShaLen.zen.solHouAng
12 : winNor.proShaLen.lessThreshold.y = winNor.proShaLen.switch1.u2
13 : winNor.proShaLen.switch1.u1 = winNor.proShaLen.proShaLen.y
14 : winNor.proShaLen.zer.y = winNor.proShaLen.switch1.u3
15 : winNor.proShaLen.switch1.y = winNor.proShaLen.y
16 : winNor.proShaLen.decAng.nDay = winNor.proShaLen.modTim.y
17 : winNor.proShaLen.decAng.nDay = winNor.proShaLen.eqnTim.nDay
18 : winNor.proShaLen.decAng.nDay = winNor.proShaLen.locTim.cloTim
19 : winNor.proShaLen.eqnTim.eqnTim = winNor.proShaLen.solTim.equTim
20 : winNor.proShaLen.locTim.locTim = winNor.proShaLen.solTim.locTim
21 : winNor.proShaLen.solAzi.solTim = winNor.proShaLen.solTim.solTim
22 : winNor.proShaLen.solAzi.solTim = winNor.proShaLen.solHouAng.solTim
23 : winNor.proShaLen.solAzi.decAng = winNor.proShaLen.decAng.decAng
24 : winNor.proShaLen.solAzi.decAng = winNor.proShaLen.zen.decAng
25 : winNor.proShaLen.y = winNor.depInRoo.u2
26 : winNor.depth.y = winNor.depInRoo.u1
27 : winNor.zer.y = winNor.max.u2
28 : winNor.max.u1 = winNor.depInRoo.y
29 : winNor.max.y = winNor.y
30 : winNor.proShaLen.locTim.locTim = 499.2000000000007 + winNor.proShaLen.locTim.cloTim
31 : winNor.proShaLen.eqnTim.Bt = 0.01726149809664721 * (-80.0 + 1.157407407407407e-05 * winNor.proShaLen.eqnTim.nDay)
32 : winNor.proShaLen.eqnTim.eqnTim = 60.0 * (9.869999999999999 * sin(2.0 * winNor.proShaLen.eqnTim.Bt) + (-7.53) * cos(winNor.proShaLen.eqnTim.Bt) + (-1.5) * sin(winNor.proShaLen.eqnTim.Bt))
33 : winNor.proShaLen.solTim.solTim = winNor.proShaLen.solTim.locTim + winNor.proShaLen.solTim.equTim
34 : winNor.proShaLen.modTim.y = time
35 : winNor.proShaLen.decAng.decAng = asin((-0.3979486313076103) * cos((winNor.proShaLen.decAng.nDay / 86400.0 + 10.0) * 0.01720242383895848))
36 : winNor.proShaLen.zen.zen = acos(0.743378350841816 * cos(winNor.proShaLen.zen.decAng) * cos(winNor.proShaLen.zen.solHouAng) + 0.6688711591178841 * sin(winNor.proShaLen.zen.decAng))
37 : winNor.proShaLen.tan.y = tan(winNor.proShaLen.tan.u)
38 : winNor.proShaLen.shaLen.y = winNor.proShaLen.shaLen.k * winNor.proShaLen.shaLen.u
39 : winNor.proShaLen.surAzi.y = winNor.proShaLen.surAzi.k
40 : winNor.proShaLen.add.y = winNor.proShaLen.add.u1 - winNor.proShaLen.add.u2
41 : winNor.proShaLen.cos.y = cos(winNor.proShaLen.cos.u)
42 : winNor.proShaLen.proShaLen.y = winNor.proShaLen.proShaLen.u1 * winNor.proShaLen.proShaLen.u2
43 : winNor.proShaLen.solHouAng.solHouAng = 0.2617993877991494 * (-12.0 + 0.0002777777777777778 * winNor.proShaLen.solHouAng.solTim)
44 : winNor.proShaLen.lessThreshold.y = winNor.proShaLen.lessThreshold.u < 1.570796326794897
45 : winNor.proShaLen.switch1.y = if winNor.proShaLen.switch1.u2 then winNor.proShaLen.switch1.u1 else winNor.proShaLen.switch1.u3
46 : winNor.proShaLen.zer.y = 0.0
47 : winNor.depInRoo.y = winNor.depInRoo.k1 * winNor.depInRoo.u1 - winNor.depInRoo.u2
48 : winNor.depth.y = winNor.depth.k
49 : winNor.max.y = max(winNor.max.u1, winNor.max.u2)
50 : winNor.zer.y = 0.0
Notification: Performance of preOpt clockPartitioning (simulation) : time 0.001399/2.892, allocations: 0.7862 MB / 0.7623 GB, free: 52.25 MB / 0.5294 GB
Error: pre-optimization module clockPartitioning (simulation) failed.