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.1225/0.1244, allocations: 80.84 MB / 0.6706 GB, free: 2.043 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.SolarGeometry.Examples.ProjectedShadowLength): time 0.004416/0.1288, allocations: 3.763 MB / 0.6743 GB, free: 14.26 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.003384/0.1322, allocations: 2.43 MB / 0.6767 GB, free: 11.82 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002467/0.1325, allocations: 15.94 kB / 0.6767 GB, free: 11.8 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0001599/0.1327, allocations: 82.92 kB / 0.6767 GB, free: 11.72 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.001111/0.1338, allocations: 412.7 kB / 0.6771 GB, free: 11.32 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004368/0.1342, allocations: 347.5 kB / 0.6775 GB, free: 10.98 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.0007572/0.135, allocations: 1.015 MB / 0.6785 GB, free: 9.957 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000513/0.1355, allocations: 434.2 kB / 0.6789 GB, free: 9.508 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 1.202/1.338, allocations: 172.4 MB / 0.8473 GB, free: 1.57 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004886/1.338, allocations: 389.1 kB / 0.8476 GB, free: 1.191 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001419/1.339, allocations: 84 kB / 0.8477 GB, free: 1.109 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001231/1.339, allocations: 88 kB / 0.8478 GB, free: 1.023 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 9.363e-05/1.339, allocations: 163.5 kB / 0.848 GB, free: 0.8633 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003083/1.339, allocations: 400.6 kB / 0.8483 GB, free: 484 kB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0009064/1.34, allocations: 0.9495 MB / 0.8493 GB, free: 15.56 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/1.34, allocations: 0 / 0.8493 GB, free: 15.56 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.413e-06/1.34, allocations: 0 / 0.8493 GB, free: 15.56 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 2.165e-05/1.34, allocations: 0 / 0.8493 GB, free: 15.56 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: 172 * Number of variables: 172 Notification: Performance of Generate backend data structure: time 0.001767/1.342, allocations: 1.121 MB / 0.8504 GB, free: 14.36 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.39e-05/1.342, allocations: 8.031 kB / 0.8504 GB, free: 14.35 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001401/1.342, allocations: 84 kB / 0.8505 GB, free: 14.27 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00257/1.345, allocations: 0.5083 MB / 0.851 GB, free: 13.74 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.767e-05/1.345, allocations: 57.31 kB / 0.851 GB, free: 13.68 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.398e-05/1.345, allocations: 63.94 kB / 0.8511 GB, free: 13.62 MB / 0.5919 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.017261498096647215 * (-80.0 + 1.1574074074074073e-5 * proShaLenNor.eqnTim.nDay) 27 : proShaLenNor.eqnTim.eqnTim = 60.0 * (9.87 * 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.017202423838958484)) 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 + 2.777777777777778e-4 * proShaLenNor.solHouAng.solTim) 39 : proShaLenNor.lessThreshold.y = proShaLenNor.lessThreshold.u < 1.5707963267948966 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.0009135/1.346, allocations: 0.5888 MB / 0.8516 GB, free: 13.03 MB / 0.5919 GB Error: pre-optimization module clockPartitioning (simulation) failed.