Running: ./testmodel.py --libraries=/var/lib/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 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Fluid.Storage.Examples.Stratified,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.169/2.169, allocations: 253.1 MB / 260.4 MB, free: 7.531 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001629/0.001628, allocations: 181.3 kB / 319.6 MB, free: 3.309 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.915/1.915, allocations: 205.4 MB / 0.5704 GB, free: 15.04 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001347/0.001347, allocations: 92.56 kB / 0.6746 GB, free: 4.402 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.192e-05/1.208e-05, allocations: 4 kB / 0.7843 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2055/0.2056, allocations: 106.2 MB / 0.888 GB, free: 12.21 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.615/1.82, allocations: 403.9 MB / 1.282 GB, free: 259.3 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003662/1.821, allocations: 88.41 kB / 1.283 GB, free: 259.3 MB / 0.8698 GB Notification: Performance of FrontEnd: time 13.66/15.48, allocations: 2.845 GB / 4.128 GB, free: 130 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 0.001905/15.48, allocations: 258.7 kB / 4.128 GB, free: 129.9 MB / 0.9011 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.03662/15.52, allocations: 8.167 MB / 4.136 GB, free: 126.9 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 4.914e-05/15.52, allocations: 10.97 kB / 4.136 GB, free: 126.9 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009255/15.53, allocations: 1.162 MB / 4.137 GB, free: 126.3 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03979/15.57, allocations: 10.85 MB / 4.148 GB, free: 125.2 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006004/15.57, allocations: 269.7 kB / 4.148 GB, free: 125.2 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00392/15.57, allocations: 494.7 kB / 4.148 GB, free: 125.2 MB / 0.9011 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03366/15.61, allocations: 9.197 MB / 4.157 GB, free: 125.1 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0449/15.65, allocations: 10.43 MB / 4.168 GB, free: 123.5 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006118/15.65, allocations: 24.8 kB / 4.168 GB, free: 123.4 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003746/15.66, allocations: 18.44 kB / 4.168 GB, free: 123.4 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003554/15.66, allocations: 254.9 kB / 4.168 GB, free: 123.4 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1167/15.77, allocations: 45.68 MB / 4.213 GB, free: 94.62 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01775/15.79, allocations: 5.799 MB / 4.218 GB, free: 91.56 MB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0134/15.8, allocations: 4.8 MB / 4.223 GB, free: 87.27 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002111/15.81, allocations: 0.8253 MB / 4.224 GB, free: 86.36 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01129/15.82, allocations: 3.237 MB / 4.227 GB, free: 83.74 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=455): time 9.537e-06/15.82, allocations: 0 / 4.227 GB, free: 83.74 MB / 0.9011 GB Notification: Performance of matching and sorting (n=455): time 0.0235/15.84, allocations: 6.4 MB / 4.233 GB, free: 78.25 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.438e-05/15.84, allocations: 151.4 kB / 4.233 GB, free: 78.08 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0188/15.86, allocations: 5.96 MB / 4.239 GB, free: 72.31 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 0.001666/15.86, allocations: 33.7 kB / 4.239 GB, free: 72.27 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.007041/15.87, allocations: 3.19 MB / 4.242 GB, free: 69.04 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 0.005949/15.87, allocations: 1.532 MB / 4.244 GB, free: 67.48 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001394/15.88, allocations: 0 / 4.244 GB, free: 67.48 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0008979/15.88, allocations: 0.5421 MB / 4.244 GB, free: 66.93 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009035/15.89, allocations: 2.928 MB / 4.247 GB, free: 64 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01029/15.9, allocations: 4.746 MB / 4.252 GB, free: 58.48 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01286/15.91, allocations: 4.321 MB / 4.256 GB, free: 54.22 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.28e-05/15.91, allocations: 20 kB / 4.256 GB, free: 54.2 MB / 0.9011 GB Notification: Performance of matching and sorting (n=758) (initialization): time 0.02877/15.94, allocations: 8.534 MB / 4.264 GB, free: 45.65 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 0.006115/15.94, allocations: 27.42 MB / 4.291 GB, free: 16.19 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002639/15.94, allocations: 60 kB / 4.291 GB, free: 16.13 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001521/15.94, allocations: 100 kB / 4.291 GB, free: 16.03 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0125/15.96, allocations: 1.424 MB / 4.293 GB, free: 14.61 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001603/15.96, allocations: 123.6 kB / 4.293 GB, free: 14.48 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01351/15.97, allocations: 0.7898 MB / 4.294 GB, free: 13.69 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002027/15.97, allocations: 280 kB / 4.294 GB, free: 13.42 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 1.538e-05/15.97, allocations: 4 kB / 4.294 GB, free: 13.41 MB / 0.9011 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.023/16, allocations: 7.856 MB / 4.301 GB, free: 5.559 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001656/16, allocations: 59.98 kB / 4.302 GB, free: 5.5 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001188/16, allocations: 100 kB / 4.302 GB, free: 5.402 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01225/16.01, allocations: 1.424 MB / 4.303 GB, free: 3.977 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001566/16.01, allocations: 127.5 kB / 4.303 GB, free: 3.852 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01277/16.02, allocations: 0.6743 MB / 4.304 GB, free: 3.172 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002288/16.02, allocations: 280 kB / 4.304 GB, free: 2.898 MB / 0.9011 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.003415/16.03, allocations: 350.3 kB / 4.304 GB, free: 2.535 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0034/16.03, allocations: 0.6329 MB / 4.305 GB, free: 1.895 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4483/16.48, allocations: 7.133 MB / 4.312 GB, free: 201.3 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-05/16.48, allocations: 45.56 kB / 4.312 GB, free: 201.3 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.599e-05/16.48, allocations: 0 / 4.312 GB, free: 201.3 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01952/16.5, allocations: 5.922 MB / 4.318 GB, free: 201.1 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06024/16.56, allocations: 15.85 MB / 4.333 GB, free: 200.3 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.461e-05/16.56, allocations: 0 / 4.333 GB, free: 200.3 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009776/16.57, allocations: 0.8993 MB / 4.334 GB, free: 200.3 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.726e-05/16.57, allocations: 17.58 kB / 4.334 GB, free: 200.3 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001437/16.57, allocations: 70.98 kB / 4.334 GB, free: 200.3 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.929e-05/16.57, allocations: 13.62 kB / 4.334 GB, free: 200.3 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.184e-06/16.57, allocations: 2.562 kB / 4.334 GB, free: 200.3 MB / 0.9011 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03249/16.6, allocations: 10.99 MB / 4.345 GB, free: 199.9 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008641/16.61, allocations: 1.725 MB / 4.347 GB, free: 199.8 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003927/16.62, allocations: 24.56 kB / 4.347 GB, free: 199.8 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01177/16.63, allocations: 446 kB / 4.347 GB, free: 199.8 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001522/16.63, allocations: 237 kB / 4.347 GB, free: 199.8 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001285/16.63, allocations: 185.5 kB / 4.348 GB, free: 199.8 MB / 0.9011 GB Notification: Performance of sort global known variables: time 0.01353/16.64, allocations: 4.56 MB / 4.352 GB, free: 199.6 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.02558/16.67, allocations: 4.764 MB / 4.357 GB, free: 199.1 MB / 0.9011 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.00361/16.67, allocations: 0.8474 MB / 4.357 GB, free: 199 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.03005/16.7, allocations: 11.21 MB / 4.368 GB, free: 198.8 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 1.278e-05/16.7, allocations: 0 / 4.368 GB, free: 198.8 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.008363/16.71, allocations: 3.16 MB / 4.371 GB, free: 198.7 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03229/16.74, allocations: 3.317 MB / 4.375 GB, free: 198.7 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06331/16.81, allocations: 16.87 MB / 4.391 GB, free: 196 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0204/16.83, allocations: 6.936 MB / 4.398 GB, free: 195.1 MB / 0.9011 GB Notification: Performance of SimCode: time 1.593e-06/16.83, allocations: 0 / 4.398 GB, free: 195.1 MB / 0.9011 GB Notification: Performance of Templates: time 0.4491/17.28, allocations: 165.9 MB / 4.56 GB, free: 140.4 MB / 0.9011 GB