Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_1.6_Buildings.Fluid.Storage.Examples.Stratified.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Using package Buildings with version 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo) Running command: translateModel(Buildings.Fluid.Storage.Examples.Stratified,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.Storage.Examples.Stratified") translateModel(Buildings.Fluid.Storage.Examples.Stratified,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_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 1.6.0+build.1/package.mo): time 0.493/0.493, allocations: 94.75 MB / 102 MB, free: 10.32 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001193/0.001193, allocations: 173.9 kB / 125.3 MB, free: 11.96 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.315/1.315, allocations: 170.5 MB / 319 MB, free: 9.355 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001615/0.001615, allocations: 115.3 kB / 381 MB, free: 18.21 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 7.955e-06/7.975e-06, allocations: 4 kB / 448.6 MB, free: 2.094 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1298/0.1298, allocations: 61.51 MB / 0.4981 GB, free: 4.488 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.054/1.184, allocations: 426 MB / 0.9141 GB, free: 188.6 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002844/1.184, allocations: 85.11 kB / 0.9142 GB, free: 188.6 MB / 0.5261 GB Notification: Performance of FrontEnd: time 3.188/4.372, allocations: 0.8753 GB / 1.789 GB, free: 47.98 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.002022/4.374, allocations: 248.2 kB / 1.79 GB, free: 47.95 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1982 * Number of variables: 1982 Notification: Performance of Generate backend data structure: time 0.03649/4.411, allocations: 7.621 MB / 1.797 GB, free: 45.28 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.063e-05/4.411, allocations: 13.7 kB / 1.797 GB, free: 45.28 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009897/4.421, allocations: 1.074 MB / 1.798 GB, free: 44.78 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02869/4.45, allocations: 8.848 MB / 1.807 GB, free: 43.79 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009434/4.451, allocations: 246.5 kB / 1.807 GB, free: 43.79 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005213/4.456, allocations: 479.1 kB / 1.808 GB, free: 43.78 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02847/4.484, allocations: 9.59 MB / 1.817 GB, free: 43.75 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04898/4.533, allocations: 10.1 MB / 1.827 GB, free: 43.08 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008133/4.534, allocations: 11.75 kB / 1.827 GB, free: 43.08 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005321/4.54, allocations: 16.89 kB / 1.827 GB, free: 43.08 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005189/4.54, allocations: 187.6 kB / 1.827 GB, free: 43.08 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1097/4.65, allocations: 41.8 MB / 1.868 GB, free: 24 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01068/4.661, allocations: 4.889 MB / 1.873 GB, free: 22.35 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01331/4.674, allocations: 5.417 MB / 1.878 GB, free: 20.61 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001951/4.676, allocations: 0.8465 MB / 1.879 GB, free: 19.84 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01378/4.69, allocations: 4.211 MB / 1.883 GB, free: 18.35 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=539): time 4.617e-05/4.69, allocations: 2.719 kB / 1.883 GB, free: 18.35 MB / 0.5417 GB Notification: Performance of matching and sorting (n=599): time 0.07707/4.767, allocations: 21.43 MB / 1.904 GB, free: 3.227 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001374/4.767, allocations: 254.3 kB / 1.904 GB, free: 2.938 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01437/4.782, allocations: 5.011 MB / 1.909 GB, free: 14.8 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.002355/4.784, allocations: 29.7 kB / 1.909 GB, free: 14.77 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.005964/4.79, allocations: 2.758 MB / 1.912 GB, free: 12.36 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.005913/4.796, allocations: 1.998 MB / 1.914 GB, free: 10.52 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00186/4.798, allocations: 0 / 1.914 GB, free: 10.52 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.001032/4.799, allocations: 0.5782 MB / 1.914 GB, free: 10.01 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00948/4.808, allocations: 3.783 MB / 1.918 GB, free: 6.734 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009894/4.818, allocations: 5.367 MB / 1.923 GB, free: 1.379 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.374/5.192, allocations: 7.006 MB / 1.93 GB, free: 98.65 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.859e-05/5.193, allocations: 18.06 kB / 1.93 GB, free: 98.65 MB / 0.5573 GB Notification: Performance of matching and sorting (n=871) (initialization): time 0.02604/5.219, allocations: 10.98 MB / 1.941 GB, free: 98.45 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.005812/5.224, allocations: 21.41 MB / 1.962 GB, free: 75.88 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001952/5.225, allocations: 45.5 kB / 1.962 GB, free: 75.88 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001796/5.225, allocations: 87.09 kB / 1.962 GB, free: 75.88 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009557/5.234, allocations: 1.637 MB / 1.963 GB, free: 75.88 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001697/5.235, allocations: 107.2 kB / 1.963 GB, free: 75.88 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009915/5.245, allocations: 414.4 kB / 1.964 GB, free: 75.88 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002227/5.247, allocations: 301.2 kB / 1.964 GB, free: 75.88 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.618e-05/5.247, allocations: 3.156 kB / 1.964 GB, free: 75.88 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02122/5.268, allocations: 10.26 MB / 1.974 GB, free: 75.71 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002775/5.268, allocations: 45.91 kB / 1.974 GB, free: 75.71 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001008/5.269, allocations: 87.88 kB / 1.974 GB, free: 75.71 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007887/5.276, allocations: 1.63 MB / 1.976 GB, free: 75.71 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001414/5.277, allocations: 109.4 kB / 1.976 GB, free: 75.71 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008984/5.286, allocations: 397.5 kB / 1.976 GB, free: 75.71 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002314/5.288, allocations: 295 kB / 1.977 GB, free: 75.71 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 206 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition1,$whenCondition2,TWat.a,TWat.b,TWat.last,$PRE.TWat.nextEvent,TWat.nextEvent,P.a,P.b,P.last,$PRE.P.nextEvent,P.nextEvent) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (863): * Single equations (assignments): 861 * 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.00291/5.291, allocations: 346.8 kB / 1.977 GB, free: 75.55 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003159/5.294, allocations: 0.61 MB / 1.977 GB, free: 75.55 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03164/5.326, allocations: 10.05 MB / 1.987 GB, free: 75.27 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.633e-05/5.326, allocations: 56.31 kB / 1.987 GB, free: 75.27 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.711e-05/5.326, allocations: 0 / 1.987 GB, free: 75.27 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001649/5.326, allocations: 26.86 kB / 1.987 GB, free: 75.27 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0575/5.384, allocations: 19.01 MB / 2.006 GB, free: 74.56 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.041e-05/5.384, allocations: 2.75 kB / 2.006 GB, free: 74.56 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007607/5.391, allocations: 1.199 MB / 2.007 GB, free: 74.56 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001283/5.392, allocations: 19.62 kB / 2.007 GB, free: 74.56 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001734/5.393, allocations: 102.5 kB / 2.007 GB, free: 74.56 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.618e-05/5.393, allocations: 21.78 kB / 2.007 GB, free: 74.56 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.382e-06/5.393, allocations: 0 / 2.007 GB, free: 74.56 MB / 0.5573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03043/5.424, allocations: 15.25 MB / 2.022 GB, free: 74.15 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007556/5.431, allocations: 1.773 MB / 2.024 GB, free: 73.87 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003824/5.435, allocations: 42.89 kB / 2.024 GB, free: 73.87 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009181/5.444, allocations: 363.2 kB / 2.024 GB, free: 73.85 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00199/5.447, allocations: 292 kB / 2.025 GB, free: 73.84 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002072/5.449, allocations: 223.6 kB / 2.025 GB, free: 73.84 MB / 0.5573 GB Notification: Performance of sort global known variables: time 0.009939/5.459, allocations: 3.762 MB / 2.028 GB, free: 73.66 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.02411/5.483, allocations: 3.617 MB / 2.032 GB, free: 73.66 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 45 (tanSim.vol[1].dynBal.medium.T,tanSim.vol[2].dynBal.medium.T,tanSim.vol[3].dynBal.medium.T,tanSim.vol[4].dynBal.medium.T,tanSim.vol[5].dynBal.medium.T,tanSim.vol[6].dynBal.medium.T,tanSim.vol[7].dynBal.medium.T,tanSim.vol[8].dynBal.medium.T,tanSim.vol[9].dynBal.medium.T,tanSim.vol[10].dynBal.medium.T,tanSim.hA_flow.h_out,tanSim.hVol_flow[1].h_out,tanSim.hVol_flow[2].h_out,tanSim.hVol_flow[3].h_out,tanSim.hVol_flow[4].h_out,tanSim.hVol_flow[5].h_out,tanSim.hVol_flow[6].h_out,tanSim.hVol_flow[7].h_out,tanSim.hVol_flow[8].h_out,tanSim.hVol_flow[9].h_out,tanSim.hB_flow.h_out,tanEnh.vol[1].dynBal.medium.T,tanEnh.vol[2].dynBal.medium.T,tanEnh.vol[3].dynBal.medium.T,tanEnh.vol[4].dynBal.medium.T,tanEnh.vol[5].dynBal.medium.T,tanEnh.vol[6].dynBal.medium.T,tanEnh.vol[7].dynBal.medium.T,tanEnh.vol[8].dynBal.medium.T,tanEnh.vol[9].dynBal.medium.T,tanEnh.vol[10].dynBal.medium.T,tanEnh.hA_flow.h_out,tanEnh.hVol_flow[1].h_out,tanEnh.hVol_flow[2].h_out,tanEnh.hVol_flow[3].h_out,tanEnh.hVol_flow[4].h_out,tanEnh.hVol_flow[5].h_out,tanEnh.hVol_flow[6].h_out,tanEnh.hVol_flow[7].h_out,tanEnh.hVol_flow[8].h_out,tanEnh.hVol_flow[9].h_out,tanEnh.hB_flow.h_out,HOut_flow.h_out,HOut_flow1.h_out,dH.y) * Number of discrete variables: 10 ($whenCondition1,$whenCondition2,TWat.a,TWat.b,TWat.last,TWat.nextEvent,P.a,P.b,P.last,P.nextEvent) * Number of discrete states: 10 (P.last,P.nextEvent,P.b,P.a,$whenCondition2,TWat.last,TWat.nextEvent,TWat.b,TWat.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (595): * Single equations (assignments): 593 * 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 Backend phase and start with SimCode phase: time 0.004241/5.487, allocations: 0.9414 MB / 2.033 GB, free: 73.54 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.02677/5.514, allocations: 14.13 MB / 2.047 GB, free: 73.12 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.729e-05/5.514, allocations: 4.781 kB / 2.047 GB, free: 73.12 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.008454/5.522, allocations: 4.261 MB / 2.051 GB, free: 72.93 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02095/5.543, allocations: 3.042 MB / 2.054 GB, free: 72.88 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06594/5.609, allocations: 19.17 MB / 2.073 GB, free: 69.32 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01822/5.628, allocations: 6.556 MB / 2.079 GB, free: 67.38 MB / 0.5573 GB Notification: Performance of SimCode: time 2.194e-06/5.628, allocations: 0 / 2.079 GB, free: 67.38 MB / 0.5573 GB Notification: Performance of Templates: time 0.6851/6.313, allocations: 178.1 MB / 2.253 GB, free: 93.91 MB / 0.5573 GB make -j1 -f Buildings_1.6_Buildings.Fluid.Storage.Examples.Stratified.makefile (rm -f Buildings_1.6_Buildings.Fluid.Storage.Examples.Stratified.pipe ; mkfifo Buildings_1.6_Buildings.Fluid.Storage.Examples.Stratified.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Fluid.Storage.Examples.Stratified.pipe >> ../files/Buildings_1.6_Buildings.Fluid.Storage.Examples.Stratified.sim & ./Buildings_1.6_Buildings.Fluid.Storage.Examples.Stratified -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Fluid.Storage.Examples.Stratified.pipe 2>&1)