Running command: translateModel(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial,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="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial") Notification: Performance of loadModel(ModelicaTest): time 2.152/2.152, allocations: 235 MB / 247.6 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.35e-05/3.372e-05, allocations: 4 kB / 304.9 MB, free: 5.66 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3254/0.3255, allocations: 54.85 MB / 359.8 MB, free: 2.648 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.923/6.249, allocations: 2.67 GB / 3.021 GB, free: 2.715 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002062/6.249, allocations: 75.97 kB / 3.022 GB, free: 2.641 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.684/10.93, allocations: 1.022 GB / 4.044 GB, free: 35.71 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.926e-06/10.93, allocations: 0 / 4.044 GB, free: 35.71 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0002565/10.93, allocations: 71.23 kB / 4.044 GB, free: 35.7 MB / 0.5261 GB 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.01584/10.95, allocations: 4.385 MB / 4.048 GB, free: 33.73 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.492e-05/10.95, allocations: 12.05 kB / 4.048 GB, free: 33.73 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01126/10.96, allocations: 1.029 MB / 4.049 GB, free: 33.57 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007356/10.97, allocations: 2.262 MB / 4.051 GB, free: 33.07 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003442/10.97, allocations: 288.5 kB / 4.052 GB, free: 33 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000684/10.97, allocations: 246 kB / 4.052 GB, free: 33 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01157/10.98, allocations: 4.43 MB / 4.056 GB, free: 32.42 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.357e-05/10.98, allocations: 10.81 kB / 4.056 GB, free: 32.42 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004803/10.98, allocations: 111.8 kB / 4.056 GB, free: 32.42 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002953/10.98, allocations: 222.5 kB / 4.057 GB, free: 32.41 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01191/10.99, allocations: 4 MB / 4.06 GB, free: 32.39 MB / 0.5261 GB 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.03003/11.02, allocations: 19.03 MB / 4.079 GB, free: 21.57 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007999/11.03, allocations: 2.768 MB / 4.082 GB, free: 21.51 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002896/11.03, allocations: 1.481 MB / 4.083 GB, free: 21.5 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03811/11.07, allocations: 17.06 MB / 4.1 GB, free: 26.98 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.356e-05/11.07, allocations: 52.91 kB / 4.1 GB, free: 26.94 MB / 0.5417 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001893/11.07, allocations: 234.2 kB / 4.1 GB, free: 26.84 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=194): time 6.5e-06/11.07, allocations: 2.281 kB / 4.1 GB, free: 26.84 MB / 0.5417 GB 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: tank.medium.h 3: heater.mediums[1].p 4: pump.medium.h Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=215): time 0.05331/11.13, allocations: 13.11 MB / 4.113 GB, free: 25.86 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000102/11.13, allocations: 135 kB / 4.113 GB, free: 25.73 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003104/11.13, allocations: 1.655 MB / 4.115 GB, free: 25.49 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.000398/11.13, allocations: 67.14 kB / 4.115 GB, free: 25.46 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.000711/11.13, allocations: 1.066 MB / 4.116 GB, free: 24.93 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007509/11.13, allocations: 0.7263 MB / 4.116 GB, free: 24.46 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002527/11.13, allocations: 54.88 kB / 4.117 GB, free: 24.46 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0002567/11.13, allocations: 415 kB / 4.117 GB, free: 24.14 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002644/11.14, allocations: 1.315 MB / 4.118 GB, free: 24.13 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00286/11.14, allocations: 1.803 MB / 4.12 GB, free: 23.62 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003025/11.14, allocations: 1.54 MB / 4.121 GB, free: 23.59 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.217e-05/11.14, allocations: 3.438 kB / 4.121 GB, free: 23.59 MB / 0.5417 GB Notification: Performance of matching and sorting (n=306) (initialization): time 0.009023/11.15, allocations: 3.885 MB / 4.125 GB, free: 23.39 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.002565/11.15, allocations: 5.311 MB / 4.13 GB, free: 17.87 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.896e-05/11.15, allocations: 13.22 kB / 4.13 GB, free: 17.87 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005819/11.16, allocations: 1.144 MB / 4.132 GB, free: 17.8 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003314/11.16, allocations: 0.534 MB / 4.132 GB, free: 17.8 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006369/11.17, allocations: 5.696 MB / 4.138 GB, free: 13.64 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003887/11.17, allocations: 318.8 kB / 4.138 GB, free: 13.62 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004324/11.17, allocations: 118.9 kB / 4.138 GB, free: 13.62 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.43e-05/11.17, allocations: 5.969 kB / 4.138 GB, free: 13.62 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007972/11.18, allocations: 3.462 MB / 4.141 GB, free: 13.51 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.931e-05/11.18, allocations: 12.53 kB / 4.141 GB, free: 13.51 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002532/11.18, allocations: 0.615 MB / 4.142 GB, free: 13.45 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003574/11.19, allocations: 0.5906 MB / 4.143 GB, free: 13.45 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009524/11.2, allocations: 8.426 MB / 4.151 GB, free: 6.863 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003136/11.2, allocations: 314.9 kB / 4.151 GB, free: 6.844 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005733/11.2, allocations: 115 kB / 4.151 GB, free: 6.84 MB / 0.5417 GB 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 (265): * Single equations (assignments): 257 * 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: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 8 {1 5,1 1,2 7,1 1,4 14,1 1,1 7,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001116/11.2, allocations: 265.4 kB / 4.152 GB, free: 22.72 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000716/11.2, allocations: 228.1 kB / 4.152 GB, free: 22.6 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01466/11.22, allocations: 9.374 MB / 4.161 GB, free: 21.79 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.619e-05/11.22, allocations: 108.1 kB / 4.161 GB, free: 21.79 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.113e-05/11.22, allocations: 16.14 kB / 4.161 GB, free: 21.79 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01231/11.23, allocations: 8.244 MB / 4.169 GB, free: 20.87 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0246/11.26, allocations: 13.6 MB / 4.182 GB, free: 18.6 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.448e-05/11.26, allocations: 6.75 kB / 4.182 GB, free: 18.6 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002508/11.26, allocations: 404.1 kB / 4.183 GB, free: 18.59 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007551/11.27, allocations: 2.676 MB / 4.185 GB, free: 17.94 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005304/11.27, allocations: 73.67 kB / 4.185 GB, free: 17.91 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007301/11.27, allocations: 6.918 MB / 4.192 GB, free: 12.6 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.211e-06/11.27, allocations: 4.625 kB / 4.192 GB, free: 12.6 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01743/11.29, allocations: 9.956 MB / 4.202 GB, free: 8.16 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002547/11.29, allocations: 0.8286 MB / 4.203 GB, free: 7.656 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00072/11.29, allocations: 57.91 kB / 4.203 GB, free: 7.617 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002787/11.3, allocations: 264.4 kB / 4.203 GB, free: 7.57 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005017/11.3, allocations: 193.7 kB / 4.203 GB, free: 7.547 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002974/11.3, allocations: 91.27 kB / 4.203 GB, free: 7.527 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.002602/11.3, allocations: 1.318 MB / 4.205 GB, free: 6.996 MB / 0.5573 GB Notification: Performance of sort global known variables: time 8.92e-07/11.3, allocations: 0 / 4.205 GB, free: 6.996 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01202/11.31, allocations: 3.088 MB / 4.208 GB, free: 4.289 MB / 0.5573 GB 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.01305/11.33, allocations: 3.117 MB / 4.211 GB, free: 2.055 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.3647/11.69, allocations: 6.264 MB / 4.217 GB, free: 63.04 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 8.066e-06/11.69, allocations: 1.094 kB / 4.217 GB, free: 63.04 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.006627/11.7, allocations: 2.95 MB / 4.22 GB, free: 63.02 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006742/11.7, allocations: 1.069 MB / 4.221 GB, free: 63 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01642/11.72, allocations: 7.394 MB / 4.228 GB, free: 61.68 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003047/11.72, allocations: 2.524 MB / 4.23 GB, free: 60.92 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001387/11.72, allocations: 230.1 kB / 4.231 GB, free: 60.92 MB / 0.5573 GB Notification: Performance of SimCode: time 1.991e-06/11.72, allocations: 2.094 kB / 4.231 GB, free: 60.92 MB / 0.5573 GB Notification: Performance of Templates: time 0.2228/11.95, allocations: 187.7 MB / 4.414 GB, free: 2.934 MB / 0.573 GB