Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.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.TanksWithEmptyingPipe2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.|tank2.aboveLevel.2.|tank2.aboveLevel.3.|tank3.aboveLevel.1.|tank3.aboveLevel.2.",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") Notification: Performance of loadModel(Modelica): time 2.103/2.103, allocations: 194.8 MB / 212.3 MB, free: 3.016 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003853/0.0003854, allocations: 8 kB / 264.5 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1038, allocations: 44.5 MB / 309 MB, free: 1.047 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.04/1.144, allocations: 322.3 MB / 0.6165 GB, free: 61.04 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003328/1.144, allocations: 98.64 kB / 0.6166 GB, free: 60.99 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.751/2.896, allocations: 322.5 MB / 0.9316 GB, free: 56.04 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.785e-06/2.896, allocations: 0 / 0.9316 GB, free: 56.04 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001918/2.896, allocations: 49.86 kB / 0.9316 GB, free: 56.03 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: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.009406/2.905, allocations: 2.242 MB / 0.9338 GB, free: 54.86 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.542e-05/2.905, allocations: 13.06 kB / 0.9338 GB, free: 54.86 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001573/2.907, allocations: 206.7 kB / 0.934 GB, free: 54.76 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004813/2.912, allocations: 1.245 MB / 0.9352 GB, free: 54.11 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001648/2.912, allocations: 109 kB / 0.9353 GB, free: 54.07 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000575/2.913, allocations: 117.4 kB / 0.9354 GB, free: 54.04 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00568/2.918, allocations: 1.946 MB / 0.9373 GB, free: 53.18 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.168e-05/2.918, allocations: 14.33 kB / 0.9373 GB, free: 53.18 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003082/2.919, allocations: 55.12 kB / 0.9374 GB, free: 53.14 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002366/2.919, allocations: 121.2 kB / 0.9375 GB, free: 53.12 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006194/2.925, allocations: 1.953 MB / 0.9394 GB, free: 52.45 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02017/2.945, allocations: 7.623 MB / 0.9469 GB, free: 47.51 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003284/2.949, allocations: 1.153 MB / 0.948 GB, free: 47.08 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01552/2.964, allocations: 3.333 MB / 0.9512 GB, free: 44.82 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000176/2.965, allocations: 45.22 kB / 0.9513 GB, free: 44.78 MB / 410.7 MB Notification: Performance of pre-optimization done (n=119): time 8.045e-06/2.965, allocations: 0 / 0.9513 GB, free: 44.78 MB / 410.7 MB Notification: Performance of matching and sorting (n=134): time 0.03788/3.003, allocations: 5.373 MB / 0.9565 GB, free: 41.09 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.799e-05/3.003, allocations: 167.5 kB / 0.9567 GB, free: 40.89 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005075/3.008, allocations: 1.326 MB / 0.958 GB, free: 39.76 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000568/3.008, allocations: 57.7 kB / 0.958 GB, free: 39.7 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008226/3.009, allocations: 0.695 MB / 0.9587 GB, free: 39.04 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008364/3.01, allocations: 480.1 kB / 0.9592 GB, free: 38.62 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002493/3.01, allocations: 37.5 kB / 0.9592 GB, free: 38.59 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001828/3.011, allocations: 381.9 kB / 0.9596 GB, free: 38.22 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002885/3.014, allocations: 0.7487 MB / 0.9603 GB, free: 37.5 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003355/3.017, allocations: 1.218 MB / 0.9615 GB, free: 36.1 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003401/3.02, allocations: 0.8703 MB / 0.9624 GB, free: 35.25 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.02e-05/3.02, allocations: 4 kB / 0.9624 GB, free: 35.25 MB / 410.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.009385/3.03, allocations: 2.326 MB / 0.9646 GB, free: 32.91 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003935/3.03, allocations: 481.4 kB / 0.9651 GB, free: 32.28 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.284e-05/3.03, allocations: 16 kB / 0.9651 GB, free: 32.27 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01647/3.047, allocations: 0.9575 MB / 0.966 GB, free: 31.32 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003648/3.051, allocations: 359.4 kB / 0.9664 GB, free: 30.97 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005083/3.056, allocations: 2.894 MB / 0.9692 GB, free: 27.98 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00445/3.06, allocations: 139.7 kB / 0.9693 GB, free: 27.84 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008271/3.061, allocations: 79.97 kB / 0.9694 GB, free: 27.77 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.119e-05/3.061, allocations: 6.344 kB / 0.9694 GB, free: 27.76 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009249/3.07, allocations: 2.131 MB / 0.9715 GB, free: 25.62 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.172e-05/3.071, allocations: 16 kB / 0.9715 GB, free: 25.6 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009575/3.08, allocations: 0.6596 MB / 0.9722 GB, free: 24.93 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003673/3.084, allocations: 375.4 kB / 0.9725 GB, free: 24.56 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003663/3.088, allocations: 2.618 MB / 0.9751 GB, free: 21.84 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003019/3.091, allocations: 140 kB / 0.9752 GB, free: 21.71 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003829/3.091, allocations: 79.97 kB / 0.9753 GB, free: 21.63 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.tank3.aboveLevel[1],tank3.aboveLevel[1],$PRE.tank3.aboveLevel[2],tank3.aboveLevel[2],$PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],$PRE.tank2.aboveLevel[3],tank2.aboveLevel[3],tank2.ports_m_flow_out[3],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1],tank3.ports_m_flow_out[2],tank3.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 (207): * Single equations (assignments): 203 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 2,2 7,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.001845/3.093, allocations: 0.5213 MB / 0.9758 GB, free: 21.1 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006789/3.094, allocations: 162 kB / 0.976 GB, free: 20.94 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01005/3.104, allocations: 2.346 MB / 0.9782 GB, free: 18.58 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.69e-05/3.104, allocations: 16 kB / 0.9783 GB, free: 18.57 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.464e-05/3.104, allocations: 0 / 0.9783 GB, free: 18.57 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.533e-05/3.104, allocations: 7.969 kB / 0.9783 GB, free: 18.56 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01328/3.117, allocations: 3.938 MB / 0.9821 GB, free: 14.56 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.486e-05/3.117, allocations: 0 / 0.9821 GB, free: 14.56 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001997/3.119, allocations: 249.6 kB / 0.9823 GB, free: 14.32 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006645/3.126, allocations: 0.8743 MB / 0.9832 GB, free: 13.43 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004324/3.126, allocations: 47.94 kB / 0.9832 GB, free: 13.39 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004312/3.131, allocations: 2.837 MB / 0.986 GB, free: 10.45 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.742e-06/3.131, allocations: 0 / 0.986 GB, free: 10.45 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008192/3.139, allocations: 3.137 MB / 0.9891 GB, free: 7.27 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007575/3.14, allocations: 254.9 kB / 0.9893 GB, free: 7 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000541/3.14, allocations: 39.98 kB / 0.9894 GB, free: 6.961 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001874/3.142, allocations: 115.8 kB / 0.9895 GB, free: 6.848 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003854/3.143, allocations: 145 kB / 0.9896 GB, free: 6.707 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001899/3.143, allocations: 55.97 kB / 0.9897 GB, free: 6.652 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001776/3.145, allocations: 0.8992 MB / 0.9905 GB, free: 5.754 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.11e-07/3.145, allocations: 0 / 0.9905 GB, free: 5.754 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005722/3.15, allocations: 1.358 MB / 0.9919 GB, free: 4.395 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (tank3.medium.T,tank3.level,tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Number of discrete states: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 127 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,2 12,2 12,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.004022/3.155, allocations: 1.233 MB / 0.9931 GB, free: 3.289 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00923/3.164, allocations: 3.039 MB / 0.996 GB, free: 272 kB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.211e-05/3.164, allocations: 0 / 0.996 GB, free: 272 kB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.3624/3.526, allocations: 1.057 MB / 0.9971 GB, free: 53.83 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005819/3.532, allocations: 0.6547 MB / 0.9977 GB, free: 53.83 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01108/3.543, allocations: 4.217 MB / 1.002 GB, free: 52.28 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001702/3.545, allocations: 1.422 MB / 1.003 GB, free: 51.57 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001185/3.546, allocations: 161.9 kB / 1.003 GB, free: 51.56 MB / 410.7 MB Notification: Performance of SimCode: time 1.252e-06/3.546, allocations: 3.125 kB / 1.003 GB, free: 51.56 MB / 410.7 MB Notification: Performance of Templates: time 0.1091/3.655, allocations: 58.77 MB / 1.061 GB, free: 49.17 MB / 410.7 MB