Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.|tank2.aboveLevel.2.|tank2.aboveLevel.3.|tank3.aboveLevel.1.|tank3.aboveLevel.2.",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") Notification: Performance of loadModel(Modelica): time 1.844/1.844, allocations: 194.9 MB / 211.7 MB, free: 2.984 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003696/0.0003697, allocations: 8 kB / 263.9 MB, free: 13.55 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08279/0.08319, allocations: 44.52 MB / 308.5 MB, free: 0.9688 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8131/0.8963, allocations: 322.3 MB / 0.616 GB, free: 62.58 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002362/0.8966, allocations: 99.69 kB / 0.6161 GB, free: 62.52 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.503/2.4, allocations: 322.5 MB / 0.9311 GB, free: 56.3 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.202e-06/2.4, allocations: 2.312 kB / 0.9311 GB, free: 56.3 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001908/2.4, allocations: 47.91 kB / 0.9311 GB, free: 56.29 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: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.007644/2.408, allocations: 2.242 MB / 0.9333 GB, free: 55.11 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.931e-05/2.408, allocations: 6.5 kB / 0.9333 GB, free: 55.11 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001316/2.409, allocations: 202.9 kB / 0.9335 GB, free: 55.02 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003888/2.413, allocations: 1.257 MB / 0.9347 GB, free: 54.36 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001694/2.413, allocations: 96.94 kB / 0.9348 GB, free: 54.32 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005624/2.414, allocations: 120 kB / 0.9349 GB, free: 54.29 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005302/2.419, allocations: 1.942 MB / 0.9368 GB, free: 53.43 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.373e-05/2.419, allocations: 3.781 kB / 0.9368 GB, free: 53.43 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003656/2.42, allocations: 53.69 kB / 0.9369 GB, free: 53.4 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001953/2.42, allocations: 124.5 kB / 0.937 GB, free: 53.38 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005898/2.426, allocations: 1.949 MB / 0.9389 GB, free: 52.7 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01647/2.442, allocations: 7.622 MB / 0.9464 GB, free: 47.76 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002716/2.445, allocations: 1.157 MB / 0.9475 GB, free: 47.33 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00684/2.452, allocations: 3.34 MB / 0.9507 GB, free: 45.07 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.57e-05/2.452, allocations: 45.25 kB / 0.9508 GB, free: 45.02 MB / 410.7 MB Notification: Performance of pre-optimization done (n=119): time 4.619e-06/2.452, allocations: 0 / 0.9508 GB, free: 45.02 MB / 410.7 MB Notification: Performance of matching and sorting (n=134): time 0.01763/2.47, allocations: 5.368 MB / 0.956 GB, free: 42.48 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.223e-05/2.47, allocations: 171 kB / 0.9562 GB, free: 42.28 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002175/2.472, allocations: 1.174 MB / 0.9573 GB, free: 41.27 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003956/2.473, allocations: 57.7 kB / 0.9574 GB, free: 41.21 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005556/2.473, allocations: 0.693 MB / 0.9581 GB, free: 40.55 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000653/2.474, allocations: 476.2 kB / 0.9585 GB, free: 40.13 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001817/2.474, allocations: 32 kB / 0.9586 GB, free: 40.1 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001419/2.474, allocations: 383.4 kB / 0.9589 GB, free: 39.74 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001863/2.476, allocations: 0.7484 MB / 0.9597 GB, free: 39.11 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002233/2.478, allocations: 1.205 MB / 0.9608 GB, free: 37.87 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002309/2.481, allocations: 0.8809 MB / 0.9617 GB, free: 37.09 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-05/2.481, allocations: 4 kB / 0.9617 GB, free: 37.09 MB / 410.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.005995/2.487, allocations: 2.323 MB / 0.964 GB, free: 35.04 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001061/2.488, allocations: 5.14 MB / 0.969 GB, free: 29.56 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.354e-05/2.488, allocations: 16 kB / 0.969 GB, free: 29.54 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007543/2.495, allocations: 0.9568 MB / 0.9699 GB, free: 28.71 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002149/2.498, allocations: 361.5 kB / 0.9703 GB, free: 28.36 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003161/2.501, allocations: 2.89 MB / 0.9731 GB, free: 25.37 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002413/2.503, allocations: 137.2 kB / 0.9732 GB, free: 25.25 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004884/2.504, allocations: 83.97 kB / 0.9733 GB, free: 25.16 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.547e-05/2.504, allocations: 4 kB / 0.9733 GB, free: 25.16 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005158/2.509, allocations: 2.136 MB / 0.9754 GB, free: 23.02 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.291e-05/2.509, allocations: 12 kB / 0.9754 GB, free: 23.01 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004994/2.514, allocations: 0.6632 MB / 0.9761 GB, free: 22.33 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002014/2.516, allocations: 367.4 kB / 0.9764 GB, free: 21.97 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002189/2.518, allocations: 2.619 MB / 0.979 GB, free: 19.25 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001823/2.52, allocations: 132 kB / 0.9791 GB, free: 19.12 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002967/2.521, allocations: 87.03 kB / 0.9792 GB, free: 19.04 MB / 410.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.001332/2.522, allocations: 0.5212 MB / 0.9797 GB, free: 18.51 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004519/2.522, allocations: 162 kB / 0.9798 GB, free: 18.35 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006344/2.529, allocations: 2.353 MB / 0.9821 GB, free: 15.98 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.743e-05/2.529, allocations: 16 kB / 0.9822 GB, free: 15.96 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.11e-05/2.529, allocations: 4 kB / 0.9822 GB, free: 15.96 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.47e-05/2.529, allocations: 7.969 kB / 0.9822 GB, free: 15.95 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009672/2.539, allocations: 3.94 MB / 0.986 GB, free: 11.96 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.895e-05/2.539, allocations: 0 / 0.986 GB, free: 11.96 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001819/2.54, allocations: 239.7 kB / 0.9862 GB, free: 11.72 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00562/2.546, allocations: 0.8837 MB / 0.9871 GB, free: 10.83 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003691/2.547, allocations: 43.97 kB / 0.9871 GB, free: 10.79 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002683/2.549, allocations: 2.837 MB / 0.9899 GB, free: 7.852 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.331e-06/2.549, allocations: 0 / 0.9899 GB, free: 7.852 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006876/2.556, allocations: 3.216 MB / 0.9931 GB, free: 4.551 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000706/2.557, allocations: 262.8 kB / 0.9933 GB, free: 4.273 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005243/2.557, allocations: 39.19 kB / 0.9933 GB, free: 4.238 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001564/2.559, allocations: 107.8 kB / 0.9934 GB, free: 4.133 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000451/2.56, allocations: 161 kB / 0.9936 GB, free: 3.977 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001977/2.56, allocations: 55.97 kB / 0.9937 GB, free: 3.922 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001645/2.561, allocations: 0.8953 MB / 0.9945 GB, free: 3.027 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.056e-06/2.561, allocations: 0 / 0.9945 GB, free: 3.027 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005715/2.567, allocations: 1.364 MB / 0.9959 GB, free: 1.664 MB / 410.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.003456/2.571, allocations: 1.209 MB / 0.997 GB, free: 0.5742 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.26/2.831, allocations: 3.036 MB / 1 GB, free: 53.89 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.193e-05/2.831, allocations: 4.219 kB / 1 GB, free: 53.89 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003585/2.834, allocations: 1.059 MB / 1.001 GB, free: 53.88 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004112/2.839, allocations: 0.6566 MB / 1.002 GB, free: 53.87 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008473/2.847, allocations: 4.205 MB / 1.006 GB, free: 52.31 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0024/2.849, allocations: 1.422 MB / 1.007 GB, free: 67.59 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009648/2.85, allocations: 160.8 kB / 1.007 GB, free: 67.59 MB / 426.7 MB Notification: Performance of SimCode: time 1.814e-06/2.851, allocations: 0 / 1.007 GB, free: 67.59 MB / 426.7 MB Notification: Performance of Templates: time 0.08145/2.932, allocations: 58.79 MB / 1.065 GB, free: 65.18 MB / 426.7 MB