Running command: translateModel(Modelica.Fluid.Examples.HeatingSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heater.mediums.1..h|heater.mediums.1..p|pipe.mediums.1..h|pipe.mediums.1..p|pipe.mediums.2..h|pipe.mediums.2..p|radiator.mediums.1..h|radiator.mediums.1..p|tank.level|tank.medium.h",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem") Notification: Performance of loadModel(Modelica): time 2/2, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.057e-05/3.075e-05, allocations: 7.938 kB / 292.7 MB, free: 8.348 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09268/0.09273, allocations: 50.42 MB / 343.1 MB, free: 5.906 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.165/8.258, allocations: 3.161 GB / 3.496 GB, free: 40.2 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001931/8.258, allocations: 81.11 kB / 3.496 GB, free: 40.12 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 12.41/20.67, allocations: 3.108 GB / 6.604 GB, free: 47.8 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.398e-06/20.67, allocations: 0 / 6.604 GB, free: 47.8 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003079/20.67, allocations: 71.53 kB / 6.604 GB, free: 47.78 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 538 * Number of variables: 538 Notification: Performance of Generate backend data structure: time 0.01381/20.68, allocations: 3.594 MB / 6.608 GB, free: 46.02 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.14e-05/20.68, allocations: 11.25 kB / 6.608 GB, free: 46.02 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002113/20.69, allocations: 306 kB / 6.608 GB, free: 45.88 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00688/20.69, allocations: 2.015 MB / 6.61 GB, free: 45.41 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003016/20.69, allocations: 220.9 kB / 6.61 GB, free: 45.34 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009596/20.69, allocations: 195.1 kB / 6.61 GB, free: 45.34 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007663/20.7, allocations: 3.274 MB / 6.614 GB, free: 44.86 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.911e-05/20.7, allocations: 16.69 kB / 6.614 GB, free: 44.86 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004214/20.7, allocations: 94.98 kB / 6.614 GB, free: 44.85 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003062/20.7, allocations: 199.1 kB / 6.614 GB, free: 44.85 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0076/20.71, allocations: 2.983 MB / 6.617 GB, free: 44.84 MB / 490.7 MB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02489/20.73, allocations: 12.41 MB / 6.629 GB, free: 39.84 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00501/20.74, allocations: 2.185 MB / 6.631 GB, free: 39.7 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0029/20.74, allocations: 1.34 MB / 6.632 GB, free: 39.69 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01101/20.75, allocations: 5.978 MB / 6.638 GB, free: 36.86 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.76e-05/20.75, allocations: 65.17 kB / 6.638 GB, free: 36.81 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001134/20.76, allocations: 193.2 kB / 6.638 GB, free: 36.71 MB / 490.7 MB Notification: Performance of pre-optimization done (n=172): time 6.077e-06/20.76, allocations: 2.656 kB / 6.638 GB, free: 36.71 MB / 490.7 MB Notification: Performance of matching and sorting (n=198): time 0.0205/20.78, allocations: 7.252 MB / 6.646 GB, free: 35.82 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.197e-05/20.78, allocations: 124.4 kB / 6.646 GB, free: 35.69 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003116/20.78, allocations: 1.648 MB / 6.647 GB, free: 35.46 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004544/20.78, allocations: 63.86 kB / 6.647 GB, free: 35.43 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007547/20.78, allocations: 1.037 MB / 6.648 GB, free: 35.02 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006724/20.78, allocations: 0.6873 MB / 6.649 GB, free: 34.58 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002384/20.78, allocations: 49.66 kB / 6.649 GB, free: 34.56 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001485/20.78, allocations: 396.3 kB / 6.649 GB, free: 34.22 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002521/20.78, allocations: 1.188 MB / 6.651 GB, free: 33.8 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002789/20.79, allocations: 1.678 MB / 6.652 GB, free: 32.79 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002982/20.79, allocations: 1.442 MB / 6.654 GB, free: 32.31 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-05/20.79, allocations: 6.438 kB / 6.654 GB, free: 32.31 MB / 490.7 MB Notification: Performance of matching and sorting (n=293) (initialization): time 0.009321/20.8, allocations: 4.098 MB / 6.658 GB, free: 30.89 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00111/20.8, allocations: 5.891 MB / 6.663 GB, free: 24.65 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.061e-05/20.8, allocations: 13.44 kB / 6.663 GB, free: 24.65 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01911/20.82, allocations: 3.555 MB / 6.667 GB, free: 24.21 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00184/20.82, allocations: 319.8 kB / 6.667 GB, free: 24.2 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008486/20.83, allocations: 3.944 MB / 6.671 GB, free: 22.49 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003173/20.83, allocations: 193.6 kB / 6.671 GB, free: 22.44 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004154/20.83, allocations: 115.5 kB / 6.671 GB, free: 22.42 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.472e-05/20.83, allocations: 6.312 kB / 6.671 GB, free: 22.42 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008203/20.84, allocations: 3.66 MB / 6.675 GB, free: 21.13 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.092e-05/20.84, allocations: 14.44 kB / 6.675 GB, free: 21.13 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01425/20.86, allocations: 2.877 MB / 6.678 GB, free: 20.74 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002219/20.86, allocations: 364.7 kB / 6.678 GB, free: 20.71 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006708/20.86, allocations: 3.441 MB / 6.681 GB, free: 19.19 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003099/20.87, allocations: 191.7 kB / 6.682 GB, free: 19.14 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004174/20.87, allocations: 110 kB / 6.682 GB, free: 19.12 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * Number of states: 0 () * Number of discrete variables: 4 (tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (169): * Single equations (assignments): 168 * 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 {18 107} Notification: Performance of prepare postOptimizeDAE: time 0.000704/20.87, allocations: 226.5 kB / 6.682 GB, free: 18.93 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006012/20.87, allocations: 223.8 kB / 6.682 GB, free: 18.81 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0094/20.88, allocations: 3.885 MB / 6.686 GB, free: 17.38 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.181e-05/20.88, allocations: 22.56 kB / 6.686 GB, free: 17.38 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.354e-05/20.88, allocations: 6.625 kB / 6.686 GB, free: 17.38 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007189/20.89, allocations: 3.283 MB / 6.689 GB, free: 16 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01587/20.9, allocations: 6.334 MB / 6.695 GB, free: 13.6 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.388e-05/20.9, allocations: 3.094 kB / 6.695 GB, free: 13.6 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002164/20.9, allocations: 320.6 kB / 6.696 GB, free: 13.5 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005829/20.91, allocations: 1.197 MB / 6.697 GB, free: 12.62 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005029/20.91, allocations: 75.75 kB / 6.697 GB, free: 12.56 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009582/20.92, allocations: 10.4 MB / 6.707 GB, free: 2.031 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.475e-06/20.92, allocations: 3.656 kB / 6.707 GB, free: 2.031 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01567/20.94, allocations: 5.294 MB / 6.712 GB, free: 13.98 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002282/20.94, allocations: 0.6389 MB / 6.713 GB, free: 13.43 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006357/20.94, allocations: 58 kB / 6.713 GB, free: 13.38 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002324/20.94, allocations: 154.9 kB / 6.713 GB, free: 13.26 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004947/20.94, allocations: 176.7 kB / 6.713 GB, free: 13.16 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003412/20.94, allocations: 80.33 kB / 6.713 GB, free: 13.09 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002992/20.95, allocations: 1.277 MB / 6.715 GB, free: 11.91 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.038e-06/20.95, allocations: 0 / 6.715 GB, free: 11.91 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.009034/20.95, allocations: 1.936 MB / 6.716 GB, free: 10.02 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (tank.medium.T,tank.level,heater.mediums[1].p,heater.mediums[1].T,radiator.mediums[1].p,radiator.mediums[1].T,pipe.mediums[1].p,pipe.mediums[1].T,pipe.mediums[2].p,pipe.mediums[2].T) * Number of discrete variables: 4 (tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (183): * Single equations (assignments): 169 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 6,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 3 {1 9,2 8,6 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.004557/20.96, allocations: 1.382 MB / 6.718 GB, free: 8.926 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01513/20.97, allocations: 4.891 MB / 6.723 GB, free: 4.59 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.084e-05/20.97, allocations: 6.219 kB / 6.723 GB, free: 4.586 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.005979/20.98, allocations: 2.158 MB / 6.725 GB, free: 2.598 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006016/20.99, allocations: 0.9601 MB / 6.726 GB, free: 1.918 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3501/21.34, allocations: 4.668 MB / 6.73 GB, free: 56.97 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002646/21.34, allocations: 1.922 MB / 6.732 GB, free: 56.21 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.006456/21.35, allocations: 1.195 MB / 6.733 GB, free: 56.19 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009575/21.35, allocations: 173.5 kB / 6.733 GB, free: 56.19 MB / 0.4948 GB Notification: Performance of SimCode: time 2.145e-06/21.35, allocations: 0 / 6.733 GB, free: 56.19 MB / 0.4948 GB Notification: Performance of Templates: time 0.1645/21.51, allocations: 76.83 MB / 6.808 GB, free: 53.38 MB / 0.4948 GB