Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") Notification: Performance of loadModel(Modelica): time 1.766/1.766, allocations: 194.9 MB / 211.7 MB, free: 2.973 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003659/0.0003659, allocations: 12 kB / 263.9 MB, free: 13.55 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07955/0.07994, allocations: 44.5 MB / 308.4 MB, free: 0.9844 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7985/0.8785, allocations: 319.4 MB / 0.6131 GB, free: 65.44 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002456/0.8788, allocations: 95.52 kB / 0.6132 GB, free: 65.38 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8029/1.682, allocations: 190.8 MB / 0.7996 GB, free: 48.35 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.283e-06/1.682, allocations: 0 / 0.7996 GB, free: 48.35 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.831e-05/1.682, allocations: 23.98 kB / 0.7996 GB, free: 48.33 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: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.003488/1.685, allocations: 1.409 MB / 0.801 GB, free: 46.87 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.698e-05/1.685, allocations: 8.031 kB / 0.801 GB, free: 46.86 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000609/1.686, allocations: 114.8 kB / 0.8011 GB, free: 46.75 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001939/1.688, allocations: 0.7763 MB / 0.8018 GB, free: 45.93 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.076e-05/1.688, allocations: 49.3 kB / 0.8019 GB, free: 45.88 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001451/1.688, allocations: 59.98 kB / 0.8019 GB, free: 45.82 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002019/1.69, allocations: 1.055 MB / 0.803 GB, free: 44.71 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.99e-05/1.69, allocations: 3.953 kB / 0.803 GB, free: 44.7 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001273/1.69, allocations: 27.98 kB / 0.803 GB, free: 44.68 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001051/1.691, allocations: 73.2 kB / 0.8031 GB, free: 44.61 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00205/1.693, allocations: 1.008 MB / 0.804 GB, free: 43.6 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007397/1.7, allocations: 4.416 MB / 0.8084 GB, free: 38.91 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00112/1.701, allocations: 0.5362 MB / 0.8089 GB, free: 38.37 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002747/1.704, allocations: 1.915 MB / 0.8108 GB, free: 36.24 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.174e-05/1.704, allocations: 34.89 kB / 0.8108 GB, free: 36.2 MB / 410.7 MB Notification: Performance of pre-optimization done (n=40): time 4.031e-06/1.704, allocations: 4 kB / 0.8108 GB, free: 36.19 MB / 410.7 MB Notification: Performance of matching and sorting (n=45): time 0.009933/1.714, allocations: 1.879 MB / 0.8126 GB, free: 34.22 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.453e-05/1.714, allocations: 158.2 kB / 0.8128 GB, free: 34.03 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002581/1.717, allocations: 0.7424 MB / 0.8135 GB, free: 33.28 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001696/1.717, allocations: 37.7 kB / 0.8135 GB, free: 33.24 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006562/1.718, allocations: 0.5085 MB / 0.814 GB, free: 32.72 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003175/1.718, allocations: 161.7 kB / 0.8142 GB, free: 32.56 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001437/1.718, allocations: 20 kB / 0.8142 GB, free: 32.54 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001611/1.718, allocations: 346.8 kB / 0.8145 GB, free: 32.2 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001471/1.72, allocations: 305.8 kB / 0.8148 GB, free: 31.9 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001793/1.722, allocations: 0.6599 MB / 0.8155 GB, free: 31.07 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001745/1.723, allocations: 393.9 kB / 0.8158 GB, free: 30.69 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-05/1.723, allocations: 4 kB / 0.8159 GB, free: 30.68 MB / 410.7 MB Notification: Performance of matching and sorting (n=115) (initialization): time 0.00504/1.729, allocations: 1.05 MB / 0.8169 GB, free: 29.62 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.009534/1.738, allocations: 4.447 MB / 0.8212 GB, free: 24.82 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.225e-05/1.738, allocations: 12 kB / 0.8212 GB, free: 24.81 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00504/1.743, allocations: 313.4 kB / 0.8215 GB, free: 24.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001986/1.745, allocations: 191.7 kB / 0.8217 GB, free: 24.31 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002404/1.748, allocations: 1.339 MB / 0.823 GB, free: 22.92 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0146/1.762, allocations: 55.88 kB / 0.8231 GB, free: 22.87 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003767/1.763, allocations: 56.05 kB / 0.8231 GB, free: 22.81 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.389e-05/1.763, allocations: 5.094 kB / 0.8231 GB, free: 22.81 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004686/1.768, allocations: 0.9754 MB / 0.8241 GB, free: 21.83 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.673e-05/1.768, allocations: 12 kB / 0.8241 GB, free: 21.82 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01246/1.78, allocations: 281.7 kB / 0.8244 GB, free: 21.54 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001961/1.782, allocations: 191.7 kB / 0.8245 GB, free: 21.35 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002211/1.784, allocations: 1.284 MB / 0.8258 GB, free: 20.01 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001821/1.786, allocations: 59.88 kB / 0.8259 GB, free: 19.95 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002224/1.787, allocations: 40 kB / 0.8259 GB, free: 19.91 MB / 410.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.001261/1.788, allocations: 380.7 kB / 0.8263 GB, free: 19.53 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004333/1.788, allocations: 86.97 kB / 0.8263 GB, free: 19.45 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004414/1.793, allocations: 0.7762 MB / 0.8271 GB, free: 18.66 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.629e-05/1.793, allocations: 4 kB / 0.8271 GB, free: 18.66 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.02e-05/1.793, allocations: 0 / 0.8271 GB, free: 18.66 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.885e-05/1.793, allocations: 7.984 kB / 0.8271 GB, free: 18.65 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006872/1.8, allocations: 1.544 MB / 0.8286 GB, free: 17.04 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.21e-05/1.8, allocations: 0 / 0.8286 GB, free: 17.04 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001049/1.801, allocations: 79.89 kB / 0.8287 GB, free: 16.96 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003798/1.805, allocations: 285.5 kB / 0.829 GB, free: 16.67 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000182/1.805, allocations: 15.98 kB / 0.829 GB, free: 16.66 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002207/1.807, allocations: 1.311 MB / 0.8303 GB, free: 15.29 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.781e-06/1.807, allocations: 3.984 kB / 0.8303 GB, free: 15.29 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004507/1.812, allocations: 1.091 MB / 0.8313 GB, free: 14.16 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006869/1.813, allocations: 180 kB / 0.8315 GB, free: 13.96 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004097/1.813, allocations: 12 kB / 0.8315 GB, free: 13.95 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007292/1.814, allocations: 51.83 kB / 0.8316 GB, free: 13.9 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001296/1.814, allocations: 48.36 kB / 0.8316 GB, free: 13.85 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.364e-05/1.814, allocations: 16 kB / 0.8316 GB, free: 13.84 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0008928/1.815, allocations: 0.5654 MB / 0.8322 GB, free: 13.27 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.12e-07/1.815, allocations: 0 / 0.8322 GB, free: 13.27 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002896/1.818, allocations: 0.7961 MB / 0.833 GB, free: 12.48 MB / 410.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.002241/1.82, allocations: 0.8116 MB / 0.8337 GB, free: 11.67 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003039/1.823, allocations: 1.243 MB / 0.835 GB, free: 10.43 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.915e-06/1.823, allocations: 0 / 0.835 GB, free: 10.43 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001051/1.824, allocations: 355.9 kB / 0.8353 GB, free: 10.08 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001759/1.826, allocations: 310.3 kB / 0.8356 GB, free: 9.785 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003645/1.83, allocations: 2.128 MB / 0.8377 GB, free: 7.609 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005483/1.83, allocations: 1.053 MB / 0.8387 GB, free: 6.527 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000341/1.831, allocations: 75.42 kB / 0.8388 GB, free: 6.453 MB / 410.7 MB Notification: Performance of SimCode: time 1.631e-06/1.831, allocations: 0 / 0.8388 GB, free: 6.453 MB / 410.7 MB Notification: Performance of Templates: time 0.2749/2.106, allocations: 25.16 MB / 0.8633 GB, free: 72.79 MB / 410.7 MB