Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") Notification: Performance of loadModel(Modelica): time 1.936/1.936, allocations: 194.8 MB / 212.3 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003458/0.0003463, allocations: 8 kB / 264.5 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09711/0.09748, allocations: 44.51 MB / 309 MB, free: 1.051 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.005/1.103, allocations: 319.7 MB / 0.614 GB, free: 63.67 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003324/1.103, allocations: 99.27 kB / 0.6141 GB, free: 63.61 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.465/2.568, allocations: 280 MB / 0.8875 GB, free: 57.96 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.914e-06/2.568, allocations: 0 / 0.8875 GB, free: 57.96 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001249/2.568, allocations: 36.94 kB / 0.8875 GB, free: 57.96 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.006024/2.574, allocations: 1.963 MB / 0.8894 GB, free: 57.09 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.843e-05/2.574, allocations: 7.938 kB / 0.8894 GB, free: 57.09 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007471/2.575, allocations: 168.6 kB / 0.8896 GB, free: 57.01 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003207/2.578, allocations: 1.092 MB / 0.8907 GB, free: 56.73 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.519e-05/2.579, allocations: 79.66 kB / 0.8907 GB, free: 56.73 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002387/2.579, allocations: 98.2 kB / 0.8908 GB, free: 56.73 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003543/2.582, allocations: 1.625 MB / 0.8924 GB, free: 56.47 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.873e-05/2.582, allocations: 6.156 kB / 0.8924 GB, free: 56.47 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001987/2.583, allocations: 42.5 kB / 0.8925 GB, free: 56.47 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001836/2.583, allocations: 101.8 kB / 0.8926 GB, free: 56.47 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003819/2.587, allocations: 1.611 MB / 0.8941 GB, free: 56.46 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01331/2.6, allocations: 6.529 MB / 0.9005 GB, free: 53.41 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002078/2.602, allocations: 0.891 MB / 0.9014 GB, free: 53.38 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004898/2.607, allocations: 2.724 MB / 0.904 GB, free: 51.92 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.707e-05/2.607, allocations: 41.38 kB / 0.9041 GB, free: 51.88 MB / 410.7 MB Notification: Performance of pre-optimization done (n=80): time 2.826e-06/2.607, allocations: 0 / 0.9041 GB, free: 51.88 MB / 410.7 MB Notification: Performance of matching and sorting (n=90): time 0.01244/2.62, allocations: 3.653 MB / 0.9077 GB, free: 51.02 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.245e-05/2.62, allocations: 189.5 kB / 0.9078 GB, free: 50.8 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001943/2.622, allocations: 1.194 MB / 0.909 GB, free: 50.62 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001369/2.622, allocations: 51.03 kB / 0.909 GB, free: 50.59 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004723/2.622, allocations: 0.6519 MB / 0.9097 GB, free: 50.23 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003024/2.623, allocations: 329.2 kB / 0.91 GB, free: 50.03 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001242/2.623, allocations: 25.78 kB / 0.91 GB, free: 50.03 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001101/2.623, allocations: 380.2 kB / 0.9104 GB, free: 49.71 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001382/2.624, allocations: 0.5402 MB / 0.9109 GB, free: 49.71 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001631/2.626, allocations: 1.026 MB / 0.9119 GB, free: 49.15 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001538/2.627, allocations: 0.6773 MB / 0.9126 GB, free: 49.14 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.689e-06/2.627, allocations: 3.594 kB / 0.9126 GB, free: 49.14 MB / 410.7 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.004238/2.632, allocations: 1.792 MB / 0.9143 GB, free: 49.03 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002484/2.632, allocations: 0.5083 MB / 0.9148 GB, free: 48.44 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.061e-05/2.632, allocations: 14.56 kB / 0.9148 GB, free: 48.44 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00608/2.638, allocations: 0.6525 MB / 0.9155 GB, free: 48.42 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001907/2.64, allocations: 300.6 kB / 0.9158 GB, free: 48.42 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002247/2.642, allocations: 2.141 MB / 0.9179 GB, free: 46.86 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001974/2.644, allocations: 106.4 kB / 0.918 GB, free: 46.85 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001648/2.644, allocations: 74.91 kB / 0.918 GB, free: 46.85 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.097e-06/2.644, allocations: 3.938 kB / 0.918 GB, free: 46.85 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00404/2.648, allocations: 1.664 MB / 0.9197 GB, free: 46.8 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.015e-05/2.649, allocations: 12.97 kB / 0.9197 GB, free: 46.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004907/2.653, allocations: 0.4891 MB / 0.9201 GB, free: 46.77 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001864/2.655, allocations: 303.4 kB / 0.9204 GB, free: 46.75 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001687/2.657, allocations: 1.972 MB / 0.9224 GB, free: 45.18 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001423/2.658, allocations: 106.6 kB / 0.9225 GB, free: 45.18 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001584/2.659, allocations: 75.11 kB / 0.9225 GB, free: 45.18 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.001022/2.66, allocations: 472.5 kB / 0.923 GB, free: 44.96 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003463/2.66, allocations: 130.9 kB / 0.9231 GB, free: 44.89 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004217/2.664, allocations: 1.519 MB / 0.9246 GB, free: 44.75 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.109e-05/2.664, allocations: 11.31 kB / 0.9246 GB, free: 44.75 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.702e-06/2.664, allocations: 3.719 kB / 0.9246 GB, free: 44.75 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.428e-05/2.664, allocations: 16.94 kB / 0.9246 GB, free: 44.75 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006045/2.67, allocations: 2.746 MB / 0.9273 GB, free: 44.35 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.063e-06/2.67, allocations: 0 / 0.9273 GB, free: 44.35 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001214/2.672, allocations: 151.9 kB / 0.9274 GB, free: 44.34 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004383/2.676, allocations: 0.6086 MB / 0.928 GB, free: 44.32 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.468e-05/2.676, allocations: 29.69 kB / 0.9281 GB, free: 44.32 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001973/2.678, allocations: 2.11 MB / 0.9301 GB, free: 42.66 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.606e-06/2.678, allocations: 7.281 kB / 0.9301 GB, free: 42.65 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004486/2.683, allocations: 2.071 MB / 0.9322 GB, free: 41.71 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004561/2.683, allocations: 233.3 kB / 0.9324 GB, free: 41.52 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003463/2.683, allocations: 25.81 kB / 0.9324 GB, free: 41.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001318/2.685, allocations: 77.89 kB / 0.9325 GB, free: 41.48 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002445/2.685, allocations: 95.38 kB / 0.9326 GB, free: 41.47 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001109/2.685, allocations: 40.41 kB / 0.9326 GB, free: 41.46 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001478/2.687, allocations: 0.8048 MB / 0.9334 GB, free: 41.13 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.81e-07/2.687, allocations: 0 / 0.9334 GB, free: 41.13 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004094/2.691, allocations: 1.179 MB / 0.9345 GB, free: 40.84 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.002955/2.694, allocations: 1.109 MB / 0.9356 GB, free: 40.48 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00586/2.7, allocations: 2.209 MB / 0.9378 GB, free: 39.77 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.41e-06/2.7, allocations: 3.281 kB / 0.9378 GB, free: 39.77 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002123/2.702, allocations: 0.6966 MB / 0.9385 GB, free: 39.56 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003637/2.705, allocations: 0.4928 MB / 0.939 GB, free: 39.45 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006113/2.712, allocations: 3.307 MB / 0.9422 GB, free: 37.86 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008/2.712, allocations: 1.274 MB / 0.9434 GB, free: 37.1 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006625/2.713, allocations: 123.7 kB / 0.9435 GB, free: 37.09 MB / 410.7 MB Notification: Performance of SimCode: time 9.22e-07/2.713, allocations: 3.406 kB / 0.9435 GB, free: 37.09 MB / 410.7 MB Notification: Performance of Templates: time 0.0666/2.78, allocations: 43.31 MB / 0.9858 GB, free: 10.67 MB / 410.7 MB