Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") Notification: Performance of loadModel(Modelica): time 1.677/1.677, allocations: 171.2 MB / 187.3 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003421/0.0003423, allocations: 12 kB / 233.8 MB, free: 3.074 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.106, allocations: 38.76 MB / 272.6 MB, free: 12.24 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.202/1.308, allocations: 314.4 MB / 0.5732 GB, free: 99.84 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003632/1.308, allocations: 97.03 kB / 0.5733 GB, free: 99.84 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.25/2.559, allocations: 280 MB / 0.8467 GB, free: 8.344 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.164e-06/2.559, allocations: 0 / 0.8467 GB, free: 8.344 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001468/2.559, allocations: 35.98 kB / 0.8467 GB, free: 8.309 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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.007284/2.566, allocations: 1.962 MB / 0.8486 GB, free: 6.293 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.264e-05/2.566, allocations: 8.031 kB / 0.8487 GB, free: 6.285 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001275/2.567, allocations: 170.1 kB / 0.8488 GB, free: 6.117 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004013/2.571, allocations: 1.093 MB / 0.8499 GB, free: 4.98 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001475/2.572, allocations: 81.97 kB / 0.85 GB, free: 4.898 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004917/2.572, allocations: 95.97 kB / 0.8501 GB, free: 4.805 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004395/2.577, allocations: 1.635 MB / 0.8517 GB, free: 3.078 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.954e-05/2.577, allocations: 0 / 0.8517 GB, free: 3.078 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002402/2.577, allocations: 43.92 kB / 0.8517 GB, free: 3.035 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002035/2.577, allocations: 109.9 kB / 0.8518 GB, free: 2.93 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004506/2.582, allocations: 1.608 MB / 0.8534 GB, free: 1.316 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2858/2.868, allocations: 6.512 MB / 0.8597 GB, free: 36.51 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002699/2.87, allocations: 0.9014 MB / 0.8606 GB, free: 36.47 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006684/2.877, allocations: 2.73 MB / 0.8633 GB, free: 35.04 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.586e-05/2.877, allocations: 47.06 kB / 0.8633 GB, free: 35 MB / 362.7 MB Notification: Performance of pre-optimization done (n=80): time 3.607e-06/2.877, allocations: 0 / 0.8633 GB, free: 35 MB / 362.7 MB Notification: Performance of matching and sorting (n=90): time 0.01568/2.893, allocations: 3.644 MB / 0.8669 GB, free: 34.2 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.26e-05/2.893, allocations: 194.8 kB / 0.8671 GB, free: 33.98 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002637/2.896, allocations: 1.19 MB / 0.8682 GB, free: 33.82 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003741/2.896, allocations: 51.33 kB / 0.8683 GB, free: 33.79 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005851/2.897, allocations: 0.6594 MB / 0.8689 GB, free: 33.47 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005614/2.897, allocations: 315.5 kB / 0.8692 GB, free: 33.32 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001671/2.897, allocations: 27.84 kB / 0.8692 GB, free: 33.32 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001446/2.898, allocations: 372 kB / 0.8696 GB, free: 33 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001768/2.899, allocations: 0.5418 MB / 0.8701 GB, free: 33 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00215/2.901, allocations: 1.027 MB / 0.8711 GB, free: 32.45 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002144/2.904, allocations: 0.6745 MB / 0.8718 GB, free: 32.45 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.349e-05/2.904, allocations: 4.812 kB / 0.8718 GB, free: 32.45 MB / 362.7 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.005832/2.91, allocations: 1.798 MB / 0.8736 GB, free: 32.33 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003321/2.91, allocations: 0.5041 MB / 0.874 GB, free: 31.75 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.164e-05/2.91, allocations: 15.94 kB / 0.8741 GB, free: 31.75 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006739/2.917, allocations: 0.6593 MB / 0.8747 GB, free: 31.72 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002359/2.919, allocations: 291.9 kB / 0.875 GB, free: 31.72 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002749/2.922, allocations: 2.145 MB / 0.8771 GB, free: 30.16 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002576/2.925, allocations: 109.6 kB / 0.8772 GB, free: 30.16 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004212/2.925, allocations: 72.62 kB / 0.8772 GB, free: 30.16 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.451e-05/2.925, allocations: 7.422 kB / 0.8773 GB, free: 30.16 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004974/2.93, allocations: 1.668 MB / 0.8789 GB, free: 30.1 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.355e-05/2.93, allocations: 13.62 kB / 0.8789 GB, free: 30.1 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005292/2.935, allocations: 489.4 kB / 0.8794 GB, free: 30.08 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002327/2.938, allocations: 309.4 kB / 0.8797 GB, free: 30.08 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002042/2.94, allocations: 1.97 MB / 0.8816 GB, free: 28.52 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001906/2.942, allocations: 100 kB / 0.8817 GB, free: 28.52 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003387/2.942, allocations: 70.78 kB / 0.8817 GB, free: 28.52 MB / 362.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.001544/2.944, allocations: 480.9 kB / 0.8822 GB, free: 28.34 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004637/2.944, allocations: 139.4 kB / 0.8823 GB, free: 28.26 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005328/2.95, allocations: 1.506 MB / 0.8838 GB, free: 28.15 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.957e-05/2.95, allocations: 20.61 kB / 0.8838 GB, free: 28.15 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.568e-06/2.95, allocations: 3.062 kB / 0.8838 GB, free: 28.15 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.589e-05/2.95, allocations: 3.938 kB / 0.8838 GB, free: 28.15 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007758/2.958, allocations: 2.759 MB / 0.8865 GB, free: 27.76 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.458e-06/2.958, allocations: 0 / 0.8865 GB, free: 27.76 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001293/2.959, allocations: 154.6 kB / 0.8867 GB, free: 27.76 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004675/2.964, allocations: 0.6094 MB / 0.8873 GB, free: 27.73 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002937/2.964, allocations: 25.3 kB / 0.8873 GB, free: 27.73 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002247/2.966, allocations: 2.111 MB / 0.8894 GB, free: 26.17 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.083e-06/2.966, allocations: 7.578 kB / 0.8894 GB, free: 26.17 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005788/2.972, allocations: 2.067 MB / 0.8914 GB, free: 25.87 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007289/2.973, allocations: 229.4 kB / 0.8916 GB, free: 25.7 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005128/2.973, allocations: 30.17 kB / 0.8916 GB, free: 25.7 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001544/2.975, allocations: 74.48 kB / 0.8917 GB, free: 25.7 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002748/2.975, allocations: 104.5 kB / 0.8918 GB, free: 25.7 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001258/2.975, allocations: 30.05 kB / 0.8918 GB, free: 25.7 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001553/2.977, allocations: 0.808 MB / 0.8926 GB, free: 25.59 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.51e-07/2.977, allocations: 0 / 0.8926 GB, free: 25.59 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.004814/2.982, allocations: 1.185 MB / 0.8938 GB, free: 25.59 MB / 362.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.003777/2.986, allocations: 1.094 MB / 0.8948 GB, free: 25.47 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.007165/2.993, allocations: 2.212 MB / 0.897 GB, free: 25.44 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.14e-05/2.993, allocations: 4.25 kB / 0.897 GB, free: 25.44 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002441/2.995, allocations: 0.6942 MB / 0.8977 GB, free: 25.43 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004408/3, allocations: 0.498 MB / 0.8982 GB, free: 25.43 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00732/3.007, allocations: 3.321 MB / 0.9014 GB, free: 24.15 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008821/3.008, allocations: 1.279 MB / 0.9027 GB, free: 23.44 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008025/3.009, allocations: 122.4 kB / 0.9028 GB, free: 23.43 MB / 362.7 MB Notification: Performance of SimCode: time 9.82e-07/3.009, allocations: 0 / 0.9028 GB, free: 23.43 MB / 362.7 MB Notification: Performance of Templates: time 0.07634/3.085, allocations: 43.29 MB / 0.9451 GB, free: 21.28 MB / 362.7 MB