Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Fluid.Storage.Examples.Stratified.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.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.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Fluid.Storage.Examples.Stratified,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Fluid.Storage.Examples.Stratified") translateModel(Buildings.Fluid.Storage.Examples.Stratified,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Fluid.Storage.Examples.Stratified") [: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.0.1-maint.8.0.x/package.mo): time 1.503/1.503, allocations: 285.5 MB / 292.8 MB, free: 10.41 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.001545/0.001545, allocations: 181.2 kB / 361.1 MB, free: 7.082 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.375/1.375, allocations: 205.1 MB / 0.6195 GB, free: 10.28 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.0008507/0.0008508, allocations: 90 kB / 0.7326 GB, free: 44.22 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 7.695e-06/7.715e-06, allocations: 0 / 0.851 GB, free: 2.98 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6957/0.6957, allocations: 115.3 MB / 0.9637 GB, free: 78.18 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8602/1.556, allocations: 410.7 MB / 1.365 GB, free: 153.8 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002741/1.556, allocations: 90.92 kB / 1.365 GB, free: 153.8 MB / 0.8542 GB Notification: Performance of FrontEnd: time 10.27/11.83, allocations: 2.917 GB / 4.282 GB, free: 132.3 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 0.001494/11.83, allocations: 251.2 kB / 4.282 GB, free: 132.3 MB / 0.9636 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2145 * Number of variables: 2145 Notification: Performance of Generate backend data structure: time 0.02822/11.86, allocations: 8.176 MB / 4.29 GB, free: 129.2 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 6.765e-05/11.86, allocations: 9.625 kB / 4.29 GB, free: 129.2 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009811/11.87, allocations: 1.177 MB / 4.291 GB, free: 128.7 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03026/11.9, allocations: 10.88 MB / 4.302 GB, free: 127.6 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007057/11.9, allocations: 268.2 kB / 4.302 GB, free: 127.6 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004083/11.9, allocations: 489.9 kB / 4.303 GB, free: 127.6 MB / 0.9636 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02414/11.93, allocations: 9.176 MB / 4.312 GB, free: 127.5 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03256/11.96, allocations: 10.56 MB / 4.322 GB, free: 126.3 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003679/11.96, allocations: 26.69 kB / 4.322 GB, free: 126.3 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002749/11.96, allocations: 18.5 kB / 4.322 GB, free: 126.3 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002202/11.96, allocations: 251.2 kB / 4.322 GB, free: 126.3 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09151/12.05, allocations: 46.16 MB / 4.367 GB, free: 97.07 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01237/12.07, allocations: 5.763 MB / 4.373 GB, free: 95.2 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00848/12.08, allocations: 4.78 MB / 4.378 GB, free: 93.68 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0015/12.08, allocations: 0.8238 MB / 4.378 GB, free: 92.92 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007332/12.08, allocations: 3.281 MB / 4.382 GB, free: 91.78 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=449): time 7.815e-06/12.08, allocations: 0 / 4.382 GB, free: 91.78 MB / 0.9636 GB Notification: Performance of matching and sorting (n=449): time 0.01614/12.1, allocations: 6.346 MB / 4.388 GB, free: 88.92 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001006/12.1, allocations: 160.5 kB / 4.388 GB, free: 88.74 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01646/12.12, allocations: 5.971 MB / 4.394 GB, free: 83.57 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 0.002195/12.12, allocations: 29.7 kB / 4.394 GB, free: 83.54 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 0.006714/12.13, allocations: 3.213 MB / 4.397 GB, free: 80.74 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 0.004685/12.13, allocations: 1.498 MB / 4.398 GB, free: 79.36 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001387/12.13, allocations: 7.172 kB / 4.398 GB, free: 79.35 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 0.0007563/12.13, allocations: 0.5405 MB / 4.399 GB, free: 78.87 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005589/12.14, allocations: 2.917 MB / 4.402 GB, free: 76.33 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00689/12.15, allocations: 4.752 MB / 4.407 GB, free: 71.25 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00842/12.15, allocations: 4.293 MB / 4.411 GB, free: 67.84 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001009/12.15, allocations: 20 kB / 4.411 GB, free: 67.82 MB / 0.9636 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.02107/12.18, allocations: 8.481 MB / 4.419 GB, free: 60.32 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 0.005878/12.18, allocations: 27.83 MB / 4.446 GB, free: 30.54 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002044/12.18, allocations: 63.84 kB / 4.446 GB, free: 30.48 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001511/12.18, allocations: 96 kB / 4.446 GB, free: 30.39 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007399/12.19, allocations: 1.42 MB / 4.448 GB, free: 28.96 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001766/12.19, allocations: 132.6 kB / 4.448 GB, free: 28.84 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01026/12.2, allocations: 0.7861 MB / 4.449 GB, free: 28.04 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002029/12.2, allocations: 287.9 kB / 4.449 GB, free: 27.76 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.417e-05/12.2, allocations: 4 kB / 4.449 GB, free: 27.76 MB / 0.9636 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0181/12.22, allocations: 7.808 MB / 4.457 GB, free: 19.95 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002276/12.22, allocations: 56 kB / 4.457 GB, free: 19.89 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001055/12.22, allocations: 100 kB / 4.457 GB, free: 19.8 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007007/12.23, allocations: 1.42 MB / 4.458 GB, free: 18.38 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000144/12.23, allocations: 123.6 kB / 4.458 GB, free: 18.25 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00914/12.24, allocations: 0.6744 MB / 4.459 GB, free: 17.57 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001727/12.24, allocations: 284 kB / 4.459 GB, free: 17.3 MB / 0.9636 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 264 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition1,$whenCondition2,TWat.a,TWat.b,TWat.last,$PRE.TWat.nextEvent,TWat.nextEvent,TWat.nextEventScaled,P.a,P.b,P.last,$PRE.P.nextEvent,P.nextEvent,P.nextEventScaled,dH.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (744): * Single equations (assignments): 742 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * 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.002859/12.24, allocations: 358.1 kB / 4.459 GB, free: 16.93 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003321/12.24, allocations: 0.6291 MB / 4.46 GB, free: 16.29 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01614/12.26, allocations: 7.075 MB / 4.467 GB, free: 9.223 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.025e-05/12.26, allocations: 44.45 kB / 4.467 GB, free: 9.184 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.962e-05/12.26, allocations: 0 / 4.467 GB, free: 9.184 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009977/12.27, allocations: 5.866 MB / 4.473 GB, free: 3.305 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04674/12.32, allocations: 15.85 MB / 4.488 GB, free: 3.438 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.67e-05/12.32, allocations: 4 kB / 4.488 GB, free: 3.434 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005453/12.32, allocations: 0.8817 MB / 4.489 GB, free: 2.551 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.304e-05/12.32, allocations: 19.91 kB / 4.489 GB, free: 2.531 MB / 0.9792 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001022/12.32, allocations: 63.94 kB / 4.489 GB, free: 2.469 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.701e-05/12.32, allocations: 16 kB / 4.489 GB, free: 2.453 MB / 0.9792 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.092e-06/12.32, allocations: 0 / 4.489 GB, free: 2.453 MB / 0.9792 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.5202/12.84, allocations: 10.9 MB / 4.5 GB, free: 229.7 MB / 0.9792 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007271/12.85, allocations: 1.755 MB / 4.502 GB, free: 229.6 MB / 0.9792 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002771/12.85, allocations: 28.94 kB / 4.502 GB, free: 229.6 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007554/12.86, allocations: 450.2 kB / 4.502 GB, free: 229.6 MB / 0.9792 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007485/12.86, allocations: 224.7 kB / 4.502 GB, free: 229.6 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007452/12.86, allocations: 196.2 kB / 4.502 GB, free: 229.6 MB / 0.9792 GB Notification: Performance of sort global known variables: time 0.008876/12.87, allocations: 4.566 MB / 4.507 GB, free: 229.4 MB / 0.9792 GB Notification: Performance of remove unused functions: time 0.02175/12.89, allocations: 4.765 MB / 4.511 GB, free: 229.2 MB / 0.9792 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 21 (tanSim.vol[1].dynBal.U,tanSim.vol[2].dynBal.U,tanSim.vol[3].dynBal.U,tanSim.vol[4].dynBal.U,tanSim.vol[5].dynBal.U,tanSim.vol[6].dynBal.U,tanSim.vol[7].dynBal.U,tanSim.vol[8].dynBal.U,tanSim.vol[9].dynBal.U,tanSim.vol[10].dynBal.U,tanEnh.vol[1].dynBal.U,tanEnh.vol[2].dynBal.U,tanEnh.vol[3].dynBal.U,tanEnh.vol[4].dynBal.U,tanEnh.vol[5].dynBal.U,tanEnh.vol[6].dynBal.U,tanEnh.vol[7].dynBal.U,tanEnh.vol[8].dynBal.U,tanEnh.vol[9].dynBal.U,tanEnh.vol[10].dynBal.U,dH.y) * Number of discrete variables: 12 ($whenCondition1,$whenCondition2,TWat.a,TWat.b,TWat.last,TWat.nextEvent,TWat.nextEventScaled,P.a,P.b,P.last,P.nextEvent,P.nextEventScaled) * Number of discrete states: 12 (P.nextEvent,P.last,P.nextEventScaled,P.b,P.a,$whenCondition2,TWat.nextEvent,TWat.last,TWat.nextEventScaled,TWat.b,TWat.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (445): * Single equations (assignments): 441 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 2 * 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 Backend phase and start with SimCode phase: time 0.003246/12.9, allocations: 0.8619 MB / 4.512 GB, free: 229 MB / 0.9792 GB Notification: Performance of simCode: created initialization part: time 0.01741/12.92, allocations: 11.16 MB / 4.523 GB, free: 228.8 MB / 0.9792 GB Notification: Performance of simCode: created event and clocks part: time 1.46e-05/12.92, allocations: 11.72 kB / 4.523 GB, free: 228.8 MB / 0.9792 GB Notification: Performance of simCode: created simulation system equations: time 0.004845/12.92, allocations: 3.132 MB / 4.526 GB, free: 228.8 MB / 0.9792 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02105/12.94, allocations: 3.314 MB / 4.53 GB, free: 228.7 MB / 0.9792 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04848/12.99, allocations: 16.72 MB / 4.546 GB, free: 226.1 MB / 0.9792 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01105/13, allocations: 6.927 MB / 4.553 GB, free: 225.2 MB / 0.9792 GB Notification: Performance of SimCode: time 1.543e-06/13, allocations: 0 / 4.553 GB, free: 225.2 MB / 0.9792 GB Notification: Performance of Templates: time 0.3055/13.31, allocations: 166.7 MB / 4.715 GB, free: 201.3 MB / 0.9792 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Fluid.Storage.Examples.Stratified.makefile (rm -f Buildings_maint.8.0.x_Buildings.Fluid.Storage.Examples.Stratified.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Fluid.Storage.Examples.Stratified.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Fluid.Storage.Examples.Stratified.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Fluid.Storage.Examples.Stratified.sim & ./Buildings_maint.8.0.x_Buildings.Fluid.Storage.Examples.Stratified -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Fluid.Storage.Examples.Stratified.pipe 2>&1)