Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1") Notification: Performance of loadModel(Modelica): time 2.058/2.058, allocations: 194.9 MB / 211.7 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003657/0.0003658, allocations: 8 kB / 264.5 MB, free: 12.94 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1015, allocations: 44.51 MB / 309.1 MB, free: 364 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.14/1.241, allocations: 323.7 MB / 0.618 GB, free: 59.1 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003322/1.242, allocations: 95.52 kB / 0.618 GB, free: 59.05 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8495/2.091, allocations: 165.2 MB / 0.7794 GB, free: 67.78 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.264e-06/2.091, allocations: 8 kB / 0.7794 GB, free: 67.77 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.236e-05/2.091, allocations: 19.75 kB / 0.7794 GB, free: 67.75 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.003648/2.095, allocations: 1.209 MB / 0.7806 GB, free: 66.5 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.53e-05/2.095, allocations: 12.03 kB / 0.7806 GB, free: 66.49 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006065/2.096, allocations: 110.8 kB / 0.7807 GB, free: 66.38 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002035/2.098, allocations: 0.653 MB / 0.7813 GB, free: 65.7 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.876e-05/2.098, allocations: 48.53 kB / 0.7814 GB, free: 65.66 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000165/2.098, allocations: 56 kB / 0.7814 GB, free: 65.61 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002473/2.1, allocations: 0.8722 MB / 0.7823 GB, free: 64.68 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.855e-05/2.1, allocations: 3.938 kB / 0.7823 GB, free: 64.68 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001637/2.101, allocations: 27.12 kB / 0.7823 GB, free: 64.65 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001048/2.101, allocations: 45.28 kB / 0.7824 GB, free: 64.61 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002206/2.103, allocations: 0.7935 MB / 0.7831 GB, free: 63.81 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007572/2.111, allocations: 3.835 MB / 0.7869 GB, free: 59.73 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001183/2.112, allocations: 495.5 kB / 0.7874 GB, free: 59.24 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003348/2.115, allocations: 1.903 MB / 0.7892 GB, free: 57.13 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.004e-05/2.115, allocations: 42.52 kB / 0.7892 GB, free: 57.08 MB / 410.7 MB Notification: Performance of pre-optimization done (n=37): time 3.136e-06/2.115, allocations: 3.938 kB / 0.7893 GB, free: 57.07 MB / 410.7 MB Notification: Performance of matching and sorting (n=42): time 0.005031/2.12, allocations: 1.485 MB / 0.7907 GB, free: 55.51 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.79e-05/2.12, allocations: 140.5 kB / 0.7908 GB, free: 55.34 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001266/2.122, allocations: 0.6877 MB / 0.7915 GB, free: 54.64 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001773/2.122, allocations: 37.7 kB / 0.7915 GB, free: 54.6 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003744/2.122, allocations: 430.9 kB / 0.792 GB, free: 54.17 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001782/2.123, allocations: 157.9 kB / 0.7921 GB, free: 54.02 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.99e-05/2.123, allocations: 12 kB / 0.7921 GB, free: 54 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001363/2.123, allocations: 386.8 kB / 0.7925 GB, free: 53.62 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006548/2.123, allocations: 245.8 kB / 0.7927 GB, free: 53.38 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007866/2.124, allocations: 0.5494 MB / 0.7933 GB, free: 52.69 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007448/2.125, allocations: 341.8 kB / 0.7936 GB, free: 52.35 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.484e-06/2.125, allocations: 4 kB / 0.7936 GB, free: 52.35 MB / 410.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002149/2.127, allocations: 0.8854 MB / 0.7945 GB, free: 51.45 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001855/2.127, allocations: 383.4 kB / 0.7948 GB, free: 50.94 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.562e-05/2.127, allocations: 8 kB / 0.7948 GB, free: 50.93 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001234/2.129, allocations: 120.7 kB / 0.7949 GB, free: 50.81 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002146/2.131, allocations: 235.7 kB / 0.7952 GB, free: 50.58 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001005/2.132, allocations: 1.216 MB / 0.7964 GB, free: 49.31 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001337/2.133, allocations: 63.97 kB / 0.7964 GB, free: 49.25 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001723/2.133, allocations: 48.08 kB / 0.7965 GB, free: 49.2 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.404e-05/2.133, allocations: 4 kB / 0.7965 GB, free: 49.2 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002076/2.136, allocations: 0.7948 MB / 0.7972 GB, free: 48.41 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.091e-05/2.136, allocations: 11.98 kB / 0.7973 GB, free: 48.39 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001203/2.137, allocations: 117.2 kB / 0.7974 GB, free: 48.28 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001822/2.139, allocations: 223.7 kB / 0.7976 GB, free: 48.06 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005056/2.139, allocations: 0.6107 MB / 0.7982 GB, free: 47.42 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001228/2.14, allocations: 51.97 kB / 0.7982 GB, free: 47.37 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001249/2.141, allocations: 39.98 kB / 0.7983 GB, free: 47.33 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * 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 (98): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0006655/2.141, allocations: 337.7 kB / 0.7986 GB, free: 46.99 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002084/2.142, allocations: 83 kB / 0.7987 GB, free: 46.91 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002274/2.144, allocations: 0.7431 MB / 0.7994 GB, free: 46.15 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-05/2.144, allocations: 8 kB / 0.7994 GB, free: 46.14 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.717e-06/2.144, allocations: 0 / 0.7994 GB, free: 46.14 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.201e-05/2.144, allocations: 7.922 kB / 0.7994 GB, free: 46.14 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003512/2.147, allocations: 1.434 MB / 0.8008 GB, free: 44.63 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.055e-05/2.148, allocations: 8 kB / 0.8008 GB, free: 44.62 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00126/2.149, allocations: 139.8 kB / 0.8009 GB, free: 44.49 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007313/2.15, allocations: 92.86 kB / 0.801 GB, free: 44.39 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.166e-05/2.15, allocations: 8 kB / 0.801 GB, free: 44.39 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007391/2.15, allocations: 1.185 MB / 0.8022 GB, free: 43.15 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/2.15, allocations: 4.031 kB / 0.8022 GB, free: 43.15 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002126/2.153, allocations: 0.9795 MB / 0.8032 GB, free: 42.14 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002918/2.153, allocations: 164.1 kB / 0.8033 GB, free: 41.96 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001996/2.153, allocations: 12 kB / 0.8033 GB, free: 41.95 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007591/2.154, allocations: 35.97 kB / 0.8034 GB, free: 41.91 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001658/2.154, allocations: 52.55 kB / 0.8034 GB, free: 41.86 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.185e-05/2.154, allocations: 24.08 kB / 0.8034 GB, free: 41.84 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0008186/2.155, allocations: 475 kB / 0.8039 GB, free: 41.38 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.5e-07/2.155, allocations: 0 / 0.8039 GB, free: 41.38 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00299/2.158, allocations: 0.6284 MB / 0.8045 GB, free: 40.75 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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[2],tank1.aboveLevel[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.002195/2.16, allocations: 0.6689 MB / 0.8052 GB, free: 40.08 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003851/2.164, allocations: 1.104 MB / 0.8062 GB, free: 38.98 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.176e-06/2.164, allocations: 0 / 0.8062 GB, free: 38.98 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001171/2.165, allocations: 335 kB / 0.8066 GB, free: 38.66 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002269/2.168, allocations: 290.8 kB / 0.8068 GB, free: 38.38 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003598/2.171, allocations: 1.876 MB / 0.8087 GB, free: 36.46 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004879/2.172, allocations: 0.9994 MB / 0.8096 GB, free: 35.44 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001908/2.174, allocations: 334.2 kB / 0.81 GB, free: 35.11 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003408/2.174, allocations: 79.34 kB / 0.81 GB, free: 35.03 MB / 410.7 MB Notification: Performance of SimCode: time 1.152e-06/2.174, allocations: 0 / 0.81 GB, free: 35.03 MB / 410.7 MB Notification: Performance of Templates: time 0.04534/2.219, allocations: 18.09 MB / 0.8277 GB, free: 16.96 MB / 410.7 MB