Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.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.TanksWithEmptyingPipe2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") [: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.001065/0.001065, allocations: 190.9 kB / 8.136 MB, free: 2.195 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.098/1.098, allocations: 194.2 MB / 202.8 MB, free: 8.664 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.001813/0.001813, allocations: 115.6 kB / 247.7 MB, free: 6.434 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 8.135e-06/8.155e-06, allocations: 0 / 297.6 MB, free: 8.039 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07704/0.07706, allocations: 44.49 MB / 342.1 MB, free: 11.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.527/0.6041, allocations: 321.5 MB / 0.648 GB, free: 3.488 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002636/0.6045, allocations: 93.84 kB / 0.6481 GB, free: 3.441 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.109/1.714, allocations: 321.3 MB / 0.9619 GB, free: 35.14 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001284/1.714, allocations: 44.25 kB / 0.9619 GB, free: 35.14 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: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.004868/1.719, allocations: 2.054 MB / 0.9639 GB, free: 34.33 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.166e-05/1.719, allocations: 8.312 kB / 0.9639 GB, free: 34.33 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006545/1.719, allocations: 204.9 kB / 0.9641 GB, free: 34.24 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002613/1.722, allocations: 1.255 MB / 0.9653 GB, free: 33.93 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.566e-05/1.722, allocations: 50.72 kB / 0.9654 GB, free: 33.93 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002084/1.722, allocations: 74.31 kB / 0.9655 GB, free: 33.93 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002649/1.725, allocations: 1.796 MB / 0.9672 GB, free: 33.92 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002367/1.727, allocations: 1.783 MB / 0.969 GB, free: 33.64 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.456e-05/1.727, allocations: 7.062 kB / 0.969 GB, free: 33.64 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001559/1.727, allocations: 7.75 kB / 0.969 GB, free: 33.64 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.801e-05/1.728, allocations: 126.2 kB / 0.9691 GB, free: 33.63 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009723/1.737, allocations: 7.361 MB / 0.9763 GB, free: 30.29 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001148/1.738, allocations: 0.8956 MB / 0.9771 GB, free: 30.27 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008681/1.739, allocations: 0.7147 MB / 0.9778 GB, free: 30.26 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004273/1.744, allocations: 3.281 MB / 0.9811 GB, free: 28.7 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.23e-05/1.744, allocations: 52.88 kB / 0.9811 GB, free: 28.66 MB / 394.7 MB Notification: Performance of pre-optimization done (n=119): time 3.516e-06/1.744, allocations: 2.062 kB / 0.9811 GB, free: 28.66 MB / 394.7 MB Notification: Performance of matching and sorting (n=134): time 0.01557/1.759, allocations: 4.809 MB / 0.9858 GB, free: 28.01 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.601e-05/1.759, allocations: 174.6 kB / 0.986 GB, free: 27.82 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001199/1.761, allocations: 0.9335 MB / 0.9869 GB, free: 27.66 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001247/1.761, allocations: 36.16 kB / 0.9869 GB, free: 27.62 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003052/1.761, allocations: 0.5551 MB / 0.9875 GB, free: 27.29 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003176/1.761, allocations: 443.1 kB / 0.9879 GB, free: 27 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.558e-05/1.761, allocations: 6.406 kB / 0.9879 GB, free: 27 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.647e-05/1.762, allocations: 381.1 kB / 0.9882 GB, free: 26.7 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009676/1.763, allocations: 0.7287 MB / 0.989 GB, free: 26.69 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001133/1.764, allocations: 1.176 MB / 0.9901 GB, free: 26.18 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01199/1.776, allocations: 2.697 MB / 0.9927 GB, free: 26.16 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.038e-05/1.776, allocations: 3.875 kB / 0.9927 GB, free: 26.16 MB / 394.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.01501/1.791, allocations: 4.111 MB / 0.9968 GB, free: 25.97 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008074/1.792, allocations: 5.141 MB / 1.002 GB, free: 20.63 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.936e-05/1.792, allocations: 17.69 kB / 1.002 GB, free: 20.63 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001328/1.793, allocations: 467.7 kB / 1.002 GB, free: 20.6 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001412/1.794, allocations: 359.1 kB / 1.003 GB, free: 20.6 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00472/1.799, allocations: 3.379 MB / 1.006 GB, free: 18.52 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001804/1.801, allocations: 103 kB / 1.006 GB, free: 18.5 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001883/1.801, allocations: 85.62 kB / 1.006 GB, free: 18.5 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.315e-06/1.801, allocations: 3.375 kB / 1.006 GB, free: 18.5 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01429/1.815, allocations: 3.73 MB / 1.01 GB, free: 18.43 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.187e-05/1.815, allocations: 12.41 kB / 1.01 GB, free: 18.43 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001146/1.817, allocations: 343.8 kB / 1.01 GB, free: 18.4 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001421/1.818, allocations: 366.5 kB / 1.01 GB, free: 18.4 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004093/1.822, allocations: 3.028 MB / 1.013 GB, free: 32.31 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001643/1.824, allocations: 98.61 kB / 1.013 GB, free: 32.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001793/1.824, allocations: 81.47 kB / 1.014 GB, free: 32.3 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.tank3.aboveLevel[1],tank3.aboveLevel[1],$PRE.tank3.aboveLevel[2],tank3.aboveLevel[2],$PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],$PRE.tank2.aboveLevel[3],tank2.aboveLevel[3],tank2.ports_m_flow_out[3],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1],tank3.ports_m_flow_out[2],tank3.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (207): * Single equations (assignments): 203 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 2,2 7,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0004846/1.824, allocations: 175.9 kB / 1.014 GB, free: 32.19 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003208/1.825, allocations: 153.9 kB / 1.014 GB, free: 32.11 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006287/1.831, allocations: 2.499 MB / 1.016 GB, free: 31.96 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-05/1.831, allocations: 20.31 kB / 1.016 GB, free: 31.96 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.07e-05/1.831, allocations: 3.812 kB / 1.016 GB, free: 31.96 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.56e-05/1.831, allocations: 7.406 kB / 1.016 GB, free: 31.96 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008099/1.839, allocations: 3.911 MB / 1.02 GB, free: 31.55 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.654e-06/1.839, allocations: 0 / 1.02 GB, free: 31.55 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001151/1.84, allocations: 241.5 kB / 1.02 GB, free: 31.55 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001426/1.842, allocations: 457.4 kB / 1.021 GB, free: 31.52 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001291/1.842, allocations: 22.8 kB / 1.021 GB, free: 31.52 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003793/1.846, allocations: 3.108 MB / 1.024 GB, free: 29.42 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/1.846, allocations: 0 / 1.024 GB, free: 29.42 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005971/1.852, allocations: 3.311 MB / 1.027 GB, free: 28.96 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005294/1.852, allocations: 242.2 kB / 1.027 GB, free: 28.79 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004391/1.853, allocations: 13.88 kB / 1.027 GB, free: 28.79 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001367/1.854, allocations: 81.89 kB / 1.027 GB, free: 28.78 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002563/1.855, allocations: 140.2 kB / 1.028 GB, free: 28.78 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001528/1.855, allocations: 56.98 kB / 1.028 GB, free: 28.78 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.001148/1.856, allocations: 0.6973 MB / 1.028 GB, free: 28.67 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004371/1.86, allocations: 1.261 MB / 1.03 GB, free: 28.46 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (tank3.medium.T,tank3.level,tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Number of discrete states: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 127 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,2 12,2 12,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.0032/1.863, allocations: 1.199 MB / 1.031 GB, free: 28.14 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005769/1.869, allocations: 2.964 MB / 1.034 GB, free: 28.09 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.093e-06/1.869, allocations: 1.344 kB / 1.034 GB, free: 28.09 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001981/1.871, allocations: 1.044 MB / 1.035 GB, free: 28.08 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003304/1.875, allocations: 0.5846 MB / 1.035 GB, free: 28.07 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006526/1.881, allocations: 2.831 MB / 1.038 GB, free: 27.5 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001544/1.883, allocations: 1.605 MB / 1.04 GB, free: 26.77 MB / 410.7 MB Notification: Performance of SimCode: time 1.272e-06/1.883, allocations: 0 / 1.04 GB, free: 26.77 MB / 410.7 MB Notification: Performance of Templates: time 0.07438/1.957, allocations: 50.99 MB / 1.089 GB, free: 12.46 MB / 410.7 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.makefile (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe 2>&1)