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_3.2.3_Modelica.Fluid.Examples.HeatingSystem") Notification: Performance of loadModel(Modelica): time 2.059/2.059, allocations: 205.8 MB / 218.9 MB, free: 9.25 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 5.725e-05/5.737e-05, allocations: 4 kB / 269.3 MB, free: 6.402 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.1169, allocations: 47.57 MB / 316.9 MB, free: 6.746 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.905/8.022, allocations: 3.154 GB / 3.464 GB, free: 81.51 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000191/8.022, allocations: 76.72 kB / 3.464 GB, free: 81.48 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 12.15/20.17, allocations: 3.098 GB / 6.561 GB, free: 13.82 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.224e-06/20.17, allocations: 0 / 6.561 GB, free: 13.82 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002681/20.17, allocations: 71.86 kB / 6.561 GB, free: 13.75 MB / 458.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.01334/20.18, allocations: 3.592 MB / 6.565 GB, free: 10.09 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.054e-05/20.18, allocations: 8.031 kB / 6.565 GB, free: 10.09 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001991/20.18, allocations: 312.5 kB / 6.565 GB, free: 9.777 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006706/20.19, allocations: 2.012 MB / 6.567 GB, free: 7.711 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002755/20.19, allocations: 227.5 kB / 6.567 GB, free: 7.477 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000954/20.19, allocations: 199.9 kB / 6.567 GB, free: 7.281 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007868/20.2, allocations: 3.285 MB / 6.571 GB, free: 3.816 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.36e-05/20.2, allocations: 7.938 kB / 6.571 GB, free: 3.809 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004132/20.2, allocations: 83.97 kB / 6.571 GB, free: 3.727 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002828/20.2, allocations: 199.8 kB / 6.571 GB, free: 3.531 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007224/20.21, allocations: 2.986 MB / 6.574 GB, free: 0.543 MB / 458.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.02954/20.24, allocations: 12.41 MB / 6.586 GB, free: 3.59 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005789/20.24, allocations: 2.183 MB / 6.588 GB, free: 1.371 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003342/20.25, allocations: 1.337 MB / 6.589 GB, free: 36 kB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3832/20.63, allocations: 5.977 MB / 6.595 GB, free: 41.25 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.286e-05/20.63, allocations: 55.66 kB / 6.595 GB, free: 41.21 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001388/20.63, allocations: 194.1 kB / 6.595 GB, free: 41.21 MB / 474.7 MB Notification: Performance of pre-optimization done (n=172): time 6.648e-06/20.63, allocations: 1.812 kB / 6.595 GB, free: 41.21 MB / 474.7 MB Notification: Performance of matching and sorting (n=198): time 0.02474/20.66, allocations: 7.249 MB / 6.603 GB, free: 40.42 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.97e-05/20.66, allocations: 125.7 kB / 6.603 GB, free: 40.29 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003619/20.66, allocations: 1.656 MB / 6.604 GB, free: 40.07 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005774/20.66, allocations: 62.61 kB / 6.604 GB, free: 40.04 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009085/20.66, allocations: 1.044 MB / 6.605 GB, free: 39.7 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009642/20.66, allocations: 0.6817 MB / 6.606 GB, free: 39.26 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002891/20.66, allocations: 48.44 kB / 6.606 GB, free: 39.26 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001729/20.66, allocations: 397.9 kB / 6.606 GB, free: 38.95 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002903/20.67, allocations: 1.18 MB / 6.608 GB, free: 38.95 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00366/20.67, allocations: 1.685 MB / 6.609 GB, free: 38.39 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003484/20.67, allocations: 1.435 MB / 6.611 GB, free: 38.37 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.544e-05/20.67, allocations: 3.844 kB / 6.611 GB, free: 38.37 MB / 474.7 MB Notification: Performance of matching and sorting (n=293) (initialization): time 0.01075/20.68, allocations: 4.097 MB / 6.615 GB, free: 38.16 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001169/20.68, allocations: 5.895 MB / 6.62 GB, free: 32.02 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.752e-05/20.68, allocations: 14.78 kB / 6.62 GB, free: 32.02 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01926/20.7, allocations: 3.548 MB / 6.624 GB, free: 31.98 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001851/20.71, allocations: 321.7 kB / 6.624 GB, free: 31.98 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008935/20.72, allocations: 3.948 MB / 6.628 GB, free: 31.38 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003594/20.72, allocations: 194.4 kB / 6.628 GB, free: 31.37 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007013/20.72, allocations: 113 kB / 6.628 GB, free: 31.37 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.415e-05/20.72, allocations: 7.219 kB / 6.628 GB, free: 31.37 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009008/20.73, allocations: 3.658 MB / 6.632 GB, free: 31.31 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.795e-05/20.73, allocations: 11.56 kB / 6.632 GB, free: 31.31 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01434/20.74, allocations: 2.891 MB / 6.635 GB, free: 31.27 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002396/20.75, allocations: 357.7 kB / 6.635 GB, free: 31.27 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007077/20.75, allocations: 3.433 MB / 6.638 GB, free: 30.69 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003549/20.76, allocations: 187.2 kB / 6.639 GB, free: 30.68 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006498/20.76, allocations: 107.6 kB / 6.639 GB, free: 30.68 MB / 474.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.0007927/20.76, allocations: 235.5 kB / 6.639 GB, free: 30.56 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007232/20.76, allocations: 229 kB / 6.639 GB, free: 30.45 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01016/20.77, allocations: 3.896 MB / 6.643 GB, free: 30.21 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.219e-05/20.77, allocations: 25.23 kB / 6.643 GB, free: 30.21 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.714e-05/20.77, allocations: 4.859 kB / 6.643 GB, free: 30.21 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008399/20.78, allocations: 3.279 MB / 6.646 GB, free: 29.75 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01689/20.79, allocations: 6.33 MB / 6.652 GB, free: 29.26 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.517e-05/20.79, allocations: 0 / 6.652 GB, free: 29.26 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002353/20.8, allocations: 318.4 kB / 6.653 GB, free: 29.26 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006044/20.8, allocations: 1.204 MB / 6.654 GB, free: 29.2 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005654/20.8, allocations: 72.72 kB / 6.654 GB, free: 29.2 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01035/20.81, allocations: 10.39 MB / 6.664 GB, free: 21.27 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.923e-06/20.81, allocations: 2.438 kB / 6.664 GB, free: 21.27 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01292/20.83, allocations: 5.114 MB / 6.669 GB, free: 20.86 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002297/20.83, allocations: 0.6443 MB / 6.67 GB, free: 20.64 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009442/20.83, allocations: 51.69 kB / 6.67 GB, free: 20.64 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003019/20.83, allocations: 161.8 kB / 6.67 GB, free: 20.62 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007367/20.83, allocations: 169.8 kB / 6.67 GB, free: 20.62 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003395/20.83, allocations: 81.92 kB / 6.67 GB, free: 20.62 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002702/20.84, allocations: 1.274 MB / 6.671 GB, free: 20.46 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.173e-06/20.84, allocations: 0 / 6.671 GB, free: 20.46 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.008711/20.85, allocations: 1.94 MB / 6.673 GB, free: 20.38 MB / 474.7 MB 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.004422/20.85, allocations: 1.381 MB / 6.675 GB, free: 20.16 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01427/20.86, allocations: 4.881 MB / 6.679 GB, free: 20.05 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.006e-05/20.86, allocations: 0 / 6.679 GB, free: 20.05 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005825/20.87, allocations: 2.166 MB / 6.682 GB, free: 19.52 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006221/20.88, allocations: 0.9558 MB / 6.682 GB, free: 19.48 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01307/20.89, allocations: 4.685 MB / 6.687 GB, free: 18.14 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002327/20.89, allocations: 1.923 MB / 6.689 GB, free: 17.29 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.006648/20.9, allocations: 1.19 MB / 6.69 GB, free: 17.22 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001039/20.9, allocations: 165 kB / 6.69 GB, free: 17.2 MB / 474.7 MB Notification: Performance of SimCode: time 1.717e-06/20.9, allocations: 6.469 kB / 6.69 GB, free: 17.2 MB / 474.7 MB Notification: Performance of Templates: time 0.1622/21.06, allocations: 76.78 MB / 6.765 GB, free: 6.867 MB / 490.7 MB