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.1183/0.12, allocations: 80.84 MB / 0.5897 GB, free: 7.133 MB / 446.1 MB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.SolarGeometry.Examples.ProjectedShadowLength): time 0.004435/0.1245, allocations: 3.794 MB / 0.5934 GB, free: 3.305 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.003391/0.1279, allocations: 2.415 MB / 0.5957 GB, free: 0.8789 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002449/0.1282, allocations: 15.94 kB / 0.5958 GB, free: 0.8633 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000149/0.1283, allocations: 51.42 kB / 0.5958 GB, free: 0.8125 MB / 446.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.0009268/0.1292, allocations: 342.1 kB / 0.5961 GB, free: 492 kB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003905/0.1296, allocations: 315.7 kB / 0.5964 GB, free: 176 kB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006253/0.1303, allocations: 0.9096 MB / 0.5973 GB, free: 15.26 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004731/0.1308, allocations: 422.5 kB / 0.5977 GB, free: 14.82 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.357/2.488, allocations: 157.3 MB / 0.7514 GB, free: 60.66 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004067/2.488, allocations: 362.6 kB / 0.7517 GB, free: 60.38 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 7.26e-05/2.488, allocations: 40 kB / 0.7518 GB, free: 60.34 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 7.75e-05/2.489, allocations: 40 kB / 0.7518 GB, free: 60.3 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 7.647e-05/2.489, allocations: 131.5 kB / 0.7519 GB, free: 60.21 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0002367/2.489, allocations: 360.7 kB / 0.7523 GB, free: 59.96 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.000497/2.489, allocations: 0.8721 MB / 0.7531 GB, free: 59.3 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/2.489, allocations: 3.984 kB / 0.7531 GB, free: 59.3 MB / 0.5294 GB Notification: Performance of FrontEnd: time 7.11e-07/2.489, allocations: 0 / 0.7531 GB, free: 59.3 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 7.844e-06/2.489, allocations: 0 / 0.7531 GB, free: 59.3 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.001386/2.491, allocations: 1.123 MB / 0.7542 GB, free: 58.23 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.228e-05/2.491, allocations: 8.031 kB / 0.7542 GB, free: 58.22 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001184/2.491, allocations: 83.91 kB / 0.7543 GB, free: 58.14 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005208/2.491, allocations: 499.6 kB / 0.7548 GB, free: 57.7 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.123e-05/2.491, allocations: 53.44 kB / 0.7548 GB, free: 57.67 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.616e-05/2.492, allocations: 65.25 kB / 0.7549 GB, free: 57.62 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.0007097/2.492, allocations: 0.5946 MB / 0.7555 GB, free: 57.16 MB / 0.5294 GB Error: pre-optimization module clockPartitioning (simulation) failed.