Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngle.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngle") translateModel(Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.967/1.967, allocations: 292.3 MB / 308.1 MB, free: 4.293 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001311/0.001311, allocations: 184.5 kB / 376.9 MB, free: 1.836 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.601/1.601, allocations: 205.1 MB / 0.6354 GB, free: 9.805 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001057/0.001057, allocations: 97.61 kB / 0.748 GB, free: 61.18 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.001156/0.001157, allocations: 51.92 kB / 0.8704 GB, free: 13.12 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2599/0.2611, allocations: 114.5 MB / 0.9822 GB, free: 10.42 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngle): time 0.00613/0.2673, allocations: 4.075 MB / 0.9862 GB, free: 6.312 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.6584/0.9257, allocations: 147.8 MB / 1.131 GB, free: 7.406 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001043/0.9268, allocations: 21.69 kB / 1.131 GB, free: 7.395 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.000764/0.9276, allocations: 131.1 kB / 1.131 GB, free: 7.32 MB / 0.7448 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/BoundaryConditions/WeatherData/BaseClasses/getHeaderElementTMY3.mo:2:1-105: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 8.1.4-maint.8.1.x/BoundaryConditions/WeatherData/BaseClasses/getLongitudeTMY3.mo:2:1-48: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 8.1.4-maint.8.1.x/BoundaryConditions/WeatherData/BaseClasses/getLatitudeTMY3.mo:2:1-48: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 8.1.4-maint.8.1.x/BoundaryConditions/WeatherData/BaseClasses/getTimeZoneTMY3.mo:2:1-47: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.001649/0.9293, allocations: 349.3 kB / 1.131 GB, free: 7.133 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.002024/0.9313, allocations: 0.6543 MB / 1.132 GB, free: 6.781 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.002148/0.9335, allocations: 1.073 MB / 1.133 GB, free: 6.266 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001178/0.9347, allocations: 0.5693 MB / 1.133 GB, free: 5.969 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009477/0.9357, allocations: 361.3 kB / 1.134 GB, free: 5.805 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006221/0.9363, allocations: 398.7 kB / 1.134 GB, free: 5.605 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 0.0001092/0.9364, allocations: 49.22 kB / 1.134 GB, free: 5.605 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009234/0.9373, allocations: 317.6 kB / 1.134 GB, free: 5.531 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 0.0002116/0.9376, allocations: 210.9 kB / 1.135 GB, free: 5.418 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 0.0003702/0.9379, allocations: 437.4 kB / 1.135 GB, free: 5.137 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.00116/0.9391, allocations: 1.299 MB / 1.136 GB, free: 4.598 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 8.616e-06/0.9391, allocations: 0 / 1.136 GB, free: 4.598 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.382e-06/0.9391, allocations: 0 / 1.136 GB, free: 4.598 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 1.219e-05/0.9392, allocations: 7.688 kB / 1.136 GB, free: 4.594 MB / 0.7448 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 191 * Number of variables: 191 Notification: Performance of Generate backend data structure: time 0.002057/0.9412, allocations: 1.27 MB / 1.138 GB, free: 3.711 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.223e-05/0.9413, allocations: 9.688 kB / 1.138 GB, free: 3.711 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008107/0.9421, allocations: 171.1 kB / 1.138 GB, free: 3.656 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000821/0.9429, allocations: 0.6981 MB / 1.138 GB, free: 3.188 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.569e-05/0.943, allocations: 57.88 kB / 1.138 GB, free: 3.16 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.135e-05/0.9431, allocations: 72.25 kB / 1.138 GB, free: 3.137 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001159/0.9442, allocations: 0.8269 MB / 1.139 GB, free: 2.746 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.794e-05/0.9443, allocations: 0 / 1.139 GB, free: 2.746 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.417e-05/0.9443, allocations: 30.19 kB / 1.139 GB, free: 2.723 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.506e-05/0.9444, allocations: 19.06 kB / 1.139 GB, free: 2.723 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001371/0.9457, allocations: 1.042 MB / 1.14 GB, free: 2.488 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002909/0.9487, allocations: 2.297 MB / 1.143 GB, free: 1.18 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0011/0.9498, allocations: 0.7757 MB / 1.143 GB, free: 0.8242 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004013/0.9502, allocations: 266.1 kB / 1.144 GB, free: 0.7266 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 7.15e-05/0.9503, allocations: 31.98 kB / 1.144 GB, free: 0.7148 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000623/0.9509, allocations: 416.9 kB / 1.144 GB, free: 0.5312 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=70): time 1.964e-06/0.9509, allocations: 0.5625 kB / 1.144 GB, free: 0.5312 MB / 0.7448 GB Notification: Performance of matching and sorting (n=70): time 0.002511/0.9534, allocations: 1.05 MB / 1.145 GB, free: 88 kB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001118/0.9536, allocations: 189.8 kB / 1.145 GB, free: 15.87 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005906/0.9542, allocations: 0.5593 MB / 1.146 GB, free: 15.61 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 5.345e-05/0.9542, allocations: 40.89 kB / 1.146 GB, free: 15.57 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002494/0.9545, allocations: 356.1 kB / 1.146 GB, free: 15.29 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001847/0.9547, allocations: 233.4 kB / 1.146 GB, free: 15.11 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000202/0.9549, allocations: 146.4 kB / 1.147 GB, free: 15.04 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0001752/0.9551, allocations: 382.8 kB / 1.147 GB, free: 14.7 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004431/0.9555, allocations: 227.7 kB / 1.147 GB, free: 14.62 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005528/0.9561, allocations: 315.8 kB / 1.147 GB, free: 14.48 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009557/0.957, allocations: 0.5388 MB / 1.148 GB, free: 14.23 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.957, allocations: 0 / 1.148 GB, free: 14.23 MB / 0.7605 GB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001624/0.9587, allocations: 0.7551 MB / 1.149 GB, free: 13.93 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 2.179e-05/0.9587, allocations: 6.875 kB / 1.149 GB, free: 13.93 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.735e-06/0.9587, allocations: 0 / 1.149 GB, free: 13.93 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005687/0.9593, allocations: 78.86 kB / 1.149 GB, free: 13.91 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005395/0.9599, allocations: 143.2 kB / 1.149 GB, free: 13.89 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002013/0.9619, allocations: 1.52 MB / 1.15 GB, free: 12.46 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005677/0.9625, allocations: 76.69 kB / 1.15 GB, free: 12.43 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.26e-05/0.9625, allocations: 33.5 kB / 1.15 GB, free: 12.42 MB / 0.7605 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 (weaDat.conTim.canRepeatWeatherFile,weaDat.conTimMin.canRepeatWeatherFile,weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (81): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.000398/0.9629, allocations: 260 kB / 1.151 GB, free: 12.22 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001301/0.9631, allocations: 74.62 kB / 1.151 GB, free: 12.18 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002084/0.9652, allocations: 0.9443 MB / 1.152 GB, free: 11.81 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.188e-06/0.9652, allocations: 14.69 kB / 1.152 GB, free: 11.81 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.274e-06/0.9652, allocations: 0 / 1.152 GB, free: 11.81 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.277e-06/0.9652, allocations: 3.609 kB / 1.152 GB, free: 11.81 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002802/0.968, allocations: 1.788 MB / 1.153 GB, free: 10.92 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.968, allocations: 0 / 1.153 GB, free: 10.92 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004746/0.9685, allocations: 136.3 kB / 1.154 GB, free: 10.91 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004879/0.969, allocations: 81.84 kB / 1.154 GB, free: 10.89 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.837e-05/0.9691, allocations: 24.89 kB / 1.154 GB, free: 10.88 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001733/0.9708, allocations: 1.54 MB / 1.155 GB, free: 9.438 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.9708, allocations: 4.875 kB / 1.155 GB, free: 9.434 MB / 0.7605 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002588/0.9734, allocations: 1.867 MB / 1.157 GB, free: 8.246 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000344/0.9738, allocations: 247.1 kB / 1.157 GB, free: 8.062 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.246e-05/0.9739, allocations: 18.69 kB / 1.157 GB, free: 8.051 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005073/0.9744, allocations: 51.09 kB / 1.157 GB, free: 8.039 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001228/0.9745, allocations: 58.56 kB / 1.157 GB, free: 8.031 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.802e-05/0.9746, allocations: 33.42 kB / 1.157 GB, free: 8.023 MB / 0.7605 GB Notification: Performance of sorting global known variables: time 0.000451/0.9751, allocations: 404.9 kB / 1.158 GB, free: 7.844 MB / 0.7605 GB Notification: Performance of sort global known variables: time 1.6e-07/0.9751, allocations: 4 kB / 1.158 GB, free: 7.84 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.0008502/0.9759, allocations: 270.1 kB / 1.158 GB, free: 7.758 MB / 0.7605 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTim.tNext,weaDat.conTimMin.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (81): * Single equations (assignments): 78 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001191/0.9771, allocations: 0.5746 MB / 1.159 GB, free: 7.488 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.00143/0.9786, allocations: 0.7254 MB / 1.159 GB, free: 7.195 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.9786, allocations: 192 / 1.159 GB, free: 7.195 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.0007717/0.9794, allocations: 476.4 kB / 1.16 GB, free: 6.969 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001213/0.9806, allocations: 252.6 kB / 1.16 GB, free: 6.895 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004297/0.9849, allocations: 2.394 MB / 1.162 GB, free: 5.441 MB / 0.7605 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006641/0.9856, allocations: 1.011 MB / 1.163 GB, free: 4.715 MB / 0.7605 GB Notification: Performance of simCode: alias equations: time 0.000912/0.9865, allocations: 247.5 kB / 1.164 GB, free: 4.668 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002235/0.9868, allocations: 93.78 kB / 1.164 GB, free: 4.648 MB / 0.7605 GB Notification: Performance of SimCode: time 1.042e-06/0.9868, allocations: 0 / 1.164 GB, free: 4.648 MB / 0.7605 GB Notification: Performance of Templates: time 0.0233/1.01, allocations: 12.95 MB / 1.176 GB, free: 3.582 MB / 0.7605 GB make -j1 -f Buildings_8_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngle.makefile (rm -f Buildings_8_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngle.pipe ; mkfifo Buildings_8_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngle.pipe ; head -c 1048576 < Buildings_8_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngle.pipe >> ../files/Buildings_8_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngle.sim & ./Buildings_8_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngle -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.SolarHourAngle.pipe 2>&1)