Running command: translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|openTank.H|openTank.m",fileNamePrefix="Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank") Notification: Performance of loadModel(Modelica): time 2.072/2.072, allocations: 205.8 MB / 218.9 MB, free: 9.355 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.621e-05/2.64e-05, allocations: 0 / 269.4 MB, free: 6.418 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08648/0.08653, allocations: 47.56 MB / 316.9 MB, free: 6.766 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3462/0.4328, allocations: 83.12 MB / 400 MB, free: 5.066 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002266/0.433, allocations: 83.95 kB / 400.1 MB, free: 5.027 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03322/0.4663, allocations: 8.228 MB / 408.3 MB, free: 14.12 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.202e-06/0.4663, allocations: 0 / 408.3 MB, free: 14.12 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.369e-05/0.4664, allocations: 8 kB / 408.4 MB, free: 14.11 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.001003/0.4674, allocations: 0.5857 MB / 408.9 MB, free: 13.5 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.7e-05/0.4675, allocations: 12.03 kB / 409 MB, free: 13.49 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001698/0.4676, allocations: 43.53 kB / 409 MB, free: 13.45 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008318/0.4685, allocations: 330.8 kB / 409.3 MB, free: 13.11 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.107e-05/0.4685, allocations: 15.94 kB / 409.3 MB, free: 13.11 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.252e-05/0.4686, allocations: 15.94 kB / 409.4 MB, free: 13.09 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00056/0.4692, allocations: 296.5 kB / 409.6 MB, free: 12.83 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.593e-05/0.4692, allocations: 0 / 409.6 MB, free: 12.83 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.036e-05/0.4693, allocations: 11.5 kB / 409.7 MB, free: 12.82 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.17e-05/0.4693, allocations: 4 kB / 409.7 MB, free: 12.82 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003676/0.4697, allocations: 151 kB / 409.8 MB, free: 12.72 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001776/0.4715, allocations: 0.7996 MB / 410.6 MB, free: 12.03 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005795/0.4721, allocations: 196.6 kB / 410.8 MB, free: 11.88 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001882/0.4723, allocations: 83.09 kB / 410.9 MB, free: 11.83 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.878e-05/0.4723, allocations: 0 / 410.9 MB, free: 11.83 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000311/0.4726, allocations: 134.6 kB / 411 MB, free: 11.71 MB / 330.7 MB Notification: Performance of pre-optimization done (n=24): time 3.052e-06/0.4727, allocations: 0 / 411 MB, free: 11.71 MB / 330.7 MB Notification: Performance of matching and sorting (n=24): time 0.0006538/0.4733, allocations: 254.9 kB / 411.3 MB, free: 11.52 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001957/0.4735, allocations: 316.4 kB / 411.6 MB, free: 11.13 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006253/0.4742, allocations: 383.3 kB / 411.9 MB, free: 10.83 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.091e-05/0.4742, allocations: 29.58 kB / 412 MB, free: 10.8 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001811/0.4744, allocations: 200.9 kB / 412.2 MB, free: 10.66 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.91e-05/0.4745, allocations: 86.33 kB / 412.2 MB, free: 10.59 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.521e-05/0.4746, allocations: 3.875 kB / 412.3 MB, free: 10.59 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002043/0.4748, allocations: 358.1 kB / 412.6 MB, free: 10.24 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001651/0.475, allocations: 67.05 kB / 412.7 MB, free: 10.2 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002848/0.4753, allocations: 170.9 kB / 412.8 MB, free: 10.02 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002071/0.4755, allocations: 87.69 kB / 412.9 MB, free: 9.965 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.168e-06/0.4755, allocations: 0 / 412.9 MB, free: 9.965 MB / 330.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006137/0.4761, allocations: 270 kB / 413.2 MB, free: 9.75 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.141e-05/0.4762, allocations: 4 kB / 413.2 MB, free: 9.746 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.391e-06/0.4762, allocations: 4.094 kB / 413.2 MB, free: 9.742 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001599/0.4764, allocations: 36.59 kB / 413.2 MB, free: 9.711 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003216/0.4767, allocations: 55.66 kB / 413.3 MB, free: 9.66 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001848/0.4786, allocations: 1.447 MB / 414.7 MB, free: 8.191 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000282/0.4789, allocations: 34.88 kB / 414.8 MB, free: 8.16 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.959e-05/0.4789, allocations: 4 kB / 414.8 MB, free: 8.156 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEvent,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 27 * 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 {3 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001575/0.4791, allocations: 133 kB / 414.9 MB, free: 8.031 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.946e-05/0.4792, allocations: 39.53 kB / 414.9 MB, free: 7.992 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006824/0.4799, allocations: 277.5 kB / 415.2 MB, free: 7.789 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.624e-06/0.4799, allocations: 0 / 415.2 MB, free: 7.789 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.673e-06/0.4799, allocations: 4 kB / 415.2 MB, free: 7.785 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006864/0.4806, allocations: 0.5865 MB / 415.8 MB, free: 7.141 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001328/0.482, allocations: 0.7451 MB / 416.5 MB, free: 6.477 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.504e-06/0.482, allocations: 0 / 416.5 MB, free: 6.477 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003108/0.4823, allocations: 47.92 kB / 416.6 MB, free: 6.43 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.857e-06/0.4823, allocations: 0 / 416.6 MB, free: 6.43 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.894e-05/0.4824, allocations: 15.3 kB / 416.6 MB, free: 6.418 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.028e-06/0.4824, allocations: 96 / 416.6 MB, free: 6.418 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.087e-06/0.4824, allocations: 7.891 kB / 416.6 MB, free: 6.41 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007584/0.4832, allocations: 410.2 kB / 417 MB, free: 6.078 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000233/0.4834, allocations: 150.8 kB / 417.2 MB, free: 5.93 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.365e-05/0.4835, allocations: 7.375 kB / 417.2 MB, free: 5.926 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002595/0.4838, allocations: 15.23 kB / 417.2 MB, free: 5.914 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.515e-05/0.4839, allocations: 15.55 kB / 417.2 MB, free: 5.902 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.208e-05/0.4839, allocations: 11.95 kB / 417.2 MB, free: 5.891 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004683/0.4844, allocations: 308.6 kB / 417.5 MB, free: 5.656 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.86e-07/0.4844, allocations: 0 / 417.5 MB, free: 5.656 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005777/0.485, allocations: 110.3 kB / 417.6 MB, free: 5.559 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (openTank.m,openTank.H) * Number of discrete variables: 3 ($whenCondition1,combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00145/0.4864, allocations: 413.7 kB / 418 MB, free: 5.215 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007126/0.4872, allocations: 297.7 kB / 418.3 MB, free: 4.969 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.083e-06/0.4872, allocations: 0 / 418.3 MB, free: 4.969 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002005/0.4874, allocations: 87.78 kB / 418.4 MB, free: 4.91 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000663/0.4881, allocations: 102.7 kB / 418.5 MB, free: 4.836 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001409/0.4895, allocations: 0.5534 MB / 419.1 MB, free: 4.305 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005606/0.4901, allocations: 0.8071 MB / 419.9 MB, free: 3.473 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002468/0.4904, allocations: 46.94 kB / 419.9 MB, free: 3.43 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001206/0.4905, allocations: 38.92 kB / 419.9 MB, free: 3.395 MB / 330.7 MB Notification: Performance of SimCode: time 1.696e-06/0.4905, allocations: 0 / 419.9 MB, free: 3.395 MB / 330.7 MB Notification: Performance of Templates: time 0.01709/0.5076, allocations: 5.752 MB / 425.7 MB, free: 13.67 MB / 346.7 MB