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.TankWithEmptyingPipe2.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") Notification: Performance of loadModel(Modelica): time 1.626/1.626, allocations: 171.3 MB / 179.2 MB, free: 7.566 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.389e-05/3.406e-05, allocations: 4 kB / 222.5 MB, free: 8.703 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07143/0.07149, allocations: 38.77 MB / 261.3 MB, free: 1.844 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.894/0.9656, allocations: 313.3 MB / 0.5611 GB, free: 113.3 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000218/0.9658, allocations: 90.22 kB / 0.5612 GB, free: 113.2 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7637/1.73, allocations: 188.9 MB / 0.7457 GB, free: 55.09 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.319e-06/1.73, allocations: 3.906 kB / 0.7457 GB, free: 55.09 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.543e-05/1.73, allocations: 22.53 kB / 0.7457 GB, free: 55.08 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.003055/1.733, allocations: 1.309 MB / 0.747 GB, free: 54.08 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.942e-05/1.733, allocations: 8.625 kB / 0.747 GB, free: 54.08 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005475/1.733, allocations: 116.1 kB / 0.7471 GB, free: 54.03 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001865/1.735, allocations: 0.7733 MB / 0.7479 GB, free: 53.45 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.432e-05/1.735, allocations: 19.62 kB / 0.7479 GB, free: 53.45 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001335/1.735, allocations: 35.16 kB / 0.7479 GB, free: 53.45 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001812/1.737, allocations: 0.89 MB / 0.7488 GB, free: 53.04 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001732/1.739, allocations: 0.9489 MB / 0.7497 GB, free: 52.45 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.717e-05/1.739, allocations: 3.781 kB / 0.7497 GB, free: 52.45 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001145/1.739, allocations: 0 / 0.7497 GB, free: 52.45 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001038/1.739, allocations: 70.3 kB / 0.7498 GB, free: 52.42 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007495/1.747, allocations: 4.263 MB / 0.754 GB, free: 48.88 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009489/1.748, allocations: 0.5114 MB / 0.7545 GB, free: 48.62 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005086/1.748, allocations: 282.2 kB / 0.7547 GB, free: 48.49 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002959/1.751, allocations: 1.976 MB / 0.7567 GB, free: 46.71 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.143e-05/1.751, allocations: 38.52 kB / 0.7567 GB, free: 46.67 MB / 346.7 MB Notification: Performance of pre-optimization done (n=40): time 3.648e-06/1.751, allocations: 0 / 0.7567 GB, free: 46.67 MB / 346.7 MB Notification: Performance of matching and sorting (n=45): time 0.007497/1.759, allocations: 1.717 MB / 0.7584 GB, free: 45.65 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.414e-05/1.759, allocations: 161.8 kB / 0.7585 GB, free: 45.46 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009961/1.76, allocations: 0.6152 MB / 0.7591 GB, free: 45.11 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.167e-05/1.76, allocations: 29.64 kB / 0.7592 GB, free: 45.08 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003061/1.76, allocations: 0.5198 MB / 0.7597 GB, free: 44.6 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001398/1.761, allocations: 159.4 kB / 0.7598 GB, free: 44.46 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.591e-05/1.761, allocations: 0 / 0.7598 GB, free: 44.46 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.242e-05/1.761, allocations: 344.8 kB / 0.7602 GB, free: 44.12 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005471/1.761, allocations: 282.6 kB / 0.7604 GB, free: 44 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007148/1.762, allocations: 0.642 MB / 0.761 GB, free: 43.24 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008156/1.77, allocations: 1.369 MB / 0.7624 GB, free: 41.88 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.425e-05/1.77, allocations: 4 kB / 0.7624 GB, free: 41.88 MB / 346.7 MB Notification: Performance of matching and sorting (n=115) (initialization): time 0.008749/1.779, allocations: 1.959 MB / 0.7643 GB, free: 39.9 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008407/1.78, allocations: 4.437 MB / 0.7686 GB, free: 35.12 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.954e-05/1.78, allocations: 16 kB / 0.7687 GB, free: 35.11 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006866/1.781, allocations: 161.6 kB / 0.7688 GB, free: 34.94 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008417/1.782, allocations: 191.7 kB / 0.769 GB, free: 34.75 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002192/1.784, allocations: 1.491 MB / 0.7704 GB, free: 33.21 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001109/1.785, allocations: 40.09 kB / 0.7705 GB, free: 33.18 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001118/1.785, allocations: 51.98 kB / 0.7705 GB, free: 33.12 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.198e-05/1.785, allocations: 4 kB / 0.7705 GB, free: 33.12 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008142/1.793, allocations: 1.811 MB / 0.7723 GB, free: 31.3 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.831e-05/1.793, allocations: 16.17 kB / 0.7723 GB, free: 31.29 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005987/1.794, allocations: 149.6 kB / 0.7725 GB, free: 31.13 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007621/1.795, allocations: 191.7 kB / 0.7726 GB, free: 30.95 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001804/1.796, allocations: 1.374 MB / 0.774 GB, free: 29.52 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007862/1.797, allocations: 50.36 kB / 0.774 GB, free: 29.47 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.986e-05/1.797, allocations: 47.98 kB / 0.7741 GB, free: 29.43 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],tank1.ports_m_flow_out[2],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (109): * Single equations (assignments): 107 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0002497/1.798, allocations: 143.6 kB / 0.7742 GB, free: 29.28 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002077/1.798, allocations: 82.97 kB / 0.7743 GB, free: 29.2 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002575/1.8, allocations: 0.7887 MB / 0.7751 GB, free: 28.4 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.883e-06/1.8, allocations: 11.94 kB / 0.7751 GB, free: 28.39 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/1.8, allocations: 0 / 0.7751 GB, free: 28.39 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.454e-06/1.801, allocations: 7.922 kB / 0.7751 GB, free: 28.38 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003596/1.804, allocations: 1.492 MB / 0.7765 GB, free: 26.84 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.175e-06/1.804, allocations: 0 / 0.7765 GB, free: 26.84 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004509/1.805, allocations: 79.89 kB / 0.7766 GB, free: 26.77 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007037/1.805, allocations: 153.4 kB / 0.7768 GB, free: 26.61 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.979e-05/1.805, allocations: 11.98 kB / 0.7768 GB, free: 26.6 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001614/1.807, allocations: 1.385 MB / 0.7781 GB, free: 25.17 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.97e-06/1.807, allocations: 0 / 0.7781 GB, free: 25.17 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002439/1.809, allocations: 1.113 MB / 0.7792 GB, free: 24.02 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002582/1.81, allocations: 164.1 kB / 0.7794 GB, free: 23.84 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001531/1.81, allocations: 4 kB / 0.7794 GB, free: 23.84 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006372/1.811, allocations: 35.97 kB / 0.7794 GB, free: 23.8 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001301/1.811, allocations: 44.36 kB / 0.7795 GB, free: 23.76 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.068e-05/1.811, allocations: 23.73 kB / 0.7795 GB, free: 23.74 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0006798/1.812, allocations: 467.1 kB / 0.7799 GB, free: 23.29 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.84e-07/1.812, allocations: 0 / 0.7799 GB, free: 23.29 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002608/1.814, allocations: 0.7571 MB / 0.7807 GB, free: 22.53 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (tank1.medium.T,tank1.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of discrete states: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.001891/1.816, allocations: 0.7848 MB / 0.7814 GB, free: 21.8 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00245/1.819, allocations: 1.129 MB / 0.7825 GB, free: 20.68 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.786e-06/1.819, allocations: 4 kB / 0.7825 GB, free: 20.67 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006229/1.819, allocations: 301.3 kB / 0.7828 GB, free: 20.38 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00156/1.821, allocations: 294.2 kB / 0.7831 GB, free: 20.11 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002692/1.823, allocations: 1.34 MB / 0.7844 GB, free: 18.74 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000545/1.824, allocations: 1.049 MB / 0.7854 GB, free: 17.66 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002706/1.824, allocations: 83.41 kB / 0.7855 GB, free: 17.58 MB / 346.7 MB Notification: Performance of SimCode: time 1.512e-06/1.824, allocations: 0 / 0.7855 GB, free: 17.58 MB / 346.7 MB Notification: Performance of Templates: time 0.2312/2.056, allocations: 24.85 MB / 0.8098 GB, free: 54.34 MB / 346.7 MB