Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.Storage.Examples.Stratified.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(IBPSA.Fluid.Storage.Examples.Stratified,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.Storage.Examples.Stratified") translateModel(IBPSA.Fluid.Storage.Examples.Stratified,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.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/Complex 4.0.0+maint.om/package.mo): time 0.0009867/0.0009866, allocations: 191.6 kB / 7.806 MB, free: 2.492 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4384/0.4384, allocations: 90.85 MB / 99.07 MB, free: 14.94 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.176/1.176, allocations: 221.4 MB / 342.8 MB, free: 5.191 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009523/0.0009524, allocations: 98.42 kB / 415.5 MB, free: 6.43 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 8.065e-06/8.105e-06, allocations: 4 kB / 493.9 MB, free: 8.074 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3048/0.3048, allocations: 72.29 MB / 0.5529 GB, free: 73.34 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5694/0.8743, allocations: 374.9 MB / 0.919 GB, free: 64 kB / 0.573 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002108/0.8745, allocations: 86.14 kB / 0.919 GB, free: 20 kB / 0.573 GB Notification: Performance of FrontEnd: time 9.26/10.13, allocations: 3.014 GB / 3.933 GB, free: 46.04 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 0.001899/10.14, allocations: 264.8 kB / 3.933 GB, free: 46 MB / 0.6355 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.02632/10.16, allocations: 8.221 MB / 3.942 GB, free: 42.91 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.899e-05/10.16, allocations: 9.906 kB / 3.942 GB, free: 42.91 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007472/10.17, allocations: 1.181 MB / 3.943 GB, free: 42.36 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02812/10.2, allocations: 11.2 MB / 3.954 GB, free: 41.24 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009172/10.2, allocations: 269.3 kB / 3.954 GB, free: 41.24 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003663/10.2, allocations: 488.9 kB / 3.954 GB, free: 41.24 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02293/10.23, allocations: 9.171 MB / 3.963 GB, free: 41.2 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03141/10.26, allocations: 10.55 MB / 3.974 GB, free: 40.03 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006178/10.26, allocations: 31.78 kB / 3.974 GB, free: 40.02 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003358/10.26, allocations: 14.56 kB / 3.974 GB, free: 40.02 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002693/10.26, allocations: 255.6 kB / 3.974 GB, free: 40.02 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07409/10.34, allocations: 46.2 MB / 4.019 GB, free: 27.89 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009422/10.35, allocations: 5.761 MB / 4.025 GB, free: 25.23 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007017/10.35, allocations: 4.785 MB / 4.029 GB, free: 20.93 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001286/10.35, allocations: 0.8278 MB / 4.03 GB, free: 20.02 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005903/10.36, allocations: 3.272 MB / 4.033 GB, free: 17.36 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=449): time 8.637e-06/10.36, allocations: 0 / 4.033 GB, free: 17.36 MB / 0.6511 GB Notification: Performance of matching and sorting (n=449): time 0.01338/10.37, allocations: 6.353 MB / 4.04 GB, free: 11.9 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001113/10.37, allocations: 165.4 kB / 4.04 GB, free: 11.72 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01561/10.39, allocations: 6.07 MB / 4.046 GB, free: 6.469 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 0.001875/10.39, allocations: 33.7 kB / 4.046 GB, free: 6.43 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.006885/10.4, allocations: 3.221 MB / 4.049 GB, free: 3.621 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.004529/10.4, allocations: 1.507 MB / 4.05 GB, free: 2.23 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001173/10.4, allocations: 0 / 4.05 GB, free: 2.23 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0006379/10.4, allocations: 0.5378 MB / 4.051 GB, free: 1.754 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00884/10.41, allocations: 3.232 MB / 4.054 GB, free: 0 / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2753/10.69, allocations: 4.753 MB / 4.059 GB, free: 107.3 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007227/10.7, allocations: 4.292 MB / 4.063 GB, free: 107.2 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.539e-05/10.7, allocations: 16.78 kB / 4.063 GB, free: 107.2 MB / 0.6511 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.01618/10.71, allocations: 8.492 MB / 4.071 GB, free: 107.1 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.004914/10.72, allocations: 28.02 MB / 4.098 GB, free: 78.21 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001622/10.72, allocations: 58.09 kB / 4.098 GB, free: 78.21 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001445/10.72, allocations: 98.12 kB / 4.099 GB, free: 78.21 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006744/10.72, allocations: 1.424 MB / 4.1 GB, free: 78.21 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001186/10.72, allocations: 125.8 kB / 4.1 GB, free: 78.21 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008555/10.73, allocations: 0.7833 MB / 4.101 GB, free: 78.21 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001528/10.73, allocations: 283.7 kB / 4.101 GB, free: 78.21 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.36e-05/10.73, allocations: 2.781 kB / 4.101 GB, free: 78.21 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01314/10.75, allocations: 7.811 MB / 4.109 GB, free: 78.12 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001419/10.75, allocations: 60.06 kB / 4.109 GB, free: 78.12 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.955e-05/10.75, allocations: 97.66 kB / 4.109 GB, free: 78.12 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005732/10.75, allocations: 1.419 MB / 4.11 GB, free: 78.12 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001085/10.75, allocations: 128.6 kB / 4.11 GB, free: 78.12 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007134/10.76, allocations: 0.6744 MB / 4.111 GB, free: 78.12 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008883/10.76, allocations: 280 kB / 4.111 GB, free: 78.12 MB / 0.6511 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.001652/10.76, allocations: 360.1 kB / 4.112 GB, free: 77.96 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002037/10.77, allocations: 0.6416 MB / 4.112 GB, free: 77.75 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01134/10.78, allocations: 7.074 MB / 4.119 GB, free: 77.55 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.706e-05/10.78, allocations: 46.52 kB / 4.119 GB, free: 77.55 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.473e-05/10.78, allocations: 3.906 kB / 4.119 GB, free: 77.54 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008016/10.79, allocations: 5.869 MB / 4.125 GB, free: 77.39 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0336/10.82, allocations: 15.86 MB / 4.14 GB, free: 76.46 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.3e-05/10.82, allocations: 5.047 kB / 4.141 GB, free: 76.46 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004215/10.82, allocations: 0.882 MB / 4.141 GB, free: 76.46 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.111e-05/10.82, allocations: 16.12 kB / 4.141 GB, free: 76.46 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004247/10.82, allocations: 68.89 kB / 4.141 GB, free: 76.46 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.52e-05/10.82, allocations: 14.06 kB / 4.141 GB, free: 76.46 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.402e-06/10.82, allocations: 9.344 kB / 4.141 GB, free: 76.46 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01457/10.84, allocations: 10.91 MB / 4.152 GB, free: 75.66 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005909/10.84, allocations: 1.766 MB / 4.154 GB, free: 75.23 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002443/10.85, allocations: 26.77 kB / 4.154 GB, free: 75.23 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007114/10.85, allocations: 453.1 kB / 4.154 GB, free: 75.21 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000696/10.85, allocations: 220.9 kB / 4.155 GB, free: 75.21 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006708/10.86, allocations: 206.4 kB / 4.155 GB, free: 75.21 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.008297/10.86, allocations: 4.641 MB / 4.159 GB, free: 74.99 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.01945/10.88, allocations: 4.77 MB / 4.164 GB, free: 74.56 MB / 0.6511 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.002956/10.89, allocations: 0.8611 MB / 4.165 GB, free: 74.43 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.01865/10.9, allocations: 11.17 MB / 4.176 GB, free: 74.14 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.289e-05/10.9, allocations: 4.469 kB / 4.176 GB, free: 74.14 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.005049/10.91, allocations: 3.143 MB / 4.179 GB, free: 73.99 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01825/10.93, allocations: 3.312 MB / 4.182 GB, free: 73.95 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0444/10.97, allocations: 16.85 MB / 4.198 GB, free: 71.29 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01244/10.98, allocations: 6.97 MB / 4.205 GB, free: 70.39 MB / 0.6511 GB Notification: Performance of SimCode: time 9.12e-07/10.98, allocations: 1.656 kB / 4.205 GB, free: 70.39 MB / 0.6511 GB Notification: Performance of Templates: time 0.5558/11.54, allocations: 167 MB / 4.368 GB, free: 90.57 MB / 0.6511 GB make -j1 -f IBPSA_latest_IBPSA.Fluid.Storage.Examples.Stratified.makefile (rm -f IBPSA_latest_IBPSA.Fluid.Storage.Examples.Stratified.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Storage.Examples.Stratified.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Storage.Examples.Stratified.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Storage.Examples.Stratified.sim & ./IBPSA_latest_IBPSA.Fluid.Storage.Examples.Stratified -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Fluid.Storage.Examples.Stratified.pipe 2>&1)