Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.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/IDEAS 3.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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.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(IDEAS.Fluid.Storage.Examples.Stratified,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.Storage.Examples.Stratified") translateModel(IDEAS.Fluid.Storage.Examples.Stratified,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.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.001751/0.001751, allocations: 173.7 kB / 7.458 MB, free: 2.488 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.6089/0.6089, allocations: 133.5 MB / 141.4 MB, free: 15.66 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.135/1.135, allocations: 221.3 MB / 395 MB, free: 10.22 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008245/0.0008245, allocations: 106.4 kB / 477.8 MB, free: 10.84 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 6.552e-06/6.582e-06, allocations: 2.969 kB / 0.5528 GB, free: 89.09 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.113, allocations: 82.3 MB / 0.6332 GB, free: 14.11 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7048/0.8178, allocations: 384.5 MB / 1.009 GB, free: 249.9 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002254/0.8181, allocations: 90.14 kB / 1.009 GB, free: 249.9 MB / 0.6823 GB Notification: Performance of FrontEnd: time 7.783/8.601, allocations: 2.976 GB / 3.985 GB, free: 73.15 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 0.001065/8.602, allocations: 269.8 kB / 3.985 GB, free: 73.11 MB / 0.7136 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.01994/8.622, allocations: 8.23 MB / 3.993 GB, free: 70.16 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.552e-05/8.622, allocations: 9.281 kB / 3.993 GB, free: 70.16 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005791/8.628, allocations: 1.176 MB / 3.994 GB, free: 69.61 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02279/8.651, allocations: 11.19 MB / 4.005 GB, free: 68.51 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004353/8.651, allocations: 268.4 kB / 4.006 GB, free: 68.51 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002747/8.654, allocations: 491 kB / 4.006 GB, free: 68.5 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01776/8.672, allocations: 9.176 MB / 4.015 GB, free: 68.46 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0235/8.695, allocations: 10.55 MB / 4.025 GB, free: 67.29 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003923/8.696, allocations: 22.75 kB / 4.025 GB, free: 67.29 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002297/8.698, allocations: 23.47 kB / 4.025 GB, free: 67.29 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002067/8.698, allocations: 250.8 kB / 4.026 GB, free: 67.29 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05975/8.758, allocations: 46.2 MB / 4.071 GB, free: 47.53 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007588/8.765, allocations: 5.759 MB / 4.076 GB, free: 47.47 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005207/8.771, allocations: 4.781 MB / 4.081 GB, free: 47.38 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009574/8.772, allocations: 0.8255 MB / 4.082 GB, free: 46.63 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003819/8.775, allocations: 3.278 MB / 4.085 GB, free: 46.46 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=449): time 5.35e-06/8.775, allocations: 0 / 4.085 GB, free: 46.46 MB / 0.7136 GB Notification: Performance of matching and sorting (n=449): time 0.009238/8.785, allocations: 6.361 MB / 4.091 GB, free: 46.02 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.465e-05/8.785, allocations: 150.1 kB / 4.091 GB, free: 45.89 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007678/8.792, allocations: 6.079 MB / 4.097 GB, free: 45.47 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 0.000626/8.793, allocations: 33.3 kB / 4.097 GB, free: 45.44 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.003429/8.797, allocations: 3.22 MB / 4.1 GB, free: 43.64 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.002907/8.799, allocations: 1.495 MB / 4.102 GB, free: 42.67 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000349/8.8, allocations: 0 / 4.102 GB, free: 42.67 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0002423/8.8, allocations: 0.5484 MB / 4.102 GB, free: 42.35 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003408/8.803, allocations: 2.92 MB / 4.105 GB, free: 42.34 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003917/8.807, allocations: 4.75 MB / 4.11 GB, free: 40.15 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005777/8.813, allocations: 4.29 MB / 4.114 GB, free: 40.11 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.724e-05/8.813, allocations: 18.53 kB / 4.114 GB, free: 40.11 MB / 0.7136 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.01213/8.825, allocations: 8.486 MB / 4.122 GB, free: 39.67 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 0.005905/8.831, allocations: 28.02 MB / 4.15 GB, free: 26.59 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.225e-05/8.831, allocations: 60.38 kB / 4.15 GB, free: 26.59 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001122/8.832, allocations: 97.22 kB / 4.15 GB, free: 26.59 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005264/8.837, allocations: 1.418 MB / 4.151 GB, free: 26.59 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001114/8.837, allocations: 129.9 kB / 4.151 GB, free: 26.59 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006947/8.844, allocations: 0.7889 MB / 4.152 GB, free: 26.27 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00062/8.844, allocations: 280 kB / 4.152 GB, free: 26.27 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 9.207e-06/8.845, allocations: 3.812 kB / 4.152 GB, free: 26.27 MB / 0.7292 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01214/8.857, allocations: 7.811 MB / 4.16 GB, free: 24.93 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001764/8.857, allocations: 59.91 kB / 4.16 GB, free: 24.93 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001506/8.857, allocations: 102.4 kB / 4.16 GB, free: 24.93 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00566/8.863, allocations: 1.42 MB / 4.162 GB, free: 24.79 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001584/8.863, allocations: 126.4 kB / 4.162 GB, free: 24.76 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008702/8.872, allocations: 0.6765 MB / 4.162 GB, free: 24.52 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008731/8.872, allocations: 279.8 kB / 4.163 GB, free: 24.47 MB / 0.7292 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.001815/8.874, allocations: 352.8 kB / 4.163 GB, free: 24.15 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002303/8.877, allocations: 0.6444 MB / 4.164 GB, free: 23.82 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01132/8.888, allocations: 7.078 MB / 4.171 GB, free: 21.54 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.012e-05/8.888, allocations: 43.95 kB / 4.171 GB, free: 21.54 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.696e-05/8.888, allocations: 0.8438 kB / 4.171 GB, free: 21.54 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009603/8.898, allocations: 5.866 MB / 4.176 GB, free: 19.7 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03254/8.93, allocations: 15.88 MB / 4.192 GB, free: 10.3 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.375e-05/8.93, allocations: 3.938 kB / 4.192 GB, free: 10.3 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004163/8.934, allocations: 0.8866 MB / 4.193 GB, free: 9.562 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.249e-05/8.935, allocations: 16 kB / 4.193 GB, free: 9.547 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00051/8.935, allocations: 62.3 kB / 4.193 GB, free: 9.5 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-05/8.935, allocations: 16 kB / 4.193 GB, free: 9.484 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.788e-06/8.935, allocations: 0 / 4.193 GB, free: 9.484 MB / 0.7292 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01513/8.95, allocations: 10.93 MB / 4.203 GB, free: 16 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005209/8.955, allocations: 1.764 MB / 4.205 GB, free: 14.45 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002237/8.958, allocations: 27.75 kB / 4.205 GB, free: 14.43 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00623/8.964, allocations: 447.8 kB / 4.206 GB, free: 14.15 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004858/8.964, allocations: 226.8 kB / 4.206 GB, free: 14.02 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000655/8.965, allocations: 200.9 kB / 4.206 GB, free: 13.86 MB / 0.7448 GB Notification: Performance of sort global known variables: time 0.008518/8.974, allocations: 4.644 MB / 4.211 GB, free: 9.867 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.01727/8.991, allocations: 4.778 MB / 4.215 GB, free: 5.09 MB / 0.7448 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.002442/8.993, allocations: 0.852 MB / 4.216 GB, free: 4.453 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.3015/9.295, allocations: 11.45 MB / 4.227 GB, free: 151.3 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.877e-05/9.295, allocations: 12.66 kB / 4.227 GB, free: 151.3 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.003651/9.299, allocations: 3.133 MB / 4.23 GB, free: 151.2 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01554/9.314, allocations: 3.312 MB / 4.234 GB, free: 151.2 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0288/9.343, allocations: 16.86 MB / 4.25 GB, free: 148.6 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007699/9.351, allocations: 6.963 MB / 4.257 GB, free: 147.7 MB / 0.7448 GB Notification: Performance of SimCode: time 9.12e-07/9.351, allocations: 0 / 4.257 GB, free: 147.7 MB / 0.7448 GB Notification: Performance of Templates: time 0.227/9.578, allocations: 167.1 MB / 4.42 GB, free: 119.4 MB / 0.7448 GB make -j1 -f IDEAS_dev_IDEAS.Fluid.Storage.Examples.Stratified.makefile (rm -f IDEAS_dev_IDEAS.Fluid.Storage.Examples.Stratified.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Storage.Examples.Stratified.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Storage.Examples.Stratified.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Storage.Examples.Stratified.sim & ./IDEAS_dev_IDEAS.Fluid.Storage.Examples.Stratified -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Fluid.Storage.Examples.Stratified.pipe 2>&1)