Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.Storage.Examples.Stratified.conf.json 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 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.Stratified,fileNamePrefix="Buildings_7_0_0_Buildings_Fluid_Storage_Examples_Stratified",fmuType="me",version="2.0",platforms={"static"}) [: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 7.0.1/package.mo): time 2.131/2.131, allocations: 248.6 MB / 255.9 MB, free: 1.535 MB / 195.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001619/0.001619, allocations: 182.7 kB / 315.1 MB, free: 10.01 MB / 259.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.833/1.833, allocations: 205.1 MB / 0.5658 GB, free: 14.43 MB / 435.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001379/0.001378, allocations: 95.12 kB / 0.67 GB, free: 52.41 MB / 499.1 MB Notification: Performance of FrontEnd - loaded program: time 0.2623/0.2637, allocations: 112.4 MB / 0.7797 GB, free: 11 MB / 0.5499 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2533/0.5171, allocations: 106.3 MB / 0.8835 GB, free: 0.6289 MB / 0.6437 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.372/1.889, allocations: 402.9 MB / 1.277 GB, free: 203.1 MB / 0.8312 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002862/1.889, allocations: 88.31 kB / 1.277 GB, free: 203.1 MB / 0.8312 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 14.14/16.03, allocations: 2.853 GB / 4.13 GB, free: 76.98 MB / 0.8937 GB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/16.03, allocations: 8.219 kB / 4.13 GB, free: 76.98 MB / 0.8937 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008579/16.04, allocations: 1.163 MB / 4.132 GB, free: 75.8 MB / 0.8937 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04532/16.08, allocations: 10.86 MB / 4.142 GB, free: 65.05 MB / 0.8937 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005757/16.08, allocations: 268 kB / 4.142 GB, free: 64.79 MB / 0.8937 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003825/16.09, allocations: 483.9 kB / 4.143 GB, free: 64.32 MB / 0.8937 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03394/16.12, allocations: 9.203 MB / 4.152 GB, free: 55.11 MB / 0.8937 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04287/16.17, allocations: 10.43 MB / 4.162 GB, free: 44.3 MB / 0.8937 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005108/16.17, allocations: 31.72 kB / 4.162 GB, free: 44.27 MB / 0.8937 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00345/16.17, allocations: 12 kB / 4.162 GB, free: 44.26 MB / 0.8937 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002897/16.17, allocations: 255.9 kB / 4.162 GB, free: 44.01 MB / 0.8937 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.8937/17.06, allocations: 45.68 MB / 4.207 GB, free: 183.3 MB / 0.8937 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01521/17.08, allocations: 5.802 MB / 4.213 GB, free: 183.2 MB / 0.8937 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01264/17.09, allocations: 4.794 MB / 4.217 GB, free: 183.1 MB / 0.8937 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002191/17.09, allocations: 0.8248 MB / 4.218 GB, free: 182.4 MB / 0.8937 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01031/17.1, allocations: 3.238 MB / 4.221 GB, free: 182.2 MB / 0.8937 GB Notification: Performance of pre-optimization done (n=455): time 1.009e-05/17.1, allocations: 0 / 4.221 GB, free: 182.2 MB / 0.8937 GB Notification: Performance of matching and sorting (n=455): time 0.02871/17.13, allocations: 6.406 MB / 4.228 GB, free: 182.1 MB / 0.8937 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.419e-05/17.13, allocations: 151.3 kB / 4.228 GB, free: 182 MB / 0.8937 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01825/17.15, allocations: 5.958 MB / 4.233 GB, free: 181.7 MB / 0.8937 GB Notification: Performance of collectPreVariables (initialization): time 0.0015/17.15, allocations: 31.64 kB / 4.234 GB, free: 181.6 MB / 0.8937 GB Notification: Performance of collectInitialEqns (initialization): time 0.007024/17.16, allocations: 3.206 MB / 4.237 GB, free: 180.8 MB / 0.8937 GB Notification: Performance of collectInitialBindings (initialization): time 0.007482/17.17, allocations: 1.52 MB / 4.238 GB, free: 180 MB / 0.8937 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001105/17.17, allocations: 6.719 kB / 4.238 GB, free: 180 MB / 0.8937 GB Notification: Performance of setup shared object (initialization): time 0.0007017/17.17, allocations: 0.5444 MB / 4.239 GB, free: 179.7 MB / 0.8937 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008517/17.18, allocations: 2.929 MB / 4.242 GB, free: 179.7 MB / 0.8937 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01019/17.19, allocations: 4.745 MB / 4.246 GB, free: 177.5 MB / 0.8937 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01274/17.2, allocations: 4.327 MB / 4.25 GB, free: 177.5 MB / 0.8937 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.66e-05/17.2, allocations: 16.03 kB / 4.25 GB, free: 177.5 MB / 0.8937 GB Notification: Performance of matching and sorting (n=758) (initialization): time 0.03017/17.23, allocations: 8.531 MB / 4.259 GB, free: 177 MB / 0.8937 GB Notification: Performance of prepare postOptimizeDAE: time 0.006811/17.24, allocations: 27.42 MB / 4.286 GB, free: 148.4 MB / 0.8937 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003043/17.24, allocations: 57.78 kB / 4.286 GB, free: 148.4 MB / 0.8937 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001721/17.24, allocations: 94.62 kB / 4.286 GB, free: 148.4 MB / 0.8937 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01302/17.25, allocations: 1.427 MB / 4.287 GB, free: 148.4 MB / 0.8937 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000185/17.25, allocations: 123.9 kB / 4.287 GB, free: 148.4 MB / 0.8937 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01365/17.27, allocations: 0.7855 MB / 4.288 GB, free: 148.2 MB / 0.8937 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002067/17.27, allocations: 282.9 kB / 4.288 GB, free: 148.2 MB / 0.8937 GB Notification: Performance of prepare postOptimizeDAE: time 1.99e-05/17.27, allocations: 3.844 kB / 4.288 GB, free: 148.2 MB / 0.8937 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02632/17.29, allocations: 7.861 MB / 4.296 GB, free: 148.1 MB / 0.8937 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002075/17.29, allocations: 56.47 kB / 4.296 GB, free: 148.1 MB / 0.8937 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000129/17.29, allocations: 97.94 kB / 4.296 GB, free: 148.1 MB / 0.8937 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01246/17.31, allocations: 1.424 MB / 4.297 GB, free: 148.1 MB / 0.8937 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001748/17.31, allocations: 128.6 kB / 4.298 GB, free: 148.1 MB / 0.8937 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01264/17.32, allocations: 0.6763 MB / 4.298 GB, free: 147.9 MB / 0.8937 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002116/17.32, allocations: 277.5 kB / 4.298 GB, free: 147.9 MB / 0.8937 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 260 * 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 (748): * Single equations (assignments): 746 * 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.003082/17.33, allocations: 348.5 kB / 4.299 GB, free: 147.7 MB / 0.8937 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00358/17.33, allocations: 0.631 MB / 4.299 GB, free: 147.4 MB / 0.8937 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02636/17.36, allocations: 7.146 MB / 4.306 GB, free: 147.2 MB / 0.8937 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.963e-05/17.36, allocations: 41.59 kB / 4.306 GB, free: 147.2 MB / 0.8937 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.044e-05/17.36, allocations: 0 / 4.306 GB, free: 147.2 MB / 0.8937 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02755/17.38, allocations: 5.921 MB / 4.312 GB, free: 147 MB / 0.8937 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07943/17.46, allocations: 15.87 MB / 4.328 GB, free: 146 MB / 0.8937 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-05/17.46, allocations: 0 / 4.328 GB, free: 146 MB / 0.8937 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0158/17.48, allocations: 0.8932 MB / 4.329 GB, free: 146 MB / 0.8937 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001197/17.48, allocations: 18.48 kB / 4.329 GB, free: 146 MB / 0.8937 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001757/17.48, allocations: 64.84 kB / 4.329 GB, free: 146 MB / 0.8937 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.989e-05/17.48, allocations: 13.81 kB / 4.329 GB, free: 146 MB / 0.8937 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.688e-06/17.48, allocations: 2.906 kB / 4.329 GB, free: 146 MB / 0.8937 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.04241/17.52, allocations: 10.98 MB / 4.339 GB, free: 145.2 MB / 0.8937 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.05861/17.58, allocations: 15.71 MB / 4.355 GB, free: 144 MB / 0.8937 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0115/17.59, allocations: 1.723 MB / 4.356 GB, free: 143.6 MB / 0.8937 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004482/17.6, allocations: 26.47 kB / 4.356 GB, free: 143.6 MB / 0.8937 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0174/17.62, allocations: 449 kB / 4.357 GB, free: 143.5 MB / 0.8937 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001988/17.62, allocations: 227.5 kB / 4.357 GB, free: 143.5 MB / 0.8937 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002014/17.62, allocations: 184.3 kB / 4.357 GB, free: 143.5 MB / 0.8937 GB Notification: Performance of sort global known variables: time 0.01886/17.64, allocations: 4.556 MB / 4.362 GB, free: 143.3 MB / 0.8937 GB Notification: Performance of remove unused functions: time 0.03689/17.68, allocations: 4.991 MB / 4.367 GB, free: 142.5 MB / 0.8937 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 23 (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,HOut_flow.h_out,HOut_flow1.h_out,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 (451): * Single equations (assignments): 447 * 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.004572/17.68, allocations: 0.8499 MB / 4.367 GB, free: 142.3 MB / 0.8937 GB Notification: Performance of simCode: created initialization part: time 0.04121/17.72, allocations: 11.21 MB / 4.378 GB, free: 142.1 MB / 0.8937 GB Notification: Performance of simCode: created event and clocks part: time 1.869e-05/17.72, allocations: 3.938 kB / 4.378 GB, free: 142.1 MB / 0.8937 GB Notification: Performance of simCode: created simulation system equations: time 0.0112/17.73, allocations: 3.155 MB / 4.381 GB, free: 142 MB / 0.8937 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.04585/17.78, allocations: 3.311 MB / 4.385 GB, free: 142 MB / 0.8937 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07365/17.85, allocations: 16.91 MB / 4.401 GB, free: 139.3 MB / 0.8937 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02864/17.88, allocations: 6.985 MB / 4.408 GB, free: 138.4 MB / 0.8937 GB Notification: Performance of SimCode: time 2.094e-06/17.88, allocations: 0 / 4.408 GB, free: 138.4 MB / 0.8937 GB