Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.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.TankWithEmptyingPipe2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.00102/0.00102, allocations: 182.8 kB / 13.64 MB, free: 1.676 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.321/1.321, allocations: 194.3 MB / 208.4 MB, free: 6.727 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.001659/0.001659, allocations: 120.6 kB / 253.5 MB, free: 9.59 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.712e-05/2.715e-05, allocations: 4 kB / 304.9 MB, free: 29.77 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0783/0.07834, allocations: 44.49 MB / 349.4 MB, free: 1.262 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6752/0.7536, allocations: 319.3 MB / 0.6531 GB, free: 53.71 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002989/0.754, allocations: 89.56 kB / 0.6532 GB, free: 53.66 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.565/1.319, allocations: 190.2 MB / 0.8389 GB, free: 37.04 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.415e-06/1.319, allocations: 8 kB / 0.8389 GB, free: 37.03 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.979e-05/1.319, allocations: 20 kB / 0.8389 GB, free: 37.01 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.003225/1.322, allocations: 1.294 MB / 0.8402 GB, free: 35.66 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.449e-05/1.322, allocations: 12.03 kB / 0.8402 GB, free: 35.65 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003885/1.323, allocations: 110.8 kB / 0.8403 GB, free: 35.54 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00144/1.324, allocations: 0.7762 MB / 0.8411 GB, free: 34.72 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.455e-05/1.324, allocations: 49.3 kB / 0.8411 GB, free: 34.68 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001026/1.324, allocations: 63.98 kB / 0.8412 GB, free: 34.61 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001452/1.326, allocations: 1.038 MB / 0.8422 GB, free: 33.52 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.235e-05/1.326, allocations: 3.953 kB / 0.8422 GB, free: 33.51 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.566e-05/1.326, allocations: 27.98 kB / 0.8422 GB, free: 33.48 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.344e-05/1.326, allocations: 61.28 kB / 0.8423 GB, free: 33.42 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001262/1.327, allocations: 0.9967 MB / 0.8433 GB, free: 32.43 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00536/1.333, allocations: 4.4 MB / 0.8476 GB, free: 27.76 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007658/1.334, allocations: 0.5247 MB / 0.8481 GB, free: 27.23 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003459/1.334, allocations: 294 kB / 0.8483 GB, free: 26.94 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00197/1.336, allocations: 2.012 MB / 0.8503 GB, free: 24.71 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.869e-05/1.336, allocations: 42.89 kB / 0.8503 GB, free: 24.66 MB / 410.7 MB Notification: Performance of pre-optimization done (n=40): time 1.924e-06/1.336, allocations: 0 / 0.8503 GB, free: 24.66 MB / 410.7 MB Notification: Performance of matching and sorting (n=45): time 0.002637/1.339, allocations: 1.439 MB / 0.8518 GB, free: 23.16 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.319e-05/1.339, allocations: 162.2 kB / 0.8519 GB, free: 22.96 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007875/1.339, allocations: 0.7308 MB / 0.8526 GB, free: 22.23 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.641e-05/1.339, allocations: 37.7 kB / 0.8527 GB, free: 22.18 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002666/1.34, allocations: 0.4905 MB / 0.8531 GB, free: 21.69 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00011/1.34, allocations: 165.8 kB / 0.8533 GB, free: 21.52 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.173e-05/1.34, allocations: 20 kB / 0.8533 GB, free: 21.5 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001138/1.34, allocations: 402.7 kB / 0.8537 GB, free: 21.1 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004025/1.34, allocations: 289.9 kB / 0.854 GB, free: 20.82 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005651/1.341, allocations: 0.6561 MB / 0.8546 GB, free: 19.99 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004877/1.342, allocations: 399 kB / 0.855 GB, free: 19.6 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.562e-06/1.342, allocations: 4 kB / 0.855 GB, free: 19.6 MB / 410.7 MB Notification: Performance of matching and sorting (n=115) (initialization): time 0.001508/1.343, allocations: 1.09 MB / 0.8561 GB, free: 18.49 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007601/1.344, allocations: 4.434 MB / 0.8604 GB, free: 13.71 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.482e-05/1.344, allocations: 12 kB / 0.8604 GB, free: 13.7 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001888/1.346, allocations: 313.4 kB / 0.8607 GB, free: 13.39 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000626/1.346, allocations: 195.7 kB / 0.8609 GB, free: 13.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000822/1.347, allocations: 1.327 MB / 0.8622 GB, free: 11.82 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008416/1.348, allocations: 56.09 kB / 0.8622 GB, free: 11.76 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.447e-05/1.348, allocations: 51.98 kB / 0.8623 GB, free: 11.71 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.044e-05/1.348, allocations: 4 kB / 0.8623 GB, free: 11.71 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001308/1.349, allocations: 0.9637 MB / 0.8632 GB, free: 10.73 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.062e-05/1.35, allocations: 12 kB / 0.8632 GB, free: 10.72 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001537/1.351, allocations: 293.9 kB / 0.8635 GB, free: 10.43 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000572/1.352, allocations: 187.7 kB / 0.8637 GB, free: 10.25 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006795/1.352, allocations: 1.288 MB / 0.865 GB, free: 8.906 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00076/1.353, allocations: 72.02 kB / 0.865 GB, free: 8.836 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.074e-05/1.353, allocations: 44 kB / 0.8651 GB, free: 8.793 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],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 (109): * Single equations (assignments): 107 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0002036/1.353, allocations: 168.6 kB / 0.8652 GB, free: 8.621 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001193/1.354, allocations: 82.97 kB / 0.8653 GB, free: 8.539 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001483/1.355, allocations: 0.7674 MB / 0.8661 GB, free: 7.754 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.362e-06/1.355, allocations: 4 kB / 0.8661 GB, free: 7.75 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/1.355, allocations: 3.938 kB / 0.8661 GB, free: 7.746 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.171e-06/1.355, allocations: 7.984 kB / 0.8661 GB, free: 7.738 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00217/1.357, allocations: 1.54 MB / 0.8676 GB, free: 6.133 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.968e-06/1.357, allocations: 4.062 kB / 0.8676 GB, free: 6.129 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003426/1.358, allocations: 75.91 kB / 0.8677 GB, free: 6.055 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001314/1.359, allocations: 277.4 kB / 0.8679 GB, free: 5.777 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.817e-05/1.359, allocations: 12 kB / 0.8679 GB, free: 5.766 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007155/1.36, allocations: 1.304 MB / 0.8692 GB, free: 4.41 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/1.36, allocations: 4.125 kB / 0.8692 GB, free: 4.406 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001298/1.361, allocations: 1.083 MB / 0.8703 GB, free: 3.285 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002535/1.361, allocations: 171.9 kB / 0.8704 GB, free: 3.098 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001115/1.361, allocations: 16.06 kB / 0.8704 GB, free: 3.082 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004638/1.362, allocations: 47.86 kB / 0.8705 GB, free: 3.035 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001026/1.362, allocations: 40.38 kB / 0.8705 GB, free: 2.996 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.399e-05/1.362, allocations: 23.98 kB / 0.8706 GB, free: 2.973 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0006426/1.363, allocations: 0.5577 MB / 0.8711 GB, free: 2.422 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.3e-07/1.363, allocations: 3.938 kB / 0.8711 GB, free: 2.418 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002414/1.365, allocations: 0.8039 MB / 0.8719 GB, free: 1.613 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (tank1.medium.T,tank1.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of discrete states: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.001647/1.367, allocations: 0.7973 MB / 0.8727 GB, free: 0.8086 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.2173/1.584, allocations: 1.249 MB / 0.8739 GB, free: 76.02 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.178e-05/1.584, allocations: 2.219 kB / 0.8739 GB, free: 76.02 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009598/1.585, allocations: 347.3 kB / 0.8742 GB, free: 76.02 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001645/1.587, allocations: 309.9 kB / 0.8745 GB, free: 76.02 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002534/1.589, allocations: 1.34 MB / 0.8758 GB, free: 75.71 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004711/1.59, allocations: 1.058 MB / 0.8769 GB, free: 75.01 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001323/1.591, allocations: 398.2 kB / 0.8772 GB, free: 75 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001696/1.591, allocations: 65.17 kB / 0.8773 GB, free: 74.99 MB / 410.7 MB Notification: Performance of SimCode: time 1.633e-06/1.591, allocations: 0 / 0.8773 GB, free: 74.99 MB / 410.7 MB Notification: Performance of Templates: time 0.03635/1.628, allocations: 23.35 MB / 0.9001 GB, free: 74.27 MB / 410.7 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.makefile (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe 2>&1)