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.TanksWithEmptyingPipe1.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.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.|tank2.aboveLevel.1.|tank2.aboveLevel.2.",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") Notification: Performance of loadModel(Modelica): time 1.746/1.746, allocations: 194.9 MB / 211.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003603/0.0003605, allocations: 8 kB / 263.9 MB, free: 13.57 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0817/0.08209, allocations: 44.5 MB / 308.5 MB, free: 0.9883 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9476/1.03, allocations: 319.7 MB / 0.6135 GB, free: 65.29 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002671/1.03, allocations: 95.14 kB / 0.6136 GB, free: 65.24 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.377/2.407, allocations: 280 MB / 0.887 GB, free: 57.54 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.221e-06/2.407, allocations: 0 / 0.887 GB, free: 57.54 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001655/2.407, allocations: 44.22 kB / 0.887 GB, free: 57.54 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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.006531/2.413, allocations: 1.965 MB / 0.8889 GB, free: 56.66 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.115e-05/2.413, allocations: 10.31 kB / 0.8889 GB, free: 56.66 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001186/2.415, allocations: 168.9 kB / 0.8891 GB, free: 56.59 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003403/2.418, allocations: 1.092 MB / 0.8902 GB, free: 56.3 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001323/2.418, allocations: 91.03 kB / 0.8902 GB, free: 56.3 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004111/2.419, allocations: 90.67 kB / 0.8903 GB, free: 56.3 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004046/2.423, allocations: 1.614 MB / 0.8919 GB, free: 56.05 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.536e-05/2.423, allocations: 8.5 kB / 0.8919 GB, free: 56.05 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002597/2.423, allocations: 46.95 kB / 0.892 GB, free: 56.05 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001669/2.423, allocations: 103.3 kB / 0.8921 GB, free: 56.05 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004218/2.427, allocations: 1.613 MB / 0.8936 GB, free: 56.04 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01332/2.441, allocations: 6.508 MB / 0.9 GB, free: 53 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002057/2.443, allocations: 0.8921 MB / 0.9009 GB, free: 52.98 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004802/2.448, allocations: 2.737 MB / 0.9035 GB, free: 51.51 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.959e-05/2.448, allocations: 43.66 kB / 0.9036 GB, free: 51.47 MB / 410.7 MB Notification: Performance of pre-optimization done (n=80): time 4.14e-06/2.448, allocations: 0 / 0.9036 GB, free: 51.47 MB / 410.7 MB Notification: Performance of matching and sorting (n=90): time 0.01142/2.459, allocations: 3.645 MB / 0.9071 GB, free: 50.61 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.218e-05/2.459, allocations: 195.1 kB / 0.9073 GB, free: 50.39 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001974/2.461, allocations: 1.051 MB / 0.9083 GB, free: 50.22 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002724/2.462, allocations: 45.58 kB / 0.9084 GB, free: 50.19 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005021/2.462, allocations: 0.6564 MB / 0.909 GB, free: 49.82 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003858/2.463, allocations: 321.4 kB / 0.9093 GB, free: 49.63 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001336/2.463, allocations: 34.03 kB / 0.9094 GB, free: 49.63 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001136/2.463, allocations: 367.4 kB / 0.9097 GB, free: 49.32 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001343/2.464, allocations: 0.5426 MB / 0.9103 GB, free: 49.32 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001539/2.466, allocations: 1.024 MB / 0.9113 GB, free: 48.75 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001571/2.467, allocations: 0.673 MB / 0.9119 GB, free: 48.74 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.614e-05/2.467, allocations: 7.781 kB / 0.9119 GB, free: 48.74 MB / 410.7 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.00453/2.472, allocations: 1.785 MB / 0.9137 GB, free: 48.64 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001188/2.473, allocations: 5.582 MB / 0.9191 GB, free: 42.84 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.998e-05/2.473, allocations: 11.56 kB / 0.9191 GB, free: 42.84 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005163/2.478, allocations: 0.657 MB / 0.9198 GB, free: 42.81 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001561/2.48, allocations: 294.9 kB / 0.92 GB, free: 42.81 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002153/2.482, allocations: 2.148 MB / 0.9221 GB, free: 41.25 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002114/2.484, allocations: 109.7 kB / 0.9222 GB, free: 41.24 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003259/2.485, allocations: 74.5 kB / 0.9223 GB, free: 41.24 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.4e-05/2.485, allocations: 3.906 kB / 0.9223 GB, free: 41.24 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00397/2.489, allocations: 1.661 MB / 0.9239 GB, free: 41.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.386e-05/2.489, allocations: 14.38 kB / 0.924 GB, free: 41.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004229/2.493, allocations: 496.4 kB / 0.9244 GB, free: 41.17 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001724/2.495, allocations: 309.1 kB / 0.9247 GB, free: 41.16 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001772/2.497, allocations: 1.97 MB / 0.9266 GB, free: 39.6 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001564/2.498, allocations: 106.8 kB / 0.9267 GB, free: 39.59 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002357/2.499, allocations: 71.28 kB / 0.9268 GB, free: 39.59 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 64 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],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 (171): * Single equations (assignments): 168 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.001081/2.5, allocations: 478.9 kB / 0.9273 GB, free: 39.37 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003672/2.5, allocations: 130.8 kB / 0.9274 GB, free: 39.3 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004155/2.504, allocations: 1.518 MB / 0.9289 GB, free: 39.17 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.569e-05/2.504, allocations: 10.34 kB / 0.9289 GB, free: 39.17 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.687e-06/2.504, allocations: 3.719 kB / 0.9289 GB, free: 39.17 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.695e-05/2.504, allocations: 3.281 kB / 0.9289 GB, free: 39.17 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006681/2.511, allocations: 2.758 MB / 0.9316 GB, free: 38.76 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.026e-05/2.511, allocations: 3.75 kB / 0.9316 GB, free: 38.76 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009219/2.512, allocations: 155.3 kB / 0.9317 GB, free: 38.75 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003867/2.516, allocations: 0.6108 MB / 0.9323 GB, free: 38.72 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002303/2.516, allocations: 26.66 kB / 0.9324 GB, free: 38.72 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002032/2.518, allocations: 2.101 MB / 0.9344 GB, free: 37.16 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.625e-06/2.518, allocations: 3.375 kB / 0.9344 GB, free: 37.16 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004685/2.523, allocations: 2.123 MB / 0.9365 GB, free: 36.39 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006472/2.524, allocations: 233.7 kB / 0.9367 GB, free: 36.19 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004954/2.524, allocations: 35.06 kB / 0.9367 GB, free: 36.18 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001409/2.526, allocations: 76.97 kB / 0.9368 GB, free: 36.16 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002877/2.526, allocations: 98.73 kB / 0.9369 GB, free: 36.14 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001291/2.526, allocations: 31.72 kB / 0.9369 GB, free: 36.13 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001478/2.528, allocations: 0.805 MB / 0.9377 GB, free: 35.81 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.69e-07/2.528, allocations: 0 / 0.9377 GB, free: 35.81 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004877/2.532, allocations: 1.187 MB / 0.9389 GB, free: 35.51 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of discrete states: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 81 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 12,1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.003487/2.536, allocations: 1.098 MB / 0.94 GB, free: 35.16 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005791/2.542, allocations: 2.208 MB / 0.9421 GB, free: 34.45 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.335e-06/2.542, allocations: 3.281 kB / 0.9421 GB, free: 34.45 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002127/2.544, allocations: 0.7051 MB / 0.9428 GB, free: 34.24 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003277/2.547, allocations: 0.4967 MB / 0.9433 GB, free: 34.13 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006234/2.554, allocations: 3.303 MB / 0.9465 GB, free: 32.54 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008661/2.555, allocations: 1.272 MB / 0.9478 GB, free: 31.79 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006174/2.555, allocations: 128.5 kB / 0.9479 GB, free: 31.77 MB / 410.7 MB Notification: Performance of SimCode: time 1.931e-06/2.555, allocations: 0 / 0.9479 GB, free: 31.77 MB / 410.7 MB Notification: Performance of Templates: time 0.05944/2.615, allocations: 43.31 MB / 0.9902 GB, free: 6.832 MB / 410.7 MB