Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Annex60_1.0.0_Annex60.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarAzimuth.conf.json 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/Annex60 1.0.0/package.mo", uses=false) Using package Annex60 with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.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) Running command: translateModel(Annex60.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarAzimuth,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarAzimuth") translateModel(Annex60.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarAzimuth,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarAzimuth") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001148/0.001148, allocations: 108.5 kB / 16.42 MB, free: 6.469 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001131/0.001132, allocations: 189.5 kB / 17.36 MB, free: 5.707 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.148/1.148, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo): time 0.2478/0.2478, allocations: 54.96 MB / 325.6 MB, free: 4.836 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.904e-05/1.906e-05, allocations: 2.281 kB / 456.8 MB, free: 2.699 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Annex60.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarAzimuth): time 0.005022/0.005049, allocations: 4.029 MB / 460.8 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.3139/0.3189, allocations: 150.2 MB / 0.5967 GB, free: 9.594 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004815/0.3195, allocations: 11.81 kB / 0.5967 GB, free: 9.59 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003972/0.3199, allocations: 121.3 kB / 0.5968 GB, free: 9.492 MB / 430.1 MB [/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/Annex60 1.0.0/BoundaryConditions/WeatherData/BaseClasses/getHeaderElementTMY3.mo:2:1-104:25:writable] Warning: Pure function 'Annex60.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3' contains a call to impure function 'Modelica.Utilities.Streams.readLine'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/BoundaryConditions/WeatherData/BaseClasses/getLongitudeTMY3.mo:2:1-47:21:writable] Warning: Pure function 'Annex60.BoundaryConditions.WeatherData.BaseClasses.getLongitudeTMY3' contains a call to impure function 'Annex60.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/BoundaryConditions/WeatherData/BaseClasses/getLatitudeTMY3.mo:2:1-47:20:writable] Warning: Pure function 'Annex60.BoundaryConditions.WeatherData.BaseClasses.getLatitudeTMY3' contains a call to impure function 'Annex60.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/BoundaryConditions/WeatherData/BaseClasses/getTimeZoneTMY3.mo:2:1-46:20:writable] Warning: Pure function 'Annex60.BoundaryConditions.WeatherData.BaseClasses.getTimeZoneTMY3' contains a call to impure function 'Annex60.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/BoundaryConditions/WeatherData/BaseClasses/getAbsolutePath.mo:2:1-49:20:writable] Warning: Pure function 'Annex60.BoundaryConditions.WeatherData.BaseClasses.getAbsolutePath' contains a call to impure function 'Modelica.Utilities.Files.exist'. [/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.0011/0.321, allocations: 430.7 kB / 0.5972 GB, free: 9.242 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00131/0.3223, allocations: 0.7725 MB / 0.598 GB, free: 8.922 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007432/0.323, allocations: 1.091 MB / 0.5991 GB, free: 8.59 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000564/0.3236, allocations: 0.5647 MB / 0.5996 GB, free: 8.418 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003666/0.324, allocations: 403.2 kB / 0.6 GB, free: 8.285 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003295/0.3243, allocations: 389.2 kB / 0.6004 GB, free: 8.113 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 8.065e-05/0.3244, allocations: 79.94 kB / 0.6004 GB, free: 8.113 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000465/0.3249, allocations: 410.8 kB / 0.6008 GB, free: 8.023 MB / 430.1 MB Notification: Performance of combineBinaries: time 0.0007173/0.3256, allocations: 1.303 MB / 0.6021 GB, free: 7.219 MB / 430.1 MB Notification: Performance of replaceArrayConstructors: time 0.0003669/0.326, allocations: 0.8234 MB / 0.6029 GB, free: 6.641 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001125/0.3261, allocations: 150 kB / 0.6031 GB, free: 6.609 MB / 430.1 MB Notification: Performance of FrontEnd: time 9.374e-05/0.3262, allocations: 41.34 kB / 0.6031 GB, free: 6.586 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 199 (170) * Number of variables: 199 (172) Notification: Performance of Bindings: time 0.002687/0.3289, allocations: 3.733 MB / 0.6067 GB, free: 3.848 MB / 430.1 MB Notification: Performance of FunctionAlias: time 0.0004554/0.3294, allocations: 472.2 kB / 0.6072 GB, free: 3.523 MB / 430.1 MB Notification: Performance of Early Inline: time 0.002089/0.3315, allocations: 2.538 MB / 0.6097 GB, free: 1.621 MB / 430.1 MB Notification: Performance of simplify1: time 0.0001632/0.3316, allocations: 201.3 kB / 0.6099 GB, free: 1.48 MB / 430.1 MB Notification: Performance of Alias: time 0.003666/0.3353, allocations: 4.18 MB / 0.6139 GB, free: 14.54 MB / 446.1 MB Notification: Performance of simplify2: time 0.0001274/0.3355, allocations: 135.9 kB / 0.6141 GB, free: 14.4 MB / 446.1 MB Notification: Performance of Events: time 0.0003687/0.3358, allocations: 319.8 kB / 0.6144 GB, free: 14.09 MB / 446.1 MB Notification: Performance of Detect States: time 0.0004299/0.3363, allocations: 465.5 kB / 0.6148 GB, free: 13.62 MB / 446.1 MB Notification: Performance of Partitioning: time 0.0005776/0.3369, allocations: 0.61 MB / 0.6154 GB, free: 12.91 MB / 446.1 MB Notification: Performance of Causalize: time 0.003052/0.3399, allocations: 3.373 MB / 0.6187 GB, free: 9.492 MB / 446.1 MB Notification: Performance of After Index Reduction Inline: time 0.001184/0.3411, allocations: 1.324 MB / 0.62 GB, free: 8.137 MB / 446.1 MB Notification: Performance of Inline: time 0.002395/0.3435, allocations: 2.724 MB / 0.6227 GB, free: 5.359 MB / 446.1 MB Notification: Performance of Partitioning: time 0.0001194/0.3436, allocations: 123.7 kB / 0.6228 GB, free: 5.223 MB / 446.1 MB Notification: Performance of Cleanup: time 0.0001131/0.3438, allocations: 123.8 kB / 0.6229 GB, free: 5.102 MB / 446.1 MB Notification: Performance of Causalize: time 0.003856/0.3476, allocations: 4.637 MB / 0.6274 GB, free: 0.6523 MB / 446.1 MB 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!