Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_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_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") Notification: Performance of loadModel(Modelica): time 1.848/1.848, allocations: 171.2 MB / 186.7 MB, free: 1.031 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004774/0.0004775, allocations: 8 kB / 233.9 MB, free: 2.379 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09076/0.09128, allocations: 38.77 MB / 272.6 MB, free: 11.53 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.224/1.315, allocations: 314.4 MB / 0.5733 GB, free: 99.68 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004879/1.316, allocations: 97.38 kB / 0.5734 GB, free: 99.68 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.35/2.666, allocations: 280 MB / 0.8468 GB, free: 7.844 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.276e-06/2.666, allocations: 0 / 0.8468 GB, free: 7.844 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002481/2.666, allocations: 43.92 kB / 0.8468 GB, free: 7.801 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.01023/2.677, allocations: 1.951 MB / 0.8487 GB, free: 5.797 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.023e-05/2.677, allocations: 15.97 kB / 0.8487 GB, free: 5.781 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001882/2.679, allocations: 170.1 kB / 0.8489 GB, free: 5.613 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006044/2.685, allocations: 1.093 MB / 0.85 GB, free: 4.477 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002291/2.685, allocations: 81.95 kB / 0.85 GB, free: 4.395 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006795/2.686, allocations: 95.98 kB / 0.8501 GB, free: 4.301 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006153/2.692, allocations: 1.627 MB / 0.8517 GB, free: 2.582 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.587e-05/2.692, allocations: 4 kB / 0.8517 GB, free: 2.578 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003442/2.692, allocations: 47.97 kB / 0.8518 GB, free: 2.531 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002734/2.693, allocations: 101.9 kB / 0.8519 GB, free: 2.434 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006629/2.699, allocations: 1.608 MB / 0.8534 GB, free: 0.8203 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2881/2.987, allocations: 6.512 MB / 0.8598 GB, free: 36.61 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002444/2.99, allocations: 0.8929 MB / 0.8607 GB, free: 36.57 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006131/2.996, allocations: 2.737 MB / 0.8633 GB, free: 35.14 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.516e-05/2.996, allocations: 45.66 kB / 0.8634 GB, free: 35.1 MB / 362.7 MB Notification: Performance of pre-optimization done (n=80): time 5.04e-06/2.996, allocations: 0 / 0.8634 GB, free: 35.1 MB / 362.7 MB Notification: Performance of matching and sorting (n=90): time 0.01524/3.012, allocations: 3.644 MB / 0.867 GB, free: 34.29 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.954e-05/3.012, allocations: 193.7 kB / 0.8671 GB, free: 34.07 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002517/3.014, allocations: 1.19 MB / 0.8683 GB, free: 33.91 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003597/3.015, allocations: 45.98 kB / 0.8683 GB, free: 33.88 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007431/3.015, allocations: 0.6675 MB / 0.869 GB, free: 33.63 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005633/3.016, allocations: 326.5 kB / 0.8693 GB, free: 33.47 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000152/3.016, allocations: 29.16 kB / 0.8693 GB, free: 33.47 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001308/3.016, allocations: 369.1 kB / 0.8697 GB, free: 33.16 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001693/3.018, allocations: 0.5471 MB / 0.8702 GB, free: 33.16 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002036/3.02, allocations: 1.021 MB / 0.8712 GB, free: 32.61 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002187/3.022, allocations: 0.6741 MB / 0.8719 GB, free: 32.61 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-05/3.022, allocations: 6.562 kB / 0.8719 GB, free: 32.61 MB / 362.7 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.005766/3.028, allocations: 1.865 MB / 0.8737 GB, free: 32.45 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000358/3.028, allocations: 0.5008 MB / 0.8742 GB, free: 31.87 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.283e-05/3.029, allocations: 15.16 kB / 0.8742 GB, free: 31.87 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006601/3.035, allocations: 0.6628 MB / 0.8749 GB, free: 31.85 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002317/3.037, allocations: 299 kB / 0.8751 GB, free: 31.85 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002756/3.04, allocations: 2.151 MB / 0.8772 GB, free: 30.28 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002498/3.043, allocations: 103.5 kB / 0.8773 GB, free: 30.28 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002368/3.043, allocations: 78.22 kB / 0.8774 GB, free: 30.28 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.204e-05/3.043, allocations: 3.812 kB / 0.8774 GB, free: 30.28 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004667/3.048, allocations: 1.659 MB / 0.879 GB, free: 30.23 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.689e-05/3.048, allocations: 18.06 kB / 0.8791 GB, free: 30.23 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005278/3.053, allocations: 0.4986 MB / 0.8795 GB, free: 30.2 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002218/3.055, allocations: 302.7 kB / 0.8798 GB, free: 30.2 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002077/3.058, allocations: 1.991 MB / 0.8818 GB, free: 28.64 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002199/3.06, allocations: 101.2 kB / 0.8819 GB, free: 28.64 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002853/3.06, allocations: 66.16 kB / 0.8819 GB, free: 28.64 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.001233/3.061, allocations: 483.5 kB / 0.8824 GB, free: 28.45 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00044/3.062, allocations: 136 kB / 0.8825 GB, free: 28.38 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004966/3.067, allocations: 1.517 MB / 0.884 GB, free: 28.27 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.675e-05/3.067, allocations: 15.61 kB / 0.884 GB, free: 28.27 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.628e-06/3.067, allocations: 0 / 0.884 GB, free: 28.27 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.952e-05/3.067, allocations: 3.562 kB / 0.884 GB, free: 28.27 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00746/3.074, allocations: 2.749 MB / 0.8867 GB, free: 27.88 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.718e-06/3.074, allocations: 4.562 kB / 0.8867 GB, free: 27.88 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001299/3.076, allocations: 153 kB / 0.8869 GB, free: 27.88 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004877/3.081, allocations: 0.6117 MB / 0.8875 GB, free: 27.86 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002945/3.081, allocations: 28.58 kB / 0.8875 GB, free: 27.86 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002304/3.083, allocations: 2.106 MB / 0.8895 GB, free: 26.29 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.386e-06/3.083, allocations: 9.781 kB / 0.8895 GB, free: 26.29 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005204/3.089, allocations: 2.062 MB / 0.8916 GB, free: 25.99 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006898/3.089, allocations: 231.1 kB / 0.8918 GB, free: 25.82 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005195/3.09, allocations: 38.58 kB / 0.8918 GB, free: 25.82 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001592/3.091, allocations: 76.2 kB / 0.8919 GB, free: 25.82 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003063/3.092, allocations: 93.48 kB / 0.892 GB, free: 25.82 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001349/3.092, allocations: 40.03 kB / 0.892 GB, free: 25.82 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001613/3.094, allocations: 0.801 MB / 0.8928 GB, free: 25.71 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.91e-07/3.094, allocations: 2.656 kB / 0.8928 GB, free: 25.71 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.005189/3.099, allocations: 1.188 MB / 0.894 GB, free: 25.71 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.00373/3.103, allocations: 1.095 MB / 0.895 GB, free: 25.59 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.007188/3.11, allocations: 2.222 MB / 0.8972 GB, free: 25.56 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.909e-06/3.11, allocations: 0 / 0.8972 GB, free: 25.56 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002497/3.112, allocations: 0.6965 MB / 0.8979 GB, free: 25.55 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004171/3.117, allocations: 0.4965 MB / 0.8984 GB, free: 25.54 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007244/3.124, allocations: 3.251 MB / 0.9015 GB, free: 24.3 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008846/3.125, allocations: 1.286 MB / 0.9028 GB, free: 23.59 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.003246/3.128, allocations: 0.5438 MB / 0.9033 GB, free: 23.57 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005136/3.129, allocations: 110.1 kB / 0.9034 GB, free: 23.57 MB / 362.7 MB Notification: Performance of SimCode: time 2.304e-06/3.129, allocations: 0.6562 kB / 0.9034 GB, free: 23.57 MB / 362.7 MB Notification: Performance of Templates: time 0.08417/3.213, allocations: 35.54 MB / 0.9381 GB, free: 21.43 MB / 362.7 MB