Running command: translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|openTank1.H|openTank1.m|openTank2.H|openTank2.m",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") Notification: Performance of loadModel(Modelica): time 2.042/2.042, allocations: 225.8 MB / 238.8 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.779e-05/2.797e-05, allocations: 0 / 292.1 MB, free: 8.336 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09117/0.09122, allocations: 50.41 MB / 342.6 MB, free: 5.902 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3613/0.4526, allocations: 79.46 MB / 422 MB, free: 14.75 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002204/0.4529, allocations: 74.95 kB / 422.1 MB, free: 14.71 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02357/0.4765, allocations: 6.015 MB / 428.1 MB, free: 9.676 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.028e-06/0.4765, allocations: 0 / 428.1 MB, free: 9.676 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.233e-05/0.4766, allocations: 4 kB / 428.1 MB, free: 9.672 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.001018/0.4776, allocations: 0.5664 MB / 428.7 MB, free: 9.074 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.194e-05/0.4776, allocations: 8.031 kB / 428.7 MB, free: 9.066 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001167/0.4778, allocations: 43.53 kB / 428.7 MB, free: 9.023 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004811/0.4783, allocations: 290.9 kB / 429 MB, free: 8.727 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001233/0.4784, allocations: 53.12 kB / 429.1 MB, free: 8.676 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.756e-05/0.4785, allocations: 22.31 kB / 429.1 MB, free: 8.66 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006021/0.4791, allocations: 299.8 kB / 429.4 MB, free: 8.406 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.65e-05/0.4791, allocations: 3.938 kB / 429.4 MB, free: 8.402 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.222e-05/0.4792, allocations: 14.7 kB / 429.4 MB, free: 8.395 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.174e-05/0.4792, allocations: 7.984 kB / 429.4 MB, free: 8.387 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004424/0.4797, allocations: 174.6 kB / 429.6 MB, free: 8.273 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001848/0.4815, allocations: 0.8086 MB / 430.4 MB, free: 7.602 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007194/0.4823, allocations: 255.1 kB / 430.6 MB, free: 7.422 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002365/0.4825, allocations: 110.6 kB / 430.7 MB, free: 7.355 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.929e-05/0.4826, allocations: 11.98 kB / 430.7 MB, free: 7.344 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.833e-05/0.4826, allocations: 42.67 kB / 430.8 MB, free: 7.297 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 3.204e-06/0.4826, allocations: 3.938 kB / 430.8 MB, free: 7.293 MB / 346.7 MB Notification: Performance of matching and sorting (n=29): time 0.0007291/0.4834, allocations: 267.3 kB / 431 MB, free: 7.09 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001934/0.4836, allocations: 320.4 kB / 431.4 MB, free: 6.703 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003703/0.484, allocations: 240.6 kB / 431.6 MB, free: 6.512 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.976e-05/0.484, allocations: 36.64 kB / 431.6 MB, free: 6.477 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001458/0.4842, allocations: 171.4 kB / 431.8 MB, free: 6.344 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001132/0.4843, allocations: 102.3 kB / 431.9 MB, free: 6.258 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.099e-05/0.4844, allocations: 3.625 kB / 431.9 MB, free: 6.258 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001888/0.4846, allocations: 339.1 kB / 432.2 MB, free: 5.93 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002264/0.4848, allocations: 85.48 kB / 432.3 MB, free: 5.879 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003432/0.4852, allocations: 189.4 kB / 432.5 MB, free: 5.691 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002798/0.4855, allocations: 127.5 kB / 432.6 MB, free: 5.594 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.882e-06/0.4855, allocations: 3.938 kB / 432.6 MB, free: 5.59 MB / 346.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0007812/0.4863, allocations: 343.4 kB / 433 MB, free: 5.32 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.12e-05/0.4863, allocations: 41.64 kB / 433 MB, free: 5.273 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.483e-06/0.4864, allocations: 0 / 433 MB, free: 5.273 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001772/0.4865, allocations: 40.34 kB / 433 MB, free: 5.238 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00122/0.4878, allocations: 202.7 kB / 433.2 MB, free: 5.043 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004091/0.4919, allocations: 2.939 MB / 436.2 MB, free: 2.023 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004211/0.4923, allocations: 39.22 kB / 436.2 MB, free: 1.988 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.601e-05/0.4924, allocations: 11.56 kB / 436.2 MB, free: 1.98 MB / 346.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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 2} Notification: Performance of prepare postOptimizeDAE: time 0.0001663/0.4926, allocations: 127.6 kB / 436.4 MB, free: 1.859 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001168/0.4927, allocations: 39.56 kB / 436.4 MB, free: 1.82 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001088/0.4928, allocations: 39.95 kB / 436.4 MB, free: 1.797 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.056e-06/0.4928, allocations: 4 kB / 436.4 MB, free: 1.793 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.934e-06/0.4929, allocations: 4.188 kB / 436.4 MB, free: 1.789 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008594/0.4937, allocations: 0.6279 MB / 437.1 MB, free: 1.113 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005937/0.4944, allocations: 392.7 kB / 437.5 MB, free: 0.7578 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.542e-06/0.4944, allocations: 0 / 437.5 MB, free: 0.7578 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001605/0.496, allocations: 255.6 kB / 437.7 MB, free: 0.5117 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001085/0.4961, allocations: 24.42 kB / 437.7 MB, free: 500 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.146e-05/0.4962, allocations: 11.31 kB / 437.7 MB, free: 492 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003515/0.4997, allocations: 2.769 MB / 440.5 MB, free: 13.56 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.864e-06/0.4997, allocations: 3.938 kB / 440.5 MB, free: 13.56 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009912/0.5007, allocations: 485.6 kB / 441 MB, free: 13.18 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00022/0.501, allocations: 135.2 kB / 441.1 MB, free: 13.05 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.371e-05/0.5011, allocations: 9.25 kB / 441.1 MB, free: 13.04 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003058/0.5014, allocations: 25.92 kB / 441.2 MB, free: 13.02 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.002e-05/0.5015, allocations: 19.22 kB / 441.2 MB, free: 13.01 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.155e-05/0.5015, allocations: 8 kB / 441.2 MB, free: 13 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003034/0.5018, allocations: 201.3 kB / 441.4 MB, free: 12.84 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.88e-07/0.5019, allocations: 0 / 441.4 MB, free: 12.84 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006338/0.5025, allocations: 110.5 kB / 441.5 MB, free: 12.74 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (openTank1.m,openTank1.H,openTank2.m,openTank2.H) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002385/0.5028, allocations: 127 kB / 441.6 MB, free: 12.61 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001759/0.5045, allocations: 0.5179 MB / 442.1 MB, free: 12.14 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.107e-06/0.5046, allocations: 0 / 442.1 MB, free: 12.14 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001617/0.5062, allocations: 405.7 kB / 442.5 MB, free: 11.78 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000642/0.5069, allocations: 82.91 kB / 442.6 MB, free: 11.72 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001939/0.5088, allocations: 0.6619 MB / 443.3 MB, free: 11.09 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005191/0.5094, allocations: 0.7879 MB / 444.1 MB, free: 10.27 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002245/0.5096, allocations: 30.97 kB / 444.1 MB, free: 10.23 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.688e-05/0.5097, allocations: 31.42 kB / 444.1 MB, free: 10.2 MB / 362.7 MB Notification: Performance of SimCode: time 1.836e-06/0.5097, allocations: 0 / 444.1 MB, free: 10.2 MB / 362.7 MB Notification: Performance of Templates: time 0.01567/0.5254, allocations: 5.456 MB / 449.6 MB, free: 4.801 MB / 362.7 MB