Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_3.0.0_Buildings.BoundaryConditions.SolarGeometry.Examples.ProjectedShadowLength.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.BoundaryConditions.SolarGeometry.Examples.ProjectedShadowLength,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.BoundaryConditions.SolarGeometry.Examples.ProjectedShadowLength")
translateModel(Buildings.BoundaryConditions.SolarGeometry.Examples.ProjectedShadowLength,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.BoundaryConditions.SolarGeometry.Examples.ProjectedShadowLength")
[/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.2459/0.247, allocations: 82.22 MB / 0.5941 GB, free: 5.582 MB / 446.1 MB
Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.SolarGeometry.Examples.ProjectedShadowLength): time 0.004153/0.2512, allocations: 3.376 MB / 0.5974 GB, free: 2.18 MB / 446.1 MB
Notification: Performance of NFInst.instExpressions: time 0.004346/0.2556, allocations: 2.384 MB / 0.5997 GB, free: 15.79 MB / 462.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.000635/0.2563, allocations: 19.94 kB / 0.5997 GB, free: 15.77 MB / 462.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0002149/0.2565, allocations: 51.42 kB / 0.5998 GB, free: 15.71 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.001593/0.2581, allocations: 343.2 kB / 0.6001 GB, free: 15.38 MB / 462.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0006709/0.2588, allocations: 315.6 kB / 0.6004 GB, free: 15.07 MB / 462.1 MB
Notification: Performance of NFFlatten.flatten: time 0.001316/0.2601, allocations: 0.9057 MB / 0.6013 GB, free: 14.16 MB / 462.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0006719/0.2608, allocations: 406.6 kB / 0.6017 GB, free: 13.74 MB / 462.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 2.684/2.945, allocations: 157.3 MB / 0.7553 GB, free: 59 MB / 0.5294 GB
Notification: Performance of NFSimplifyModel.simplify: time 0.0008324/2.946, allocations: 296.8 kB / 0.7556 GB, free: 58.74 MB / 0.5294 GB
Notification: Performance of NFPackage.collectConstants: time 0.0002482/2.946, allocations: 20 kB / 0.7556 GB, free: 58.72 MB / 0.5294 GB
Notification: Performance of NFFlatten.collectFunctions: time 0.0001808/2.947, allocations: 16 kB / 0.7556 GB, free: 58.7 MB / 0.5294 GB
Notification: Performance of NFScalarize.scalarize: time 0.0006828/2.947, allocations: 89.11 kB / 0.7557 GB, free: 58.63 MB / 0.5294 GB
Notification: Performance of NFVerifyModel.verify: time 0.0005247/2.948, allocations: 342.6 kB / 0.756 GB, free: 58.36 MB / 0.5294 GB
Notification: Performance of NFConvertDAE.convert: time 0.001156/2.949, allocations: 0.8355 MB / 0.7568 GB, free: 57.65 MB / 0.5294 GB
Notification: Performance of FrontEnd - DAE generated: time 1.051e-05/2.949, allocations: 3.375 kB / 0.7568 GB, free: 57.65 MB / 0.5294 GB
Notification: Performance of FrontEnd: time 4.859e-06/2.949, allocations: 0 / 0.7568 GB, free: 57.65 MB / 0.5294 GB
Notification: Performance of Transformations before backend: time 5.799e-05/2.949, allocations: 0 / 0.7568 GB, free: 57.65 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: 172
* Number of variables: 172
Notification: Performance of Generate backend data structure: time 0.00238/2.951, allocations: 0.9697 MB / 0.7578 GB, free: 56.66 MB / 0.5294 GB
Notification: Performance of prepare preOptimizeDAE: time 6.309e-05/2.952, allocations: 12.03 kB / 0.7578 GB, free: 56.64 MB / 0.5294 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002969/2.952, allocations: 80 kB / 0.7579 GB, free: 56.57 MB / 0.5294 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.001007/2.953, allocations: 0.498 MB / 0.7584 GB, free: 56.12 MB / 0.5294 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.152e-05/2.953, allocations: 48.75 kB / 0.7584 GB, free: 56.09 MB / 0.5294 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001202/2.953, allocations: 67.31 kB / 0.7585 GB, free: 56.04 MB / 0.5294 GB
Error: An independent subset of the model has imbalanced number of equations (43) and variables (41).
variables:
proShaLenNor.zer.y
proShaLenNor.switch1.y
proShaLenNor.switch1.u3
proShaLenNor.switch1.u2
proShaLenNor.switch1.u1
proShaLenNor.lessThreshold.y
proShaLenNor.lessThreshold.u
proShaLenNor.solHouAng.solHouAng
proShaLenNor.solHouAng.solTim
proShaLenNor.proShaLen.y
proShaLenNor.proShaLen.u2
proShaLenNor.proShaLen.u1
proShaLenNor.cos.y
proShaLenNor.cos.u
proShaLenNor.add.y
proShaLenNor.add.u2
proShaLenNor.add.u1
proShaLenNor.surAzi.y
proShaLenNor.solAzi.decAng
proShaLenNor.solAzi.solAzi
proShaLenNor.solAzi.solTim
proShaLenNor.solAzi.zen
proShaLenNor.shaLen.y
proShaLenNor.shaLen.u
proShaLenNor.tan.y
proShaLenNor.tan.u
proShaLenNor.zen.zen
proShaLenNor.zen.decAng
proShaLenNor.zen.solHouAng
proShaLenNor.decAng.decAng
proShaLenNor.decAng.nDay
proShaLenNor.modTim.y
proShaLenNor.solTim.solTim
proShaLenNor.solTim.equTim
proShaLenNor.solTim.locTim
proShaLenNor.eqnTim.Bt
proShaLenNor.eqnTim.eqnTim
proShaLenNor.eqnTim.nDay
proShaLenNor.locTim.locTim
proShaLenNor.locTim.cloTim
proShaLenNor.y
equations:
1 : algorithm
if noEvent(proShaLenNor.solAzi.solTim - /*Real*/(integer(proShaLenNor.solAzi.solTim / 86400.0)) * 86400.0 < 43200.0) then
proShaLenNor.solAzi.solAzi := -proShaLenNor.solAzi.solAzi;
end if;
2 : proShaLenNor.lessThreshold.u = proShaLenNor.zen.zen
3 : proShaLenNor.lessThreshold.u = proShaLenNor.solAzi.zen
4 : proShaLenNor.lessThreshold.u = proShaLenNor.tan.u
5 : proShaLenNor.tan.y = proShaLenNor.shaLen.u
6 : proShaLenNor.add.u1 = proShaLenNor.surAzi.y
7 : proShaLenNor.solAzi.solAzi = proShaLenNor.add.u2
8 : proShaLenNor.add.y = proShaLenNor.cos.u
9 : proShaLenNor.shaLen.y = proShaLenNor.proShaLen.u2
10 : proShaLenNor.proShaLen.u1 = proShaLenNor.cos.y
11 : proShaLenNor.solHouAng.solHouAng = proShaLenNor.zen.solHouAng
12 : proShaLenNor.lessThreshold.y = proShaLenNor.switch1.u2
13 : proShaLenNor.switch1.u1 = proShaLenNor.proShaLen.y
14 : proShaLenNor.zer.y = proShaLenNor.switch1.u3
15 : proShaLenNor.switch1.y = proShaLenNor.y
16 : proShaLenNor.decAng.nDay = proShaLenNor.modTim.y
17 : proShaLenNor.decAng.nDay = proShaLenNor.eqnTim.nDay
18 : proShaLenNor.decAng.nDay = proShaLenNor.locTim.cloTim
19 : proShaLenNor.eqnTim.eqnTim = proShaLenNor.solTim.equTim
20 : proShaLenNor.locTim.locTim = proShaLenNor.solTim.locTim
21 : proShaLenNor.solAzi.solTim = proShaLenNor.solTim.solTim
22 : proShaLenNor.solAzi.solTim = proShaLenNor.solHouAng.solTim
23 : proShaLenNor.solAzi.decAng = proShaLenNor.decAng.decAng
24 : proShaLenNor.solAzi.decAng = proShaLenNor.zen.decAng
25 : proShaLenNor.locTim.locTim = 499.2000000000007 + proShaLenNor.locTim.cloTim
26 : proShaLenNor.eqnTim.Bt = 0.01726149809664721 * (-80.0 + 1.157407407407407e-05 * proShaLenNor.eqnTim.nDay)
27 : proShaLenNor.eqnTim.eqnTim = 60.0 * (9.869999999999999 * sin(2.0 * proShaLenNor.eqnTim.Bt) + (-7.53) * cos(proShaLenNor.eqnTim.Bt) + (-1.5) * sin(proShaLenNor.eqnTim.Bt))
28 : proShaLenNor.solTim.solTim = proShaLenNor.solTim.locTim + proShaLenNor.solTim.equTim
29 : proShaLenNor.modTim.y = time
30 : proShaLenNor.decAng.decAng = asin((-0.3979486313076103) * cos((proShaLenNor.decAng.nDay / 86400.0 + 10.0) * 0.01720242383895848))
31 : proShaLenNor.zen.zen = acos(0.743378350841816 * cos(proShaLenNor.zen.decAng) * cos(proShaLenNor.zen.solHouAng) + 0.6688711591178841 * sin(proShaLenNor.zen.decAng))
32 : proShaLenNor.tan.y = tan(proShaLenNor.tan.u)
33 : proShaLenNor.shaLen.y = proShaLenNor.shaLen.k * proShaLenNor.shaLen.u
34 : proShaLenNor.surAzi.y = proShaLenNor.surAzi.k
35 : proShaLenNor.add.y = proShaLenNor.add.u1 - proShaLenNor.add.u2
36 : proShaLenNor.cos.y = cos(proShaLenNor.cos.u)
37 : proShaLenNor.proShaLen.y = proShaLenNor.proShaLen.u1 * proShaLenNor.proShaLen.u2
38 : proShaLenNor.solHouAng.solHouAng = 0.2617993877991494 * (-12.0 + 0.0002777777777777778 * proShaLenNor.solHouAng.solTim)
39 : proShaLenNor.lessThreshold.y = proShaLenNor.lessThreshold.u < 1.570796326794897
40 : proShaLenNor.switch1.y = if proShaLenNor.switch1.u2 then proShaLenNor.switch1.u1 else proShaLenNor.switch1.u3
41 : proShaLenNor.zer.y = 0.0
Notification: Performance of preOpt clockPartitioning (simulation) : time 0.001132/2.954, allocations: 0.5977 MB / 0.7591 GB, free: 55.57 MB / 0.5294 GB
Error: pre-optimization module clockPartitioning (simulation) failed.