Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.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.SolarIrradiation.Examples.DirectTiltedSurface,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface") translateModel(Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.689/1.689, allocations: 292.3 MB / 308.1 MB, free: 4.316 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.001406/0.001406, allocations: 198.3 kB / 376.9 MB, free: 1.797 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.606/1.606, allocations: 205.1 MB / 0.6353 GB, free: 9.781 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: 105.4 kB / 0.748 GB, free: 61.18 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.001616/0.001616, allocations: 51.91 kB / 0.8703 GB, free: 13.11 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3159/0.3175, allocations: 114.5 MB / 0.9822 GB, free: 10.41 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface): time 0.008325/0.3259, allocations: 5.007 MB / 0.9871 GB, free: 5.367 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.8625/1.188, allocations: 148.2 MB / 1.132 GB, free: 6.391 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001892/1.19, allocations: 25.53 kB / 1.132 GB, free: 6.379 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.0009545/1.191, allocations: 145.9 kB / 1.132 GB, free: 6.293 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.0028/1.194, allocations: 458.7 kB / 1.132 GB, free: 6.031 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.003111/1.197, allocations: 0.7909 MB / 1.133 GB, free: 5.598 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.002546/1.2, allocations: 1.455 MB / 1.135 GB, free: 4.887 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00187/1.202, allocations: 1.083 MB / 1.136 GB, free: 4.305 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001205/1.203, allocations: 0.5946 MB / 1.136 GB, free: 4.016 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009494/1.204, allocations: 0.6848 MB / 1.137 GB, free: 3.637 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 0.0002426/1.204, allocations: 103.1 kB / 1.137 GB, free: 3.637 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001251/1.206, allocations: 369 kB / 1.137 GB, free: 3.555 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 0.0003952/1.206, allocations: 346.9 kB / 1.138 GB, free: 3.348 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 0.0007636/1.207, allocations: 0.7264 MB / 1.138 GB, free: 2.859 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.002595/1.209, allocations: 2.103 MB / 1.14 GB, free: 1.965 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 6.082e-06/1.209, allocations: 4.594 kB / 1.14 GB, free: 1.965 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.292e-06/1.209, allocations: 0 / 1.14 GB, free: 1.965 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 3.497e-05/1.209, allocations: 0 / 1.14 GB, free: 1.965 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: 364 * Number of variables: 364 Notification: Performance of Generate backend data structure: time 0.004059/1.213, allocations: 1.791 MB / 1.142 GB, free: 0.793 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 7.021e-05/1.214, allocations: 9.781 kB / 1.142 GB, free: 0.793 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001419/1.215, allocations: 243.8 kB / 1.142 GB, free: 0.6992 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001646/1.217, allocations: 0.8981 MB / 1.143 GB, free: 104 kB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001505/1.217, allocations: 134.8 kB / 1.143 GB, free: 20 kB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002614/1.217, allocations: 136.6 kB / 1.144 GB, free: 15.97 MB / 0.7605 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00329/1.22, allocations: 1.428 MB / 1.145 GB, free: 15.34 MB / 0.7605 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.543e-05/1.22, allocations: 0 / 1.145 GB, free: 15.34 MB / 0.7605 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000174/1.221, allocations: 65.5 kB / 1.145 GB, free: 15.29 MB / 0.7605 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.91e-05/1.221, allocations: 34.72 kB / 1.145 GB, free: 15.29 MB / 0.7605 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003256/1.224, allocations: 1.462 MB / 1.146 GB, free: 14.89 MB / 0.7605 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008375/1.232, allocations: 3.755 MB / 1.15 GB, free: 12.89 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002112/1.235, allocations: 0.9099 MB / 1.151 GB, free: 12.54 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008133/1.235, allocations: 365.7 kB / 1.151 GB, free: 12.39 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001284/1.236, allocations: 47.02 kB / 1.151 GB, free: 12.38 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001292/1.237, allocations: 0.5387 MB / 1.152 GB, free: 12.14 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=93): time 4.028e-06/1.237, allocations: 4 kB / 1.152 GB, free: 12.14 MB / 0.7605 GB Notification: Performance of matching and sorting (n=93): time 0.004882/1.242, allocations: 1.373 MB / 1.153 GB, free: 11.55 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001813/1.242, allocations: 197.1 kB / 1.154 GB, free: 11.33 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002188/1.244, allocations: 0.7451 MB / 1.154 GB, free: 11.01 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 0.0002832/1.244, allocations: 40.98 kB / 1.154 GB, free: 10.97 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.001137/1.246, allocations: 0.5818 MB / 1.155 GB, free: 10.52 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006856/1.246, allocations: 304.4 kB / 1.155 GB, free: 10.28 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007618/1.247, allocations: 199 kB / 1.155 GB, free: 10.19 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0001996/1.247, allocations: 338.7 kB / 1.156 GB, free: 9.871 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001201/1.249, allocations: 336.9 kB / 1.156 GB, free: 9.742 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001413/1.25, allocations: 432.4 kB / 1.156 GB, free: 9.547 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002543/1.253, allocations: 0.7617 MB / 1.157 GB, free: 9.18 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.738e-06/1.253, allocations: 0.5625 kB / 1.157 GB, free: 9.18 MB / 0.7605 GB Notification: Performance of matching and sorting (n=113) (initialization): time 0.004246/1.257, allocations: 1.034 MB / 1.158 GB, free: 8.762 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 4.008e-05/1.257, allocations: 4.156 kB / 1.158 GB, free: 8.762 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.436e-05/1.257, allocations: 3.25 kB / 1.158 GB, free: 8.762 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001025/1.258, allocations: 83.48 kB / 1.158 GB, free: 8.742 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001287/1.259, allocations: 198.2 kB / 1.158 GB, free: 8.723 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003132/1.262, allocations: 1.53 MB / 1.16 GB, free: 7.285 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00153/1.264, allocations: 101.7 kB / 1.16 GB, free: 7.23 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000194/1.264, allocations: 44.39 kB / 1.16 GB, free: 7.219 MB / 0.7605 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (111): * Single equations (assignments): 110 * 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.001144/1.265, allocations: 330.5 kB / 1.16 GB, free: 6.977 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004866/1.266, allocations: 97.12 kB / 1.16 GB, free: 6.926 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00418/1.27, allocations: 1.292 MB / 1.162 GB, free: 6.41 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-05/1.27, allocations: 8.938 kB / 1.162 GB, free: 6.41 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.712e-06/1.27, allocations: 3 kB / 1.162 GB, free: 6.41 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.324e-05/1.27, allocations: 6.844 kB / 1.162 GB, free: 6.41 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00561/1.276, allocations: 2.488 MB / 1.164 GB, free: 5.227 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.887e-06/1.276, allocations: 0 / 1.164 GB, free: 5.227 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007317/1.277, allocations: 184.2 kB / 1.164 GB, free: 5.207 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005824/1.277, allocations: 85.06 kB / 1.164 GB, free: 5.188 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.403e-05/1.277, allocations: 29.25 kB / 1.164 GB, free: 5.172 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002031/1.279, allocations: 1.557 MB / 1.166 GB, free: 3.723 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.829e-06/1.279, allocations: 0.625 kB / 1.166 GB, free: 3.723 MB / 0.7605 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0045/1.284, allocations: 2.27 MB / 1.168 GB, free: 2.348 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008414/1.285, allocations: 313.1 kB / 1.168 GB, free: 2.125 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003854/1.285, allocations: 25.91 kB / 1.169 GB, free: 2.105 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009569/1.286, allocations: 57.34 kB / 1.169 GB, free: 2.094 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002459/1.286, allocations: 84.44 kB / 1.169 GB, free: 2.074 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001279/1.287, allocations: 39.64 kB / 1.169 GB, free: 2.066 MB / 0.7605 GB Notification: Performance of sorting global known variables: time 0.001346/1.288, allocations: 0.5532 MB / 1.169 GB, free: 1.832 MB / 0.7605 GB Notification: Performance of sort global known variables: time 1.4e-07/1.288, allocations: 0 / 1.169 GB, free: 1.832 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.002169/1.29, allocations: 383.7 kB / 1.17 GB, free: 1.711 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 (107): * Single equations (assignments): 104 * 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.001952/1.292, allocations: 0.5639 MB / 1.17 GB, free: 1.441 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.002507/1.295, allocations: 0.9622 MB / 1.171 GB, free: 1.051 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 5.621e-06/1.295, allocations: 0 / 1.171 GB, free: 1.051 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.001202/1.296, allocations: 0.5868 MB / 1.172 GB, free: 0.7773 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001824/1.298, allocations: 282.3 kB / 1.172 GB, free: 0.6875 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006738/1.304, allocations: 3.508 MB / 1.175 GB, free: 14.51 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008919/1.305, allocations: 1.202 MB / 1.177 GB, free: 13.76 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 0.001181/1.306, allocations: 285.2 kB / 1.177 GB, free: 13.71 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003779/1.307, allocations: 120.2 kB / 1.177 GB, free: 13.69 MB / 0.7761 GB Notification: Performance of SimCode: time 4.278e-06/1.307, allocations: 0 / 1.177 GB, free: 13.69 MB / 0.7761 GB Notification: Performance of Templates: time 0.04661/1.354, allocations: 16.66 MB / 1.193 GB, free: 12.34 MB / 0.7761 GB make -j1 -f Buildings_8_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.makefile (rm -f Buildings_8_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.pipe ; mkfifo Buildings_8_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.pipe ; head -c 1048576 < Buildings_8_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.pipe >> ../files/Buildings_8_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.sim & ./Buildings_8_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.pipe 2>&1)