Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") [: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 3.2.2+maint.om/package.mo): time 0.001662/0.001663, allocations: 188.8 kB / 8.134 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.183/1.183, allocations: 194.2 MB / 202.8 MB, free: 8.77 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001741/0.001741, allocations: 117.4 kB / 247.7 MB, free: 6.25 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 6.061e-06/6.071e-06, allocations: 0 / 297.6 MB, free: 8.012 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07758/0.07761, allocations: 44.49 MB / 342.1 MB, free: 11.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5173/0.5949, allocations: 318.9 MB / 0.6455 GB, free: 8.332 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002334/0.5952, allocations: 91.62 kB / 0.6456 GB, free: 8.285 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.8924/1.488, allocations: 278.7 MB / 0.9177 GB, free: 42.34 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001488/1.488, allocations: 47.81 kB / 0.9177 GB, free: 42.3 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.005087/1.493, allocations: 1.786 MB / 0.9195 GB, free: 40.49 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.5e-05/1.493, allocations: 8.031 kB / 0.9195 GB, free: 40.48 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009396/1.494, allocations: 167.1 kB / 0.9197 GB, free: 40.32 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002767/1.497, allocations: 1.094 MB / 0.9207 GB, free: 39.21 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.533e-05/1.497, allocations: 39.98 kB / 0.9208 GB, free: 39.17 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003417/1.497, allocations: 59.09 kB / 0.9208 GB, free: 39.11 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002813/1.5, allocations: 1.468 MB / 0.9223 GB, free: 37.64 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002803/1.503, allocations: 1.495 MB / 0.9237 GB, free: 36.07 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.751e-05/1.503, allocations: 7.844 kB / 0.9237 GB, free: 36.06 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002655/1.503, allocations: 4 kB / 0.9237 GB, free: 36.05 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001292/1.503, allocations: 109.9 kB / 0.9238 GB, free: 35.95 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01067/1.514, allocations: 6.326 MB / 0.93 GB, free: 29.36 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009001/1.515, allocations: 0.6489 MB / 0.9306 GB, free: 28.71 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006636/1.516, allocations: 0.5212 MB / 0.9312 GB, free: 28.19 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003574/1.519, allocations: 2.73 MB / 0.9338 GB, free: 25.23 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.856e-05/1.519, allocations: 46.38 kB / 0.9339 GB, free: 25.18 MB / 394.7 MB Notification: Performance of pre-optimization done (n=80): time 3.206e-06/1.519, allocations: 0 / 0.9339 GB, free: 25.18 MB / 394.7 MB Notification: Performance of matching and sorting (n=90): time 0.01082/1.53, allocations: 3.213 MB / 0.937 GB, free: 21.93 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.507e-05/1.53, allocations: 196.6 kB / 0.9372 GB, free: 21.69 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001396/1.532, allocations: 0.8565 MB / 0.938 GB, free: 20.82 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001934/1.532, allocations: 33.69 kB / 0.9381 GB, free: 20.79 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003759/1.532, allocations: 0.5284 MB / 0.9386 GB, free: 20.25 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003637/1.533, allocations: 307.6 kB / 0.9389 GB, free: 19.95 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001096/1.533, allocations: 0 / 0.9389 GB, free: 19.95 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.239e-05/1.533, allocations: 369.1 kB / 0.9392 GB, free: 19.58 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000906/1.534, allocations: 0.5311 MB / 0.9397 GB, free: 19.05 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009797/1.535, allocations: 0.9928 MB / 0.9407 GB, free: 17.87 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01078/1.545, allocations: 2.324 MB / 0.943 GB, free: 15.59 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.491e-05/1.545, allocations: 7.938 kB / 0.943 GB, free: 15.58 MB / 394.7 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.01393/1.559, allocations: 3.389 MB / 0.9463 GB, free: 12.17 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009097/1.56, allocations: 5.567 MB / 0.9517 GB, free: 6.168 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.425e-05/1.56, allocations: 16.88 kB / 0.9517 GB, free: 6.152 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001111/1.562, allocations: 334.2 kB / 0.9521 GB, free: 5.816 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001245/1.563, allocations: 291.5 kB / 0.9523 GB, free: 5.531 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003666/1.567, allocations: 2.512 MB / 0.9548 GB, free: 2.941 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001846/1.568, allocations: 75.94 kB / 0.9549 GB, free: 2.867 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003431/1.569, allocations: 73.36 kB / 0.9549 GB, free: 2.797 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.013e-05/1.569, allocations: 4 kB / 0.9549 GB, free: 2.793 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.1437/1.713, allocations: 3.098 MB / 0.958 GB, free: 80.47 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.287e-05/1.713, allocations: 16.22 kB / 0.958 GB, free: 80.47 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001026/1.714, allocations: 268 kB / 0.9582 GB, free: 80.45 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001341/1.715, allocations: 300.1 kB / 0.9585 GB, free: 80.45 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002777/1.718, allocations: 2.258 MB / 0.9607 GB, free: 78.9 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001488/1.719, allocations: 78.12 kB / 0.9608 GB, free: 78.9 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002692/1.72, allocations: 71.19 kB / 0.9609 GB, free: 78.9 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 64 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[2],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (171): * Single equations (assignments): 168 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0004343/1.72, allocations: 158.9 kB / 0.961 GB, free: 78.79 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003076/1.72, allocations: 127.6 kB / 0.9611 GB, free: 78.79 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00434/1.725, allocations: 1.598 MB / 0.9627 GB, free: 78.7 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.061e-05/1.725, allocations: 11.41 kB / 0.9627 GB, free: 78.7 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/1.725, allocations: 0.9375 kB / 0.9627 GB, free: 78.7 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.838e-06/1.725, allocations: 3.938 kB / 0.9627 GB, free: 78.7 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005307/1.73, allocations: 2.713 MB / 0.9654 GB, free: 78.36 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/1.73, allocations: 0 / 0.9654 GB, free: 78.36 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007475/1.731, allocations: 150 kB / 0.9655 GB, free: 78.36 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001063/1.732, allocations: 328.3 kB / 0.9658 GB, free: 78.34 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.491e-05/1.732, allocations: 14.52 kB / 0.9658 GB, free: 78.34 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002486/1.734, allocations: 2.3 MB / 0.9681 GB, free: 76.79 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.359e-06/1.735, allocations: 5.438 kB / 0.9681 GB, free: 76.79 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003869/1.738, allocations: 2.194 MB / 0.9702 GB, free: 76.51 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004373/1.739, allocations: 221.4 kB / 0.9704 GB, free: 76.38 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003538/1.739, allocations: 10.58 kB / 0.9705 GB, free: 76.38 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009822/1.74, allocations: 62.98 kB / 0.9705 GB, free: 76.38 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001887/1.74, allocations: 84.77 kB / 0.9706 GB, free: 76.38 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001115/1.741, allocations: 42.45 kB / 0.9706 GB, free: 76.38 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0009734/1.741, allocations: 0.6361 MB / 0.9713 GB, free: 76.27 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004102/1.746, allocations: 1.104 MB / 0.9723 GB, free: 76.27 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of discrete states: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 12,1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.003118/1.749, allocations: 1.082 MB / 0.9734 GB, free: 76.17 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003688/1.752, allocations: 2.146 MB / 0.9755 GB, free: 76.14 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.931e-06/1.752, allocations: 5.938 kB / 0.9755 GB, free: 76.14 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001184/1.754, allocations: 0.6603 MB / 0.9761 GB, free: 76.14 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00273/1.756, allocations: 457.6 kB / 0.9766 GB, free: 76.13 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004914/1.761, allocations: 2.194 MB / 0.9787 GB, free: 75.66 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001177/1.763, allocations: 1.409 MB / 0.9801 GB, free: 74.93 MB / 394.7 MB Notification: Performance of SimCode: time 7.31e-07/1.763, allocations: 0 / 0.9801 GB, free: 74.93 MB / 394.7 MB Notification: Performance of Templates: time 0.05742/1.82, allocations: 39.7 MB / 1.019 GB, free: 73.05 MB / 394.7 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.makefile (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe 2>&1)