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.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_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") Notification: Performance of loadModel(Modelica): time 1.896/1.896, allocations: 194.8 MB / 212.3 MB, free: 3.023 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004766/0.0004768, allocations: 8 kB / 264.5 MB, free: 13.63 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1016, allocations: 44.5 MB / 309 MB, free: 1.059 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9803/1.082, allocations: 319.4 MB / 0.6136 GB, free: 63.96 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003308/1.082, allocations: 98.52 kB / 0.6137 GB, free: 63.91 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9206/2.003, allocations: 190.8 MB / 0.8001 GB, free: 46.89 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.014e-06/2.003, allocations: 4 kB / 0.8001 GB, free: 46.88 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.6e-05/2.003, allocations: 35.86 kB / 0.8001 GB, free: 46.85 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.004024/2.007, allocations: 1.406 MB / 0.8015 GB, free: 45.39 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.036e-05/2.007, allocations: 12.03 kB / 0.8015 GB, free: 45.38 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005158/2.008, allocations: 110.8 kB / 0.8016 GB, free: 45.27 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002071/2.01, allocations: 0.7763 MB / 0.8023 GB, free: 44.45 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.92e-05/2.01, allocations: 53.3 kB / 0.8024 GB, free: 44.4 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001553/2.01, allocations: 59.98 kB / 0.8024 GB, free: 44.34 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002273/2.012, allocations: 1.054 MB / 0.8035 GB, free: 43.23 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.889e-05/2.012, allocations: 7.891 kB / 0.8035 GB, free: 43.22 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001312/2.013, allocations: 27.98 kB / 0.8035 GB, free: 43.19 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000123/2.013, allocations: 65.27 kB / 0.8036 GB, free: 43.13 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002341/2.015, allocations: 1.012 MB / 0.8046 GB, free: 42.11 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008632/2.024, allocations: 4.412 MB / 0.8089 GB, free: 37.43 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001312/2.025, allocations: 0.5285 MB / 0.8094 GB, free: 36.9 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003128/2.028, allocations: 1.911 MB / 0.8113 GB, free: 34.77 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.275e-05/2.028, allocations: 34.89 kB / 0.8113 GB, free: 34.73 MB / 410.7 MB Notification: Performance of pre-optimization done (n=40): time 3.977e-06/2.028, allocations: 3.984 kB / 0.8113 GB, free: 34.72 MB / 410.7 MB Notification: Performance of matching and sorting (n=45): time 0.006391/2.035, allocations: 1.879 MB / 0.8131 GB, free: 32.75 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.771e-05/2.035, allocations: 170.1 kB / 0.8133 GB, free: 32.55 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001366/2.036, allocations: 0.8369 MB / 0.8141 GB, free: 31.7 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.58e-05/2.036, allocations: 41.64 kB / 0.8141 GB, free: 31.65 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003292/2.037, allocations: 0.5008 MB / 0.8146 GB, free: 31.14 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001609/2.037, allocations: 165.7 kB / 0.8148 GB, free: 30.98 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.249e-05/2.037, allocations: 16 kB / 0.8148 GB, free: 30.96 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.866e-05/2.037, allocations: 350.8 kB / 0.8151 GB, free: 30.61 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007679/2.038, allocations: 301.8 kB / 0.8154 GB, free: 30.32 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009247/2.039, allocations: 0.6638 MB / 0.8161 GB, free: 29.49 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009365/2.04, allocations: 393.9 kB / 0.8165 GB, free: 29.11 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.113e-06/2.04, allocations: 7.938 kB / 0.8165 GB, free: 29.1 MB / 410.7 MB Notification: Performance of matching and sorting (n=115) (initialization): time 0.002539/2.042, allocations: 1.051 MB / 0.8175 GB, free: 28.04 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002042/2.042, allocations: 426.8 kB / 0.8179 GB, free: 27.46 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.774e-05/2.042, allocations: 12 kB / 0.8179 GB, free: 27.45 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003268/2.046, allocations: 317.4 kB / 0.8182 GB, free: 27.13 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001369/2.047, allocations: 187.7 kB / 0.8184 GB, free: 26.95 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001488/2.049, allocations: 1.331 MB / 0.8197 GB, free: 25.56 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001532/2.05, allocations: 68 kB / 0.8198 GB, free: 25.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000187/2.051, allocations: 43.98 kB / 0.8198 GB, free: 25.45 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.502e-05/2.051, allocations: 4.625 kB / 0.8198 GB, free: 25.45 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002632/2.053, allocations: 0.9831 MB / 0.8208 GB, free: 24.46 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.103e-05/2.053, allocations: 12 kB / 0.8208 GB, free: 24.45 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002802/2.056, allocations: 289.8 kB / 0.821 GB, free: 24.16 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001302/2.057, allocations: 183.7 kB / 0.8212 GB, free: 23.98 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001335/2.059, allocations: 1.284 MB / 0.8225 GB, free: 22.64 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001135/2.06, allocations: 67.81 kB / 0.8225 GB, free: 22.58 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001306/2.06, allocations: 55.98 kB / 0.8226 GB, free: 22.52 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.0008193/2.061, allocations: 365.3 kB / 0.8229 GB, free: 22.16 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002629/2.061, allocations: 82.97 kB / 0.823 GB, free: 22.07 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002674/2.064, allocations: 0.7683 MB / 0.8238 GB, free: 21.29 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.317e-05/2.064, allocations: 11.95 kB / 0.8238 GB, free: 21.28 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.946e-06/2.064, allocations: 0 / 0.8238 GB, free: 21.28 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.31e-05/2.064, allocations: 4.219 kB / 0.8238 GB, free: 21.28 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003789/2.068, allocations: 1.548 MB / 0.8253 GB, free: 19.66 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.671e-06/2.068, allocations: 0 / 0.8253 GB, free: 19.66 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006411/2.069, allocations: 79.89 kB / 0.8254 GB, free: 19.58 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002216/2.071, allocations: 289.5 kB / 0.8256 GB, free: 19.29 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.006e-05/2.071, allocations: 11.94 kB / 0.8257 GB, free: 19.28 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00117/2.072, allocations: 1.311 MB / 0.8269 GB, free: 17.92 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/2.072, allocations: 0 / 0.8269 GB, free: 17.92 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002369/2.074, allocations: 1.072 MB / 0.828 GB, free: 16.82 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003712/2.075, allocations: 175.9 kB / 0.8282 GB, free: 16.62 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002311/2.075, allocations: 12 kB / 0.8282 GB, free: 16.61 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008565/2.076, allocations: 51.89 kB / 0.8282 GB, free: 16.56 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001571/2.076, allocations: 48.36 kB / 0.8283 GB, free: 16.52 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.49e-05/2.076, allocations: 19.98 kB / 0.8283 GB, free: 16.5 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001008/2.077, allocations: 0.5615 MB / 0.8288 GB, free: 15.94 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.11e-07/2.077, allocations: 0 / 0.8288 GB, free: 15.94 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002951/2.08, allocations: 0.8078 MB / 0.8296 GB, free: 15.13 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.002587/2.083, allocations: 0.8095 MB / 0.8304 GB, free: 14.32 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003734/2.087, allocations: 1.235 MB / 0.8316 GB, free: 13.09 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.903e-06/2.087, allocations: 0 / 0.8316 GB, free: 13.09 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001387/2.088, allocations: 359.9 kB / 0.832 GB, free: 12.74 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002578/2.091, allocations: 309.1 kB / 0.8323 GB, free: 12.44 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00465/2.095, allocations: 2.139 MB / 0.8343 GB, free: 10.25 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005891/2.096, allocations: 1.049 MB / 0.8354 GB, free: 9.176 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004509/2.096, allocations: 75.42 kB / 0.8354 GB, free: 9.102 MB / 410.7 MB Notification: Performance of SimCode: time 1.052e-06/2.096, allocations: 4 kB / 0.8354 GB, free: 9.098 MB / 410.7 MB Notification: Performance of Templates: time 0.3251/2.422, allocations: 25.15 MB / 0.86 GB, free: 74.24 MB / 410.7 MB