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.TwoTanks.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.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.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") Notification: Performance of loadModel(Modelica): time 2.212/2.212, allocations: 194.8 MB / 211.7 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003978/0.0003978, allocations: 11.98 kB / 264.5 MB, free: 12.93 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09902/0.09945, allocations: 44.51 MB / 309.1 MB, free: 364 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.995/1.094, allocations: 317.2 MB / 0.6116 GB, free: 65.45 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003254/1.095, allocations: 98.95 kB / 0.6117 GB, free: 65.39 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7376/1.832, allocations: 136.2 MB / 0.7447 GB, free: 102.8 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.004e-06/1.833, allocations: 0 / 0.7447 GB, free: 102.8 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.834e-05/1.833, allocations: 19.91 kB / 0.7448 GB, free: 102.8 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.002994/1.836, allocations: 1.11 MB / 0.7458 GB, free: 101.7 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.794e-05/1.836, allocations: 8.031 kB / 0.7458 GB, free: 101.7 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000381/1.836, allocations: 95 kB / 0.7459 GB, free: 101.6 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001459/1.838, allocations: 0.5792 MB / 0.7465 GB, free: 101 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.159e-05/1.838, allocations: 40.91 kB / 0.7465 GB, free: 100.9 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001285/1.838, allocations: 51.91 kB / 0.7466 GB, free: 100.9 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001636/1.839, allocations: 0.7229 MB / 0.7473 GB, free: 100.1 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.687e-05/1.839, allocations: 4 kB / 0.7473 GB, free: 100.1 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001001/1.84, allocations: 23.91 kB / 0.7473 GB, free: 100.1 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.979e-05/1.84, allocations: 48.97 kB / 0.7474 GB, free: 100.1 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001655/1.841, allocations: 0.6869 MB / 0.748 GB, free: 99.37 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0057/1.847, allocations: 2.85 MB / 0.7508 GB, free: 96.37 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001061/1.848, allocations: 472.5 kB / 0.7513 GB, free: 95.89 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003461/1.849, allocations: 348.7 kB / 0.7516 GB, free: 95.48 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.663e-05/1.849, allocations: 39 kB / 0.7516 GB, free: 95.44 MB / 410.7 MB Notification: Performance of pre-optimization done (n=48): time 3.596e-06/1.849, allocations: 0 / 0.7516 GB, free: 95.44 MB / 410.7 MB Notification: Performance of matching and sorting (n=58): time 0.008667/1.857, allocations: 2.281 MB / 0.7539 GB, free: 93.08 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.059e-05/1.857, allocations: 85.66 kB / 0.754 GB, free: 92.98 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001062/1.858, allocations: 0.6208 MB / 0.7546 GB, free: 92.35 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001375/1.859, allocations: 37.7 kB / 0.7546 GB, free: 92.3 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002688/1.859, allocations: 328.4 kB / 0.7549 GB, free: 91.98 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002013/1.859, allocations: 205 kB / 0.7551 GB, free: 91.78 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.353e-05/1.859, allocations: 16 kB / 0.7551 GB, free: 91.76 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001292/1.859, allocations: 382.8 kB / 0.7555 GB, free: 91.38 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007387/1.86, allocations: 289.7 kB / 0.7558 GB, free: 91.1 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008192/1.861, allocations: 457 kB / 0.7562 GB, free: 90.59 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007898/1.862, allocations: 335.1 kB / 0.7565 GB, free: 90.26 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.448e-06/1.862, allocations: 0 / 0.7565 GB, free: 90.26 MB / 410.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002261/1.864, allocations: 0.9266 MB / 0.7574 GB, free: 89.32 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001215/1.864, allocations: 220.3 kB / 0.7576 GB, free: 89.04 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.255e-05/1.864, allocations: 7.938 kB / 0.7576 GB, free: 89.03 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003253/1.867, allocations: 352.5 kB / 0.758 GB, free: 88.68 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001152/1.869, allocations: 151.8 kB / 0.7581 GB, free: 88.54 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001158/1.87, allocations: 0.8175 MB / 0.7589 GB, free: 87.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001012/1.871, allocations: 55.94 kB / 0.759 GB, free: 87.64 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.978e-05/1.871, allocations: 27.98 kB / 0.759 GB, free: 87.61 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.005e-05/1.871, allocations: 4 kB / 0.759 GB, free: 87.61 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001974/1.873, allocations: 0.7854 MB / 0.7598 GB, free: 86.82 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.688e-06/1.873, allocations: 4 kB / 0.7598 GB, free: 86.82 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002536/1.875, allocations: 228.7 kB / 0.76 GB, free: 86.59 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001231/1.877, allocations: 159.7 kB / 0.7601 GB, free: 86.43 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008487/1.878, allocations: 0.6967 MB / 0.7608 GB, free: 85.71 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001038/1.879, allocations: 52.09 kB / 0.7609 GB, free: 85.66 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.66e-05/1.879, allocations: 31.94 kB / 0.7609 GB, free: 85.63 MB / 410.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.0006269/1.879, allocations: 321.3 kB / 0.7612 GB, free: 85.3 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000206/1.88, allocations: 71.16 kB / 0.7613 GB, free: 85.23 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002275/1.882, allocations: 0.8453 MB / 0.7621 GB, free: 84.39 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.065e-05/1.882, allocations: 8 kB / 0.7621 GB, free: 84.38 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.987e-06/1.882, allocations: 4 kB / 0.7621 GB, free: 84.38 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.083e-05/1.882, allocations: 0 / 0.7621 GB, free: 84.38 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004147/1.886, allocations: 1.657 MB / 0.7637 GB, free: 82.66 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.144e-06/1.886, allocations: 0 / 0.7637 GB, free: 82.66 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009184/1.887, allocations: 115.8 kB / 0.7638 GB, free: 82.55 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002426/1.89, allocations: 336.5 kB / 0.7642 GB, free: 82.21 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000122/1.89, allocations: 19.98 kB / 0.7642 GB, free: 82.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009961/1.891, allocations: 0.7982 MB / 0.765 GB, free: 81.37 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.995e-06/1.891, allocations: 0 / 0.765 GB, free: 81.37 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002752/1.894, allocations: 1.236 MB / 0.7662 GB, free: 80.12 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002953/1.894, allocations: 160.2 kB / 0.7663 GB, free: 79.94 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001908/1.894, allocations: 12 kB / 0.7663 GB, free: 79.93 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008129/1.895, allocations: 43.94 kB / 0.7664 GB, free: 79.89 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001624/1.895, allocations: 52.48 kB / 0.7664 GB, free: 79.84 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.178e-05/1.895, allocations: 23.98 kB / 0.7665 GB, free: 79.81 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0007324/1.896, allocations: 443 kB / 0.7669 GB, free: 79.38 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.8e-07/1.896, allocations: 3.938 kB / 0.7669 GB, free: 79.38 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002261/1.898, allocations: 0.5893 MB / 0.7675 GB, free: 78.79 MB / 410.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.0016/1.9, allocations: 0.5997 MB / 0.768 GB, free: 78.21 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003186/1.903, allocations: 1.118 MB / 0.7691 GB, free: 77.11 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.083e-06/1.903, allocations: 4 kB / 0.7691 GB, free: 77.11 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009774/1.904, allocations: 382.9 kB / 0.7695 GB, free: 76.73 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00262/1.907, allocations: 329.5 kB / 0.7698 GB, free: 76.42 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003355/1.91, allocations: 1.85 MB / 0.7716 GB, free: 74.54 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004719/1.911, allocations: 0.9793 MB / 0.7726 GB, free: 73.53 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001583/1.912, allocations: 279.8 kB / 0.7728 GB, free: 73.26 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002947/1.912, allocations: 59.42 kB / 0.7729 GB, free: 73.2 MB / 410.7 MB Notification: Performance of SimCode: time 9.62e-07/1.913, allocations: 3.938 kB / 0.7729 GB, free: 73.2 MB / 410.7 MB Notification: Performance of Templates: time 0.04516/1.958, allocations: 19.69 MB / 0.7921 GB, free: 53.54 MB / 410.7 MB