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.TankWithEmptyingPipe2.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.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.629/1.629, allocations: 171.2 MB / 187.3 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003547/0.0003548, allocations: 12 kB / 233.8 MB, free: 3.082 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09394/0.09432, allocations: 38.77 MB / 272.6 MB, free: 12.23 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8917/0.986, allocations: 314.1 MB / 0.5729 GB, free: 356 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003326/0.9864, allocations: 98.08 kB / 0.5729 GB, free: 304 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.223/2.21, allocations: 190.8 MB / 0.7593 GB, free: 68.84 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.424e-06/2.21, allocations: 0 / 0.7593 GB, free: 68.84 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001097/2.21, allocations: 28.83 kB / 0.7593 GB, free: 68.84 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.005031/2.215, allocations: 1.404 MB / 0.7607 GB, free: 68.12 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.623e-05/2.215, allocations: 14.22 kB / 0.7607 GB, free: 68.12 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009156/2.216, allocations: 113.3 kB / 0.7608 GB, free: 68.07 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002928/2.219, allocations: 0.7743 MB / 0.7615 GB, free: 67.82 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001008/2.219, allocations: 52.44 kB / 0.7616 GB, free: 67.82 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002771/2.219, allocations: 63.2 kB / 0.7617 GB, free: 67.82 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002934/2.222, allocations: 1.05 MB / 0.7627 GB, free: 67.64 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.076e-05/2.222, allocations: 4.438 kB / 0.7627 GB, free: 67.64 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001877/2.223, allocations: 28.97 kB / 0.7627 GB, free: 67.64 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001517/2.223, allocations: 66.17 kB / 0.7628 GB, free: 67.63 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003046/2.226, allocations: 1.013 MB / 0.7638 GB, free: 67.62 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01101/2.237, allocations: 4.408 MB / 0.7681 GB, free: 65.43 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001574/2.238, allocations: 0.5362 MB / 0.7686 GB, free: 65.4 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003936/2.242, allocations: 1.918 MB / 0.7705 GB, free: 64.14 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.775e-05/2.243, allocations: 41.3 kB / 0.7705 GB, free: 64.11 MB / 362.7 MB Notification: Performance of pre-optimization done (n=40): time 4.298e-06/2.243, allocations: 5.656 kB / 0.7705 GB, free: 64.11 MB / 362.7 MB Notification: Performance of matching and sorting (n=45): time 0.007537/2.25, allocations: 1.884 MB / 0.7723 GB, free: 63.46 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.77e-05/2.25, allocations: 161.4 kB / 0.7725 GB, free: 63.27 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001621/2.252, allocations: 0.8365 MB / 0.7733 GB, free: 63.12 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001913/2.252, allocations: 36.86 kB / 0.7734 GB, free: 63.09 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004139/2.253, allocations: 0.5069 MB / 0.7739 GB, free: 62.77 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002526/2.253, allocations: 168 kB / 0.774 GB, free: 62.68 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.092e-05/2.253, allocations: 18.53 kB / 0.774 GB, free: 62.68 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001023/2.253, allocations: 346.4 kB / 0.7744 GB, free: 62.36 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008638/2.254, allocations: 302.4 kB / 0.7746 GB, free: 62.36 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001093/2.255, allocations: 0.66 MB / 0.7753 GB, free: 61.93 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001076/2.256, allocations: 399.3 kB / 0.7757 GB, free: 61.92 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.228e-06/2.256, allocations: 3.906 kB / 0.7757 GB, free: 61.92 MB / 362.7 MB Notification: Performance of matching and sorting (n=115) (initialization): time 0.002817/2.259, allocations: 1.051 MB / 0.7767 GB, free: 61.84 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002512/2.259, allocations: 432.6 kB / 0.7771 GB, free: 61.36 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.027e-05/2.259, allocations: 14.5 kB / 0.7771 GB, free: 61.36 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003242/2.263, allocations: 315.1 kB / 0.7774 GB, free: 61.34 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001344/2.264, allocations: 191.6 kB / 0.7776 GB, free: 61.34 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001386/2.265, allocations: 1.332 MB / 0.7789 GB, free: 60.3 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001498/2.267, allocations: 67.58 kB / 0.779 GB, free: 60.29 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001278/2.267, allocations: 46.56 kB / 0.779 GB, free: 60.29 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.205e-05/2.267, allocations: 3.188 kB / 0.779 GB, free: 60.29 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002421/2.27, allocations: 0.9822 MB / 0.78 GB, free: 60.23 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.951e-05/2.27, allocations: 11.81 kB / 0.78 GB, free: 60.23 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002784/2.272, allocations: 275.7 kB / 0.7803 GB, free: 60.21 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001265/2.274, allocations: 192.8 kB / 0.7804 GB, free: 60.2 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001309/2.275, allocations: 1.278 MB / 0.7817 GB, free: 59.15 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00105/2.276, allocations: 64.44 kB / 0.7818 GB, free: 59.15 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001026/2.276, allocations: 47.34 kB / 0.7818 GB, free: 59.15 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.0007642/2.277, allocations: 371.2 kB / 0.7822 GB, free: 58.94 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002452/2.277, allocations: 87.8 kB / 0.7822 GB, free: 58.89 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002565/2.28, allocations: 0.7862 MB / 0.783 GB, free: 58.8 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.003e-05/2.28, allocations: 2.875 kB / 0.783 GB, free: 58.8 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.157e-06/2.28, allocations: 3.141 kB / 0.783 GB, free: 58.8 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.827e-06/2.28, allocations: 3.938 kB / 0.783 GB, free: 58.8 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004021/2.284, allocations: 1.544 MB / 0.7845 GB, free: 58.45 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.066e-06/2.284, allocations: 0 / 0.7845 GB, free: 58.45 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000694/2.285, allocations: 75.28 kB / 0.7846 GB, free: 58.44 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002423/2.287, allocations: 292.8 kB / 0.7849 GB, free: 58.42 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001555/2.287, allocations: 18 kB / 0.7849 GB, free: 58.42 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001299/2.289, allocations: 1.309 MB / 0.7862 GB, free: 57.38 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/2.289, allocations: 3.828 kB / 0.7862 GB, free: 57.38 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002664/2.291, allocations: 1.07 MB / 0.7872 GB, free: 56.87 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004595/2.292, allocations: 169.4 kB / 0.7874 GB, free: 56.71 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002749/2.292, allocations: 14.78 kB / 0.7874 GB, free: 56.71 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009351/2.293, allocations: 46.81 kB / 0.7874 GB, free: 56.69 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001933/2.293, allocations: 53.09 kB / 0.7875 GB, free: 56.68 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.959e-05/2.293, allocations: 23.12 kB / 0.7875 GB, free: 56.68 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001182/2.295, allocations: 0.5633 MB / 0.7881 GB, free: 56.45 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.62e-07/2.295, allocations: 0 / 0.7881 GB, free: 56.45 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003778/2.298, allocations: 0.7929 MB / 0.7888 GB, free: 56.25 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.003025/2.302, allocations: 0.7991 MB / 0.7896 GB, free: 55.98 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.004111/2.306, allocations: 1.249 MB / 0.7908 GB, free: 55.59 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.012e-05/2.306, allocations: 1.594 kB / 0.7908 GB, free: 55.59 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001424/2.307, allocations: 346.8 kB / 0.7912 GB, free: 55.5 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002636/2.31, allocations: 313.5 kB / 0.7915 GB, free: 55.42 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004731/2.315, allocations: 2.135 MB / 0.7935 GB, free: 54.38 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005837/2.315, allocations: 1.056 MB / 0.7946 GB, free: 53.64 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004214/2.316, allocations: 75.08 kB / 0.7947 GB, free: 53.63 MB / 362.7 MB Notification: Performance of SimCode: time 9.42e-07/2.316, allocations: 0 / 0.7947 GB, free: 53.63 MB / 362.7 MB Notification: Performance of Templates: time 0.04635/2.362, allocations: 25.16 MB / 0.8192 GB, free: 43.34 MB / 362.7 MB