Running command: translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|openTank.H|openTank.m",fileNamePrefix="Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank") Notification: Performance of loadModel(Modelica): time 2.129/2.129, allocations: 225.8 MB / 239.4 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.089e-05/3.108e-05, allocations: 4 kB / 292.7 MB, free: 8.336 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09283/0.09289, allocations: 50.42 MB / 343.1 MB, free: 5.914 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4501/0.543, allocations: 83.24 MB / 426.3 MB, free: 11 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002374/0.5433, allocations: 80.14 kB / 426.4 MB, free: 10.96 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03206/0.5754, allocations: 8.281 MB / 434.7 MB, free: 4.035 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.108e-06/0.5754, allocations: 0 / 434.7 MB, free: 4.035 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.208e-05/0.5754, allocations: 8 kB / 434.7 MB, free: 4.027 MB / 346.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.0009507/0.5764, allocations: 0.5758 MB / 435.3 MB, free: 3.43 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.922e-05/0.5764, allocations: 8.031 kB / 435.3 MB, free: 3.422 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000117/0.5766, allocations: 55.44 kB / 435.3 MB, free: 3.367 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006296/0.5772, allocations: 331.8 kB / 435.6 MB, free: 3.035 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.454e-05/0.5773, allocations: 15.25 kB / 435.7 MB, free: 3.027 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.501e-05/0.5773, allocations: 27.59 kB / 435.7 MB, free: 3.008 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005505/0.5779, allocations: 279.4 kB / 436 MB, free: 2.762 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.817e-05/0.5779, allocations: 3.953 kB / 436 MB, free: 2.758 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.684e-05/0.578, allocations: 11.75 kB / 436 MB, free: 2.754 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.569e-06/0.578, allocations: 4 kB / 436 MB, free: 2.75 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003779/0.5784, allocations: 153.4 kB / 436.1 MB, free: 2.648 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001722/0.5801, allocations: 0.7835 MB / 436.9 MB, free: 1.973 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005885/0.5807, allocations: 205.7 kB / 437.1 MB, free: 1.816 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001963/0.581, allocations: 80.67 kB / 437.2 MB, free: 1.762 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.313e-05/0.581, allocations: 6.875 kB / 437.2 MB, free: 1.758 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003094/0.5813, allocations: 137.8 kB / 437.3 MB, free: 1.645 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 5.87e-06/0.5814, allocations: 7.938 kB / 437.3 MB, free: 1.637 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.0006353/0.582, allocations: 249 kB / 437.6 MB, free: 1.438 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001927/0.5822, allocations: 312.4 kB / 437.9 MB, free: 1.059 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006111/0.5828, allocations: 379 kB / 438.3 MB, free: 0.7578 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.459e-05/0.5829, allocations: 33.58 kB / 438.3 MB, free: 0.7227 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001756/0.5831, allocations: 196.9 kB / 438.5 MB, free: 0.5898 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001063/0.5832, allocations: 93.55 kB / 438.6 MB, free: 0.5078 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.48e-05/0.5832, allocations: 3.125 kB / 438.6 MB, free: 0.5078 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002/0.5834, allocations: 355.4 kB / 438.9 MB, free: 172 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001648/0.5836, allocations: 57.81 kB / 439 MB, free: 136 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002977/0.5839, allocations: 173.7 kB / 439.2 MB, free: 15.95 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002134/0.5842, allocations: 87.45 kB / 439.2 MB, free: 15.9 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.81e-06/0.5842, allocations: 4 kB / 439.2 MB, free: 15.89 MB / 362.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006209/0.5848, allocations: 274.4 kB / 439.5 MB, free: 15.68 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.103e-05/0.5848, allocations: 8 kB / 439.5 MB, free: 15.67 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.15e-06/0.5849, allocations: 8.078 kB / 439.5 MB, free: 15.66 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000136/0.585, allocations: 31.28 kB / 439.6 MB, free: 15.64 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003104/0.5853, allocations: 55.41 kB / 439.6 MB, free: 15.59 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001788/0.5871, allocations: 1.448 MB / 441.1 MB, free: 14.12 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002491/0.5874, allocations: 23.22 kB / 441.1 MB, free: 14.1 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.104e-05/0.5875, allocations: 8.094 kB / 441.1 MB, free: 14.09 MB / 362.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.0001461/0.5876, allocations: 130.5 kB / 441.2 MB, free: 13.97 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.314e-05/0.5877, allocations: 47.48 kB / 441.3 MB, free: 13.92 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006657/0.5884, allocations: 279.1 kB / 441.5 MB, free: 13.71 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.572e-06/0.5884, allocations: 0 / 441.5 MB, free: 13.71 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.387e-06/0.5884, allocations: 0 / 441.5 MB, free: 13.71 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006843/0.5891, allocations: 0.5852 MB / 442.1 MB, free: 13.07 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001302/0.5905, allocations: 0.7388 MB / 442.9 MB, free: 12.41 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.668e-06/0.5905, allocations: 4 kB / 442.9 MB, free: 12.41 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00031/0.5908, allocations: 50.47 kB / 442.9 MB, free: 12.36 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.076e-06/0.5908, allocations: 0 / 442.9 MB, free: 12.36 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.369e-05/0.5909, allocations: 6.75 kB / 442.9 MB, free: 12.36 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.637e-06/0.5909, allocations: 4 kB / 442.9 MB, free: 12.35 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.706e-06/0.5909, allocations: 0 / 442.9 MB, free: 12.35 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000773/0.5917, allocations: 418.7 kB / 443.3 MB, free: 12.01 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002315/0.5919, allocations: 150.2 kB / 443.5 MB, free: 11.86 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.506e-05/0.592, allocations: 11.42 kB / 443.5 MB, free: 11.86 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002498/0.5923, allocations: 7.75 kB / 443.5 MB, free: 11.85 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.381e-05/0.5924, allocations: 19.55 kB / 443.5 MB, free: 11.84 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.081e-05/0.5924, allocations: 11.98 kB / 443.5 MB, free: 11.82 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004647/0.5929, allocations: 300.9 kB / 443.8 MB, free: 11.6 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.02e-07/0.5929, allocations: 7.938 kB / 443.8 MB, free: 11.59 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005534/0.5935, allocations: 107 kB / 443.9 MB, free: 11.5 MB / 362.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.001445/0.5949, allocations: 421.6 kB / 444.3 MB, free: 11.2 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006812/0.5956, allocations: 298.9 kB / 444.6 MB, free: 10.95 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.783e-06/0.5956, allocations: 192 / 444.6 MB, free: 10.95 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002042/0.5959, allocations: 98.05 kB / 444.7 MB, free: 10.88 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006059/0.5965, allocations: 92.52 kB / 444.8 MB, free: 10.82 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001307/0.5978, allocations: 0.5542 MB / 445.4 MB, free: 10.29 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005444/0.5984, allocations: 0.8039 MB / 446.2 MB, free: 9.461 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002177/0.5986, allocations: 54.92 kB / 446.2 MB, free: 9.41 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001114/0.5987, allocations: 31.44 kB / 446.3 MB, free: 9.379 MB / 362.7 MB Notification: Performance of SimCode: time 1.516e-06/0.5988, allocations: 0 / 446.3 MB, free: 9.379 MB / 362.7 MB Notification: Performance of Templates: time 0.01595/0.6147, allocations: 5.751 MB / 452 MB, free: 3.695 MB / 362.7 MB