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_4.0.0_Modelica.Fluid.Examples.HeatingSystem") Notification: Performance of loadModel(Modelica): time 2.041/2.041, allocations: 225.8 MB / 238.8 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.701e-05/2.709e-05, allocations: 4 kB / 292.1 MB, free: 8.32 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09058/0.09063, allocations: 50.41 MB / 342.5 MB, free: 5.895 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.783/7.874, allocations: 3.161 GB / 3.495 GB, free: 38.93 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002829/7.874, allocations: 75.97 kB / 3.495 GB, free: 38.85 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 12.53/20.41, allocations: 3.108 GB / 6.604 GB, free: 47.51 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.021e-06/20.41, allocations: 0 / 6.604 GB, free: 47.51 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002367/20.41, allocations: 64.09 kB / 6.604 GB, free: 47.5 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.01343/20.42, allocations: 3.6 MB / 6.607 GB, free: 45.73 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.247e-05/20.42, allocations: 6.469 kB / 6.607 GB, free: 45.73 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002099/20.42, allocations: 308.4 kB / 6.608 GB, free: 45.59 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006672/20.43, allocations: 2.016 MB / 6.609 GB, free: 45.12 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002458/20.43, allocations: 221.1 kB / 6.61 GB, free: 45.05 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000629/20.43, allocations: 199.7 kB / 6.61 GB, free: 45.05 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007392/20.44, allocations: 3.272 MB / 6.613 GB, free: 44.58 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.386e-05/20.44, allocations: 15.48 kB / 6.613 GB, free: 44.57 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004177/20.44, allocations: 86.12 kB / 6.613 GB, free: 44.57 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003037/20.44, allocations: 203.9 kB / 6.613 GB, free: 44.57 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007295/20.45, allocations: 2.982 MB / 6.616 GB, free: 44.56 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.02697/20.47, allocations: 12.42 MB / 6.628 GB, free: 39.55 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00531/20.48, allocations: 2.183 MB / 6.631 GB, free: 39.42 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003015/20.48, allocations: 1.341 MB / 6.632 GB, free: 39.4 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01169/20.49, allocations: 5.995 MB / 6.638 GB, free: 36.57 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.559e-05/20.49, allocations: 54.2 kB / 6.638 GB, free: 36.53 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001247/20.5, allocations: 196.1 kB / 6.638 GB, free: 36.43 MB / 490.7 MB Notification: Performance of pre-optimization done (n=172): time 5.45e-06/20.5, allocations: 0 / 6.638 GB, free: 36.43 MB / 490.7 MB Notification: Performance of matching and sorting (n=198): time 0.02134/20.52, allocations: 7.254 MB / 6.645 GB, free: 35.52 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.568e-05/20.52, allocations: 127.1 kB / 6.645 GB, free: 35.4 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003125/20.52, allocations: 1.649 MB / 6.647 GB, free: 35.16 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004902/20.52, allocations: 63.33 kB / 6.647 GB, free: 35.13 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007759/20.52, allocations: 1.04 MB / 6.648 GB, free: 34.72 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007113/20.52, allocations: 0.6821 MB / 6.649 GB, free: 34.29 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002427/20.52, allocations: 43.34 kB / 6.649 GB, free: 34.29 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000151/20.52, allocations: 402.7 kB / 6.649 GB, free: 33.98 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002529/20.52, allocations: 1.181 MB / 6.65 GB, free: 33.62 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002897/20.53, allocations: 1.684 MB / 6.652 GB, free: 32.61 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003341/20.53, allocations: 1.44 MB / 6.653 GB, free: 32.13 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-05/20.53, allocations: 3.719 kB / 6.653 GB, free: 32.13 MB / 490.7 MB Notification: Performance of matching and sorting (n=293) (initialization): time 0.009871/20.54, allocations: 4.102 MB / 6.657 GB, free: 30.71 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00115/20.54, allocations: 5.888 MB / 6.663 GB, free: 24.46 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.115e-05/20.54, allocations: 14.66 kB / 6.663 GB, free: 24.46 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02021/20.56, allocations: 3.55 MB / 6.666 GB, free: 24.03 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001889/20.56, allocations: 322.3 kB / 6.667 GB, free: 24.02 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008569/20.57, allocations: 3.947 MB / 6.671 GB, free: 22.31 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003545/20.58, allocations: 188.6 kB / 6.671 GB, free: 22.26 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004606/20.58, allocations: 109.9 kB / 6.671 GB, free: 22.24 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.575e-05/20.58, allocations: 10.59 kB / 6.671 GB, free: 22.24 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008408/20.59, allocations: 3.653 MB / 6.674 GB, free: 20.96 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.165e-05/20.59, allocations: 22.72 kB / 6.674 GB, free: 20.96 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01426/20.6, allocations: 2.885 MB / 6.677 GB, free: 20.57 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00239/20.6, allocations: 361.2 kB / 6.678 GB, free: 20.54 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007009/20.61, allocations: 3.435 MB / 6.681 GB, free: 19.03 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003278/20.61, allocations: 202.2 kB / 6.681 GB, free: 18.97 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004822/20.61, allocations: 103.2 kB / 6.681 GB, free: 18.95 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.0007232/20.61, allocations: 228.2 kB / 6.681 GB, free: 18.75 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006651/20.61, allocations: 224.7 kB / 6.682 GB, free: 18.64 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009815/20.62, allocations: 3.888 MB / 6.685 GB, free: 17.2 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.596e-05/20.62, allocations: 20.5 kB / 6.685 GB, free: 17.2 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.621e-05/20.62, allocations: 5.406 kB / 6.685 GB, free: 17.2 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007446/20.63, allocations: 3.285 MB / 6.689 GB, free: 15.82 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0152/20.65, allocations: 6.32 MB / 6.695 GB, free: 13.43 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.428e-05/20.65, allocations: 3.875 kB / 6.695 GB, free: 13.43 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002262/20.65, allocations: 322 kB / 6.695 GB, free: 13.4 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006445/20.66, allocations: 1.194 MB / 6.696 GB, free: 12.89 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005209/20.66, allocations: 76.8 kB / 6.696 GB, free: 12.83 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00979/20.67, allocations: 10.39 MB / 6.707 GB, free: 2.305 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/20.67, allocations: 0 / 6.707 GB, free: 2.305 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01342/20.68, allocations: 5.185 MB / 6.712 GB, free: 13.98 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002303/20.68, allocations: 0.6429 MB / 6.712 GB, free: 13.42 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006687/20.68, allocations: 63.12 kB / 6.712 GB, free: 13.37 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002408/20.69, allocations: 148.1 kB / 6.712 GB, free: 13.26 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005069/20.69, allocations: 169.5 kB / 6.713 GB, free: 13.16 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003226/20.69, allocations: 84.98 kB / 6.713 GB, free: 13.09 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002816/20.69, allocations: 1.281 MB / 6.714 GB, free: 11.91 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.019e-06/20.69, allocations: 0 / 6.714 GB, free: 11.91 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.00806/20.7, allocations: 1.932 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.004245/20.7, allocations: 1.382 MB / 6.717 GB, free: 8.918 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01464/20.72, allocations: 4.89 MB / 6.722 GB, free: 4.582 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.089e-05/20.72, allocations: 4 kB / 6.722 GB, free: 4.578 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.005801/20.72, allocations: 2.158 MB / 6.724 GB, free: 2.59 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005942/20.73, allocations: 0.9584 MB / 6.725 GB, free: 1.91 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.331/21.06, allocations: 4.672 MB / 6.73 GB, free: 57.04 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00261/21.06, allocations: 1.928 MB / 6.731 GB, free: 56.29 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.005957/21.07, allocations: 1.194 MB / 6.733 GB, free: 56.27 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008929/21.07, allocations: 167.4 kB / 6.733 GB, free: 56.27 MB / 0.4948 GB Notification: Performance of SimCode: time 1.819e-06/21.07, allocations: 2.219 kB / 6.733 GB, free: 56.27 MB / 0.4948 GB Notification: Performance of Templates: time 0.1562/21.22, allocations: 76.84 MB / 6.808 GB, free: 53.44 MB / 0.4948 GB