Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.|tank2.aboveLevel.1.|tank2.aboveLevel.2.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.|tank2.aboveLevel.1.|tank2.aboveLevel.2.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002192/0.002191, allocations: 181.9 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.932/1.932, allocations: 205.2 MB / 219.4 MB, free: 14.22 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001081/0.00108, allocations: 86.7 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.58e-05/3.598e-05, allocations: 4 kB / 321.5 MB, free: 17.84 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09176/0.09182, allocations: 47.57 MB / 369.1 MB, free: 2.203 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9605/1.052, allocations: 324.1 MB / 0.677 GB, free: 0.5781 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000266/1.053, allocations: 92.62 kB / 0.6771 GB, free: 0.5312 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.539/2.591, allocations: 282.1 MB / 0.9526 GB, free: 69.56 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.843e-06/2.591, allocations: 0 / 0.9526 GB, free: 69.56 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001771/2.592, allocations: 42.62 kB / 0.9526 GB, free: 69.55 MB / 426.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.00753/2.599, allocations: 1.789 MB / 0.9544 GB, free: 68.45 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.096e-05/2.599, allocations: 9.594 kB / 0.9544 GB, free: 68.45 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00141/2.601, allocations: 173.2 kB / 0.9546 GB, free: 68.38 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004142/2.605, allocations: 1.026 MB / 0.9556 GB, free: 67.66 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001373/2.605, allocations: 81.34 kB / 0.9556 GB, free: 67.62 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004908/2.605, allocations: 95.53 kB / 0.9557 GB, free: 67.6 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00467/2.61, allocations: 1.603 MB / 0.9573 GB, free: 66.63 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.296e-05/2.61, allocations: 7.156 kB / 0.9573 GB, free: 66.62 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002731/2.611, allocations: 51.5 kB / 0.9574 GB, free: 66.59 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002128/2.611, allocations: 100.8 kB / 0.9574 GB, free: 66.56 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004797/2.616, allocations: 1.583 MB / 0.959 GB, free: 65.82 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01796/2.634, allocations: 6.536 MB / 0.9654 GB, free: 59.59 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002453/2.636, allocations: 0.9092 MB / 0.9663 GB, free: 58.68 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001357/2.637, allocations: 0.5491 MB / 0.9668 GB, free: 58.12 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006676/2.644, allocations: 2.91 MB / 0.9696 GB, free: 54.99 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.728e-05/2.644, allocations: 46.53 kB / 0.9697 GB, free: 54.94 MB / 426.7 MB Notification: Performance of pre-optimization done (n=80): time 3.757e-06/2.644, allocations: 0 / 0.9697 GB, free: 54.94 MB / 426.7 MB Notification: Performance of matching and sorting (n=90): time 0.009894/2.654, allocations: 2.815 MB / 0.9724 GB, free: 52.09 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.923e-05/2.654, allocations: 195.3 kB / 0.9726 GB, free: 51.86 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002405/2.657, allocations: 1.137 MB / 0.9737 GB, free: 50.71 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003656/2.657, allocations: 45.7 kB / 0.9738 GB, free: 50.66 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005316/2.658, allocations: 0.6321 MB / 0.9744 GB, free: 50.03 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004327/2.658, allocations: 315.5 kB / 0.9747 GB, free: 49.72 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001412/2.658, allocations: 28 kB / 0.9747 GB, free: 49.7 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001182/2.658, allocations: 365.8 kB / 0.9751 GB, free: 49.33 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001491/2.66, allocations: 0.5467 MB / 0.9756 GB, free: 48.79 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00174/2.662, allocations: 0.9449 MB / 0.9765 GB, free: 47.69 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001675/2.663, allocations: 0.6599 MB / 0.9772 GB, free: 47.04 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.024e-05/2.663, allocations: 4 kB / 0.9772 GB, free: 47.04 MB / 426.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.004586/2.668, allocations: 1.729 MB / 0.9789 GB, free: 45.3 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000941/2.669, allocations: 4.358 MB / 0.9831 GB, free: 40.64 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.839e-05/2.669, allocations: 8 kB / 0.9831 GB, free: 40.63 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006586/2.676, allocations: 0.6516 MB / 0.9838 GB, free: 39.99 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002269/2.678, allocations: 283.5 kB / 0.984 GB, free: 39.71 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002647/2.681, allocations: 2.168 MB / 0.9861 GB, free: 37.47 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002594/2.683, allocations: 106.2 kB / 0.9863 GB, free: 37.37 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003142/2.684, allocations: 63.98 kB / 0.9863 GB, free: 37.31 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.383e-05/2.684, allocations: 4 kB / 0.9863 GB, free: 37.3 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004361/2.688, allocations: 1.602 MB / 0.9879 GB, free: 35.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.47e-05/2.688, allocations: 12 kB / 0.9879 GB, free: 35.69 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005194/2.693, allocations: 493.5 kB / 0.9884 GB, free: 35.21 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002298/2.696, allocations: 293.6 kB / 0.9886 GB, free: 34.93 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002179/2.698, allocations: 1.984 MB / 0.9906 GB, free: 32.88 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001925/2.7, allocations: 101.2 kB / 0.9907 GB, free: 32.78 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003003/2.7, allocations: 63.98 kB / 0.9907 GB, free: 32.72 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (163): * Single equations (assignments): 160 * 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.0005174/2.701, allocations: 202.4 kB / 0.9909 GB, free: 32.52 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004647/2.701, allocations: 142.3 kB / 0.9911 GB, free: 32.38 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004865/2.706, allocations: 1.51 MB / 0.9925 GB, free: 30.87 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.804e-05/2.706, allocations: 12 kB / 0.9926 GB, free: 30.86 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.073e-05/2.706, allocations: 0 / 0.9926 GB, free: 30.86 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.049e-05/2.706, allocations: 3.984 kB / 0.9926 GB, free: 30.85 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007932/2.714, allocations: 2.791 MB / 0.9953 GB, free: 28 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.003e-05/2.714, allocations: 0 / 0.9953 GB, free: 28 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001315/2.716, allocations: 167.8 kB / 0.9954 GB, free: 27.84 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004738/2.72, allocations: 0.598 MB / 0.996 GB, free: 27.24 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002866/2.721, allocations: 27.98 kB / 0.9961 GB, free: 27.21 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002295/2.723, allocations: 2.118 MB / 0.9981 GB, free: 25.02 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.222e-06/2.723, allocations: 7.969 kB / 0.9981 GB, free: 25.01 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004934/2.728, allocations: 2.112 MB / 1 GB, free: 22.83 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007566/2.729, allocations: 251.1 kB / 1 GB, free: 22.57 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004554/2.729, allocations: 24 kB / 1 GB, free: 22.54 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001855/2.731, allocations: 75.94 kB / 1.001 GB, free: 22.47 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003131/2.732, allocations: 92.86 kB / 1.001 GB, free: 22.38 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001521/2.732, allocations: 47.92 kB / 1.001 GB, free: 22.33 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001797/2.734, allocations: 0.8792 MB / 1.002 GB, free: 21.45 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.81e-07/2.734, allocations: 0 / 1.002 GB, free: 21.45 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005024/2.739, allocations: 1.222 MB / 1.003 GB, free: 20.23 MB / 426.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]) * 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.003835/2.742, allocations: 1.109 MB / 1.004 GB, free: 19.21 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.006877/2.749, allocations: 2.162 MB / 1.006 GB, free: 17.05 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.143e-05/2.749, allocations: 0 / 1.006 GB, free: 17.05 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002474/2.752, allocations: 0.6981 MB / 1.007 GB, free: 16.36 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005039/2.757, allocations: 0.5695 MB / 1.007 GB, free: 15.8 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006073/2.763, allocations: 2.169 MB / 1.009 GB, free: 13.61 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009239/2.764, allocations: 1.275 MB / 1.011 GB, free: 12.31 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008474/2.765, allocations: 127.4 kB / 1.011 GB, free: 12.18 MB / 426.7 MB Notification: Performance of SimCode: time 1.623e-06/2.765, allocations: 0 / 1.011 GB, free: 12.18 MB / 426.7 MB Notification: Performance of Templates: time 0.3941/3.159, allocations: 44.63 MB / 1.054 GB, free: 62.5 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.sim & ./Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe 2>&1)