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.1953/0.1974, allocations: 80.84 MB / 0.6706 GB, free: 2.02 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.SolarGeometry.Examples.ProjectedShadowLength): time 0.005202/0.2026, allocations: 3.768 MB / 0.6743 GB, free: 14.23 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.004099/0.2068, allocations: 2.426 MB / 0.6766 GB, free: 11.79 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002908/0.2071, allocations: 15.94 kB / 0.6767 GB, free: 11.77 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.000183/0.2073, allocations: 82.92 kB / 0.6767 GB, free: 11.69 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.001374/0.2087, allocations: 420.1 kB / 0.6771 GB, free: 11.28 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004758/0.2092, allocations: 343.5 kB / 0.6775 GB, free: 10.95 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.0008548/0.21, allocations: 1.019 MB / 0.6785 GB, free: 9.922 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005304/0.2106, allocations: 430.2 kB / 0.6789 GB, free: 9.477 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 1.457/1.668, allocations: 172.5 MB / 0.8473 GB, free: 1.609 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005057/1.668, allocations: 397.7 kB / 0.8477 GB, free: 1.223 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 9.091e-05/1.668, allocations: 84 kB / 0.8477 GB, free: 1.141 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 8.685e-05/1.669, allocations: 84 kB / 0.8478 GB, free: 1.059 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 8.134e-05/1.669, allocations: 155.5 kB / 0.848 GB, free: 0.9062 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0002575/1.669, allocations: 409.6 kB / 0.8484 GB, free: 0.5078 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0008622/1.67, allocations: 0.9482 MB / 0.8493 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/1.67, allocations: 0 / 0.8493 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.174e-06/1.67, allocations: 0 / 0.8493 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.098e-05/1.67, allocations: 0 / 0.8493 GB, free: 15.59 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.001717/1.672, allocations: 1.121 MB / 0.8504 GB, free: 14.39 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.787e-05/1.672, allocations: 8.031 kB / 0.8504 GB, free: 14.39 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001351/1.672, allocations: 87.94 kB / 0.8505 GB, free: 14.3 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002245/1.674, allocations: 0.5043 MB / 0.851 GB, free: 13.77 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.461e-05/1.674, allocations: 53.3 kB / 0.851 GB, free: 13.72 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.379e-05/1.674, allocations: 67.94 kB / 0.8511 GB, free: 13.66 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.0009594/1.675, allocations: 0.5928 MB / 0.8517 GB, free: 13.06 MB / 0.5919 GB Error: pre-optimization module clockPartitioning (simulation) failed.