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.1971/0.199, allocations: 80.83 MB / 0.5897 GB, free: 7.133 MB / 446.1 MB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.Examples.BeamDepthInRoom): time 0.007829/0.2069, allocations: 4.724 MB / 0.5943 GB, free: 2.371 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.006373/0.2133, allocations: 2.675 MB / 0.5969 GB, free: 15.68 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001309/0.2147, allocations: 23.88 kB / 0.5969 GB, free: 15.66 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005428/0.2153, allocations: 71.22 kB / 0.597 GB, free: 15.59 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.002225/0.2176, allocations: 409 kB / 0.5974 GB, free: 15.2 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009841/0.2186, allocations: 411.7 kB / 0.5978 GB, free: 14.79 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001495/0.2201, allocations: 1.256 MB / 0.599 GB, free: 13.53 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007645/0.2208, allocations: 0.5362 MB / 0.5995 GB, free: 12.97 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.696/2.917, allocations: 157.4 MB / 0.7533 GB, free: 57.96 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006848/2.918, allocations: 470.4 kB / 0.7537 GB, free: 57.59 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0001103/2.918, allocations: 48 kB / 0.7538 GB, free: 57.54 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001039/2.918, allocations: 52 kB / 0.7538 GB, free: 57.49 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0001088/2.918, allocations: 170.3 kB / 0.754 GB, free: 57.39 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0004159/2.919, allocations: 489.6 kB / 0.7544 GB, free: 57.05 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0009344/2.92, allocations: 1.342 MB / 0.7557 GB, free: 56.06 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/2.92, allocations: 0 / 0.7557 GB, free: 56.06 MB / 0.5294 GB Notification: Performance of FrontEnd: time 7.52e-07/2.92, allocations: 0 / 0.7557 GB, free: 56.06 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.315e-05/2.92, allocations: 4 kB / 0.7557 GB, free: 56.06 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.001993/2.922, allocations: 1.387 MB / 0.7571 GB, free: 54.78 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.307e-05/2.922, allocations: 12.03 kB / 0.7571 GB, free: 54.77 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001639/2.922, allocations: 119.5 kB / 0.7572 GB, free: 54.65 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009037/2.923, allocations: 0.7221 MB / 0.7579 GB, free: 54.05 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.385e-05/2.923, allocations: 65 kB / 0.758 GB, free: 54.02 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.302e-05/2.923, allocations: 81.25 kB / 0.7581 GB, free: 53.96 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.00114/2.924, allocations: 0.8025 MB / 0.7589 GB, free: 53.31 MB / 0.5294 GB Error: pre-optimization module clockPartitioning (simulation) failed.