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_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank") Notification: Performance of loadModel(ModelicaTest): time 2.114/2.114, allocations: 235 MB / 247.6 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.307e-05/3.33e-05, allocations: 4 kB / 304.9 MB, free: 5.656 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3236/0.3236, allocations: 54.86 MB / 359.8 MB, free: 2.668 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6848/1.008, allocations: 330.2 MB / 0.6738 GB, free: 5.219 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002414/1.009, allocations: 91.25 kB / 0.6739 GB, free: 5.172 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7127/1.721, allocations: 141.5 MB / 0.8121 GB, free: 73.75 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.209e-06/1.722, allocations: 0 / 0.8121 GB, free: 73.75 MB / 474.7 MB Notification: Performance of Transformations before backend: time 7.204e-05/1.722, allocations: 27.92 kB / 0.8122 GB, free: 73.72 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.002882/1.725, allocations: 1.173 MB / 0.8133 GB, free: 72.5 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.245e-05/1.725, allocations: 8.031 kB / 0.8133 GB, free: 72.49 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005888/1.725, allocations: 102.9 kB / 0.8134 GB, free: 72.39 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001785/1.727, allocations: 0.7179 MB / 0.8141 GB, free: 71.63 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001113/1.727, allocations: 108.7 kB / 0.8142 GB, free: 71.51 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001533/1.727, allocations: 59.97 kB / 0.8143 GB, free: 71.45 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001965/1.729, allocations: 0.9934 MB / 0.8152 GB, free: 70.41 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.946e-05/1.729, allocations: 3.938 kB / 0.8153 GB, free: 70.41 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001328/1.729, allocations: 31.92 kB / 0.8153 GB, free: 70.38 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.912e-05/1.73, allocations: 49.28 kB / 0.8153 GB, free: 70.33 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001747/1.731, allocations: 0.8809 MB / 0.8162 GB, free: 69.45 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007226/1.739, allocations: 4.018 MB / 0.8201 GB, free: 65.24 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001159/1.74, allocations: 0.6268 MB / 0.8207 GB, free: 64.6 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006524/1.74, allocations: 386.2 kB / 0.8211 GB, free: 64.22 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003698/1.744, allocations: 2.366 MB / 0.8234 GB, free: 61.61 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007416/1.745, allocations: 431.3 kB / 0.8238 GB, free: 61.17 MB / 474.7 MB Notification: Performance of pre-optimization done (n=47): time 4.644e-06/1.745, allocations: 0 / 0.8238 GB, free: 61.17 MB / 474.7 MB Notification: Performance of matching and sorting (n=52): time 0.004565/1.75, allocations: 1.965 MB / 0.8257 GB, free: 59.12 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.091e-05/1.75, allocations: 162.6 kB / 0.8259 GB, free: 58.93 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001053/1.751, allocations: 0.6796 MB / 0.8266 GB, free: 58.25 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 9.573e-05/1.751, allocations: 37.7 kB / 0.8266 GB, free: 58.2 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002585/1.751, allocations: 453.7 kB / 0.827 GB, free: 57.75 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001676/1.751, allocations: 181.5 kB / 0.8272 GB, free: 57.57 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.072e-05/1.751, allocations: 16 kB / 0.8272 GB, free: 57.56 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 7.616e-05/1.751, allocations: 342.8 kB / 0.8275 GB, free: 57.21 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006747/1.752, allocations: 349.6 kB / 0.8279 GB, free: 56.88 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007935/1.753, allocations: 0.621 MB / 0.8285 GB, free: 56.12 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008104/1.754, allocations: 452.8 kB / 0.8289 GB, free: 55.68 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.052e-06/1.754, allocations: 11.94 kB / 0.8289 GB, free: 55.67 MB / 474.7 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.002504/1.756, allocations: 1.151 MB / 0.83 GB, free: 54.5 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006599/1.757, allocations: 3.428 MB / 0.8334 GB, free: 50.8 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.532e-05/1.757, allocations: 8 kB / 0.8334 GB, free: 50.79 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001159/1.758, allocations: 333.5 kB / 0.8337 GB, free: 50.46 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008145/1.759, allocations: 167.7 kB / 0.8339 GB, free: 50.29 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001368/1.76, allocations: 1.432 MB / 0.8353 GB, free: 48.81 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001056/1.762, allocations: 52.09 kB / 0.8353 GB, free: 48.76 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000134/1.762, allocations: 43.98 kB / 0.8354 GB, free: 48.71 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.198e-05/1.762, allocations: 4 kB / 0.8354 GB, free: 48.71 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002251/1.764, allocations: 1.047 MB / 0.8364 GB, free: 47.65 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.41e-05/1.764, allocations: 15.88 kB / 0.8364 GB, free: 47.63 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008362/1.765, allocations: 249.9 kB / 0.8366 GB, free: 47.38 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008065/1.766, allocations: 159.7 kB / 0.8368 GB, free: 47.23 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001932/1.768, allocations: 2.332 MB / 0.8391 GB, free: 44.74 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000757/1.768, allocations: 51.91 kB / 0.8391 GB, free: 44.69 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001148/1.769, allocations: 44.09 kB / 0.8392 GB, free: 44.64 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.0003106/1.769, allocations: 194.5 kB / 0.8394 GB, free: 44.44 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002114/1.769, allocations: 82.97 kB / 0.8394 GB, free: 44.36 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002502/1.772, allocations: 1.038 MB / 0.8404 GB, free: 43.3 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.934e-06/1.772, allocations: 4 kB / 0.8404 GB, free: 43.3 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.518e-06/1.772, allocations: 0 / 0.8404 GB, free: 43.3 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.977e-06/1.772, allocations: 3.984 kB / 0.8405 GB, free: 43.3 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003542/1.775, allocations: 1.84 MB / 0.8422 GB, free: 41.38 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.071e-06/1.775, allocations: 0 / 0.8422 GB, free: 41.38 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005604/1.776, allocations: 75.89 kB / 0.8423 GB, free: 41.31 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001048/1.777, allocations: 333.4 kB / 0.8426 GB, free: 40.98 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.791e-05/1.777, allocations: 23.97 kB / 0.8427 GB, free: 40.95 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001305/1.778, allocations: 1.417 MB / 0.844 GB, free: 39.48 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.6e-06/1.778, allocations: 0 / 0.844 GB, free: 39.48 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002794/1.781, allocations: 1.497 MB / 0.8455 GB, free: 37.96 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006111/1.782, allocations: 248 kB / 0.8457 GB, free: 37.7 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002199/1.782, allocations: 12 kB / 0.8458 GB, free: 37.69 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008162/1.783, allocations: 47.88 kB / 0.8458 GB, free: 37.64 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001827/1.783, allocations: 52.36 kB / 0.8459 GB, free: 37.59 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001061/1.783, allocations: 23.98 kB / 0.8459 GB, free: 37.57 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0008698/1.784, allocations: 0.5225 MB / 0.8464 GB, free: 37.05 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.69e-07/1.784, allocations: 0 / 0.8464 GB, free: 37.05 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002817/1.787, allocations: 0.6596 MB / 0.847 GB, free: 36.39 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.001877/1.789, allocations: 0.641 MB / 0.8477 GB, free: 35.75 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.003361/1.792, allocations: 1.56 MB / 0.8492 GB, free: 34.15 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.085e-06/1.792, allocations: 0 / 0.8492 GB, free: 34.15 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00106/1.793, allocations: 469 kB / 0.8496 GB, free: 33.68 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001625/1.795, allocations: 267.6 kB / 0.8499 GB, free: 33.42 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003501/1.799, allocations: 1.389 MB / 0.8512 GB, free: 32 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005278/1.799, allocations: 1.025 MB / 0.8522 GB, free: 30.95 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003434/1.799, allocations: 71.41 kB / 0.8523 GB, free: 30.88 MB / 474.7 MB Notification: Performance of SimCode: time 2.288e-06/1.8, allocations: 3.938 kB / 0.8523 GB, free: 30.88 MB / 474.7 MB Notification: Performance of Templates: time 0.03089/1.83, allocations: 21.83 MB / 0.8736 GB, free: 9.055 MB / 474.7 MB