Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.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.TanksWithEmptyingPipe2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_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.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.007099/0.007099, allocations: 165.4 kB / 15.11 MB, free: 5.973 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.359/1.359, allocations: 170.8 MB / 186.6 MB, free: 1.113 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.00169/0.00169, allocations: 115.3 kB / 226.2 MB, free: 10.1 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003396/0.0003397, allocations: 8 kB / 274.1 MB, free: 10.08 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2942/0.2946, allocations: 38.76 MB / 312.9 MB, free: 38.75 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6935/0.9881, allocations: 317 MB / 0.6151 GB, free: 70.17 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002476/0.9884, allocations: 91.28 kB / 0.6152 GB, free: 70.14 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.234/2.222, allocations: 322.5 MB / 0.9302 GB, free: 39.87 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.624e-06/2.223, allocations: 0 / 0.9302 GB, free: 39.87 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001397/2.223, allocations: 46.48 kB / 0.9302 GB, free: 39.86 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: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.007354/2.23, allocations: 2.243 MB / 0.9324 GB, free: 38.04 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.632e-05/2.23, allocations: 8.031 kB / 0.9324 GB, free: 38.04 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008616/2.231, allocations: 212.1 kB / 0.9326 GB, free: 37.83 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002709/2.234, allocations: 1.252 MB / 0.9338 GB, free: 36.55 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.831e-05/2.234, allocations: 92.78 kB / 0.9339 GB, free: 36.46 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001875/2.234, allocations: 118.9 kB / 0.9341 GB, free: 36.35 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002921/2.237, allocations: 1.952 MB / 0.936 GB, free: 34.32 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.985e-05/2.237, allocations: 4 kB / 0.936 GB, free: 34.32 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001569/2.237, allocations: 51.89 kB / 0.936 GB, free: 34.27 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001233/2.237, allocations: 117 kB / 0.9361 GB, free: 34.16 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00265/2.24, allocations: 1.957 MB / 0.938 GB, free: 32.2 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009962/2.25, allocations: 7.62 MB / 0.9455 GB, free: 24.26 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001474/2.251, allocations: 1.168 MB / 0.9466 GB, free: 23.1 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004309/2.256, allocations: 3.332 MB / 0.9499 GB, free: 19.54 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.995e-05/2.256, allocations: 54.3 kB / 0.9499 GB, free: 19.48 MB / 362.7 MB Notification: Performance of pre-optimization done (n=119): time 2.485e-06/2.256, allocations: 0 / 0.9499 GB, free: 19.48 MB / 362.7 MB Notification: Performance of matching and sorting (n=134): time 0.01235/2.268, allocations: 5.361 MB / 0.9552 GB, free: 13.99 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.676e-05/2.268, allocations: 171.5 kB / 0.9553 GB, free: 13.79 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001648/2.27, allocations: 1.181 MB / 0.9565 GB, free: 12.6 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001756/2.27, allocations: 53.7 kB / 0.9565 GB, free: 12.54 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004505/2.271, allocations: 0.7274 MB / 0.9572 GB, free: 11.81 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003354/2.271, allocations: 473 kB / 0.9577 GB, free: 11.36 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.05e-05/2.271, allocations: 39.94 kB / 0.9577 GB, free: 11.32 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001136/2.271, allocations: 377.9 kB / 0.9581 GB, free: 10.94 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001008/2.272, allocations: 0.7417 MB / 0.9588 GB, free: 10.2 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001176/2.273, allocations: 1.205 MB / 0.96 GB, free: 8.801 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001095/2.274, allocations: 0.8764 MB / 0.9608 GB, free: 7.926 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.973e-06/2.274, allocations: 4 kB / 0.9608 GB, free: 7.922 MB / 362.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.003497/2.278, allocations: 2.408 MB / 0.9632 GB, free: 5.492 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.2654/2.543, allocations: 5.212 MB / 0.9683 GB, free: 41.06 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.015e-05/2.543, allocations: 12.94 kB / 0.9683 GB, free: 41.06 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005515/2.549, allocations: 0.9518 MB / 0.9692 GB, free: 41.03 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001757/2.551, allocations: 361.6 kB / 0.9696 GB, free: 41.03 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002271/2.553, allocations: 2.887 MB / 0.9724 GB, free: 38.96 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002053/2.555, allocations: 141 kB / 0.9725 GB, free: 38.96 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001935/2.555, allocations: 80.11 kB / 0.9726 GB, free: 38.96 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.412e-05/2.555, allocations: 8.219 kB / 0.9726 GB, free: 38.96 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003275/2.559, allocations: 2.131 MB / 0.9747 GB, free: 38.9 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.997e-05/2.559, allocations: 15.09 kB / 0.9747 GB, free: 38.9 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003961/2.563, allocations: 0.6758 MB / 0.9754 GB, free: 38.87 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001663/2.564, allocations: 382.3 kB / 0.9757 GB, free: 38.87 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001631/2.566, allocations: 2.63 MB / 0.9783 GB, free: 36.8 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001754/2.568, allocations: 137.2 kB / 0.9784 GB, free: 36.8 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001814/2.568, allocations: 80.75 kB / 0.9785 GB, free: 36.8 MB / 362.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 () * Number of clocked 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.001086/2.569, allocations: 0.5181 MB / 0.979 GB, free: 36.61 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003238/2.569, allocations: 169.3 kB / 0.9792 GB, free: 36.61 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004193/2.574, allocations: 2.338 MB / 0.9815 GB, free: 36.46 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.707e-05/2.574, allocations: 21.5 kB / 0.9815 GB, free: 36.46 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.025e-06/2.574, allocations: 2.75 kB / 0.9815 GB, free: 36.46 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.472e-05/2.574, allocations: 7.453 kB / 0.9815 GB, free: 36.46 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006833/2.581, allocations: 3.939 MB / 0.9853 GB, free: 36.05 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.848e-06/2.581, allocations: 2.562 kB / 0.9853 GB, free: 36.05 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001115/2.582, allocations: 246 kB / 0.9856 GB, free: 36.05 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004009/2.586, allocations: 0.8776 MB / 0.9864 GB, free: 36.02 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002844/2.586, allocations: 45.52 kB / 0.9865 GB, free: 36.02 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002246/2.588, allocations: 2.838 MB / 0.9892 GB, free: 33.95 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.751e-06/2.588, allocations: 5.094 kB / 0.9892 GB, free: 33.95 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005272/2.594, allocations: 3.216 MB / 0.9924 GB, free: 33.54 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008323/2.594, allocations: 257.3 kB / 0.9926 GB, free: 33.35 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002438/2.595, allocations: 41.45 kB / 0.9927 GB, free: 33.35 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001032/2.596, allocations: 104.3 kB / 0.9928 GB, free: 33.35 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000303/2.596, allocations: 142.9 kB / 0.9929 GB, free: 33.35 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000144/2.596, allocations: 56.03 kB / 0.993 GB, free: 33.35 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001456/2.598, allocations: 0.9 MB / 0.9938 GB, free: 33.24 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.7e-07/2.598, allocations: 0 / 0.9938 GB, free: 33.24 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.005671/2.603, allocations: 1.364 MB / 0.9952 GB, free: 33.24 MB / 362.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]) * Number of clocked states: 0 () * 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.003415/2.607, allocations: 1.219 MB / 0.9964 GB, free: 33.14 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.005858/2.613, allocations: 3.05 MB / 0.9993 GB, free: 33.09 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.037e-06/2.613, allocations: 3.906 kB / 0.9993 GB, free: 33.09 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001765/2.614, allocations: 1.06 MB / 1 GB, free: 33.07 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003439/2.618, allocations: 0.6654 MB / 1.001 GB, free: 33.06 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006205/2.624, allocations: 4.129 MB / 1.005 GB, free: 31.52 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001547/2.626, allocations: 1.432 MB / 1.006 GB, free: 46.8 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002885/2.629, allocations: 0.7148 MB / 1.007 GB, free: 46.78 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004254/2.629, allocations: 143.5 kB / 1.007 GB, free: 46.77 MB / 378.7 MB Notification: Performance of SimCode: time 1.332e-06/2.629, allocations: 0 / 1.007 GB, free: 46.77 MB / 378.7 MB Notification: Performance of Templates: time 0.06962/2.699, allocations: 44.74 MB / 1.051 GB, free: 43.61 MB / 378.7 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.makefile (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe 2>&1)