Running command: translateModel(ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank.level|tank.medium.T|timeTable.a|timeTable.b|timeTable.last|timeTable.nextEvent",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank") Notification: Performance of loadModel(ModelicaTest): time 2.276/2.276, allocations: 235 MB / 247.2 MB, free: 14.33 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.748e-05/2.761e-05, allocations: 0 / 304.9 MB, free: 5.164 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3277/0.3277, allocations: 54.85 MB / 359.8 MB, free: 3.133 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6531/0.9808, allocations: 330.2 MB / 0.6739 GB, free: 5.164 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002396/0.9811, allocations: 90.47 kB / 0.6739 GB, free: 5.117 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7055/1.687, allocations: 141.5 MB / 0.8122 GB, free: 73.65 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.217e-06/1.687, allocations: 0 / 0.8122 GB, free: 73.65 MB / 474.7 MB Notification: Performance of Transformations before backend: time 7.297e-05/1.687, allocations: 23.98 kB / 0.8122 GB, free: 73.62 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 153 * Number of variables: 153 Notification: Performance of Generate backend data structure: time 0.002904/1.69, allocations: 1.174 MB / 0.8133 GB, free: 72.4 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.263e-05/1.69, allocations: 8.031 kB / 0.8133 GB, free: 72.39 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00063/1.69, allocations: 114.9 kB / 0.8135 GB, free: 72.28 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001836/1.692, allocations: 0.7062 MB / 0.8141 GB, free: 71.53 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001127/1.692, allocations: 100.7 kB / 0.8142 GB, free: 71.41 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000149/1.693, allocations: 59.98 kB / 0.8143 GB, free: 71.36 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001973/1.695, allocations: 0.9933 MB / 0.8153 GB, free: 70.32 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.71e-05/1.695, allocations: 0 / 0.8153 GB, free: 70.32 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001289/1.695, allocations: 27.98 kB / 0.8153 GB, free: 70.29 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.696e-05/1.695, allocations: 53.28 kB / 0.8153 GB, free: 70.24 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001741/1.697, allocations: 0.881 MB / 0.8162 GB, free: 69.36 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007145/1.704, allocations: 4.025 MB / 0.8201 GB, free: 65.14 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001216/1.705, allocations: 0.6128 MB / 0.8207 GB, free: 64.52 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006535/1.706, allocations: 394.2 kB / 0.8211 GB, free: 64.13 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003702/1.709, allocations: 2.373 MB / 0.8234 GB, free: 61.5 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007719/1.71, allocations: 439.3 kB / 0.8238 GB, free: 61.06 MB / 474.7 MB Notification: Performance of pre-optimization done (n=47): time 4.051e-06/1.71, allocations: 0 / 0.8238 GB, free: 61.06 MB / 474.7 MB Notification: Performance of matching and sorting (n=52): time 0.004571/1.715, allocations: 1.957 MB / 0.8258 GB, free: 59.02 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.109e-05/1.715, allocations: 162.5 kB / 0.8259 GB, free: 58.83 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001032/1.716, allocations: 0.6913 MB / 0.8266 GB, free: 58.13 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001086/1.716, allocations: 37.7 kB / 0.8266 GB, free: 58.09 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002938/1.716, allocations: 435.2 kB / 0.827 GB, free: 57.66 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001726/1.717, allocations: 177.6 kB / 0.8272 GB, free: 57.48 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.259e-05/1.717, allocations: 16 kB / 0.8272 GB, free: 57.46 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001304/1.717, allocations: 390.7 kB / 0.8276 GB, free: 57.07 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006823/1.717, allocations: 353.6 kB / 0.8279 GB, free: 56.73 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008055/1.718, allocations: 0.6172 MB / 0.8285 GB, free: 55.98 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007898/1.719, allocations: 460.7 kB / 0.829 GB, free: 55.53 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.157e-06/1.719, allocations: 4 kB / 0.829 GB, free: 55.53 MB / 474.7 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.002574/1.722, allocations: 1.196 MB / 0.8301 GB, free: 54.31 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006822/1.722, allocations: 3.429 MB / 0.8335 GB, free: 50.61 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.638e-05/1.722, allocations: 12 kB / 0.8335 GB, free: 50.6 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001155/1.724, allocations: 337.4 kB / 0.8338 GB, free: 50.26 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008287/1.724, allocations: 159.7 kB / 0.834 GB, free: 50.11 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001373/1.726, allocations: 1.433 MB / 0.8354 GB, free: 48.62 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001011/1.727, allocations: 51.83 kB / 0.8354 GB, free: 48.57 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000129/1.727, allocations: 43.98 kB / 0.8355 GB, free: 48.53 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.268e-05/1.727, allocations: 4 kB / 0.8355 GB, free: 48.52 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002214/1.729, allocations: 1.051 MB / 0.8365 GB, free: 47.46 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.406e-05/1.729, allocations: 12.47 kB / 0.8365 GB, free: 47.45 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008441/1.73, allocations: 253.6 kB / 0.8368 GB, free: 47.19 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007717/1.731, allocations: 159.7 kB / 0.8369 GB, free: 47.04 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001966/1.733, allocations: 2.336 MB / 0.8392 GB, free: 44.54 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009909/1.734, allocations: 52.05 kB / 0.8392 GB, free: 44.49 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001158/1.734, allocations: 39.98 kB / 0.8393 GB, free: 44.45 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 1 * 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 {2 1,2 4} Notification: Performance of prepare postOptimizeDAE: time 0.0003134/1.734, allocations: 190.4 kB / 0.8395 GB, free: 44.25 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00017/1.735, allocations: 87.06 kB / 0.8395 GB, free: 44.17 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002469/1.737, allocations: 1.038 MB / 0.8406 GB, free: 43.11 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.281e-06/1.737, allocations: 4 kB / 0.8406 GB, free: 43.11 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.72e-06/1.737, allocations: 4 kB / 0.8406 GB, free: 43.11 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.163e-06/1.737, allocations: 3.984 kB / 0.8406 GB, free: 43.1 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003537/1.741, allocations: 1.837 MB / 0.8424 GB, free: 41.19 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.94e-06/1.741, allocations: 0 / 0.8424 GB, free: 41.19 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005399/1.741, allocations: 79.89 kB / 0.8424 GB, free: 41.11 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001056/1.742, allocations: 333.4 kB / 0.8428 GB, free: 40.78 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.736e-05/1.743, allocations: 15.98 kB / 0.8428 GB, free: 40.77 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001276/1.744, allocations: 1.429 MB / 0.8442 GB, free: 39.29 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.379e-06/1.744, allocations: 4.062 kB / 0.8442 GB, free: 39.28 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00276/1.747, allocations: 1.493 MB / 0.8456 GB, free: 37.76 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005203/1.747, allocations: 248.2 kB / 0.8459 GB, free: 37.5 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001683/1.747, allocations: 12 kB / 0.8459 GB, free: 37.49 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007138/1.748, allocations: 43.91 kB / 0.8459 GB, free: 37.45 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001598/1.748, allocations: 52.36 kB / 0.846 GB, free: 37.39 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.556e-05/1.748, allocations: 27.92 kB / 0.846 GB, free: 37.37 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0008465/1.749, allocations: 0.5225 MB / 0.8465 GB, free: 36.85 MB / 474.7 MB Notification: Performance of sort global known variables: time 9.15e-07/1.749, allocations: 0 / 0.8465 GB, free: 36.85 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002501/1.752, allocations: 0.6557 MB / 0.8471 GB, free: 36.19 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (tank.medium.T,tank.level) * Number of discrete variables: 10 ($whenCondition1,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 6 (timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 1 * 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 {2 1,2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.001717/1.754, allocations: 0.6333 MB / 0.8478 GB, free: 35.56 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.003227/1.757, allocations: 1.588 MB / 0.8493 GB, free: 33.93 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 5.554e-06/1.757, allocations: 0 / 0.8493 GB, free: 33.93 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001067/1.758, allocations: 477.5 kB / 0.8498 GB, free: 33.45 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001546/1.759, allocations: 267 kB / 0.85 GB, free: 33.2 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003291/1.763, allocations: 1.348 MB / 0.8513 GB, free: 31.82 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005314/1.763, allocations: 1.027 MB / 0.8523 GB, free: 30.77 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.001733/1.765, allocations: 382.2 kB / 0.8527 GB, free: 30.39 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001971/1.765, allocations: 63.36 kB / 0.8528 GB, free: 30.32 MB / 474.7 MB Notification: Performance of SimCode: time 1.72e-06/1.765, allocations: 4 kB / 0.8528 GB, free: 30.32 MB / 474.7 MB Notification: Performance of Templates: time 0.04287/1.808, allocations: 20.73 MB / 0.873 GB, free: 9.621 MB / 474.7 MB