Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") Notification: Performance of loadModel(Modelica): time 1.629/1.629, allocations: 171.2 MB / 184.2 MB, free: 11.96 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.201e-05/3.219e-05, allocations: 4 kB / 228.8 MB, free: 15.32 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2079/0.208, allocations: 38.77 MB / 267.6 MB, free: 9.441 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7668/0.9748, allocations: 316.9 MB / 0.5708 GB, free: 69.59 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000232/0.9751, allocations: 83.95 kB / 0.5709 GB, free: 69.51 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.397/2.373, allocations: 321.5 MB / 0.8848 GB, free: 34.11 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.442e-06/2.373, allocations: 4 kB / 0.8848 GB, free: 34.1 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001647/2.373, allocations: 47.22 kB / 0.8849 GB, free: 34.06 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.00631/2.379, allocations: 2.033 MB / 0.8869 GB, free: 32.03 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.295e-05/2.379, allocations: 15.97 kB / 0.8869 GB, free: 32.01 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001277/2.38, allocations: 197.8 kB / 0.8871 GB, free: 31.82 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003735/2.384, allocations: 1.244 MB / 0.8883 GB, free: 30.54 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001316/2.384, allocations: 101.5 kB / 0.8884 GB, free: 30.45 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004664/2.385, allocations: 117.9 kB / 0.8885 GB, free: 30.34 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004379/2.389, allocations: 1.92 MB / 0.8904 GB, free: 28.34 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.521e-05/2.389, allocations: 3.938 kB / 0.8904 GB, free: 28.33 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002716/2.39, allocations: 58.66 kB / 0.8904 GB, free: 28.28 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001841/2.39, allocations: 118.3 kB / 0.8905 GB, free: 28.16 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004411/2.394, allocations: 1.918 MB / 0.8924 GB, free: 26.24 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01577/2.41, allocations: 7.615 MB / 0.8998 GB, free: 18.29 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002439/2.413, allocations: 1.145 MB / 0.901 GB, free: 17.14 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001466/2.414, allocations: 0.7276 MB / 0.9017 GB, free: 16.41 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006375/2.42, allocations: 3.381 MB / 0.905 GB, free: 12.8 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.203e-05/2.421, allocations: 47.56 kB / 0.905 GB, free: 12.74 MB / 362.7 MB Notification: Performance of pre-optimization done (n=119): time 5.082e-06/2.421, allocations: 4 kB / 0.905 GB, free: 12.74 MB / 362.7 MB Notification: Performance of matching and sorting (n=134): time 0.01152/2.432, allocations: 4.075 MB / 0.909 GB, free: 8.617 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.596e-05/2.432, allocations: 174.3 kB / 0.9092 GB, free: 8.41 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002099/2.434, allocations: 1.166 MB / 0.9103 GB, free: 7.238 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003664/2.435, allocations: 57.69 kB / 0.9104 GB, free: 7.176 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004988/2.435, allocations: 0.6886 MB / 0.911 GB, free: 6.484 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005726/2.436, allocations: 474.5 kB / 0.9115 GB, free: 6.027 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001612/2.436, allocations: 36 kB / 0.9115 GB, free: 5.992 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001344/2.436, allocations: 382.8 kB / 0.9119 GB, free: 5.609 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001572/2.438, allocations: 0.7262 MB / 0.9126 GB, free: 4.883 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00191/2.44, allocations: 1.193 MB / 0.9138 GB, free: 3.5 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001855/2.441, allocations: 0.8725 MB / 0.9146 GB, free: 2.629 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.203e-05/2.442, allocations: 4 kB / 0.9146 GB, free: 2.625 MB / 362.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.00523/2.447, allocations: 2.289 MB / 0.9168 GB, free: 324 kB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.2269/2.674, allocations: 5.138 MB / 0.9219 GB, free: 35.21 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.621e-05/2.674, allocations: 13.59 kB / 0.9219 GB, free: 35.21 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007913/2.682, allocations: 0.9409 MB / 0.9228 GB, free: 35.18 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002061/2.684, allocations: 358 kB / 0.9231 GB, free: 35.18 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003028/2.687, allocations: 2.881 MB / 0.926 GB, free: 33.11 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002433/2.689, allocations: 138.8 kB / 0.9261 GB, free: 33.11 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003827/2.69, allocations: 85.72 kB / 0.9262 GB, free: 33.11 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.366e-05/2.69, allocations: 3.875 kB / 0.9262 GB, free: 33.11 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004852/2.695, allocations: 2.098 MB / 0.9282 GB, free: 33.04 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.536e-05/2.695, allocations: 15.81 kB / 0.9282 GB, free: 33.04 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005295/2.7, allocations: 0.6613 MB / 0.9289 GB, free: 33.01 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002058/2.702, allocations: 379.6 kB / 0.9292 GB, free: 33.01 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002173/2.704, allocations: 2.609 MB / 0.9318 GB, free: 30.94 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00176/2.706, allocations: 131.6 kB / 0.9319 GB, free: 30.94 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000471/2.707, allocations: 85.94 kB / 0.932 GB, free: 30.94 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 () * 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.0006486/2.707, allocations: 219 kB / 0.9322 GB, free: 30.83 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004656/2.708, allocations: 163.2 kB / 0.9324 GB, free: 30.83 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00621/2.714, allocations: 2.307 MB / 0.9346 GB, free: 30.68 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.691e-05/2.714, allocations: 25.61 kB / 0.9346 GB, free: 30.68 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.908e-06/2.714, allocations: 0 / 0.9346 GB, free: 30.68 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.022e-05/2.714, allocations: 7.312 kB / 0.9346 GB, free: 30.68 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009544/2.724, allocations: 3.905 MB / 0.9385 GB, free: 30.27 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.227e-05/2.724, allocations: 2.781 kB / 0.9385 GB, free: 30.27 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001575/2.725, allocations: 249.9 kB / 0.9387 GB, free: 30.27 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00948/2.735, allocations: 0.867 MB / 0.9395 GB, free: 30.23 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005278/2.736, allocations: 41.78 kB / 0.9396 GB, free: 30.23 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004733/2.74, allocations: 2.825 MB / 0.9423 GB, free: 28.16 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.659e-06/2.74, allocations: 3.094 kB / 0.9423 GB, free: 28.16 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01219/2.753, allocations: 3.172 MB / 0.9454 GB, free: 27.75 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001168/2.754, allocations: 260.6 kB / 0.9457 GB, free: 27.56 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008353/2.755, allocations: 41.19 kB / 0.9457 GB, free: 27.56 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002929/2.758, allocations: 104.2 kB / 0.9458 GB, free: 27.56 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006643/2.758, allocations: 151 kB / 0.946 GB, free: 27.55 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003742/2.759, allocations: 59.95 kB / 0.946 GB, free: 27.55 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.003002/2.762, allocations: 0.8858 MB / 0.9469 GB, free: 27.44 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.264e-06/2.762, allocations: 0 / 0.9469 GB, free: 27.44 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.009572/2.771, allocations: 1.361 MB / 0.9482 GB, free: 27.44 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]) * 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.005932/2.777, allocations: 1.224 MB / 0.9494 GB, free: 27.33 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01386/2.791, allocations: 2.989 MB / 0.9523 GB, free: 27.28 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.606e-05/2.791, allocations: 3.094 kB / 0.9523 GB, free: 27.28 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004678/2.796, allocations: 1.043 MB / 0.9534 GB, free: 27.27 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007416/2.804, allocations: 0.666 MB / 0.954 GB, free: 27.26 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01183/2.815, allocations: 2.902 MB / 0.9568 GB, free: 26.6 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001061/2.817, allocations: 1.422 MB / 0.9582 GB, free: 25.88 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008491/2.817, allocations: 163.5 kB / 0.9584 GB, free: 25.87 MB / 362.7 MB Notification: Performance of SimCode: time 1.724e-06/2.817, allocations: 0 / 0.9584 GB, free: 25.87 MB / 362.7 MB Notification: Performance of Templates: time 0.08014/2.898, allocations: 58.7 MB / 1.016 GB, free: 14.38 MB / 362.7 MB