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.797/1.797, allocations: 194.9 MB / 208.4 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.882e-05/3.887e-05, allocations: 2.312 kB / 255.3 MB, free: 3.199 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07962/0.07968, allocations: 44.51 MB / 299.8 MB, free: 6.637 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.37/6.449, allocations: 2.661 GB / 2.954 GB, free: 72.38 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002063/6.45, allocations: 83.45 kB / 2.954 GB, free: 72.34 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.555/11, allocations: 1.022 GB / 3.976 GB, free: 14.49 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.674e-06/11, allocations: 0 / 3.976 GB, free: 14.49 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002736/11.01, allocations: 69.12 kB / 3.976 GB, free: 14.48 MB / 442.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.01676/11.02, allocations: 4.395 MB / 3.98 GB, free: 12.09 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.407e-05/11.02, allocations: 9.938 kB / 3.98 GB, free: 12.09 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01042/11.03, allocations: 1.028 MB / 3.981 GB, free: 11.84 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007414/11.04, allocations: 2.209 MB / 3.983 GB, free: 10.32 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004226/11.04, allocations: 287.1 kB / 3.983 GB, free: 10.04 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001109/11.04, allocations: 247.9 kB / 3.984 GB, free: 9.797 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01308/11.05, allocations: 4.467 MB / 3.988 GB, free: 5.742 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.818e-05/11.05, allocations: 7.938 kB / 3.988 GB, free: 5.734 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006638/11.06, allocations: 99.97 kB / 3.988 GB, free: 5.637 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003016/11.06, allocations: 224.8 kB / 3.988 GB, free: 5.414 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.012/11.07, allocations: 4.044 MB / 3.992 GB, free: 1.355 MB / 442.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.3604/11.43, allocations: 19 MB / 4.011 GB, free: 24.73 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009436/11.44, allocations: 2.776 MB / 4.014 GB, free: 24.69 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003771/11.44, allocations: 1.48 MB / 4.015 GB, free: 24.68 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03825/11.48, allocations: 17.06 MB / 4.032 GB, free: 14.17 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.492e-05/11.48, allocations: 56.94 kB / 4.032 GB, free: 14.13 MB / 458.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002194/11.48, allocations: 233.2 kB / 4.032 GB, free: 14.13 MB / 458.7 MB Notification: Performance of pre-optimization done (n=194): time 1.014e-05/11.48, allocations: 1.531 kB / 4.032 GB, free: 14.13 MB / 458.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.04343/11.53, allocations: 11.19 MB / 4.043 GB, free: 13.33 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.033e-05/11.53, allocations: 131.3 kB / 4.043 GB, free: 13.2 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003453/11.53, allocations: 1.661 MB / 4.045 GB, free: 12.97 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005531/11.53, allocations: 63.33 kB / 4.045 GB, free: 12.94 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008416/11.53, allocations: 1.065 MB / 4.046 GB, free: 12.52 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001048/11.53, allocations: 0.7289 MB / 4.046 GB, free: 12.15 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002934/11.53, allocations: 46.53 kB / 4.046 GB, free: 12.15 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001798/11.53, allocations: 409.5 kB / 4.047 GB, free: 11.84 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003094/11.54, allocations: 1.319 MB / 4.048 GB, free: 11.83 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003589/11.54, allocations: 1.82 MB / 4.05 GB, free: 11.3 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003554/11.54, allocations: 1.544 MB / 4.051 GB, free: 11.27 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.227e-05/11.54, allocations: 2.844 kB / 4.051 GB, free: 11.27 MB / 458.7 MB Notification: Performance of matching and sorting (n=306) (initialization): time 0.01075/11.55, allocations: 4.474 MB / 4.056 GB, free: 11.13 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002201/11.56, allocations: 5.318 MB / 4.061 GB, free: 21.61 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.065e-05/11.56, allocations: 20.88 kB / 4.061 GB, free: 21.61 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01997/11.58, allocations: 3.776 MB / 4.065 GB, free: 21.56 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001888/11.58, allocations: 317.5 kB / 4.065 GB, free: 21.56 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01018/11.59, allocations: 4.559 MB / 4.069 GB, free: 20.96 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00405/11.59, allocations: 321.4 kB / 4.07 GB, free: 20.95 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006202/11.59, allocations: 119.5 kB / 4.07 GB, free: 20.95 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.343e-05/11.59, allocations: 3.125 kB / 4.07 GB, free: 20.95 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009232/11.6, allocations: 3.931 MB / 4.074 GB, free: 20.89 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-05/11.6, allocations: 11.14 kB / 4.074 GB, free: 20.89 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01089/11.61, allocations: 2.474 MB / 4.076 GB, free: 20.86 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002137/11.62, allocations: 383.2 kB / 4.076 GB, free: 20.86 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006846/11.62, allocations: 3.549 MB / 4.08 GB, free: 20.28 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00295/11.62, allocations: 313.7 kB / 4.08 GB, free: 20.27 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003423/11.63, allocations: 109.5 kB / 4.08 GB, free: 20.27 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.0008297/11.63, allocations: 247.5 kB / 4.081 GB, free: 20.16 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007122/11.63, allocations: 231.2 kB / 4.081 GB, free: 20.04 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01581/11.64, allocations: 9.376 MB / 4.09 GB, free: 19.24 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001109/11.64, allocations: 108.1 kB / 4.09 GB, free: 19.24 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.587e-05/11.64, allocations: 11.08 kB / 4.09 GB, free: 19.23 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01291/11.66, allocations: 8.251 MB / 4.098 GB, free: 18.32 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02509/11.68, allocations: 13.6 MB / 4.111 GB, free: 17.36 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.671e-05/11.68, allocations: 1.375 kB / 4.111 GB, free: 17.36 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002694/11.68, allocations: 405.9 kB / 4.112 GB, free: 17.36 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008197/11.69, allocations: 2.679 MB / 4.114 GB, free: 17.21 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005477/11.69, allocations: 75.47 kB / 4.114 GB, free: 17.21 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007701/11.7, allocations: 6.927 MB / 4.121 GB, free: 13.02 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.235e-06/11.7, allocations: 0 / 4.121 GB, free: 13.02 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01736/11.72, allocations: 9.963 MB / 4.131 GB, free: 9.625 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002458/11.72, allocations: 0.8269 MB / 4.132 GB, free: 9.125 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008516/11.72, allocations: 59.66 kB / 4.132 GB, free: 9.086 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003289/11.72, allocations: 264.5 kB / 4.132 GB, free: 9.039 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006701/11.73, allocations: 196.2 kB / 4.132 GB, free: 9.012 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002955/11.73, allocations: 86.77 kB / 4.132 GB, free: 8.996 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002638/11.73, allocations: 1.318 MB / 4.134 GB, free: 8.465 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.162e-06/11.73, allocations: 0 / 4.134 GB, free: 8.465 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01178/11.74, allocations: 3.069 MB / 4.137 GB, free: 8.113 MB / 474.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.01254/11.75, allocations: 3.086 MB / 4.14 GB, free: 7.691 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01546/11.77, allocations: 6.093 MB / 4.146 GB, free: 5.613 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.821e-06/11.77, allocations: 0 / 4.146 GB, free: 5.613 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007112/11.78, allocations: 2.969 MB / 4.149 GB, free: 3.902 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007048/11.78, allocations: 1.086 MB / 4.15 GB, free: 3.164 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01864/11.8, allocations: 7.379 MB / 4.157 GB, free: 12.86 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00354/11.8, allocations: 2.519 MB / 4.159 GB, free: 10.91 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001192/11.81, allocations: 202.7 kB / 4.159 GB, free: 10.72 MB / 490.7 MB Notification: Performance of SimCode: time 1.867e-06/11.81, allocations: 0 / 4.159 GB, free: 10.72 MB / 490.7 MB Notification: Performance of Templates: time 0.5631/12.37, allocations: 137.6 MB / 4.294 GB, free: 65.12 MB / 0.4948 GB