Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarAzimuth.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.BaseClasses.Examples.SolarAzimuth,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarAzimuth") translateModel(Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarAzimuth,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarAzimuth") [/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 2.189e-05/2.19e-05, allocations: 6 kB / 0.5923 GB, free: 18.5 MB / 446.1 MB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarAzimuth): time 0.004119/0.00415, allocations: 3.999 MB / 0.5962 GB, free: 14.9 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.1614/0.1655, allocations: 149.7 MB / 0.7423 GB, free: 8.66 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007386/0.1663, allocations: 8 kB / 0.7423 GB, free: 8.652 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0004833/0.1668, allocations: 118.8 kB / 0.7424 GB, free: 8.535 MB / 0.5762 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'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.001481/0.1683, allocations: 456.4 kB / 0.7429 GB, free: 8.09 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001337/0.1696, allocations: 0.597 MB / 0.7435 GB, free: 7.5 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0009591/0.1706, allocations: 1.088 MB / 0.7445 GB, free: 6.41 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007039/0.1713, allocations: 0.563 MB / 0.7451 GB, free: 5.828 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004496/0.1718, allocations: 390.5 kB / 0.7454 GB, free: 5.445 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003742/0.1722, allocations: 390.1 kB / 0.7458 GB, free: 5.062 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 9.246e-05/0.1723, allocations: 76 kB / 0.7459 GB, free: 4.988 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007006/0.173, allocations: 431.6 kB / 0.7463 GB, free: 4.566 MB / 0.5762 GB Notification: Performance of combineBinaries: time 0.0007932/0.1738, allocations: 1.298 MB / 0.7476 GB, free: 3.254 MB / 0.5762 GB Notification: Performance of replaceArrayConstructors: time 0.0004004/0.1742, allocations: 0.8042 MB / 0.7483 GB, free: 2.438 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0001364/0.1743, allocations: 147.5 kB / 0.7485 GB, free: 2.293 MB / 0.5762 GB Notification: Performance of FrontEnd: time 0.0001472/0.1745, allocations: 39.62 kB / 0.7485 GB, free: 2.254 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 198 (169) * Number of variables: 198 (171) Notification: Performance of Bindings: time 0.388/0.5625, allocations: 3.792 MB / 0.7522 GB, free: 7.957 MB / 0.5762 GB Notification: Performance of FunctionAlias: time 0.0005038/0.563, allocations: 360.4 kB / 0.7526 GB, free: 7.941 MB / 0.5762 GB Notification: Performance of Early Inline: time 0.002372/0.5654, allocations: 2.51 MB / 0.755 GB, free: 7.789 MB / 0.5762 GB Notification: Performance of simplify1: time 0.0001667/0.5656, allocations: 194.2 kB / 0.7552 GB, free: 7.789 MB / 0.5762 GB Notification: Performance of Alias: time 0.004266/0.5698, allocations: 4.157 MB / 0.7593 GB, free: 6.711 MB / 0.5762 GB Notification: Performance of simplify2: time 0.0001928/0.57, allocations: 137.6 kB / 0.7594 GB, free: 6.711 MB / 0.5762 GB Notification: Performance of Events: time 0.0004686/0.5705, allocations: 312.5 kB / 0.7597 GB, free: 6.691 MB / 0.5762 GB Notification: Performance of Detect States: time 0.0005254/0.571, allocations: 441.5 kB / 0.7601 GB, free: 6.641 MB / 0.5762 GB Notification: Performance of Partitioning: time 0.0007156/0.5718, allocations: 0.6132 MB / 0.7607 GB, free: 6.391 MB / 0.5762 GB Notification: Performance of Causalize: time 0.004294/0.5761, allocations: 3.304 MB / 0.7639 GB, free: 5.836 MB / 0.5762 GB Notification: Performance of After Index Reduction Inline: time 0.001274/0.5774, allocations: 1.298 MB / 0.7652 GB, free: 5.73 MB / 0.5762 GB Notification: Performance of Inline: time 0.002284/0.5796, allocations: 2.651 MB / 0.7678 GB, free: 5.512 MB / 0.5762 GB Notification: Performance of Partitioning: time 0.0001242/0.5798, allocations: 110.4 kB / 0.7679 GB, free: 5.477 MB / 0.5762 GB Notification: Performance of Cleanup: time 0.0001303/0.5799, allocations: 130.6 kB / 0.768 GB, free: 5.469 MB / 0.5762 GB Notification: Performance of Causalize: time 0.003883/0.5838, allocations: 4.51 MB / 0.7724 GB, free: 4.988 MB / 0.5762 GB Error: Internal error NBEquation.Equation.getResidualExp failed for: [ALGO] (3) ($RES_SIM_2) [----] solAzi.tmp := ($FUN_25 * $FUN_26 - $FUN_27) / ($FUN_28 * $FUN_29); [----] solAzi.arg := min(1.0, max(-1.0, solAzi.tmp)); [----] solAzi.solAzi := $FUN_30; [----] if solAzi.outsidePolarCircle then [----] if noEvent(solHouAng.solTim - integer(solHouAng.solTim / 86400.0) * 86400.0 < 43200.0) then [----] solAzi.solAzi := -solAzi.solAzi; [----] end if; [----] elseif true then [----] if solHouAng.solTim - integer(solHouAng.solTim / 86400.0) * 86400.0 < 43200.0 then [----] solAzi.solAzi := -solAzi.solAzi; [----] end if; [----] end if; Error: Internal error NBInitialization.main failed to apply modules!