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_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") Notification: Performance of loadModel(Modelica): time 2.057/2.057, allocations: 225.8 MB / 239.4 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.754e-05/3.756e-05, allocations: 0 / 292.7 MB, free: 8.324 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1035, allocations: 50.42 MB / 343.1 MB, free: 5.895 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3832/0.4868, allocations: 79.46 MB / 422.5 MB, free: 14.77 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002227/0.487, allocations: 65.84 kB / 422.6 MB, free: 14.74 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02433/0.5114, allocations: 6.021 MB / 428.6 MB, free: 9.691 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.437e-06/0.5114, allocations: 0 / 428.6 MB, free: 9.691 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.61e-05/0.5115, allocations: 8 kB / 428.6 MB, free: 9.684 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.001026/0.5125, allocations: 0.5684 MB / 429.2 MB, free: 9.086 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.693e-05/0.5126, allocations: 8.031 kB / 429.2 MB, free: 9.078 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001165/0.5127, allocations: 43.53 kB / 429.3 MB, free: 9.035 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004999/0.5132, allocations: 289.8 kB / 429.5 MB, free: 8.738 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001296/0.5134, allocations: 52.62 kB / 429.6 MB, free: 8.688 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.859e-05/0.5134, allocations: 21.56 kB / 429.6 MB, free: 8.676 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006024/0.5141, allocations: 299.1 kB / 429.9 MB, free: 8.418 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.65e-05/0.5141, allocations: 0 / 429.9 MB, free: 8.418 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.47e-05/0.5142, allocations: 16.89 kB / 429.9 MB, free: 8.41 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.042e-05/0.5142, allocations: 8 kB / 429.9 MB, free: 8.402 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004441/0.5146, allocations: 173.4 kB / 430.1 MB, free: 8.289 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001917/0.5166, allocations: 0.8051 MB / 430.9 MB, free: 7.621 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007869/0.5174, allocations: 261.8 kB / 431.2 MB, free: 7.438 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002579/0.5177, allocations: 108.7 kB / 431.3 MB, free: 7.371 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.62e-05/0.5177, allocations: 7.984 kB / 431.3 MB, free: 7.363 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.316e-05/0.5178, allocations: 42.23 kB / 431.3 MB, free: 7.316 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 5.559e-06/0.5178, allocations: 7.922 kB / 431.3 MB, free: 7.309 MB / 346.7 MB Notification: Performance of matching and sorting (n=29): time 0.0007779/0.5186, allocations: 265.7 kB / 431.6 MB, free: 7.105 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002011/0.5188, allocations: 320.2 kB / 431.9 MB, free: 6.723 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003955/0.5192, allocations: 247.8 kB / 432.1 MB, free: 6.52 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.235e-05/0.5193, allocations: 29.2 kB / 432.2 MB, free: 6.488 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001458/0.5194, allocations: 166 kB / 432.3 MB, free: 6.363 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001226/0.5196, allocations: 107.5 kB / 432.4 MB, free: 6.27 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.205e-05/0.5196, allocations: 9.938 kB / 432.4 MB, free: 6.266 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001908/0.5198, allocations: 339.2 kB / 432.8 MB, free: 5.938 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002191/0.52, allocations: 79.06 kB / 432.8 MB, free: 5.891 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003414/0.5204, allocations: 195.6 kB / 433 MB, free: 5.699 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002925/0.5207, allocations: 131.1 kB / 433.2 MB, free: 5.598 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.793e-06/0.5207, allocations: 3.938 kB / 433.2 MB, free: 5.594 MB / 346.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0008351/0.5216, allocations: 337.6 kB / 433.5 MB, free: 5.328 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.219e-05/0.5216, allocations: 33.66 kB / 433.5 MB, free: 5.289 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.932e-06/0.5217, allocations: 4 kB / 433.5 MB, free: 5.285 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001861/0.5219, allocations: 44.56 kB / 433.6 MB, free: 5.25 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001262/0.5231, allocations: 203.8 kB / 433.8 MB, free: 5.051 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004247/0.5274, allocations: 2.935 MB / 436.7 MB, free: 2.035 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004062/0.5279, allocations: 42.22 kB / 436.8 MB, free: 2 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.798e-05/0.5279, allocations: 8 kB / 436.8 MB, free: 1.992 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.000175/0.5281, allocations: 126.5 kB / 436.9 MB, free: 1.871 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001073/0.5282, allocations: 43.02 kB / 436.9 MB, free: 1.832 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.87e-05/0.5283, allocations: 38.7 kB / 437 MB, free: 1.809 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.5283, allocations: 0 / 437 MB, free: 1.809 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.383e-06/0.5284, allocations: 4 kB / 437 MB, free: 1.805 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008486/0.5292, allocations: 0.6299 MB / 437.6 MB, free: 1.129 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006177/0.5299, allocations: 388.9 kB / 438 MB, free: 0.7773 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.491e-06/0.5299, allocations: 4.078 kB / 438 MB, free: 0.7734 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001658/0.5315, allocations: 255.7 kB / 438.2 MB, free: 0.5234 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001174/0.5317, allocations: 27.16 kB / 438.3 MB, free: 0.5 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.641e-05/0.5318, allocations: 11.16 kB / 438.3 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003605/0.5354, allocations: 2.766 MB / 441 MB, free: 13.58 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.804e-06/0.5354, allocations: 4.031 kB / 441 MB, free: 13.57 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009978/0.5364, allocations: 492.1 kB / 441.5 MB, free: 13.19 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002193/0.5367, allocations: 131 kB / 441.6 MB, free: 13.06 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.642e-05/0.5368, allocations: 11.73 kB / 441.7 MB, free: 13.05 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003175/0.5371, allocations: 15.06 kB / 441.7 MB, free: 13.04 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.288e-05/0.5372, allocations: 26.56 kB / 441.7 MB, free: 13.02 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.287e-05/0.5372, allocations: 6.25 kB / 441.7 MB, free: 13.02 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002859/0.5375, allocations: 195.9 kB / 441.9 MB, free: 12.86 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.56e-07/0.5376, allocations: 4 kB / 441.9 MB, free: 12.86 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006145/0.5382, allocations: 114.3 kB / 442 MB, free: 12.75 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.0002259/0.5384, allocations: 123 kB / 442.1 MB, free: 12.63 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00166/0.5401, allocations: 0.5192 MB / 442.7 MB, free: 12.16 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.154e-06/0.5401, allocations: 0 / 442.7 MB, free: 12.16 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001611/0.5417, allocations: 411.4 kB / 443.1 MB, free: 11.79 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005935/0.5424, allocations: 74.59 kB / 443.1 MB, free: 11.74 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001913/0.5443, allocations: 0.6564 MB / 443.8 MB, free: 11.11 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005028/0.5448, allocations: 0.7801 MB / 444.6 MB, free: 10.3 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.000224/0.5451, allocations: 38.95 kB / 444.6 MB, free: 10.26 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.222e-05/0.5452, allocations: 23.44 kB / 444.6 MB, free: 10.24 MB / 362.7 MB Notification: Performance of SimCode: time 1.909e-06/0.5452, allocations: 7.938 kB / 444.6 MB, free: 10.23 MB / 362.7 MB Notification: Performance of Templates: time 0.01523/0.5604, allocations: 5.463 MB / 450.1 MB, free: 4.816 MB / 362.7 MB