Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.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.TanksWithEmptyingPipe2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.|tank2.aboveLevel.2.|tank2.aboveLevel.3.|tank3.aboveLevel.1.|tank3.aboveLevel.2.",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") Notification: Performance of loadModel(Modelica): time 1.722/1.722, allocations: 171.1 MB / 187.3 MB, free: 1.051 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003506/0.0003506, allocations: 8 kB / 233.8 MB, free: 3.059 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08371/0.08408, allocations: 38.78 MB / 272.6 MB, free: 12.21 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.165/1.249, allocations: 317 MB / 0.5757 GB, free: 99.43 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003312/1.249, allocations: 97.73 kB / 0.5758 GB, free: 99.43 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.673/2.922, allocations: 322.5 MB / 0.8908 GB, free: 35.73 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.735e-06/2.923, allocations: 0 / 0.8908 GB, free: 35.73 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001963/2.923, allocations: 44.5 kB / 0.8908 GB, free: 35.73 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: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.009509/2.932, allocations: 2.25 MB / 0.893 GB, free: 34.75 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.478e-05/2.932, allocations: 7.062 kB / 0.893 GB, free: 34.75 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00154/2.934, allocations: 203.8 kB / 0.8932 GB, free: 34.65 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004687/2.939, allocations: 1.251 MB / 0.8944 GB, free: 34.27 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001794/2.939, allocations: 97.27 kB / 0.8945 GB, free: 34.27 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005211/2.939, allocations: 121.3 kB / 0.8947 GB, free: 34.27 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005373/2.945, allocations: 1.957 MB / 0.8966 GB, free: 33.98 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.09e-05/2.945, allocations: 3.562 kB / 0.8966 GB, free: 33.98 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002833/2.945, allocations: 51.56 kB / 0.8966 GB, free: 33.98 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000225/2.945, allocations: 118.4 kB / 0.8967 GB, free: 33.98 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005645/2.951, allocations: 1.957 MB / 0.8986 GB, free: 33.96 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01955/2.971, allocations: 7.614 MB / 0.9061 GB, free: 30.52 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003073/2.974, allocations: 1.159 MB / 0.9072 GB, free: 30.5 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00773/2.982, allocations: 3.342 MB / 0.9105 GB, free: 28.93 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.353e-05/2.982, allocations: 49.52 kB / 0.9105 GB, free: 28.89 MB / 362.7 MB Notification: Performance of pre-optimization done (n=119): time 5.38e-06/2.982, allocations: 3.969 kB / 0.9105 GB, free: 28.89 MB / 362.7 MB Notification: Performance of matching and sorting (n=134): time 0.0212/3.003, allocations: 5.361 MB / 0.9158 GB, free: 27.84 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.301e-05/3.003, allocations: 172.8 kB / 0.9159 GB, free: 27.66 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002532/3.006, allocations: 1.327 MB / 0.9172 GB, free: 27.47 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004794/3.006, allocations: 57.36 kB / 0.9173 GB, free: 27.44 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005911/3.007, allocations: 0.698 MB / 0.918 GB, free: 27.07 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006533/3.007, allocations: 471 kB / 0.9184 GB, free: 26.79 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001984/3.008, allocations: 32.16 kB / 0.9184 GB, free: 26.79 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001422/3.008, allocations: 388.4 kB / 0.9188 GB, free: 26.47 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002095/3.01, allocations: 0.7496 MB / 0.9195 GB, free: 26.47 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002369/3.012, allocations: 1.208 MB / 0.9207 GB, free: 25.95 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002316/3.015, allocations: 0.8744 MB / 0.9216 GB, free: 25.93 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.25e-05/3.015, allocations: 2.969 kB / 0.9216 GB, free: 25.93 MB / 362.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.006373/3.021, allocations: 2.324 MB / 0.9238 GB, free: 25.79 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003163/3.021, allocations: 498.5 kB / 0.9243 GB, free: 25.23 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.329e-05/3.021, allocations: 13.5 kB / 0.9243 GB, free: 25.23 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009332/3.031, allocations: 0.9553 MB / 0.9253 GB, free: 25.2 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002843/3.034, allocations: 356.8 kB / 0.9256 GB, free: 25.2 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003673/3.037, allocations: 2.879 MB / 0.9284 GB, free: 23.12 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002869/3.04, allocations: 147.5 kB / 0.9286 GB, free: 23.11 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002464/3.041, allocations: 89.72 kB / 0.9286 GB, free: 23.11 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.203e-05/3.041, allocations: 6.656 kB / 0.9286 GB, free: 23.11 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00548/3.046, allocations: 2.131 MB / 0.9307 GB, free: 23.03 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.946e-05/3.046, allocations: 12.75 kB / 0.9307 GB, free: 23.03 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007081/3.053, allocations: 0.6646 MB / 0.9314 GB, free: 23 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002684/3.056, allocations: 374.7 kB / 0.9317 GB, free: 23 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00252/3.058, allocations: 2.612 MB / 0.9343 GB, free: 20.92 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002136/3.061, allocations: 131.7 kB / 0.9344 GB, free: 20.91 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002242/3.061, allocations: 83.72 kB / 0.9345 GB, free: 20.91 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.tank3.aboveLevel[1],tank3.aboveLevel[1],$PRE.tank3.aboveLevel[2],tank3.aboveLevel[2],$PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],$PRE.tank2.aboveLevel[3],tank2.aboveLevel[3],tank2.ports_m_flow_out[3],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1],tank3.ports_m_flow_out[2],tank3.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 (207): * Single equations (assignments): 203 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 2,2 7,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.001403/3.062, allocations: 0.5207 MB / 0.935 GB, free: 20.71 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004873/3.063, allocations: 164.8 kB / 0.9352 GB, free: 20.63 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007114/3.07, allocations: 2.341 MB / 0.9375 GB, free: 20.45 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.272e-05/3.07, allocations: 13 kB / 0.9375 GB, free: 20.45 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.377e-06/3.07, allocations: 3.406 kB / 0.9375 GB, free: 20.45 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.242e-05/3.07, allocations: 13.47 kB / 0.9375 GB, free: 20.45 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009955/3.08, allocations: 3.941 MB / 0.9413 GB, free: 19.98 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.351e-05/3.08, allocations: 3.875 kB / 0.9413 GB, free: 19.98 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001896/3.082, allocations: 244.1 kB / 0.9416 GB, free: 19.97 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006424/3.088, allocations: 0.8811 MB / 0.9424 GB, free: 19.93 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002685/3.089, allocations: 46.36 kB / 0.9425 GB, free: 19.93 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002911/3.092, allocations: 2.827 MB / 0.9452 GB, free: 17.83 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.57e-06/3.092, allocations: 2.812 kB / 0.9452 GB, free: 17.83 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007614/3.099, allocations: 3.128 MB / 0.9483 GB, free: 16.82 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007089/3.1, allocations: 259 kB / 0.9485 GB, free: 16.62 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004716/3.101, allocations: 38.98 kB / 0.9486 GB, free: 16.6 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001797/3.102, allocations: 107.4 kB / 0.9487 GB, free: 16.57 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003964/3.103, allocations: 147.1 kB / 0.9488 GB, free: 16.55 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001888/3.103, allocations: 57.69 kB / 0.9489 GB, free: 16.54 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001732/3.105, allocations: 0.9024 MB / 0.9498 GB, free: 16.19 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.61e-07/3.105, allocations: 0 / 0.9498 GB, free: 16.19 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.005071/3.11, allocations: 1.362 MB / 0.9511 GB, free: 15.86 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (tank3.medium.T,tank3.level,tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Number of discrete states: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 127 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,2 12,2 12,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.003757/3.114, allocations: 1.22 MB / 0.9523 GB, free: 15.46 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.009403/3.123, allocations: 3.043 MB / 0.9552 GB, free: 14.48 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.739e-06/3.123, allocations: 0 / 0.9552 GB, free: 14.48 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003199/3.126, allocations: 1.067 MB / 0.9563 GB, free: 14.14 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005769/3.132, allocations: 0.6629 MB / 0.9569 GB, free: 14 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009224/3.141, allocations: 4.202 MB / 0.961 GB, free: 11.75 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001384/3.143, allocations: 1.428 MB / 0.9624 GB, free: 26.95 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001086/3.144, allocations: 160.2 kB / 0.9626 GB, free: 26.94 MB / 378.7 MB Notification: Performance of SimCode: time 1.363e-06/3.144, allocations: 2.438 kB / 0.9626 GB, free: 26.94 MB / 378.7 MB Notification: Performance of Templates: time 0.3877/3.532, allocations: 58.78 MB / 1.02 GB, free: 48.62 MB / 378.7 MB