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.1_cpp_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial") Notification: Performance of loadModel(ModelicaTest): time 1.824/1.824, allocations: 209.3 MB / 221.9 MB, free: 7.738 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.227e-05/3.249e-05, allocations: 4 kB / 273.1 MB, free: 3.66 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08661/0.08667, allocations: 48.7 MB / 321.8 MB, free: 2.867 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.314/6.401, allocations: 2.56 GB / 2.874 GB, free: 89.5 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002099/6.401, allocations: 74.34 kB / 2.874 GB, free: 89.46 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.636/11.04, allocations: 0.9967 GB / 3.871 GB, free: 31.96 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.527e-06/11.04, allocations: 0 / 3.871 GB, free: 31.96 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002996/11.04, allocations: 71.97 kB / 3.871 GB, free: 31.95 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: 670 * Number of variables: 670 Notification: Performance of Generate backend data structure: time 0.01635/11.05, allocations: 4.273 MB / 3.875 GB, free: 30.09 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.329e-05/11.05, allocations: 11.72 kB / 3.875 GB, free: 30.09 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01006/11.06, allocations: 0.9781 MB / 3.876 GB, free: 29.93 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007738/11.07, allocations: 2.256 MB / 3.878 GB, free: 29.44 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004605/11.07, allocations: 286.5 kB / 3.878 GB, free: 29.37 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001141/11.07, allocations: 244.3 kB / 3.878 GB, free: 29.37 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01334/11.09, allocations: 4.432 MB / 3.883 GB, free: 28.78 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.811e-05/11.09, allocations: 19.95 kB / 3.883 GB, free: 28.77 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005689/11.09, allocations: 110 kB / 3.883 GB, free: 28.77 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003126/11.09, allocations: 215.4 kB / 3.883 GB, free: 28.77 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0125/11.1, allocations: 4.001 MB / 3.887 GB, free: 28.75 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.03282/11.13, allocations: 19.02 MB / 3.906 GB, free: 17.94 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008748/11.14, allocations: 2.761 MB / 3.908 GB, free: 17.89 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00327/11.14, allocations: 1.481 MB / 3.91 GB, free: 17.89 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04007/11.19, allocations: 17.06 MB / 3.926 GB, free: 23.36 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.449e-05/11.19, allocations: 57.75 kB / 3.926 GB, free: 23.32 MB / 0.4948 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002084/11.19, allocations: 240.2 kB / 3.927 GB, free: 23.21 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=194): time 7.754e-06/11.19, allocations: 0 / 3.927 GB, free: 23.21 MB / 0.4948 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.06268/11.25, allocations: 13.11 MB / 3.939 GB, free: 22.24 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001061/11.25, allocations: 125.4 kB / 3.94 GB, free: 22.11 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003442/11.25, allocations: 1.662 MB / 3.941 GB, free: 21.87 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0005703/11.25, allocations: 67.73 kB / 3.941 GB, free: 21.84 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007754/11.25, allocations: 1.071 MB / 3.942 GB, free: 21.3 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008789/11.26, allocations: 0.7228 MB / 3.943 GB, free: 20.83 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002853/11.26, allocations: 49.25 kB / 3.943 GB, free: 20.83 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002854/11.26, allocations: 406.4 kB / 3.943 GB, free: 20.52 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002918/11.26, allocations: 1.322 MB / 3.945 GB, free: 20.51 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003458/11.26, allocations: 1.807 MB / 3.947 GB, free: 19.99 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00358/11.27, allocations: 1.53 MB / 3.948 GB, free: 19.97 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.999e-05/11.27, allocations: 5.906 kB / 3.948 GB, free: 19.97 MB / 0.4948 GB Notification: Performance of matching and sorting (n=306) (initialization): time 0.01015/11.28, allocations: 3.887 MB / 3.952 GB, free: 19.78 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.002661/11.28, allocations: 5.32 MB / 3.957 GB, free: 14.25 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.254e-05/11.28, allocations: 16.78 kB / 3.957 GB, free: 14.25 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0062/11.29, allocations: 1.134 MB / 3.958 GB, free: 14.18 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003744/11.29, allocations: 0.5304 MB / 3.959 GB, free: 14.18 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006992/11.3, allocations: 5.702 MB / 3.964 GB, free: 10.02 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004458/11.3, allocations: 318.1 kB / 3.965 GB, free: 9.992 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007039/11.3, allocations: 120.1 kB / 3.965 GB, free: 9.992 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.38e-05/11.3, allocations: 6.375 kB / 3.965 GB, free: 9.992 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009332/11.31, allocations: 3.458 MB / 3.968 GB, free: 9.879 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.474e-05/11.31, allocations: 16.14 kB / 3.968 GB, free: 9.879 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002741/11.31, allocations: 0.6169 MB / 3.969 GB, free: 9.816 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0042/11.32, allocations: 0.5934 MB / 3.969 GB, free: 9.812 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01028/11.33, allocations: 8.431 MB / 3.977 GB, free: 19.23 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003283/11.33, allocations: 307.1 kB / 3.978 GB, free: 19.21 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005818/11.33, allocations: 115.3 kB / 3.978 GB, free: 19.21 MB / 0.5105 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.0009377/11.33, allocations: 254.5 kB / 3.978 GB, free: 19.09 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007217/11.33, allocations: 228.6 kB / 3.978 GB, free: 18.98 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.016/11.35, allocations: 9.387 MB / 3.987 GB, free: 18.16 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001132/11.35, allocations: 109.6 kB / 3.988 GB, free: 18.16 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.304e-06/11.35, allocations: 0 / 3.988 GB, free: 18.16 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01348/11.36, allocations: 8.252 MB / 3.996 GB, free: 17.24 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02584/11.39, allocations: 13.6 MB / 4.009 GB, free: 15.79 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.816e-05/11.39, allocations: 6.281 kB / 4.009 GB, free: 15.79 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002892/11.39, allocations: 407.8 kB / 4.009 GB, free: 15.78 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008595/11.4, allocations: 2.675 MB / 4.012 GB, free: 15.14 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005777/11.4, allocations: 74.5 kB / 4.012 GB, free: 15.11 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007561/11.41, allocations: 6.915 MB / 4.019 GB, free: 9.805 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.346e-06/11.41, allocations: 2.75 kB / 4.019 GB, free: 9.805 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01861/11.43, allocations: 9.977 MB / 4.028 GB, free: 5.34 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002637/11.43, allocations: 0.8224 MB / 4.029 GB, free: 4.84 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008766/11.43, allocations: 57.48 kB / 4.029 GB, free: 4.805 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003644/11.44, allocations: 262.7 kB / 4.03 GB, free: 4.758 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006814/11.44, allocations: 194.7 kB / 4.03 GB, free: 4.734 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003246/11.44, allocations: 87.36 kB / 4.03 GB, free: 4.715 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002852/11.44, allocations: 1.316 MB / 4.031 GB, free: 4.188 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.006e-06/11.44, allocations: 0 / 4.031 GB, free: 4.188 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01284/11.45, allocations: 3.078 MB / 4.034 GB, free: 1.258 MB / 0.5105 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.3411/11.79, allocations: 3.078 MB / 4.037 GB, free: 59.65 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01637/11.81, allocations: 6.256 MB / 4.043 GB, free: 59.27 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.137e-05/11.81, allocations: 4.281 kB / 4.043 GB, free: 59.27 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.007437/11.82, allocations: 2.947 MB / 4.046 GB, free: 59.25 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007395/11.82, allocations: 1.074 MB / 4.047 GB, free: 59.22 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01801/11.84, allocations: 7.391 MB / 4.054 GB, free: 57.88 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00283/11.85, allocations: 2.522 MB / 4.057 GB, free: 57.12 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00142/11.85, allocations: 230.7 kB / 4.057 GB, free: 57.12 MB / 0.5105 GB Notification: Performance of SimCode: time 2.596e-06/11.85, allocations: 2.812 kB / 4.057 GB, free: 57.12 MB / 0.5105 GB Notification: Performance of Templates: time 0.5748/12.42, allocations: 187.5 MB / 4.24 GB, free: 74.62 MB / 0.5261 GB