Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.conf.json 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) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_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.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.01117/0.01117, allocations: 164.4 kB / 15.11 MB, free: 6.039 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.652/1.652, allocations: 170.8 MB / 186.6 MB, free: 1.137 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001676/0.001676, allocations: 115.3 kB / 226.2 MB, free: 10.1 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000329/0.0003291, allocations: 8 kB / 274.1 MB, free: 10.08 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2465/0.2468, allocations: 38.77 MB / 312.9 MB, free: 38.7 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7237/0.9707, allocations: 314.4 MB / 0.6126 GB, free: 71.41 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003101/0.9711, allocations: 88.39 kB / 0.6127 GB, free: 71.37 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9957/1.967, allocations: 280 MB / 0.8861 GB, free: 47.07 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.414e-06/1.967, allocations: 0 / 0.8861 GB, free: 47.07 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001962/1.967, allocations: 47.39 kB / 0.8861 GB, free: 47.07 MB / 362.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.006747/1.974, allocations: 1.952 MB / 0.888 GB, free: 46.11 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.623e-05/1.974, allocations: 10.66 kB / 0.8881 GB, free: 46.11 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00107/1.975, allocations: 167.9 kB / 0.8882 GB, free: 46.04 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003145/1.978, allocations: 1.094 MB / 0.8893 GB, free: 45.69 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000105/1.978, allocations: 83.52 kB / 0.8894 GB, free: 45.69 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003873/1.979, allocations: 94.47 kB / 0.8895 GB, free: 45.69 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003009/1.982, allocations: 1.617 MB / 0.891 GB, free: 45.43 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.341e-05/1.982, allocations: 5.938 kB / 0.891 GB, free: 45.43 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001805/1.982, allocations: 46.19 kB / 0.8911 GB, free: 45.43 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001299/1.982, allocations: 102.6 kB / 0.8912 GB, free: 45.43 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002569/1.985, allocations: 1.606 MB / 0.8928 GB, free: 45.43 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00999/1.995, allocations: 6.531 MB / 0.8991 GB, free: 42.35 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001374/1.996, allocations: 0.9053 MB / 0.9 GB, free: 42.32 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003903/2, allocations: 2.735 MB / 0.9027 GB, free: 40.85 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.688e-05/2, allocations: 43.5 kB / 0.9027 GB, free: 40.81 MB / 362.7 MB Notification: Performance of pre-optimization done (n=80): time 3.597e-06/2, allocations: 0 / 0.9027 GB, free: 40.81 MB / 362.7 MB Notification: Performance of matching and sorting (n=90): time 0.008831/2.009, allocations: 3.635 MB / 0.9063 GB, free: 39.95 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.017e-05/2.009, allocations: 196 kB / 0.9065 GB, free: 39.73 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001796/2.011, allocations: 1.049 MB / 0.9075 GB, free: 39.57 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001179/2.011, allocations: 47.55 kB / 0.9075 GB, free: 39.54 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005577/2.011, allocations: 0.673 MB / 0.9082 GB, free: 39.23 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002715/2.012, allocations: 319.3 kB / 0.9085 GB, free: 39.04 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.993e-05/2.012, allocations: 28.25 kB / 0.9085 GB, free: 39.04 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001167/2.012, allocations: 365.1 kB / 0.9089 GB, free: 38.74 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008546/2.013, allocations: 0.543 MB / 0.9094 GB, free: 38.74 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001057/2.014, allocations: 1.028 MB / 0.9104 GB, free: 38.18 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000982/2.015, allocations: 0.6669 MB / 0.9111 GB, free: 38.16 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.163e-05/2.015, allocations: 6.875 kB / 0.9111 GB, free: 38.16 MB / 362.7 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.002981/2.018, allocations: 1.867 MB / 0.9129 GB, free: 37.81 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001416/2.019, allocations: 5.582 MB / 0.9183 GB, free: 31.89 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.941e-05/2.019, allocations: 17.73 kB / 0.9184 GB, free: 31.89 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003821/2.023, allocations: 0.6565 MB / 0.919 GB, free: 31.8 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001123/2.024, allocations: 301.7 kB / 0.9193 GB, free: 31.77 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001656/2.026, allocations: 2.141 MB / 0.9214 GB, free: 29.98 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001592/2.028, allocations: 106.2 kB / 0.9215 GB, free: 29.95 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001926/2.028, allocations: 72 kB / 0.9215 GB, free: 29.94 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.44e-05/2.028, allocations: 6.422 kB / 0.9215 GB, free: 29.94 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002708/2.031, allocations: 1.659 MB / 0.9232 GB, free: 29.3 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.517e-05/2.031, allocations: 15.28 kB / 0.9232 GB, free: 29.3 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0029/2.034, allocations: 0.5071 MB / 0.9237 GB, free: 29.22 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001004/2.035, allocations: 308 kB / 0.924 GB, free: 29.19 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001233/2.036, allocations: 1.984 MB / 0.9259 GB, free: 27.46 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001288/2.037, allocations: 106.9 kB / 0.926 GB, free: 27.43 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001554/2.037, allocations: 75.7 kB / 0.9261 GB, free: 27.42 MB / 362.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 () * Number of clocked 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.0008233/2.038, allocations: 474.2 kB / 0.9265 GB, free: 27.08 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002904/2.038, allocations: 136.8 kB / 0.9267 GB, free: 27.01 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002815/2.041, allocations: 1.511 MB / 0.9281 GB, free: 26.41 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.027e-06/2.041, allocations: 10.88 kB / 0.9282 GB, free: 26.41 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.427e-06/2.041, allocations: 3.125 kB / 0.9282 GB, free: 26.41 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.076e-05/2.041, allocations: 3.891 kB / 0.9282 GB, free: 26.41 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004231/2.045, allocations: 2.752 MB / 0.9308 GB, free: 25.19 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/2.046, allocations: 3.719 kB / 0.9308 GB, free: 25.19 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006494/2.046, allocations: 156.2 kB / 0.931 GB, free: 25.18 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002618/2.049, allocations: 0.6134 MB / 0.9316 GB, free: 25.08 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.53e-05/2.049, allocations: 27.42 kB / 0.9316 GB, free: 25.06 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001301/2.05, allocations: 2.111 MB / 0.9337 GB, free: 23.28 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/2.05, allocations: 0 / 0.9337 GB, free: 23.28 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002752/2.053, allocations: 2.124 MB / 0.9358 GB, free: 22.27 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000544/2.054, allocations: 233.5 kB / 0.936 GB, free: 22.08 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003072/2.054, allocations: 26.27 kB / 0.936 GB, free: 22.06 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009197/2.055, allocations: 73.11 kB / 0.9361 GB, free: 22.05 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001724/2.055, allocations: 104 kB / 0.9362 GB, free: 22.03 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.628e-05/2.055, allocations: 38.08 kB / 0.9362 GB, free: 22.02 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001231/2.056, allocations: 0.8025 MB / 0.937 GB, free: 21.7 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.51e-07/2.056, allocations: 0 / 0.937 GB, free: 21.7 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.004059/2.06, allocations: 1.184 MB / 0.9382 GB, free: 21.41 MB / 362.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]) * Number of clocked states: 0 () * 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.003304/2.064, allocations: 1.102 MB / 0.9392 GB, free: 21.04 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.004246/2.068, allocations: 2.218 MB / 0.9414 GB, free: 20.11 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/2.068, allocations: 0 / 0.9414 GB, free: 20.11 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001373/2.069, allocations: 0.693 MB / 0.9421 GB, free: 19.53 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002503/2.072, allocations: 0.5066 MB / 0.9426 GB, free: 19.16 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005286/2.077, allocations: 3.235 MB / 0.9457 GB, free: 16.28 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008876/2.078, allocations: 1.279 MB / 0.947 GB, free: 15.18 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.002408/2.081, allocations: 0.5531 MB / 0.9475 GB, free: 14.81 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004035/2.081, allocations: 111.1 kB / 0.9476 GB, free: 14.71 MB / 362.7 MB Notification: Performance of SimCode: time 1.112e-06/2.081, allocations: 0 / 0.9476 GB, free: 14.71 MB / 362.7 MB Notification: Performance of Templates: time 0.2745/2.355, allocations: 35 MB / 0.9818 GB, free: 41.98 MB / 362.7 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.makefile (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe 2>&1)