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.TwoTanks.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.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") Notification: Performance of loadModel(Modelica): time 1.879/1.879, allocations: 171.1 MB / 186.7 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003505/0.0003507, allocations: 8 kB / 233.9 MB, free: 2.398 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08861/0.089, allocations: 38.77 MB / 272.6 MB, free: 11.55 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9268/1.016, allocations: 311.9 MB / 0.5709 GB, free: 1.93 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003121/1.016, allocations: 94.88 kB / 0.571 GB, free: 1.875 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8205/1.837, allocations: 136.2 MB / 0.704 GB, free: 19.67 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.567e-06/1.837, allocations: 4 kB / 0.704 GB, free: 19.67 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.626e-05/1.837, allocations: 24.14 kB / 0.704 GB, free: 19.64 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.003062/1.84, allocations: 1.118 MB / 0.7051 GB, free: 18.48 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.984e-05/1.84, allocations: 8.031 kB / 0.7051 GB, free: 18.47 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004096/1.84, allocations: 87.09 kB / 0.7052 GB, free: 18.38 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001455/1.842, allocations: 0.5793 MB / 0.7058 GB, free: 17.76 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.805e-05/1.842, allocations: 40.98 kB / 0.7058 GB, free: 17.72 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001229/1.842, allocations: 47.98 kB / 0.7058 GB, free: 17.68 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001651/1.844, allocations: 0.738 MB / 0.7066 GB, free: 16.9 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.96e-05/1.844, allocations: 0 / 0.7066 GB, free: 16.9 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001009/1.844, allocations: 23.98 kB / 0.7066 GB, free: 16.88 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.077e-05/1.844, allocations: 44.91 kB / 0.7066 GB, free: 16.84 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001708/1.846, allocations: 0.6831 MB / 0.7073 GB, free: 16.15 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005911/1.852, allocations: 2.853 MB / 0.7101 GB, free: 13.12 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001077/1.853, allocations: 473 kB / 0.7105 GB, free: 12.64 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002853/1.853, allocations: 344.8 kB / 0.7109 GB, free: 12.23 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.23e-05/1.853, allocations: 39 kB / 0.7109 GB, free: 12.18 MB / 362.7 MB Notification: Performance of pre-optimization done (n=48): time 3.377e-06/1.853, allocations: 0 / 0.7109 GB, free: 12.18 MB / 362.7 MB Notification: Performance of matching and sorting (n=58): time 0.008409/1.862, allocations: 2.273 MB / 0.7131 GB, free: 9.84 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.219e-05/1.862, allocations: 89.61 kB / 0.7132 GB, free: 9.734 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001027/1.863, allocations: 0.6172 MB / 0.7138 GB, free: 9.105 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001508/1.863, allocations: 37.7 kB / 0.7138 GB, free: 9.062 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002578/1.863, allocations: 328.5 kB / 0.7142 GB, free: 8.738 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001934/1.863, allocations: 209 kB / 0.7144 GB, free: 8.531 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.138e-05/1.863, allocations: 11.94 kB / 0.7144 GB, free: 8.52 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001247/1.864, allocations: 386.8 kB / 0.7147 GB, free: 8.133 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007457/1.864, allocations: 285.8 kB / 0.715 GB, free: 7.855 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008742/1.865, allocations: 449.1 kB / 0.7154 GB, free: 7.355 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008191/1.866, allocations: 339 kB / 0.7158 GB, free: 7.023 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.498e-06/1.866, allocations: 0 / 0.7158 GB, free: 7.023 MB / 362.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002267/1.868, allocations: 0.9225 MB / 0.7167 GB, free: 6.09 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001058/1.869, allocations: 228.4 kB / 0.7169 GB, free: 5.805 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.155e-05/1.869, allocations: 8 kB / 0.7169 GB, free: 5.797 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003196/1.872, allocations: 356.5 kB / 0.7172 GB, free: 5.445 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001098/1.873, allocations: 151.7 kB / 0.7174 GB, free: 5.297 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001149/1.874, allocations: 0.806 MB / 0.7182 GB, free: 4.465 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009865/1.875, allocations: 59.88 kB / 0.7182 GB, free: 4.406 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.049e-05/1.875, allocations: 31.98 kB / 0.7182 GB, free: 4.375 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.025e-05/1.875, allocations: 4 kB / 0.7183 GB, free: 4.371 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001979/1.877, allocations: 0.7851 MB / 0.719 GB, free: 3.582 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.268e-06/1.877, allocations: 4 kB / 0.719 GB, free: 3.578 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00236/1.88, allocations: 229 kB / 0.7192 GB, free: 3.352 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00106/1.881, allocations: 163.7 kB / 0.7194 GB, free: 3.191 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000771/1.881, allocations: 0.6967 MB / 0.7201 GB, free: 2.469 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001215/1.883, allocations: 44.05 kB / 0.7201 GB, free: 2.426 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.086e-05/1.883, allocations: 31.98 kB / 0.7202 GB, free: 2.395 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],tank2.ports_m_flow_out[1],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 (83): * Single equations (assignments): 82 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0005526/1.883, allocations: 316.9 kB / 0.7205 GB, free: 2.074 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001776/1.884, allocations: 79.05 kB / 0.7205 GB, free: 1.996 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002254/1.886, allocations: 0.8355 MB / 0.7213 GB, free: 1.148 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.04e-05/1.886, allocations: 8 kB / 0.7214 GB, free: 1.141 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/1.886, allocations: 0 / 0.7214 GB, free: 1.141 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.052e-05/1.886, allocations: 3.984 kB / 0.7214 GB, free: 1.137 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2462/2.132, allocations: 1.668 MB / 0.723 GB, free: 73.8 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.01e-05/2.132, allocations: 0.5625 kB / 0.723 GB, free: 73.8 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001029/2.133, allocations: 110.9 kB / 0.7231 GB, free: 73.8 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002633/2.136, allocations: 338.7 kB / 0.7234 GB, free: 73.79 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001661/2.136, allocations: 20.02 kB / 0.7234 GB, free: 73.79 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001129/2.137, allocations: 0.7931 MB / 0.7242 GB, free: 73.27 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.683e-06/2.137, allocations: 3.953 kB / 0.7242 GB, free: 73.27 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003389/2.141, allocations: 1.242 MB / 0.7254 GB, free: 73.12 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003436/2.141, allocations: 154.4 kB / 0.7256 GB, free: 73.02 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002404/2.141, allocations: 17.36 kB / 0.7256 GB, free: 73.02 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008692/2.142, allocations: 42.28 kB / 0.7256 GB, free: 73.02 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001697/2.142, allocations: 53.55 kB / 0.7257 GB, free: 73.02 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.852e-05/2.142, allocations: 29.98 kB / 0.7257 GB, free: 73.02 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007901/2.143, allocations: 433.1 kB / 0.7261 GB, free: 72.93 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.432e-06/2.143, allocations: 0 / 0.7261 GB, free: 72.93 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002647/2.146, allocations: 0.5875 MB / 0.7267 GB, free: 72.93 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank2.aboveLevel[1]) * Number of discrete states: 2 (tank2.aboveLevel[1],tank1.aboveLevel[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 53 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.001841/2.148, allocations: 0.5933 MB / 0.7273 GB, free: 72.84 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003412/2.151, allocations: 1.126 MB / 0.7284 GB, free: 72.84 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.004e-06/2.151, allocations: 2.562 kB / 0.7284 GB, free: 72.84 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001111/2.152, allocations: 369.1 kB / 0.7287 GB, free: 72.83 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002649/2.155, allocations: 331.5 kB / 0.729 GB, free: 72.82 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003999/2.159, allocations: 1.853 MB / 0.7309 GB, free: 72.13 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005488/2.16, allocations: 0.9818 MB / 0.7318 GB, free: 71.43 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001768/2.162, allocations: 276.3 kB / 0.7321 GB, free: 71.41 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003361/2.162, allocations: 63.94 kB / 0.7321 GB, free: 71.41 MB / 362.7 MB Notification: Performance of SimCode: time 1.233e-06/2.162, allocations: 0 / 0.7321 GB, free: 71.41 MB / 362.7 MB Notification: Performance of Templates: time 0.06618/2.228, allocations: 19.69 MB / 0.7514 GB, free: 70.67 MB / 362.7 MB