Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.667/1.667, allocations: 171.1 MB / 186.7 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003861/0.0003862, allocations: 12 kB / 233.3 MB, free: 3.012 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06977/0.07018, allocations: 38.77 MB / 272 MB, free: 12.16 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7383/0.8085, allocations: 317 MB / 0.5752 GB, free: 476 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002425/0.8088, allocations: 93.08 kB / 0.5753 GB, free: 424 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.648/2.457, allocations: 322.5 MB / 0.8903 GB, free: 36.12 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.317e-06/2.457, allocations: 2.5 kB / 0.8903 GB, free: 36.12 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001818/2.457, allocations: 45.69 kB / 0.8903 GB, free: 36.11 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.007108/2.464, allocations: 2.249 MB / 0.8925 GB, free: 35.17 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/2.465, allocations: 9.344 kB / 0.8925 GB, free: 35.17 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001271/2.466, allocations: 202.3 kB / 0.8927 GB, free: 35.08 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003757/2.47, allocations: 1.259 MB / 0.8939 GB, free: 34.7 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001446/2.47, allocations: 94.11 kB / 0.894 GB, free: 34.7 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004613/2.47, allocations: 115.1 kB / 0.8941 GB, free: 34.7 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004823/2.475, allocations: 1.943 MB / 0.896 GB, free: 34.41 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.869e-05/2.475, allocations: 7.25 kB / 0.896 GB, free: 34.41 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002768/2.475, allocations: 55.62 kB / 0.8961 GB, free: 34.41 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001905/2.476, allocations: 113.5 kB / 0.8962 GB, free: 34.41 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004957/2.481, allocations: 1.958 MB / 0.8981 GB, free: 34.39 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01602/2.497, allocations: 7.622 MB / 0.9055 GB, free: 30.95 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002781/2.5, allocations: 1.153 MB / 0.9067 GB, free: 30.93 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006313/2.506, allocations: 3.339 MB / 0.9099 GB, free: 29.36 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.281e-05/2.506, allocations: 56.17 kB / 0.91 GB, free: 29.32 MB / 362.7 MB Notification: Performance of pre-optimization done (n=119): time 4.312e-06/2.506, allocations: 0 / 0.91 GB, free: 29.32 MB / 362.7 MB Notification: Performance of matching and sorting (n=134): time 0.01633/2.522, allocations: 5.364 MB / 0.9152 GB, free: 28.28 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.193e-05/2.522, allocations: 177.7 kB / 0.9154 GB, free: 28.09 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002176/2.525, allocations: 1.17 MB / 0.9165 GB, free: 27.93 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003486/2.525, allocations: 53.3 kB / 0.9166 GB, free: 27.89 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005165/2.526, allocations: 0.6995 MB / 0.9173 GB, free: 27.53 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005493/2.526, allocations: 469.6 kB / 0.9177 GB, free: 27.24 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001661/2.526, allocations: 36.16 kB / 0.9178 GB, free: 27.24 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001323/2.526, allocations: 380 kB / 0.9181 GB, free: 26.93 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001846/2.528, allocations: 0.7478 MB / 0.9188 GB, free: 26.92 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002172/2.53, allocations: 1.21 MB / 0.92 GB, free: 26.4 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002132/2.533, allocations: 0.8753 MB / 0.9209 GB, free: 26.39 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.274e-05/2.533, allocations: 3.781 kB / 0.9209 GB, free: 26.39 MB / 362.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.005797/2.539, allocations: 2.316 MB / 0.9232 GB, free: 26.24 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001046/2.54, allocations: 5.15 MB / 0.9282 GB, free: 20.89 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.373e-05/2.54, allocations: 13.59 kB / 0.9282 GB, free: 20.89 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00772/2.547, allocations: 0.9596 MB / 0.9291 GB, free: 20.86 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002085/2.55, allocations: 356.4 kB / 0.9295 GB, free: 20.86 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003072/2.553, allocations: 2.885 MB / 0.9323 GB, free: 18.78 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002417/2.555, allocations: 147.6 kB / 0.9324 GB, free: 18.77 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003656/2.555, allocations: 82.94 kB / 0.9325 GB, free: 18.77 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.43e-05/2.556, allocations: 3.219 kB / 0.9325 GB, free: 18.77 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005057/2.561, allocations: 2.128 MB / 0.9346 GB, free: 18.69 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.66e-05/2.561, allocations: 12.94 kB / 0.9346 GB, free: 18.69 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005928/2.567, allocations: 0.669 MB / 0.9353 GB, free: 18.66 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002141/2.569, allocations: 372.8 kB / 0.9356 GB, free: 18.66 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002317/2.571, allocations: 2.61 MB / 0.9382 GB, free: 16.59 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001898/2.573, allocations: 140.8 kB / 0.9383 GB, free: 16.58 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003352/2.573, allocations: 80.8 kB / 0.9384 GB, free: 16.58 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.001354/2.575, allocations: 0.521 MB / 0.9389 GB, free: 16.38 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004643/2.575, allocations: 167.6 kB / 0.939 GB, free: 16.29 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006409/2.582, allocations: 2.348 MB / 0.9413 GB, free: 16.11 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.349e-05/2.582, allocations: 14.78 kB / 0.9413 GB, free: 16.11 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.098e-05/2.582, allocations: 6.141 kB / 0.9414 GB, free: 16.11 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.799e-05/2.582, allocations: 15.03 kB / 0.9414 GB, free: 16.11 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009726/2.592, allocations: 3.931 MB / 0.9452 GB, free: 15.65 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.575e-05/2.592, allocations: 5.969 kB / 0.9452 GB, free: 15.65 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001593/2.593, allocations: 242.2 kB / 0.9454 GB, free: 15.65 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005814/2.599, allocations: 0.883 MB / 0.9463 GB, free: 15.62 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003341/2.599, allocations: 42.12 kB / 0.9463 GB, free: 15.62 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003507/2.603, allocations: 2.832 MB / 0.9491 GB, free: 29.52 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.328e-06/2.603, allocations: 3.688 kB / 0.9491 GB, free: 29.52 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007398/2.61, allocations: 3.216 MB / 0.9523 GB, free: 29.02 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007235/2.611, allocations: 261.9 kB / 0.9525 GB, free: 28.84 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004757/2.612, allocations: 39.91 kB / 0.9525 GB, free: 28.84 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00153/2.613, allocations: 109.3 kB / 0.9526 GB, free: 28.83 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003501/2.614, allocations: 149.2 kB / 0.9528 GB, free: 28.82 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001875/2.614, allocations: 59.14 kB / 0.9528 GB, free: 28.82 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001668/2.615, allocations: 0.8925 MB / 0.9537 GB, free: 28.71 MB / 378.7 MB Notification: Performance of sort global known variables: time 9.29e-07/2.616, allocations: 2.594 kB / 0.9537 GB, free: 28.71 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.005475/2.621, allocations: 1.363 MB / 0.955 GB, free: 28.51 MB / 378.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.003279/2.624, allocations: 1.226 MB / 0.9562 GB, free: 28.17 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.007735/2.632, allocations: 3.041 MB / 0.9592 GB, free: 28.11 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.759e-06/2.632, allocations: 3.812 kB / 0.9592 GB, free: 28.11 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002511/2.635, allocations: 1.069 MB / 0.9603 GB, free: 28.06 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004345/2.639, allocations: 0.6617 MB / 0.9609 GB, free: 28.05 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007731/2.647, allocations: 4.19 MB / 0.965 GB, free: 25.92 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001295/2.648, allocations: 1.427 MB / 0.9664 GB, free: 25.13 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008772/2.649, allocations: 161.1 kB / 0.9665 GB, free: 25.12 MB / 378.7 MB Notification: Performance of SimCode: time 1.722e-06/2.649, allocations: 0 / 0.9665 GB, free: 25.12 MB / 378.7 MB Notification: Performance of Templates: time 0.3181/2.967, allocations: 58.79 MB / 1.024 GB, free: 49.14 MB / 378.7 MB