Running command: translateModel(Modelica.Fluid.Examples.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks") Notification: Performance of loadModel(Modelica): time 1.986/1.986, allocations: 225.8 MB / 239.4 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.582e-05/2.586e-05, allocations: 0 / 292.7 MB, free: 8.363 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09233/0.09238, allocations: 50.42 MB / 343.1 MB, free: 5.922 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8725/0.9649, allocations: 321.9 MB / 0.6494 GB, free: 38.46 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002291/0.9652, allocations: 80.02 kB / 0.6494 GB, free: 38.43 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.506/2.471, allocations: 274.5 MB / 0.9175 GB, free: 67.6 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.985e-06/2.471, allocations: 2.734 kB / 0.9175 GB, free: 67.6 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001439/2.471, allocations: 33.47 kB / 0.9175 GB, free: 67.59 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.006523/2.477, allocations: 1.809 MB / 0.9193 GB, free: 66.69 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.965e-05/2.478, allocations: 11.16 kB / 0.9193 GB, free: 66.69 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001139/2.479, allocations: 174.6 kB / 0.9195 GB, free: 66.61 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003424/2.482, allocations: 1.118 MB / 0.9206 GB, free: 66.28 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001906/2.482, allocations: 180.8 kB / 0.9207 GB, free: 66.18 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003682/2.483, allocations: 102.6 kB / 0.9208 GB, free: 66.18 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004217/2.487, allocations: 1.725 MB / 0.9225 GB, free: 66 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.038e-05/2.487, allocations: 4.938 kB / 0.9225 GB, free: 66 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002401/2.487, allocations: 42.48 kB / 0.9226 GB, free: 66 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001844/2.488, allocations: 109.4 kB / 0.9227 GB, free: 66 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004122/2.492, allocations: 1.729 MB / 0.9243 GB, free: 65.99 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01571/2.507, allocations: 6.379 MB / 0.9306 GB, free: 63.98 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002433/2.51, allocations: 1.14 MB / 0.9317 GB, free: 63.95 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001439/2.511, allocations: 0.6981 MB / 0.9324 GB, free: 63.94 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007737/2.519, allocations: 4.273 MB / 0.9365 GB, free: 61.58 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.163e-05/2.519, allocations: 46.53 kB / 0.9366 GB, free: 61.54 MB / 442.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001286/2.521, allocations: 207.9 kB / 0.9368 GB, free: 61.47 MB / 442.7 MB Notification: Performance of pre-optimization done (n=97): time 5.944e-06/2.521, allocations: 0 / 0.9368 GB, free: 61.47 MB / 442.7 MB Notification: Performance of matching and sorting (n=112): time 0.01189/2.532, allocations: 3.781 MB / 0.9405 GB, free: 60.92 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.172e-05/2.533, allocations: 139.6 kB / 0.9406 GB, free: 60.76 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002093/2.535, allocations: 1.087 MB / 0.9417 GB, free: 60.6 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003257/2.535, allocations: 46.33 kB / 0.9417 GB, free: 60.57 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004509/2.535, allocations: 0.5999 MB / 0.9423 GB, free: 60.32 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004331/2.536, allocations: 392.3 kB / 0.9427 GB, free: 60.09 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001468/2.536, allocations: 31.91 kB / 0.9427 GB, free: 60.06 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001054/2.536, allocations: 360.5 kB / 0.943 GB, free: 59.74 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001365/2.538, allocations: 0.6223 MB / 0.9437 GB, free: 59.5 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001631/2.539, allocations: 0.9445 MB / 0.9446 GB, free: 58.89 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001734/2.541, allocations: 0.7411 MB / 0.9453 GB, free: 58.63 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.834e-06/2.541, allocations: 7.328 kB / 0.9453 GB, free: 58.63 MB / 442.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.00534/2.546, allocations: 2.062 MB / 0.9473 GB, free: 57.9 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007027/2.547, allocations: 3.512 MB / 0.9508 GB, free: 54.21 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.935e-05/2.547, allocations: 11.06 kB / 0.9508 GB, free: 54.21 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009575/2.557, allocations: 1.21 MB / 0.9519 GB, free: 54.07 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001833/2.559, allocations: 291.8 kB / 0.9522 GB, free: 54.06 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0029/2.562, allocations: 1.529 MB / 0.9537 GB, free: 53.16 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002154/2.564, allocations: 85.27 kB / 0.9538 GB, free: 53.13 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002748/2.564, allocations: 69.36 kB / 0.9539 GB, free: 53.12 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.39e-05/2.564, allocations: 3.844 kB / 0.9539 GB, free: 53.12 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004597/2.569, allocations: 1.824 MB / 0.9557 GB, free: 52.52 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.176e-05/2.569, allocations: 15.12 kB / 0.9557 GB, free: 52.52 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008371/2.577, allocations: 1.064 MB / 0.9567 GB, free: 52.39 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001903/2.579, allocations: 303.5 kB / 0.957 GB, free: 52.36 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002532/2.582, allocations: 1.357 MB / 0.9583 GB, free: 51.54 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001997/2.584, allocations: 95.89 kB / 0.9584 GB, free: 51.51 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002363/2.584, allocations: 65.55 kB / 0.9585 GB, free: 51.5 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (153): * Single equations (assignments): 152 * 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 {8 18} Notification: Performance of prepare postOptimizeDAE: time 0.0004852/2.584, allocations: 190.9 kB / 0.9587 GB, free: 51.33 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003955/2.585, allocations: 151.1 kB / 0.9588 GB, free: 51.25 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005394/2.59, allocations: 1.992 MB / 0.9607 GB, free: 50.52 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.738e-05/2.59, allocations: 13.91 kB / 0.9608 GB, free: 50.52 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.166e-06/2.59, allocations: 0 / 0.9608 GB, free: 50.52 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.666e-05/2.59, allocations: 7.406 kB / 0.9608 GB, free: 50.52 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008528/2.599, allocations: 3.417 MB / 0.9641 GB, free: 49.11 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.443e-06/2.599, allocations: 0 / 0.9641 GB, free: 49.11 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001437/2.6, allocations: 191.3 kB / 0.9643 GB, free: 49.09 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005099/2.606, allocations: 0.941 MB / 0.9652 GB, free: 48.94 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00033/2.606, allocations: 28.97 kB / 0.9652 GB, free: 48.92 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002769/2.609, allocations: 1.557 MB / 0.9668 GB, free: 47.93 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.227e-06/2.609, allocations: 0 / 0.9668 GB, free: 47.93 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005735/2.615, allocations: 2.711 MB / 0.9694 GB, free: 45.48 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001225/2.616, allocations: 402.3 kB / 0.9698 GB, free: 45.12 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000361/2.616, allocations: 34.61 kB / 0.9698 GB, free: 45.1 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001575/2.618, allocations: 78.69 kB / 0.9699 GB, free: 45.04 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003211/2.618, allocations: 99.47 kB / 0.97 GB, free: 44.98 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001935/2.618, allocations: 56.42 kB / 0.97 GB, free: 44.94 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001505/2.62, allocations: 0.8235 MB / 0.9708 GB, free: 44.18 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.43e-07/2.62, allocations: 0 / 0.9708 GB, free: 44.18 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004753/2.625, allocations: 1.245 MB / 0.9721 GB, free: 42.96 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level,tank3.medium.T,tank3.level) * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 95 * 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 {9 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.00307/2.628, allocations: 1.089 MB / 0.9731 GB, free: 42.1 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.007482/2.635, allocations: 2.578 MB / 0.9756 GB, free: 39.78 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.117e-06/2.635, allocations: 1.594 kB / 0.9756 GB, free: 39.78 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002272/2.638, allocations: 0.8127 MB / 0.9764 GB, free: 39.05 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003759/2.641, allocations: 0.5956 MB / 0.977 GB, free: 38.63 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006188/2.648, allocations: 2.433 MB / 0.9794 GB, free: 36.58 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008688/2.649, allocations: 1.326 MB / 0.9807 GB, free: 35.45 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003439/2.652, allocations: 0.6729 MB / 0.9813 GB, free: 35 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004605/2.653, allocations: 113.3 kB / 0.9815 GB, free: 34.91 MB / 442.7 MB Notification: Performance of SimCode: time 1.799e-06/2.653, allocations: 0 / 0.9815 GB, free: 34.91 MB / 442.7 MB Notification: Performance of Templates: time 0.08519/2.738, allocations: 42.75 MB / 1.023 GB, free: 10.81 MB / 458.7 MB