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.TanksWithEmptyingPipe1.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.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.668/1.668, allocations: 171.2 MB / 186.7 MB, free: 1.039 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003714/0.0003715, allocations: 15.98 kB / 233.2 MB, free: 3.004 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07095/0.07135, allocations: 38.77 MB / 272 MB, free: 12.15 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7523/0.8237, allocations: 314.4 MB / 0.5727 GB, free: 2.957 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00024/0.824, allocations: 91.33 kB / 0.5728 GB, free: 2.906 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.276/2.1, allocations: 280 MB / 0.8462 GB, free: 20.41 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.257e-06/2.1, allocations: 0 / 0.8462 GB, free: 20.41 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001467/2.1, allocations: 43.86 kB / 0.8462 GB, free: 20.37 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.006049/2.106, allocations: 1.955 MB / 0.8481 GB, free: 18.36 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.999e-05/2.106, allocations: 8.031 kB / 0.8481 GB, free: 18.35 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001114/2.108, allocations: 170.1 kB / 0.8483 GB, free: 18.18 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003223/2.111, allocations: 1.093 MB / 0.8494 GB, free: 17.04 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001279/2.111, allocations: 77.98 kB / 0.8494 GB, free: 16.97 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004154/2.111, allocations: 99.89 kB / 0.8495 GB, free: 16.87 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003853/2.115, allocations: 1.627 MB / 0.8511 GB, free: 15.15 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.339e-05/2.115, allocations: 3.938 kB / 0.8511 GB, free: 15.15 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002343/2.116, allocations: 39.98 kB / 0.8512 GB, free: 15.11 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001551/2.116, allocations: 101.9 kB / 0.8513 GB, free: 15.01 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003915/2.12, allocations: 1.612 MB / 0.8528 GB, free: 13.4 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01308/2.133, allocations: 6.526 MB / 0.8592 GB, free: 6.504 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002046/2.135, allocations: 0.8934 MB / 0.8601 GB, free: 5.602 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004798/2.14, allocations: 2.731 MB / 0.8628 GB, free: 2.625 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.799e-05/2.14, allocations: 51.22 kB / 0.8628 GB, free: 2.566 MB / 362.7 MB Notification: Performance of pre-optimization done (n=80): time 4.014e-06/2.14, allocations: 3.938 kB / 0.8628 GB, free: 2.562 MB / 362.7 MB Notification: Performance of matching and sorting (n=90): time 0.2416/2.381, allocations: 3.635 MB / 0.8664 GB, free: 43.35 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.249e-05/2.382, allocations: 192.2 kB / 0.8665 GB, free: 43.13 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003752/2.385, allocations: 1.052 MB / 0.8676 GB, free: 42.98 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003395/2.386, allocations: 53.34 kB / 0.8676 GB, free: 42.95 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007868/2.387, allocations: 0.6504 MB / 0.8683 GB, free: 42.63 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006509/2.387, allocations: 324.7 kB / 0.8686 GB, free: 42.48 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002292/2.388, allocations: 28.75 kB / 0.8686 GB, free: 42.48 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001934/2.388, allocations: 372.7 kB / 0.8689 GB, free: 42.16 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002277/2.39, allocations: 0.5408 MB / 0.8695 GB, free: 42.16 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003/2.393, allocations: 1.029 MB / 0.8705 GB, free: 41.61 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002622/2.396, allocations: 0.6735 MB / 0.8711 GB, free: 41.61 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.045e-05/2.396, allocations: 3.875 kB / 0.8711 GB, free: 41.61 MB / 362.7 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.004909/2.401, allocations: 1.793 MB / 0.8729 GB, free: 41.49 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001132/2.402, allocations: 5.572 MB / 0.8783 GB, free: 35.7 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.07e-05/2.402, allocations: 16.03 kB / 0.8784 GB, free: 35.7 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007361/2.409, allocations: 0.6637 MB / 0.879 GB, free: 35.67 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002535/2.412, allocations: 300.2 kB / 0.8793 GB, free: 35.67 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003544/2.416, allocations: 2.134 MB / 0.8814 GB, free: 34.11 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003113/2.419, allocations: 108.2 kB / 0.8815 GB, free: 34.11 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005684/2.419, allocations: 72.55 kB / 0.8815 GB, free: 34.11 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.924e-05/2.419, allocations: 6.281 kB / 0.8815 GB, free: 34.11 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007238/2.427, allocations: 1.664 MB / 0.8832 GB, free: 34.06 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.578e-05/2.427, allocations: 15.72 kB / 0.8832 GB, free: 34.06 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004296/2.431, allocations: 496.2 kB / 0.8837 GB, free: 34.04 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001675/2.433, allocations: 301.8 kB / 0.8839 GB, free: 34.04 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001861/2.435, allocations: 1.967 MB / 0.8859 GB, free: 32.48 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001518/2.436, allocations: 103.9 kB / 0.886 GB, free: 32.48 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002436/2.437, allocations: 74.58 kB / 0.886 GB, free: 32.47 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.001135/2.438, allocations: 477 kB / 0.8865 GB, free: 32.29 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003971/2.438, allocations: 137.9 kB / 0.8866 GB, free: 32.21 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004441/2.443, allocations: 1.51 MB / 0.8881 GB, free: 32.09 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.142e-05/2.443, allocations: 11.64 kB / 0.8881 GB, free: 32.09 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.302e-06/2.443, allocations: 0 / 0.8881 GB, free: 32.09 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.303e-05/2.443, allocations: 7.125 kB / 0.8881 GB, free: 32.09 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00672/2.449, allocations: 2.756 MB / 0.8908 GB, free: 31.7 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.126e-05/2.449, allocations: 0 / 0.8908 GB, free: 31.7 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009479/2.45, allocations: 156.5 kB / 0.891 GB, free: 31.7 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004017/2.454, allocations: 0.6159 MB / 0.8916 GB, free: 31.68 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002304/2.455, allocations: 26.92 kB / 0.8916 GB, free: 31.68 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002023/2.457, allocations: 2.109 MB / 0.8936 GB, free: 30.11 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.052e-06/2.457, allocations: 5.094 kB / 0.8937 GB, free: 30.11 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004423/2.461, allocations: 2.121 MB / 0.8957 GB, free: 29.75 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006173/2.462, allocations: 236.9 kB / 0.8959 GB, free: 29.58 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003966/2.462, allocations: 24.41 kB / 0.896 GB, free: 29.58 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001143/2.463, allocations: 77.05 kB / 0.896 GB, free: 29.58 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002502/2.464, allocations: 97.05 kB / 0.8961 GB, free: 29.58 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001265/2.464, allocations: 40.59 kB / 0.8962 GB, free: 29.58 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001526/2.465, allocations: 0.7963 MB / 0.897 GB, free: 29.47 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.735e-06/2.465, allocations: 3.156 kB / 0.897 GB, free: 29.47 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.004905/2.47, allocations: 1.189 MB / 0.8981 GB, free: 29.47 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.003268/2.474, allocations: 1.092 MB / 0.8992 GB, free: 29.36 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.005769/2.479, allocations: 2.206 MB / 0.9013 GB, free: 29.34 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.894e-06/2.48, allocations: 3.781 kB / 0.9013 GB, free: 29.34 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001995/2.482, allocations: 0.6966 MB / 0.902 GB, free: 29.32 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003035/2.485, allocations: 0.5098 MB / 0.9025 GB, free: 29.31 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006155/2.491, allocations: 3.29 MB / 0.9057 GB, free: 28.05 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008847/2.492, allocations: 1.282 MB / 0.907 GB, free: 27.34 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006402/2.492, allocations: 119.4 kB / 0.9071 GB, free: 27.33 MB / 362.7 MB Notification: Performance of SimCode: time 1.947e-06/2.492, allocations: 0 / 0.9071 GB, free: 27.33 MB / 362.7 MB Notification: Performance of Templates: time 0.05985/2.552, allocations: 43.31 MB / 0.9494 GB, free: 25.13 MB / 362.7 MB