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.2_cpp_Modelica.Fluid.Examples.HeatingSystem") Notification: Performance of loadModel(Modelica): time 1.827/1.827, allocations: 194.9 MB / 208.4 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.918e-05/2.939e-05, allocations: 0 / 255.3 MB, free: 3.195 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08094/0.081, allocations: 44.51 MB / 299.9 MB, free: 6.629 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.319/6.4, allocations: 2.661 GB / 2.954 GB, free: 101.6 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002372/6.4, allocations: 77.91 kB / 2.954 GB, free: 101.6 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.758/11.16, allocations: 1.022 GB / 3.976 GB, free: 26.92 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.814e-06/11.16, allocations: 0 / 3.976 GB, free: 26.92 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002772/11.16, allocations: 74.94 kB / 3.976 GB, free: 26.91 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: 670 * Number of variables: 670 Notification: Performance of Generate backend data structure: time 0.01685/11.18, allocations: 4.39 MB / 3.98 GB, free: 24.84 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.371e-05/11.18, allocations: 9.312 kB / 3.98 GB, free: 24.84 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01016/11.19, allocations: 1.025 MB / 3.981 GB, free: 24.68 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007408/11.19, allocations: 2.215 MB / 3.983 GB, free: 24.19 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004016/11.19, allocations: 278.8 kB / 3.983 GB, free: 24.12 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001011/11.19, allocations: 253.3 kB / 3.984 GB, free: 24.11 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01234/11.21, allocations: 4.439 MB / 3.988 GB, free: 23.53 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.303e-05/11.21, allocations: 11.75 kB / 3.988 GB, free: 23.52 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004844/11.21, allocations: 111.6 kB / 3.988 GB, free: 23.52 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003065/11.21, allocations: 222.2 kB / 3.988 GB, free: 23.52 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01143/11.22, allocations: 3.993 MB / 3.992 GB, free: 23.5 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.03124/11.25, allocations: 19 MB / 4.011 GB, free: 12.68 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008373/11.26, allocations: 2.763 MB / 4.013 GB, free: 12.62 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003092/11.26, allocations: 1.48 MB / 4.015 GB, free: 12.61 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03978/11.3, allocations: 17.06 MB / 4.032 GB, free: 18.09 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.848e-05/11.3, allocations: 57.5 kB / 4.032 GB, free: 18.05 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001984/11.3, allocations: 238.3 kB / 4.032 GB, free: 17.95 MB / 474.7 MB Notification: Performance of pre-optimization done (n=194): time 5.913e-06/11.3, allocations: 0 / 4.032 GB, free: 17.95 MB / 474.7 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: pump.medium.p 2: pump.medium.h Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=215): time 0.04218/11.35, allocations: 11.18 MB / 4.043 GB, free: 16.96 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001039/11.35, allocations: 125.4 kB / 4.043 GB, free: 16.84 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003284/11.35, allocations: 1.665 MB / 4.045 GB, free: 16.59 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005101/11.35, allocations: 62.83 kB / 4.045 GB, free: 16.56 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007368/11.35, allocations: 1.07 MB / 4.046 GB, free: 16.02 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008848/11.35, allocations: 0.7242 MB / 4.046 GB, free: 15.55 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002517/11.35, allocations: 46.81 kB / 4.046 GB, free: 15.55 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002756/11.35, allocations: 412.6 kB / 4.047 GB, free: 15.24 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002787/11.36, allocations: 1.32 MB / 4.048 GB, free: 15.23 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003324/11.36, allocations: 1.803 MB / 4.05 GB, free: 14.7 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003391/11.36, allocations: 1.533 MB / 4.051 GB, free: 14.66 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.612e-05/11.36, allocations: 3.562 kB / 4.051 GB, free: 14.66 MB / 474.7 MB Notification: Performance of matching and sorting (n=306) (initialization): time 0.01017/11.37, allocations: 4.438 MB / 4.056 GB, free: 14.51 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002651/11.37, allocations: 5.322 MB / 4.061 GB, free: 8.926 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.964e-05/11.37, allocations: 15.97 kB / 4.061 GB, free: 8.922 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01977/11.39, allocations: 3.768 MB / 4.065 GB, free: 8.82 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00167/11.4, allocations: 315.1 kB / 4.065 GB, free: 8.82 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00931/11.41, allocations: 4.573 MB / 4.069 GB, free: 8.207 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003971/11.41, allocations: 314.5 kB / 4.07 GB, free: 8.172 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000509/11.41, allocations: 115.7 kB / 4.07 GB, free: 8.172 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.524e-05/11.41, allocations: 5.812 kB / 4.07 GB, free: 8.172 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008514/11.42, allocations: 3.891 MB / 4.074 GB, free: 8.102 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.165e-05/11.42, allocations: 19.92 kB / 4.074 GB, free: 8.098 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01185/11.43, allocations: 2.454 MB / 4.076 GB, free: 8.031 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002181/11.43, allocations: 386.1 kB / 4.076 GB, free: 8.027 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006559/11.44, allocations: 3.548 MB / 4.08 GB, free: 7.438 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003143/11.44, allocations: 303.6 kB / 4.08 GB, free: 7.402 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004568/11.44, allocations: 116.2 kB / 4.08 GB, free: 7.402 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 19 (radiator.state_b.phase,radiator.state_a.phase,heater.state_b.phase,heater.state_a.phase,tank.heatTransfer.states[1].phase,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],pump.heatTransfer.states[1].phase,heater.statesFM[2].phase,radiator.statesFM[2].phase,pipe.statesFM[1].phase,pipe.statesFM[2].phase,pipe.state_b.phase,pipe.state_a.phase,valve.state_b.phase,valve.state_a.phase,pump.monitoring.state_in.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (166): * Single equations (assignments): 165 * 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 {19 122} Notification: Performance of prepare postOptimizeDAE: time 0.0008108/11.44, allocations: 243.1 kB / 4.08 GB, free: 7.277 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007112/11.44, allocations: 240.3 kB / 4.081 GB, free: 7.156 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01489/11.46, allocations: 9.372 MB / 4.09 GB, free: 3.938 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001236/11.46, allocations: 108.7 kB / 4.09 GB, free: 3.871 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.333e-05/11.46, allocations: 3.797 kB / 4.09 GB, free: 3.871 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02479/11.48, allocations: 8.789 MB / 4.098 GB, free: 13.69 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02915/11.51, allocations: 13.62 MB / 4.112 GB, free: 1.953 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.142e-05/11.51, allocations: 0 / 4.112 GB, free: 1.953 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002669/11.52, allocations: 413.4 kB / 4.112 GB, free: 1.637 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.3337/11.85, allocations: 2.709 MB / 4.115 GB, free: 55.59 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005745/11.85, allocations: 72.91 kB / 4.115 GB, free: 55.59 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007075/11.86, allocations: 6.918 MB / 4.122 GB, free: 51.45 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.987e-06/11.86, allocations: 7.797 kB / 4.122 GB, free: 51.45 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01935/11.88, allocations: 9.957 MB / 4.131 GB, free: 50.84 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002553/11.88, allocations: 0.8285 MB / 4.132 GB, free: 50.73 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008847/11.88, allocations: 61.7 kB / 4.132 GB, free: 50.73 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003183/11.88, allocations: 260.7 kB / 4.132 GB, free: 50.72 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006183/11.88, allocations: 197.3 kB / 4.133 GB, free: 50.71 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003243/11.89, allocations: 84.81 kB / 4.133 GB, free: 50.71 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002814/11.89, allocations: 1.319 MB / 4.134 GB, free: 50.55 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.054e-06/11.89, allocations: 0 / 4.134 GB, free: 50.55 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01204/11.9, allocations: 3.066 MB / 4.137 GB, free: 50.55 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 10 (tank.medium.h,tank.level,heater.mediums[1].p,heater.mediums[1].h,radiator.mediums[1].p,radiator.mediums[1].h,pipe.mediums[1].p,pipe.mediums[1].h,pipe.mediums[2].p,pipe.mediums[2].h) * Number of discrete variables: 58 ($cse3.phase,$cse3.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.region3boundary,$cse9.region3boundary,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse19.region3boundary,$cse20.region3boundary,$cse21.phase,$cse21.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse26.region3boundary,$cse27.region3boundary,$cse28.phase,$cse28.region,$cse31.phase,$cse31.region,$cse32.phase,$cse32.region,$cse35.phase,$cse35.region,$cse38.region3boundary,$cse39.region3boundary,$cse40.phase,$cse40.region,$cse41.region3boundary,$cse42.region3boundary,$cse43.phase,$cse43.region,$cse45.phase,$cse45.region,tank.heatTransfer.states[1].phase,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],pump.heatTransfer.states[1].phase,heater.statesFM[2].phase,radiator.statesFM[2].phase,pipe.statesFM[1].phase,pipe.statesFM[2].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (208): * Single equations (assignments): 175 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 25 * 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: 0 * Non-linear torn systems: 8 {2 4,1 1,2 9,1 1,4 18,1 1,1 10,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01284/11.91, allocations: 3.117 MB / 4.14 GB, free: 50.33 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01454/11.93, allocations: 6.027 MB / 4.146 GB, free: 50.19 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.9e-06/11.93, allocations: 1.906 kB / 4.146 GB, free: 50.19 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006336/11.93, allocations: 2.949 MB / 4.149 GB, free: 50.16 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007082/11.94, allocations: 1.085 MB / 4.15 GB, free: 50.12 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01633/11.96, allocations: 7.363 MB / 4.157 GB, free: 48.77 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002835/11.96, allocations: 2.518 MB / 4.16 GB, free: 48.01 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001131/11.96, allocations: 203.5 kB / 4.16 GB, free: 48 MB / 490.7 MB Notification: Performance of SimCode: time 2.693e-06/11.96, allocations: 1.875 kB / 4.16 GB, free: 48 MB / 490.7 MB Notification: Performance of Templates: time 0.5345/12.5, allocations: 137.5 MB / 4.294 GB, free: 70.88 MB / 0.4948 GB