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.2127/0.2152, allocations: 80.83 MB / 0.6706 GB, free: 2.031 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(Buildings.HeatTransfer.Windows.Examples.BeamDepthInRoom): time 0.007833/0.2231, allocations: 4.706 MB / 0.6752 GB, free: 13.3 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.006634/0.2297, allocations: 2.691 MB / 0.6778 GB, free: 10.59 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001064/0.2308, allocations: 23.88 kB / 0.6779 GB, free: 10.57 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0005154/0.2314, allocations: 110.6 kB / 0.678 GB, free: 10.46 MB / 0.5137 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:216:3-259:11:writable] Warning: Pure function 'Modelica.Utilities.Strings.find' contains a call to impure function 'Modelica.Utilities.Strings.length'. [/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.002955/0.2344, allocations: 496.5 kB / 0.6784 GB, free: 9.977 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.001149/0.2356, allocations: 467.4 kB / 0.6789 GB, free: 9.52 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.002178/0.2377, allocations: 1.409 MB / 0.6803 GB, free: 8.105 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001125/0.2389, allocations: 0.5553 MB / 0.6808 GB, free: 7.52 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 1.366/1.605, allocations: 172.6 MB / 0.8493 GB, free: 14.97 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001178/1.607, allocations: 0.5123 MB / 0.8498 GB, free: 14.46 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0005054/1.607, allocations: 136 kB / 0.85 GB, free: 14.33 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004521/1.608, allocations: 132 kB / 0.8501 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002852/1.608, allocations: 234.6 kB / 0.8503 GB, free: 13.97 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.001536/1.609, allocations: 0.5593 MB / 0.8509 GB, free: 13.41 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.002073/1.611, allocations: 1.455 MB / 0.8523 GB, free: 12 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 8.556e-06/1.612, allocations: 4 kB / 0.8523 GB, free: 11.99 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.673e-06/1.612, allocations: 0 / 0.8523 GB, free: 11.99 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 7.298e-05/1.612, allocations: 0 / 0.8523 GB, free: 11.99 MB / 0.5919 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.003251/1.615, allocations: 1.387 MB / 0.8536 GB, free: 10.53 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.464e-05/1.615, allocations: 12.03 kB / 0.8537 GB, free: 10.52 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000292/1.615, allocations: 118.8 kB / 0.8538 GB, free: 10.4 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003776/1.619, allocations: 0.7372 MB / 0.8545 GB, free: 9.641 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.213e-05/1.619, allocations: 62 kB / 0.8545 GB, free: 9.578 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001395/1.619, allocations: 83.94 kB / 0.8546 GB, free: 9.496 MB / 0.5919 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.017261498096647215 * (-80.0 + 1.1574074074074073e-5 * winNor.proShaLen.eqnTim.nDay) 32 : winNor.proShaLen.eqnTim.eqnTim = 60.0 * (9.87 * 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.017202423838958484)) 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 + 2.777777777777778e-4 * winNor.proShaLen.solHouAng.solTim) 44 : winNor.proShaLen.lessThreshold.y = winNor.proShaLen.lessThreshold.u < 1.5707963267948966 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.001457/1.621, allocations: 0.7952 MB / 0.8554 GB, free: 8.699 MB / 0.5919 GB Error: pre-optimization module clockPartitioning (simulation) failed.