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.TankWithEmptyingPipe2.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.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_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") Notification: Performance of loadModel(Modelica): time 2.081/2.081, allocations: 194.8 MB / 211.7 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005589/0.0005591, allocations: 11.98 kB / 264.5 MB, free: 12.94 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.1023, allocations: 44.51 MB / 309.1 MB, free: 368 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.097/1.199, allocations: 319.4 MB / 0.6137 GB, free: 63.36 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003185/1.2, allocations: 102.4 kB / 0.6138 GB, free: 63.3 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.046/2.245, allocations: 190.8 MB / 0.8001 GB, free: 45.25 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.354e-06/2.245, allocations: 0 / 0.8001 GB, free: 45.25 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001152/2.246, allocations: 27.94 kB / 0.8002 GB, free: 45.22 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.004549/2.25, allocations: 1.406 MB / 0.8015 GB, free: 43.76 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.031e-05/2.25, allocations: 12.03 kB / 0.8015 GB, free: 43.75 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005547/2.251, allocations: 110.8 kB / 0.8017 GB, free: 43.64 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002277/2.253, allocations: 0.7763 MB / 0.8024 GB, free: 42.82 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.57e-05/2.253, allocations: 49.3 kB / 0.8025 GB, free: 42.77 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001666/2.253, allocations: 63.98 kB / 0.8025 GB, free: 42.71 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002353/2.256, allocations: 1.051 MB / 0.8035 GB, free: 41.6 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.197e-05/2.256, allocations: 7.953 kB / 0.8036 GB, free: 41.59 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000141/2.256, allocations: 27.98 kB / 0.8036 GB, free: 41.57 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001316/2.256, allocations: 69.27 kB / 0.8036 GB, free: 41.5 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002533/2.259, allocations: 1.012 MB / 0.8046 GB, free: 40.48 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01005/2.269, allocations: 4.412 MB / 0.8089 GB, free: 35.8 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001396/2.27, allocations: 0.5285 MB / 0.8095 GB, free: 35.27 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003816/2.274, allocations: 1.911 MB / 0.8113 GB, free: 33.14 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.442e-05/2.274, allocations: 38.89 kB / 0.8114 GB, free: 33.09 MB / 410.7 MB Notification: Performance of pre-optimization done (n=40): time 3.436e-06/2.274, allocations: 7.938 kB / 0.8114 GB, free: 33.09 MB / 410.7 MB Notification: Performance of matching and sorting (n=45): time 0.006634/2.281, allocations: 1.883 MB / 0.8132 GB, free: 31.11 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.952e-05/2.281, allocations: 162.2 kB / 0.8134 GB, free: 30.91 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00143/2.282, allocations: 0.833 MB / 0.8142 GB, free: 30.07 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001415/2.282, allocations: 37.7 kB / 0.8142 GB, free: 30.03 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003983/2.283, allocations: 0.4906 MB / 0.8147 GB, free: 29.53 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001825/2.283, allocations: 165.7 kB / 0.8148 GB, free: 29.36 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.503e-05/2.283, allocations: 20 kB / 0.8149 GB, free: 29.34 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001491/2.283, allocations: 398.7 kB / 0.8152 GB, free: 28.95 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007924/2.284, allocations: 305.8 kB / 0.8155 GB, free: 28.65 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000969/2.285, allocations: 0.6482 MB / 0.8162 GB, free: 27.84 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009363/2.286, allocations: 405.9 kB / 0.8166 GB, free: 27.44 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.025e-06/2.286, allocations: 4 kB / 0.8166 GB, free: 27.43 MB / 410.7 MB Notification: Performance of matching and sorting (n=115) (initialization): time 0.002879/2.289, allocations: 1.097 MB / 0.8176 GB, free: 26.32 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002754/2.289, allocations: 427 kB / 0.818 GB, free: 25.75 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.842e-05/2.289, allocations: 12 kB / 0.8181 GB, free: 25.73 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003273/2.293, allocations: 313.4 kB / 0.8184 GB, free: 25.42 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001366/2.294, allocations: 195.7 kB / 0.8185 GB, free: 25.23 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00142/2.295, allocations: 1.335 MB / 0.8198 GB, free: 23.84 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001514/2.297, allocations: 64 kB / 0.8199 GB, free: 23.78 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001684/2.297, allocations: 47.98 kB / 0.8199 GB, free: 23.73 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.298e-05/2.297, allocations: 5.094 kB / 0.82 GB, free: 23.73 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002453/2.3, allocations: 0.9751 MB / 0.8209 GB, free: 22.75 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.878e-05/2.3, allocations: 15.98 kB / 0.8209 GB, free: 22.73 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002959/2.303, allocations: 302.1 kB / 0.8212 GB, free: 22.43 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001307/2.304, allocations: 191.7 kB / 0.8214 GB, free: 22.25 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001262/2.305, allocations: 1.284 MB / 0.8226 GB, free: 20.91 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001343/2.307, allocations: 68.03 kB / 0.8227 GB, free: 20.84 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001266/2.307, allocations: 43.98 kB / 0.8228 GB, free: 20.8 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.0007094/2.308, allocations: 369.2 kB / 0.8231 GB, free: 20.43 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002325/2.308, allocations: 94.86 kB / 0.8232 GB, free: 20.34 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002546/2.31, allocations: 0.779 MB / 0.824 GB, free: 19.55 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.079e-05/2.31, allocations: 7.953 kB / 0.824 GB, free: 19.54 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.256e-06/2.31, allocations: 0 / 0.824 GB, free: 19.54 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.808e-06/2.311, allocations: 3.984 kB / 0.824 GB, free: 19.54 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003885/2.314, allocations: 1.548 MB / 0.8255 GB, free: 17.92 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.623e-06/2.314, allocations: 4 kB / 0.8255 GB, free: 17.92 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006622/2.315, allocations: 75.91 kB / 0.8256 GB, free: 17.84 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002312/2.317, allocations: 285.4 kB / 0.8258 GB, free: 17.56 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001119/2.318, allocations: 15.98 kB / 0.8258 GB, free: 17.54 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001222/2.319, allocations: 1.312 MB / 0.8271 GB, free: 16.18 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/2.319, allocations: 0 / 0.8271 GB, free: 16.18 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002396/2.321, allocations: 1.064 MB / 0.8282 GB, free: 15.09 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003962/2.322, allocations: 180 kB / 0.8283 GB, free: 14.89 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002547/2.322, allocations: 16 kB / 0.8284 GB, free: 14.88 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008783/2.323, allocations: 39.92 kB / 0.8284 GB, free: 14.84 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000163/2.323, allocations: 52.36 kB / 0.8284 GB, free: 14.79 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.88e-05/2.323, allocations: 20 kB / 0.8285 GB, free: 14.77 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001057/2.324, allocations: 0.5654 MB / 0.829 GB, free: 14.2 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.91e-07/2.324, allocations: 0 / 0.829 GB, free: 14.2 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00343/2.328, allocations: 0.8039 MB / 0.8298 GB, free: 13.4 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.002831/2.331, allocations: 0.8044 MB / 0.8306 GB, free: 12.6 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003844/2.334, allocations: 1.256 MB / 0.8318 GB, free: 11.34 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.426e-06/2.334, allocations: 4.125 kB / 0.8318 GB, free: 11.34 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001334/2.336, allocations: 354.3 kB / 0.8321 GB, free: 11 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00254/2.338, allocations: 310 kB / 0.8324 GB, free: 10.7 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004415/2.343, allocations: 2.075 MB / 0.8345 GB, free: 8.582 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000566/2.343, allocations: 1.061 MB / 0.8355 GB, free: 7.492 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001983/2.345, allocations: 347.5 kB / 0.8358 GB, free: 7.148 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002935/2.346, allocations: 71.42 kB / 0.8359 GB, free: 7.078 MB / 410.7 MB Notification: Performance of SimCode: time 1.242e-06/2.346, allocations: 0 / 0.8359 GB, free: 7.078 MB / 410.7 MB Notification: Performance of Templates: time 0.3357/2.682, allocations: 21.99 MB / 0.8574 GB, free: 74.61 MB / 410.7 MB