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/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.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.763/1.763, allocations: 171.2 MB / 186.8 MB, free: 1.031 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006687/0.0006688, allocations: 12 kB / 233.2 MB, free: 3.008 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.1126, allocations: 38.78 MB / 272 MB, free: 12.15 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8057/0.9183, allocations: 314.1 MB / 0.5723 GB, free: 3.363 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002483/0.9186, allocations: 92.23 kB / 0.5724 GB, free: 3.312 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9824/1.901, allocations: 190.8 MB / 0.7588 GB, free: 67.46 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.686e-06/1.901, allocations: 0 / 0.7588 GB, free: 67.46 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.135e-05/1.901, allocations: 27.02 kB / 0.7588 GB, free: 67.46 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: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.004137/1.905, allocations: 1.409 MB / 0.7602 GB, free: 66.79 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/1.905, allocations: 9.906 kB / 0.7602 GB, free: 66.79 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007099/1.906, allocations: 109.7 kB / 0.7603 GB, free: 66.73 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002161/1.908, allocations: 0.7812 MB / 0.761 GB, free: 66.48 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.671e-05/1.908, allocations: 58.62 kB / 0.7611 GB, free: 66.48 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001931/1.909, allocations: 58.86 kB / 0.7611 GB, free: 66.48 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002224/1.911, allocations: 1.049 MB / 0.7622 GB, free: 66.29 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.045e-05/1.911, allocations: 6.219 kB / 0.7622 GB, free: 66.29 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001334/1.911, allocations: 27.17 kB / 0.7622 GB, free: 66.29 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001079/1.911, allocations: 69.05 kB / 0.7623 GB, free: 66.29 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002138/1.913, allocations: 1.008 MB / 0.7633 GB, free: 66.28 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008624/1.922, allocations: 4.416 MB / 0.7676 GB, free: 64.09 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001212/1.923, allocations: 0.5314 MB / 0.7681 GB, free: 64.06 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002953/1.926, allocations: 1.915 MB / 0.77 GB, free: 62.81 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.588e-05/1.926, allocations: 47.45 kB / 0.77 GB, free: 62.77 MB / 362.7 MB Notification: Performance of pre-optimization done (n=40): time 3.418e-06/1.926, allocations: 0 / 0.77 GB, free: 62.77 MB / 362.7 MB Notification: Performance of matching and sorting (n=45): time 0.005768/1.932, allocations: 1.88 MB / 0.7718 GB, free: 62.15 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.084e-05/1.932, allocations: 158.7 kB / 0.772 GB, free: 61.96 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001276/1.933, allocations: 0.7411 MB / 0.7727 GB, free: 61.83 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001238/1.934, allocations: 36.67 kB / 0.7727 GB, free: 61.8 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003253/1.934, allocations: 0.5019 MB / 0.7732 GB, free: 61.48 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001727/1.934, allocations: 165.1 kB / 0.7734 GB, free: 61.39 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.822e-05/1.934, allocations: 18.91 kB / 0.7734 GB, free: 61.39 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.803e-05/1.934, allocations: 343.8 kB / 0.7737 GB, free: 61.07 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007133/1.935, allocations: 302.2 kB / 0.774 GB, free: 61.07 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008545/1.936, allocations: 0.6553 MB / 0.7747 GB, free: 60.64 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008288/1.937, allocations: 400.3 kB / 0.7751 GB, free: 60.63 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.861e-06/1.937, allocations: 3.969 kB / 0.7751 GB, free: 60.63 MB / 362.7 MB Notification: Performance of matching and sorting (n=115) (initialization): time 0.00244/1.939, allocations: 1.049 MB / 0.7761 GB, free: 60.56 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008984/1.94, allocations: 4.447 MB / 0.7804 GB, free: 55.94 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.45e-05/1.94, allocations: 11.56 kB / 0.7804 GB, free: 55.94 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002785/1.943, allocations: 319.1 kB / 0.7807 GB, free: 55.92 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009853/1.944, allocations: 196.9 kB / 0.7809 GB, free: 55.92 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001381/1.945, allocations: 1.324 MB / 0.7822 GB, free: 54.88 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00151/1.947, allocations: 76.09 kB / 0.7823 GB, free: 54.87 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002301/1.947, allocations: 48.5 kB / 0.7823 GB, free: 54.87 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.452e-05/1.947, allocations: 3.562 kB / 0.7823 GB, free: 54.87 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002423/1.95, allocations: 0.9754 MB / 0.7833 GB, free: 54.84 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.672e-05/1.95, allocations: 13.75 kB / 0.7833 GB, free: 54.84 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002107/1.952, allocations: 283.4 kB / 0.7836 GB, free: 54.82 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000985/1.953, allocations: 193.6 kB / 0.7838 GB, free: 54.82 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001115/1.954, allocations: 1.272 MB / 0.785 GB, free: 53.79 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009723/1.955, allocations: 67.83 kB / 0.7851 GB, free: 53.79 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001301/1.955, allocations: 48.58 kB / 0.7851 GB, free: 53.79 MB / 362.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 () * Number of clocked 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.0007137/1.956, allocations: 372 kB / 0.7855 GB, free: 53.59 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002344/1.956, allocations: 88.5 kB / 0.7856 GB, free: 53.55 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002249/1.959, allocations: 0.7695 MB / 0.7863 GB, free: 53.46 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.17e-05/1.959, allocations: 11.05 kB / 0.7863 GB, free: 53.45 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.334e-06/1.959, allocations: 3.25 kB / 0.7863 GB, free: 53.45 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.043e-05/1.959, allocations: 3.891 kB / 0.7863 GB, free: 53.45 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003631/1.962, allocations: 1.542 MB / 0.7878 GB, free: 53.11 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.395e-06/1.962, allocations: 0 / 0.7878 GB, free: 53.11 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005385/1.963, allocations: 81.45 kB / 0.7879 GB, free: 53.11 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002053/1.965, allocations: 285.8 kB / 0.7882 GB, free: 53.09 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001101/1.965, allocations: 7.375 kB / 0.7882 GB, free: 53.09 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001185/1.966, allocations: 1.317 MB / 0.7895 GB, free: 52.05 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.398e-06/1.966, allocations: 0 / 0.7895 GB, free: 52.05 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002304/1.969, allocations: 1.091 MB / 0.7905 GB, free: 51.78 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004035/1.969, allocations: 178.6 kB / 0.7907 GB, free: 51.63 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002018/1.969, allocations: 21.75 kB / 0.7907 GB, free: 51.63 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006871/1.97, allocations: 33.08 kB / 0.7908 GB, free: 51.63 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000141/1.97, allocations: 53.66 kB / 0.7908 GB, free: 51.63 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.859e-05/1.97, allocations: 22.56 kB / 0.7908 GB, free: 51.63 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000993/1.971, allocations: 0.5677 MB / 0.7914 GB, free: 51.54 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.02e-07/1.971, allocations: 0 / 0.7914 GB, free: 51.54 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003411/1.975, allocations: 0.809 MB / 0.7922 GB, free: 51.39 MB / 362.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]) * Number of clocked states: 0 () * 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.00246/1.977, allocations: 0.7958 MB / 0.793 GB, free: 51.15 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003346/1.981, allocations: 1.242 MB / 0.7942 GB, free: 50.97 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.84e-06/1.981, allocations: 1.625 kB / 0.7942 GB, free: 50.97 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001198/1.982, allocations: 353.5 kB / 0.7945 GB, free: 50.88 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002044/1.984, allocations: 308.5 kB / 0.7948 GB, free: 50.8 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004016/1.988, allocations: 2.136 MB / 0.7969 GB, free: 49.76 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005818/1.989, allocations: 1.049 MB / 0.7979 GB, free: 49.03 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003745/1.989, allocations: 78.33 kB / 0.798 GB, free: 49.02 MB / 362.7 MB Notification: Performance of SimCode: time 1.704e-06/1.989, allocations: 0 / 0.798 GB, free: 49.02 MB / 362.7 MB Notification: Performance of Templates: time 0.03773/2.027, allocations: 25.16 MB / 0.8226 GB, free: 42.13 MB / 362.7 MB