Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.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.Fluid.HeatExchangers.Examples.AirHeater_T,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T") translateModel(Buildings.Fluid.HeatExchangers.Examples.AirHeater_T,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.699/1.699, allocations: 289.8 MB / 297.1 MB, free: 9.926 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001267/0.001267, allocations: 174.8 kB / 366.3 MB, free: 15.7 MB / 302.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.699/1.699, allocations: 205.1 MB / 0.6256 GB, free: 2.129 MB / 446.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001007/0.001007, allocations: 80.38 kB / 0.7396 GB, free: 14.68 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 1.009e-05/1.011e-05, allocations: 2.281 kB / 0.859 GB, free: 156.8 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2419/0.2419, allocations: 116.3 MB / 0.9726 GB, free: 54.37 MB / 0.6387 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.761/5.003, allocations: 2.128 GB / 3.101 GB, free: 235.5 MB / 0.9512 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002719/5.003, allocations: 95.45 kB / 3.101 GB, free: 235.4 MB / 0.9512 GB Notification: Performance of FrontEnd: time 6.529/11.53, allocations: 2.071 GB / 5.172 GB, free: 5.207 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 0.0002632/11.53, allocations: 55.98 kB / 5.172 GB, free: 5.152 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 334 * Number of variables: 334 Notification: Performance of Generate backend data structure: time 0.008162/11.54, allocations: 2.449 MB / 5.175 GB, free: 2.641 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 5.145e-05/11.54, allocations: 16.03 kB / 5.175 GB, free: 2.625 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006613/11.55, allocations: 0.836 MB / 5.176 GB, free: 1.785 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.5971/12.14, allocations: 2.257 MB / 5.178 GB, free: 221.6 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.059e-05/12.15, allocations: 43.59 kB / 5.178 GB, free: 221.6 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003026/12.15, allocations: 85.59 kB / 5.178 GB, free: 221.6 MB / 0.9981 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002545/12.15, allocations: 1.166 MB / 5.179 GB, free: 221.6 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002127/12.15, allocations: 1.382 MB / 5.18 GB, free: 221.4 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.597e-05/12.15, allocations: 7.562 kB / 5.18 GB, free: 221.4 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001191/12.15, allocations: 0 / 5.18 GB, free: 221.4 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-05/12.15, allocations: 47.34 kB / 5.18 GB, free: 221.4 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0104/12.16, allocations: 7.563 MB / 5.188 GB, free: 217.6 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001082/12.16, allocations: 0.7843 MB / 5.189 GB, free: 217.5 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000566/12.16, allocations: 478.4 kB / 5.189 GB, free: 217.5 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001211/12.16, allocations: 0.9239 MB / 5.19 GB, free: 216.6 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006855/12.16, allocations: 499.4 kB / 5.19 GB, free: 216.5 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=84): time 4.819e-06/12.16, allocations: 0 / 5.19 GB, free: 216.5 MB / 0.9981 GB Notification: Performance of matching and sorting (n=84): time 0.00345/12.17, allocations: 1.14 MB / 5.192 GB, free: 216.4 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.113e-05/12.17, allocations: 170.8 kB / 5.192 GB, free: 216.2 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001844/12.17, allocations: 1.235 MB / 5.193 GB, free: 216 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001351/12.17, allocations: 32.97 kB / 5.193 GB, free: 216 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005552/12.17, allocations: 0.6026 MB / 5.194 GB, free: 215.7 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003068/12.17, allocations: 281.4 kB / 5.194 GB, free: 215.6 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.105e-05/12.17, allocations: 0 / 5.194 GB, free: 215.6 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 9.913e-05/12.17, allocations: 349.9 kB / 5.194 GB, free: 215.3 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000539/12.17, allocations: 358.2 kB / 5.194 GB, free: 215.3 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007028/12.17, allocations: 0.7263 MB / 5.195 GB, free: 214.8 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001214/12.17, allocations: 0.5699 MB / 5.196 GB, free: 214.8 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.47e-06/12.17, allocations: 0 / 5.196 GB, free: 214.8 MB / 0.9981 GB Notification: Performance of matching and sorting (n=138) (initialization): time 0.002347/12.18, allocations: 1.287 MB / 5.197 GB, free: 214.7 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007203/12.18, allocations: 3.443 MB / 5.2 GB, free: 211.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.611e-05/12.18, allocations: 14.69 kB / 5.2 GB, free: 211.1 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.313e-05/12.18, allocations: 22.66 kB / 5.2 GB, free: 211.1 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001151/12.18, allocations: 258.8 kB / 5.201 GB, free: 211.1 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.874e-05/12.18, allocations: 24.12 kB / 5.201 GB, free: 211.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001813/12.18, allocations: 177.9 kB / 5.201 GB, free: 211.1 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001237/12.18, allocations: 55.25 kB / 5.201 GB, free: 211.1 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.105e-05/12.18, allocations: 1.812 kB / 5.201 GB, free: 211.1 MB / 0.9981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001911/12.18, allocations: 1.055 MB / 5.202 GB, free: 211 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.765e-05/12.18, allocations: 6.594 kB / 5.202 GB, free: 211 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.559e-05/12.18, allocations: 14.91 kB / 5.202 GB, free: 211 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001073/12.18, allocations: 261.3 kB / 5.202 GB, free: 211 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.604e-05/12.18, allocations: 23.17 kB / 5.202 GB, free: 211 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001701/12.18, allocations: 158.9 kB / 5.202 GB, free: 211 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000105/12.18, allocations: 59.61 kB / 5.202 GB, free: 211 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,conPI.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (134): * Single equations (assignments): 130 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000291/12.18, allocations: 146 kB / 5.203 GB, free: 210.9 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002641/12.19, allocations: 173.2 kB / 5.203 GB, free: 210.8 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002474/12.19, allocations: 1.084 MB / 5.204 GB, free: 210.7 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.46e-05/12.19, allocations: 7.812 kB / 5.204 GB, free: 210.7 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.401e-05/12.19, allocations: 0 / 5.204 GB, free: 210.7 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00163/12.19, allocations: 1.155 MB / 5.205 GB, free: 210.3 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004732/12.19, allocations: 2.44 MB / 5.207 GB, free: 209.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.53e-06/12.19, allocations: 2.75 kB / 5.207 GB, free: 209.9 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009714/12.2, allocations: 179.2 kB / 5.207 GB, free: 209.9 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002317/12.2, allocations: 50.77 kB / 5.207 GB, free: 209.9 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.826e-05/12.2, allocations: 28.33 kB / 5.208 GB, free: 209.9 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001188/12.2, allocations: 1.362 MB / 5.209 GB, free: 208.7 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.919e-06/12.2, allocations: 7.734 kB / 5.209 GB, free: 208.7 MB / 0.9981 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002552/12.2, allocations: 1.691 MB / 5.211 GB, free: 208.3 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008076/12.2, allocations: 349.4 kB / 5.211 GB, free: 208.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002305/12.2, allocations: 7.734 kB / 5.211 GB, free: 208.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001183/12.2, allocations: 119.7 kB / 5.211 GB, free: 208.1 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001374/12.2, allocations: 55.84 kB / 5.211 GB, free: 208.1 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.157e-05/12.2, allocations: 32.53 kB / 5.211 GB, free: 208.1 MB / 0.9981 GB Notification: Performance of sort global known variables: time 0.0014/12.2, allocations: 0.9235 MB / 5.212 GB, free: 208 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.00437/12.21, allocations: 1.211 MB / 5.213 GB, free: 208 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (vol.dynBal.U,vol.dynBal.m,vol.dynBal.mXi[1],mov.filter.x[1],mov.filter.x[2],conPI.I.y,THeaOut.T,hea.outCon.T) * Number of discrete variables: 3 ($whenCondition1,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (85): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006271/12.21, allocations: 3.737 MB / 5.217 GB, free: 206.7 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.003047/12.22, allocations: 1.591 MB / 5.218 GB, free: 206.6 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 7.624e-06/12.22, allocations: 3.531 kB / 5.218 GB, free: 206.6 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0008169/12.22, allocations: 0.5162 MB / 5.219 GB, free: 206.5 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003769/12.22, allocations: 0.7176 MB / 5.22 GB, free: 206.5 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008425/12.23, allocations: 3.026 MB / 5.222 GB, free: 205.8 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001473/12.23, allocations: 1.685 MB / 5.224 GB, free: 205.1 MB / 0.9981 GB Notification: Performance of SimCode: time 1.783e-06/12.23, allocations: 6.969 kB / 5.224 GB, free: 205.1 MB / 0.9981 GB Notification: Performance of Templates: time 0.09356/12.33, allocations: 52.61 MB / 5.276 GB, free: 204.2 MB / 0.9981 GB make -j1 -f Buildings_8_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.makefile (rm -f Buildings_8_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.pipe ; mkfifo Buildings_8_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.pipe >> ../files/Buildings_8_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.sim & ./Buildings_8_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.pipe 2>&1)