Running command: translateModel(Modelica.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank2.level|tank2.ports.1..m_flow",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.EmptyTanks") Notification: Performance of loadModel(Modelica): time 2.087/2.087, allocations: 194.9 MB / 208 MB, free: 3.238 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.925e-05/2.964e-05, allocations: 4 kB / 255.4 MB, free: 2.707 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07934/0.0794, allocations: 44.5 MB / 299.9 MB, free: 6.137 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8039/0.8833, allocations: 316.4 MB / 0.6019 GB, free: 74.04 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001998/0.8836, allocations: 74.34 kB / 0.6019 GB, free: 74 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6354/1.519, allocations: 130.2 MB / 0.7291 GB, free: 110.7 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.485e-06/1.519, allocations: 2.781 kB / 0.7291 GB, free: 110.7 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.583e-05/1.519, allocations: 22.33 kB / 0.7291 GB, free: 110.7 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.003115/1.522, allocations: 1.077 MB / 0.7302 GB, free: 109.9 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/1.522, allocations: 10.78 kB / 0.7302 GB, free: 109.9 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006098/1.523, allocations: 92.78 kB / 0.7303 GB, free: 109.9 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001726/1.525, allocations: 0.6501 MB / 0.7309 GB, free: 109.5 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001104/1.525, allocations: 110.5 kB / 0.731 GB, free: 109.4 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001555/1.525, allocations: 60.36 kB / 0.7311 GB, free: 109.4 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001791/1.527, allocations: 0.8749 MB / 0.7319 GB, free: 109 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.005e-05/1.527, allocations: 3.938 kB / 0.7319 GB, free: 109 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001227/1.527, allocations: 21.84 kB / 0.732 GB, free: 109 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.943e-05/1.527, allocations: 55.08 kB / 0.732 GB, free: 109 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00178/1.529, allocations: 0.804 MB / 0.7328 GB, free: 108.7 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007033/1.536, allocations: 3.311 MB / 0.736 GB, free: 106.8 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001223/1.537, allocations: 0.6391 MB / 0.7367 GB, free: 106.6 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006844/1.538, allocations: 361.4 kB / 0.737 GB, free: 106.4 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003751/1.542, allocations: 2.07 MB / 0.739 GB, free: 104.9 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.667e-05/1.542, allocations: 42.88 kB / 0.7391 GB, free: 104.8 MB / 410.7 MB Notification: Performance of pre-optimization done (n=56): time 3.621e-06/1.542, allocations: 0 / 0.7391 GB, free: 104.8 MB / 410.7 MB Notification: Performance of matching and sorting (n=66): time 0.006329/1.548, allocations: 2.212 MB / 0.7412 GB, free: 103.9 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.767e-05/1.548, allocations: 88.61 kB / 0.7413 GB, free: 103.8 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001005/1.549, allocations: 0.5946 MB / 0.7419 GB, free: 103.4 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001376/1.549, allocations: 37.7 kB / 0.7419 GB, free: 103.4 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002287/1.55, allocations: 336.7 kB / 0.7422 GB, free: 103.1 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002174/1.55, allocations: 232.2 kB / 0.7425 GB, free: 102.8 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.99e-05/1.55, allocations: 16 kB / 0.7425 GB, free: 102.8 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000125/1.55, allocations: 385.6 kB / 0.7428 GB, free: 102.5 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007587/1.551, allocations: 345.8 kB / 0.7432 GB, free: 102.2 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007823/1.552, allocations: 497.8 kB / 0.7437 GB, free: 101.7 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007697/1.552, allocations: 400 kB / 0.744 GB, free: 101.3 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.887e-06/1.552, allocations: 4 kB / 0.744 GB, free: 101.3 MB / 410.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.002392/1.555, allocations: 1.117 MB / 0.7451 GB, free: 100.2 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003319/1.555, allocations: 1.571 MB / 0.7467 GB, free: 98.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.089e-05/1.555, allocations: 4 kB / 0.7467 GB, free: 98.49 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001545/1.557, allocations: 435.9 kB / 0.7471 GB, free: 98.07 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009173/1.558, allocations: 155.8 kB / 0.7472 GB, free: 97.92 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001379/1.559, allocations: 1.037 MB / 0.7482 GB, free: 96.86 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001012/1.56, allocations: 44.02 kB / 0.7483 GB, free: 96.81 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000131/1.56, allocations: 31.98 kB / 0.7483 GB, free: 96.78 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.329e-05/1.56, allocations: 4 kB / 0.7483 GB, free: 96.78 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001971/1.562, allocations: 0.9054 MB / 0.7492 GB, free: 95.86 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.128e-05/1.562, allocations: 4 kB / 0.7492 GB, free: 95.86 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007428/1.563, allocations: 248.7 kB / 0.7494 GB, free: 95.62 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008649/1.564, allocations: 163.8 kB / 0.7496 GB, free: 95.46 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007933/1.565, allocations: 0.8098 MB / 0.7504 GB, free: 94.62 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008907/1.566, allocations: 51.86 kB / 0.7504 GB, free: 94.57 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001098/1.566, allocations: 31.98 kB / 0.7505 GB, free: 94.54 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 82 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.0002824/1.566, allocations: 140.9 kB / 0.7506 GB, free: 94.39 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002216/1.566, allocations: 79.06 kB / 0.7507 GB, free: 94.32 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002391/1.569, allocations: 1.086 MB / 0.7517 GB, free: 93.21 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.777e-06/1.569, allocations: 4 kB / 0.7517 GB, free: 93.21 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.664e-06/1.569, allocations: 6.688 kB / 0.7518 GB, free: 93.21 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.182e-05/1.569, allocations: 7.938 kB / 0.7518 GB, free: 93.2 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003857/1.573, allocations: 1.979 MB / 0.7537 GB, free: 91.18 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.266e-06/1.573, allocations: 4 kB / 0.7537 GB, free: 91.17 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007709/1.574, allocations: 119.8 kB / 0.7538 GB, free: 91.05 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001543/1.575, allocations: 447.6 kB / 0.7542 GB, free: 90.62 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000118/1.575, allocations: 16 kB / 0.7543 GB, free: 90.61 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001272/1.577, allocations: 1.024 MB / 0.7553 GB, free: 89.55 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.778e-06/1.577, allocations: 7.953 kB / 0.7553 GB, free: 89.55 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002938/1.58, allocations: 1.565 MB / 0.7568 GB, free: 87.96 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00062/1.58, allocations: 252 kB / 0.757 GB, free: 87.7 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001857/1.58, allocations: 12 kB / 0.757 GB, free: 87.69 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008048/1.581, allocations: 51.89 kB / 0.7571 GB, free: 87.64 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000162/1.581, allocations: 64.64 kB / 0.7572 GB, free: 87.57 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001035/1.582, allocations: 27.98 kB / 0.7572 GB, free: 87.55 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0007168/1.582, allocations: 463.1 kB / 0.7576 GB, free: 87.1 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.61e-07/1.582, allocations: 0 / 0.7576 GB, free: 87.1 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002222/1.585, allocations: 0.6439 MB / 0.7582 GB, free: 86.46 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 57 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.001517/1.586, allocations: 0.598 MB / 0.7588 GB, free: 85.9 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003067/1.589, allocations: 1.329 MB / 0.7601 GB, free: 84.57 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.726e-06/1.589, allocations: 3.938 kB / 0.7601 GB, free: 84.57 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001112/1.59, allocations: 470 kB / 0.7606 GB, free: 84.11 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001961/1.592, allocations: 347.1 kB / 0.7609 GB, free: 83.78 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00349/1.596, allocations: 1.357 MB / 0.7622 GB, free: 82.41 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005072/1.596, allocations: 1.012 MB / 0.7632 GB, free: 81.38 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001759/1.598, allocations: 366.3 kB / 0.7636 GB, free: 81.02 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002363/1.598, allocations: 67.42 kB / 0.7636 GB, free: 80.95 MB / 410.7 MB Notification: Performance of SimCode: time 1.727e-06/1.598, allocations: 0 / 0.7636 GB, free: 80.95 MB / 410.7 MB Notification: Performance of Templates: time 0.04458/1.643, allocations: 22.61 MB / 0.7857 GB, free: 58.42 MB / 410.7 MB