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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001759/0.001759, allocations: 188.5 kB / 8.353 MB, free: 0.707 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.497/1.497, allocations: 194.3 MB / 203.1 MB, free: 9.324 MB / 171.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001668/0.001668, allocations: 114.2 kB / 248.1 MB, free: 6.348 MB / 203.1 MB Notification: Performance of FrontEnd - loaded program: time 1.631e-05/1.635e-05, allocations: 4 kB / 298.1 MB, free: 8.246 MB / 251.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09041/0.09044, allocations: 44.49 MB / 342.6 MB, free: 11.65 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6993/0.7898, allocations: 321.6 MB / 0.6486 GB, free: 6.5 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002754/0.7902, allocations: 90.27 kB / 0.6487 GB, free: 6.457 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.053/1.843, allocations: 319.6 MB / 0.9608 GB, free: 1.453 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.583e-06/1.843, allocations: 0 / 0.9608 GB, free: 1.453 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0001266/1.843, allocations: 43.28 kB / 0.9609 GB, free: 1.414 MB / 395.1 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.2268/2.07, allocations: 2.03 MB / 0.9628 GB, free: 33.07 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.345e-05/2.07, allocations: 8.531 kB / 0.9628 GB, free: 33.07 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001294/2.072, allocations: 202.5 kB / 0.963 GB, free: 32.98 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002719/2.074, allocations: 1.251 MB / 0.9643 GB, free: 32.67 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.37e-05/2.074, allocations: 47.67 kB / 0.9643 GB, free: 32.67 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001839/2.075, allocations: 69.59 kB / 0.9644 GB, free: 32.67 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002521/2.077, allocations: 1.747 MB / 0.9661 GB, free: 32.66 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00226/2.079, allocations: 1.756 MB / 0.9678 GB, free: 32.38 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.235e-05/2.079, allocations: 0.8594 kB / 0.9678 GB, free: 32.38 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001462/2.08, allocations: 2.938 kB / 0.9678 GB, free: 32.38 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001263/2.08, allocations: 113.7 kB / 0.9679 GB, free: 32.38 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009668/2.089, allocations: 7.365 MB / 0.9751 GB, free: 29.05 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001413/2.091, allocations: 1.102 MB / 0.9762 GB, free: 29.02 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007804/2.092, allocations: 0.7011 MB / 0.9769 GB, free: 29.01 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004201/2.096, allocations: 3.306 MB / 0.9801 GB, free: 27.48 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.584e-05/2.096, allocations: 46.88 kB / 0.9801 GB, free: 27.44 MB / 395.1 MB Notification: Performance of pre-optimization done (n=119): time 2.665e-06/2.096, allocations: 0 / 0.9801 GB, free: 27.44 MB / 395.1 MB Notification: Performance of matching and sorting (n=134): time 0.01409/2.11, allocations: 4.621 MB / 0.9846 GB, free: 26.83 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.279e-05/2.11, allocations: 176.1 kB / 0.9848 GB, free: 26.64 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00117/2.111, allocations: 0.9236 MB / 0.9857 GB, free: 26.48 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001177/2.111, allocations: 37.61 kB / 0.9857 GB, free: 26.45 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004145/2.112, allocations: 0.7304 MB / 0.9865 GB, free: 26.18 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003041/2.112, allocations: 453.2 kB / 0.9869 GB, free: 25.96 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.292e-05/2.112, allocations: 0 / 0.9869 GB, free: 25.96 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 9.025e-05/2.112, allocations: 381.1 kB / 0.9873 GB, free: 25.65 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008915/2.113, allocations: 0.7036 MB / 0.9879 GB, free: 25.65 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001054/2.114, allocations: 1.15 MB / 0.9891 GB, free: 25.14 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01086/2.125, allocations: 2.524 MB / 0.9915 GB, free: 25.12 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.465e-05/2.125, allocations: 5.031 kB / 0.9915 GB, free: 25.12 MB / 395.1 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.01422/2.139, allocations: 3.908 MB / 0.9954 GB, free: 24.93 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001554/2.141, allocations: 5.155 MB / 1 GB, free: 35.58 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.979e-05/2.141, allocations: 13.06 kB / 1 GB, free: 35.58 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001387/2.142, allocations: 452.2 kB / 1.001 GB, free: 35.55 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001492/2.144, allocations: 361.1 kB / 1.001 GB, free: 35.55 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004659/2.149, allocations: 3.286 MB / 1.004 GB, free: 33.46 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001719/2.15, allocations: 100.2 kB / 1.004 GB, free: 33.46 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002099/2.151, allocations: 88.52 kB / 1.005 GB, free: 33.46 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.246e-05/2.151, allocations: 3.25 kB / 1.005 GB, free: 33.46 MB / 411.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01272/2.163, allocations: 3.531 MB / 1.008 GB, free: 33.38 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.181e-05/2.163, allocations: 13.56 kB / 1.008 GB, free: 33.38 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001093/2.164, allocations: 340.3 kB / 1.008 GB, free: 33.35 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00129/2.166, allocations: 372.7 kB / 1.009 GB, free: 33.35 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003716/2.17, allocations: 2.937 MB / 1.012 GB, free: 31.26 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001574/2.171, allocations: 98 kB / 1.012 GB, free: 31.26 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001909/2.171, allocations: 85.5 kB / 1.012 GB, free: 31.26 MB / 411.1 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.0005128/2.172, allocations: 166.8 kB / 1.012 GB, free: 31.15 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003172/2.172, allocations: 148.8 kB / 1.012 GB, free: 31.07 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005941/2.178, allocations: 2.328 MB / 1.014 GB, free: 30.91 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.268e-05/2.178, allocations: 18.3 kB / 1.014 GB, free: 30.91 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.659e-06/2.178, allocations: 2.438 kB / 1.014 GB, free: 30.91 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.183e-05/2.178, allocations: 7.734 kB / 1.014 GB, free: 30.91 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008815/2.187, allocations: 3.825 MB / 1.018 GB, free: 30.52 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.427e-06/2.187, allocations: 3.094 kB / 1.018 GB, free: 30.52 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009634/2.188, allocations: 237.1 kB / 1.018 GB, free: 30.52 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001171/2.189, allocations: 443.2 kB / 1.019 GB, free: 30.48 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000103/2.189, allocations: 27.56 kB / 1.019 GB, free: 30.48 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003514/2.193, allocations: 3.037 MB / 1.022 GB, free: 28.39 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.56e-06/2.193, allocations: 3.938 kB / 1.022 GB, free: 28.39 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00569/2.199, allocations: 3.191 MB / 1.025 GB, free: 27.93 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006186/2.199, allocations: 251.8 kB / 1.025 GB, free: 27.75 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002723/2.2, allocations: 13 kB / 1.025 GB, free: 27.75 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001122/2.201, allocations: 84.88 kB / 1.025 GB, free: 27.74 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002871/2.201, allocations: 143.6 kB / 1.025 GB, free: 27.74 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001401/2.201, allocations: 54.67 kB / 1.025 GB, free: 27.74 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.001002/2.202, allocations: 0.6905 MB / 1.026 GB, free: 27.63 MB / 411.1 MB Notification: Performance of sort global known variables: time 2.7e-07/2.202, allocations: 2.469 kB / 1.026 GB, free: 27.63 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.004445/2.207, allocations: 1.253 MB / 1.027 GB, free: 27.56 MB / 411.1 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.002881/2.209, allocations: 1.204 MB / 1.028 GB, free: 27.39 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.004983/2.214, allocations: 2.866 MB / 1.031 GB, free: 27.34 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 1.031e-05/2.215, allocations: 4.844 kB / 1.031 GB, free: 27.34 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00186/2.216, allocations: 1.014 MB / 1.032 GB, free: 27.34 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003406/2.22, allocations: 0.6088 MB / 1.033 GB, free: 27.33 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004769/2.225, allocations: 2.746 MB / 1.036 GB, free: 26.7 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009311/2.226, allocations: 1.438 MB / 1.037 GB, free: 25.98 MB / 411.1 MB Notification: Performance of simCode: alias equations: time 0.002865/2.228, allocations: 0.7526 MB / 1.038 GB, free: 25.94 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003444/2.229, allocations: 123.3 kB / 1.038 GB, free: 25.94 MB / 411.1 MB Notification: Performance of SimCode: time 2.766e-06/2.229, allocations: 0 / 1.038 GB, free: 25.94 MB / 411.1 MB Notification: Performance of Templates: time 0.06065/2.289, allocations: 43.07 MB / 1.08 GB, free: 21.18 MB / 411.1 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)