Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Storage.Examples.Stratified.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.Storage.Examples.Stratified,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Storage.Examples.Stratified") translateModel(Buildings.Fluid.Storage.Examples.Stratified,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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.1.4-maint.8.1.x/package.mo): time 1.539/1.539, allocations: 289.8 MB / 297.1 MB, free: 6.676 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.00113/0.00113, allocations: 181.3 kB / 366.3 MB, free: 1.988 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.464/1.464, allocations: 205.1 MB / 0.6256 GB, free: 7.445 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.0008675/0.0008674, allocations: 92.48 kB / 0.7395 GB, free: 39.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.413e-05/1.415e-05, allocations: 4 kB / 0.859 GB, free: 13.59 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7203/0.7204, allocations: 116.3 MB / 0.9725 GB, free: 76.38 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9876/1.708, allocations: 411.7 MB / 1.375 GB, free: 144.6 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000298/1.708, allocations: 88.05 kB / 1.375 GB, free: 144.6 MB / 0.8542 GB Notification: Performance of FrontEnd: time 10.68/12.39, allocations: 2.917 GB / 4.292 GB, free: 127.5 MB / 0.9948 GB Notification: Performance of Transformations before backend: time 0.00153/12.39, allocations: 256.5 kB / 4.292 GB, free: 127.5 MB / 0.9948 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.02924/12.42, allocations: 8.174 MB / 4.3 GB, free: 124.7 MB / 0.9948 GB Notification: Performance of prepare preOptimizeDAE: time 4.745e-05/12.42, allocations: 7.25 kB / 4.3 GB, free: 124.7 MB / 0.9948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008374/12.43, allocations: 1.164 MB / 4.301 GB, free: 124.1 MB / 0.9948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0286/12.46, allocations: 10.9 MB / 4.312 GB, free: 123 MB / 0.9948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005563/12.46, allocations: 269.8 kB / 4.312 GB, free: 123 MB / 0.9948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003922/12.46, allocations: 485.5 kB / 4.313 GB, free: 123 MB / 0.9948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02444/12.49, allocations: 9.173 MB / 4.322 GB, free: 123 MB / 0.9948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03793/12.52, allocations: 10.56 MB / 4.332 GB, free: 121.8 MB / 0.9948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007083/12.52, allocations: 28.19 kB / 4.332 GB, free: 121.8 MB / 0.9948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004144/12.53, allocations: 15 kB / 4.332 GB, free: 121.8 MB / 0.9948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003195/12.53, allocations: 255.1 kB / 4.332 GB, free: 121.8 MB / 0.9948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08707/12.62, allocations: 46.16 MB / 4.377 GB, free: 102 MB / 0.9948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0105/12.63, allocations: 5.764 MB / 4.383 GB, free: 102 MB / 0.9948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007518/12.63, allocations: 4.778 MB / 4.388 GB, free: 101.9 MB / 0.9948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00146/12.64, allocations: 0.8252 MB / 4.388 GB, free: 101.1 MB / 0.9948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006847/12.64, allocations: 3.27 MB / 4.392 GB, free: 101 MB / 0.9948 GB Notification: Performance of pre-optimization done (n=449): time 9.097e-06/12.64, allocations: 0 / 4.392 GB, free: 101 MB / 0.9948 GB Notification: Performance of matching and sorting (n=449): time 0.01726/12.66, allocations: 6.353 MB / 4.398 GB, free: 100.5 MB / 0.9948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001296/12.66, allocations: 151.1 kB / 4.398 GB, free: 100.4 MB / 0.9948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02071/12.68, allocations: 5.976 MB / 4.404 GB, free: 99.97 MB / 0.9948 GB Notification: Performance of collectPreVariables (initialization): time 0.00183/12.68, allocations: 33.52 kB / 4.404 GB, free: 99.94 MB / 0.9948 GB Notification: Performance of collectInitialEqns (initialization): time 0.00603/12.69, allocations: 3.206 MB / 4.407 GB, free: 98.14 MB / 0.9948 GB Notification: Performance of collectInitialBindings (initialization): time 0.004277/12.69, allocations: 1.506 MB / 4.408 GB, free: 97.06 MB / 0.9948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004819/12.69, allocations: 0 / 4.408 GB, free: 97.06 MB / 0.9948 GB Notification: Performance of setup shared object (initialization): time 0.0004105/12.69, allocations: 0.5392 MB / 4.409 GB, free: 96.66 MB / 0.9948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003744/12.7, allocations: 2.922 MB / 4.412 GB, free: 95.64 MB / 0.9948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004749/12.7, allocations: 4.752 MB / 4.416 GB, free: 92.32 MB / 0.9948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006666/12.71, allocations: 4.289 MB / 4.421 GB, free: 91.01 MB / 0.9948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.19e-05/12.71, allocations: 16.47 kB / 4.421 GB, free: 91.01 MB / 0.9948 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.01599/12.72, allocations: 8.481 MB / 4.429 GB, free: 88.44 MB / 0.9948 GB Notification: Performance of prepare postOptimizeDAE: time 0.00604/12.73, allocations: 27.84 MB / 4.456 GB, free: 58.89 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001607/12.73, allocations: 60.28 kB / 4.456 GB, free: 58.89 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001582/12.73, allocations: 97.94 kB / 4.456 GB, free: 58.89 MB / 0.9948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006772/12.74, allocations: 1.422 MB / 4.458 GB, free: 58.75 MB / 0.9948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001548/12.74, allocations: 128.8 kB / 4.458 GB, free: 58.72 MB / 0.9948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00965/12.75, allocations: 0.7864 MB / 4.458 GB, free: 58.39 MB / 0.9948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001608/12.75, allocations: 283.4 kB / 4.459 GB, free: 58.35 MB / 0.9948 GB Notification: Performance of prepare postOptimizeDAE: time 1.429e-05/12.75, allocations: 4.25 kB / 4.459 GB, free: 58.35 MB / 0.9948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01805/12.77, allocations: 7.811 MB / 4.466 GB, free: 55.91 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000248/12.77, allocations: 57.88 kB / 4.466 GB, free: 55.91 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002235/12.77, allocations: 98.59 kB / 4.467 GB, free: 55.91 MB / 0.9948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006511/12.77, allocations: 1.419 MB / 4.468 GB, free: 55.77 MB / 0.9948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001595/12.77, allocations: 128.2 kB / 4.468 GB, free: 55.75 MB / 0.9948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008579/12.78, allocations: 0.672 MB / 4.469 GB, free: 55.5 MB / 0.9948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001487/12.78, allocations: 281 kB / 4.469 GB, free: 55.45 MB / 0.9948 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.002751/12.79, allocations: 357.5 kB / 4.469 GB, free: 55.13 MB / 0.9948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003925/12.79, allocations: 0.6261 MB / 4.47 GB, free: 54.81 MB / 0.9948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01995/12.81, allocations: 7.073 MB / 4.477 GB, free: 52.53 MB / 0.9948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.961e-05/12.81, allocations: 43.22 kB / 4.477 GB, free: 52.53 MB / 0.9948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.68e-05/12.81, allocations: 6.406 kB / 4.477 GB, free: 52.53 MB / 0.9948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01001/12.82, allocations: 5.866 MB / 4.483 GB, free: 50.69 MB / 0.9948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04205/12.86, allocations: 15.84 MB / 4.498 GB, free: 42.71 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.428e-05/12.86, allocations: 4 kB / 4.498 GB, free: 42.71 MB / 0.9948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004692/12.87, allocations: 0.8775 MB / 4.499 GB, free: 41.97 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.861e-05/12.87, allocations: 28.67 kB / 4.499 GB, free: 41.95 MB / 0.9948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007492/12.87, allocations: 62.39 kB / 4.499 GB, free: 41.91 MB / 0.9948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.28e-05/12.87, allocations: 16 kB / 4.499 GB, free: 41.89 MB / 0.9948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.18e-06/12.87, allocations: 0 / 4.499 GB, free: 41.89 MB / 0.9948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01664/12.89, allocations: 10.9 MB / 4.51 GB, free: 32.39 MB / 0.9948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008515/12.89, allocations: 1.752 MB / 4.511 GB, free: 30.86 MB / 0.9948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004125/12.9, allocations: 27.66 kB / 4.511 GB, free: 30.84 MB / 0.9948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008906/12.91, allocations: 454.9 kB / 4.512 GB, free: 30.56 MB / 0.9948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001014/12.91, allocations: 223.2 kB / 4.512 GB, free: 30.43 MB / 0.9948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001148/12.91, allocations: 200.6 kB / 4.512 GB, free: 30.27 MB / 0.9948 GB Notification: Performance of sort global known variables: time 0.009627/12.92, allocations: 4.561 MB / 4.517 GB, free: 26.34 MB / 0.9948 GB Notification: Performance of remove unused functions: time 0.02386/12.94, allocations: 4.765 MB / 4.521 GB, free: 21.57 MB / 0.9948 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.004507/12.95, allocations: 0.8732 MB / 4.522 GB, free: 20.93 MB / 0.9948 GB Notification: Performance of simCode: created initialization part: time 0.02023/12.97, allocations: 11.16 MB / 4.533 GB, free: 10.95 MB / 0.9948 GB Notification: Performance of simCode: created event and clocks part: time 1.42e-05/12.97, allocations: 4.5 kB / 4.533 GB, free: 10.95 MB / 0.9948 GB Notification: Performance of simCode: created simulation system equations: time 0.004943/12.97, allocations: 3.138 MB / 4.536 GB, free: 8.125 MB / 0.9948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01964/12.99, allocations: 3.321 MB / 4.539 GB, free: 5.832 MB / 0.9948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05076/13.04, allocations: 16.73 MB / 4.556 GB, free: 7.254 MB / 1.01 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01718/13.06, allocations: 6.914 MB / 4.562 GB, free: 2.016 MB / 1.01 GB Notification: Performance of SimCode: time 1.222e-06/13.06, allocations: 0 / 4.562 GB, free: 2.016 MB / 1.01 GB Notification: Performance of Templates: time 0.851/13.91, allocations: 166.7 MB / 4.725 GB, free: 218.8 MB / 1.01 GB make -j1 -f Buildings_8_Buildings.Fluid.Storage.Examples.Stratified.makefile (rm -f Buildings_8_Buildings.Fluid.Storage.Examples.Stratified.pipe ; mkfifo Buildings_8_Buildings.Fluid.Storage.Examples.Stratified.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Storage.Examples.Stratified.pipe >> ../files/Buildings_8_Buildings.Fluid.Storage.Examples.Stratified.sim & ./Buildings_8_Buildings.Fluid.Storage.Examples.Stratified -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.Storage.Examples.Stratified.pipe 2>&1)