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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.0009498/0.0009499, allocations: 180.8 kB / 16.38 MB, free: 5.766 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.138/1.138, allocations: 194.5 MB / 211.6 MB, free: 3.043 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.001557/0.001557, allocations: 117.2 kB / 256.9 MB, free: 4.375 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002807/0.0002806, allocations: 8 kB / 310.6 MB, free: 14.95 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07428/0.07457, allocations: 44.49 MB / 355.1 MB, free: 2.352 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5517/0.6263, allocations: 319.7 MB / 0.659 GB, free: 14.93 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002492/0.6266, allocations: 102.9 kB / 0.6591 GB, free: 14.88 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.89/1.517, allocations: 280 MB / 0.9325 GB, free: 65.7 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.513e-06/1.517, allocations: 7.062 kB / 0.9325 GB, free: 65.7 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001075/1.517, allocations: 41.36 kB / 0.9325 GB, free: 65.69 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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.004287/1.521, allocations: 1.951 MB / 0.9344 GB, free: 64.32 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.264e-05/1.521, allocations: 10.34 kB / 0.9345 GB, free: 64.32 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004987/1.522, allocations: 170.4 kB / 0.9346 GB, free: 64.24 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001978/1.524, allocations: 1.094 MB / 0.9357 GB, free: 63.46 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.827e-05/1.524, allocations: 82.44 kB / 0.9358 GB, free: 63.42 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001478/1.524, allocations: 94.36 kB / 0.9359 GB, free: 63.4 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002153/1.526, allocations: 1.624 MB / 0.9374 GB, free: 62.36 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.549e-05/1.526, allocations: 3.219 kB / 0.9374 GB, free: 62.36 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001433/1.526, allocations: 46.92 kB / 0.9375 GB, free: 62.34 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.857e-05/1.526, allocations: 98.62 kB / 0.9376 GB, free: 62.31 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002094/1.528, allocations: 1.614 MB / 0.9392 GB, free: 61.49 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007857/1.536, allocations: 6.521 MB / 0.9455 GB, free: 55.34 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001172/1.537, allocations: 0.8919 MB / 0.9464 GB, free: 54.45 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003515/1.541, allocations: 2.735 MB / 0.9491 GB, free: 51.5 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.993e-05/1.541, allocations: 43.22 kB / 0.9491 GB, free: 51.45 MB / 410.7 MB Notification: Performance of pre-optimization done (n=80): time 2.665e-06/1.541, allocations: 3.281 kB / 0.9491 GB, free: 51.45 MB / 410.7 MB Notification: Performance of matching and sorting (n=90): time 0.007385/1.548, allocations: 3.643 MB / 0.9527 GB, free: 47.71 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.825e-05/1.549, allocations: 188.9 kB / 0.9529 GB, free: 47.48 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001149/1.55, allocations: 1.05 MB / 0.9539 GB, free: 46.43 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.626e-05/1.55, allocations: 49.69 kB / 0.9539 GB, free: 46.37 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003696/1.55, allocations: 0.6679 MB / 0.9546 GB, free: 45.7 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001794/1.55, allocations: 326.7 kB / 0.9549 GB, free: 45.38 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.708e-05/1.55, allocations: 24 kB / 0.9549 GB, free: 45.36 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.472e-05/1.551, allocations: 361.9 kB / 0.9553 GB, free: 45 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007073/1.551, allocations: 0.5465 MB / 0.9558 GB, free: 44.45 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008803/1.552, allocations: 1.022 MB / 0.9568 GB, free: 43.23 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008195/1.553, allocations: 0.6754 MB / 0.9574 GB, free: 42.58 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.229e-06/1.553, allocations: 4 kB / 0.9575 GB, free: 42.58 MB / 410.7 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.002397/1.555, allocations: 1.864 MB / 0.9593 GB, free: 40.7 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001048/1.556, allocations: 5.581 MB / 0.9647 GB, free: 34.75 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.738e-05/1.556, allocations: 17.81 kB / 0.9647 GB, free: 34.73 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003579/1.56, allocations: 0.6574 MB / 0.9654 GB, free: 34.08 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009922/1.561, allocations: 295.5 kB / 0.9657 GB, free: 33.79 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001489/1.563, allocations: 2.153 MB / 0.9678 GB, free: 31.57 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001303/1.564, allocations: 105.1 kB / 0.9679 GB, free: 31.47 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000117/1.564, allocations: 71.98 kB / 0.9679 GB, free: 31.4 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.074e-05/1.564, allocations: 4 kB / 0.9679 GB, free: 31.39 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002315/1.566, allocations: 1.671 MB / 0.9696 GB, free: 29.72 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.457e-05/1.566, allocations: 12 kB / 0.9696 GB, free: 29.71 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002784/1.569, allocations: 0.5006 MB / 0.9701 GB, free: 29.21 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009692/1.57, allocations: 311.3 kB / 0.9704 GB, free: 28.91 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001119/1.571, allocations: 1.989 MB / 0.9723 GB, free: 26.85 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001175/1.572, allocations: 103.9 kB / 0.9724 GB, free: 26.75 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001256/1.573, allocations: 71.97 kB / 0.9725 GB, free: 26.68 MB / 410.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.0007436/1.573, allocations: 464.5 kB / 0.9729 GB, free: 26.21 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002673/1.574, allocations: 138.4 kB / 0.9731 GB, free: 26.07 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002713/1.576, allocations: 1.522 MB / 0.9745 GB, free: 24.55 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.114e-05/1.576, allocations: 19.94 kB / 0.9746 GB, free: 24.53 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.033e-06/1.576, allocations: 0 / 0.9746 GB, free: 24.53 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.727e-06/1.576, allocations: 3.984 kB / 0.9746 GB, free: 24.53 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004115/1.581, allocations: 2.74 MB / 0.9772 GB, free: 21.73 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.823e-06/1.581, allocations: 7.188 kB / 0.9772 GB, free: 21.73 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006397/1.581, allocations: 155.8 kB / 0.9774 GB, free: 21.58 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002613/1.584, allocations: 0.6043 MB / 0.978 GB, free: 20.97 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.524e-05/1.584, allocations: 31.98 kB / 0.978 GB, free: 20.94 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001242/1.585, allocations: 2.113 MB / 0.9801 GB, free: 18.75 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.027e-06/1.585, allocations: 4.031 kB / 0.9801 GB, free: 18.75 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002553/1.588, allocations: 2.122 MB / 0.9822 GB, free: 16.57 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004304/1.588, allocations: 231.2 kB / 0.9824 GB, free: 16.32 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003094/1.589, allocations: 31.75 kB / 0.9824 GB, free: 16.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009247/1.589, allocations: 79.78 kB / 0.9825 GB, free: 16.22 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001801/1.59, allocations: 92.86 kB / 0.9826 GB, free: 16.13 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.29e-05/1.59, allocations: 35.98 kB / 0.9826 GB, free: 16.09 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001007/1.591, allocations: 0.8052 MB / 0.9834 GB, free: 15.29 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.91e-07/1.591, allocations: 0 / 0.9834 GB, free: 15.29 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003621/1.594, allocations: 1.183 MB / 0.9845 GB, free: 14.1 MB / 410.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.002808/1.597, allocations: 1.092 MB / 0.9856 GB, free: 13.11 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003809/1.601, allocations: 2.215 MB / 0.9878 GB, free: 10.9 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/1.601, allocations: 4.375 kB / 0.9878 GB, free: 10.9 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001231/1.602, allocations: 0.7003 MB / 0.9885 GB, free: 10.2 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00196/1.604, allocations: 0.5077 MB / 0.989 GB, free: 9.699 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004249/1.608, allocations: 3.236 MB / 0.9921 GB, free: 6.457 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007047/1.609, allocations: 1.282 MB / 0.9934 GB, free: 5.148 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001782/1.611, allocations: 0.5536 MB / 0.9939 GB, free: 4.613 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002851/1.611, allocations: 111.4 kB / 0.994 GB, free: 4.504 MB / 410.7 MB Notification: Performance of SimCode: time 4.11e-07/1.611, allocations: 0 / 0.994 GB, free: 4.504 MB / 410.7 MB Notification: Performance of Templates: time 0.2365/1.848, allocations: 35 MB / 1.028 GB, free: 60.47 MB / 410.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)