Notification: Performance of loadModel(ModelicaTest): time 1.782/1.782, allocations: 234.6 MB / 240.6 MB, free: 7.766 MB / 200.6 MB Notification: Performance of FrontEnd - loaded program: time 0.2321/2.014, allocations: 56.68 MB / 297.2 MB, free: 8.504 MB / 248.6 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07692/2.091, allocations: 54.73 MB / 352 MB, free: 10.77 MB / 296.6 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.801/6.893, allocations: 2.669 GB / 3.013 GB, free: 97.9 MB / 472.6 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002173/6.893, allocations: 77.56 kB / 3.013 GB, free: 97.86 MB / 472.6 MB Notification: Performance of Generate backend data structure: time 3.999/10.89, allocations: 1.023 GB / 4.036 GB, free: 1.664 MB / 0.5084 GB Notification: Performance of prepare preOptimizeDAE: time 4.624e-05/10.89, allocations: 8 kB / 4.036 GB, free: 1.656 MB / 0.5084 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01323/10.91, allocations: 1.155 MB / 4.037 GB, free: 0.4961 MB / 0.5084 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008393/10.91, allocations: 2.268 MB / 4.04 GB, free: 14.21 MB / 0.5241 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003586/10.91, allocations: 200.2 kB / 4.04 GB, free: 14 MB / 0.5241 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001085/10.92, allocations: 151.8 kB / 4.04 GB, free: 13.85 MB / 0.5241 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009059/10.92, allocations: 3.528 MB / 4.043 GB, free: 10.32 MB / 0.5241 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01046/10.94, allocations: 3.71 MB / 4.047 GB, free: 6.387 MB / 0.5241 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001044/10.94, allocations: 7.938 kB / 4.047 GB, free: 6.379 MB / 0.5241 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008501/10.94, allocations: 11.98 kB / 4.047 GB, free: 6.367 MB / 0.5241 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000248/10.94, allocations: 240.6 kB / 4.047 GB, free: 6.129 MB / 0.5241 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2536/11.19, allocations: 19.85 MB / 4.067 GB, free: 54.15 MB / 0.5241 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003068/11.19, allocations: 1.524 MB / 4.068 GB, free: 54.12 MB / 0.5241 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002889/11.2, allocations: 1.493 MB / 4.07 GB, free: 54.11 MB / 0.5241 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04325/11.24, allocations: 17.07 MB / 4.086 GB, free: 43.6 MB / 0.5241 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.966e-05/11.24, allocations: 62.12 kB / 4.086 GB, free: 43.55 MB / 0.5241 GB Notification: Performance of pre-optimization done (n=194): time 7.752e-06/11.24, allocations: 4.906 kB / 4.086 GB, free: 43.55 MB / 0.5241 GB Notification: Performance of matching and sorting (n=244): time 0.2141/11.45, allocations: 19.23 MB / 4.105 GB, free: 42 MB / 0.5241 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.504e-05/11.45, allocations: 126.8 kB / 4.105 GB, free: 41.87 MB / 0.5241 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002314/11.46, allocations: 1.227 MB / 4.106 GB, free: 41.7 MB / 0.5241 GB Notification: Performance of collectPreVariables (initialization): time 0.0005596/11.46, allocations: 28.64 kB / 4.106 GB, free: 41.66 MB / 0.5241 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004266/11.46, allocations: 0.8581 MB / 4.107 GB, free: 41.2 MB / 0.5241 GB Notification: Performance of collectInitialBindings (initialization): time 0.001153/11.46, allocations: 0.7954 MB / 4.108 GB, free: 40.78 MB / 0.5241 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003443/11.46, allocations: 0 / 4.108 GB, free: 40.78 MB / 0.5241 GB Notification: Performance of setup shared object (initialization): time 0.0001777/11.46, allocations: 421.2 kB / 4.109 GB, free: 40.47 MB / 0.5241 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003908/11.46, allocations: 2.041 MB / 4.11 GB, free: 40.46 MB / 0.5241 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004441/11.47, allocations: 2.533 MB / 4.113 GB, free: 39.94 MB / 0.5241 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02272/11.49, allocations: 4.568 MB / 4.117 GB, free: 39.9 MB / 0.5241 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-05/11.49, allocations: 5.281 kB / 4.117 GB, free: 39.9 MB / 0.5241 GB Notification: Performance of matching and sorting (n=339) (initialization): time 0.03443/11.53, allocations: 8.503 MB / 4.126 GB, free: 39.66 MB / 0.5241 GB Notification: Performance of prepare postOptimizeDAE: time 0.001051/11.53, allocations: 5.317 MB / 4.131 GB, free: 34.11 MB / 0.5241 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.994e-05/11.53, allocations: 13.03 kB / 4.131 GB, free: 34.11 MB / 0.5241 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006905/11.53, allocations: 2.267 MB / 4.133 GB, free: 34.04 MB / 0.5241 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003943/11.54, allocations: 0.5886 MB / 4.134 GB, free: 34.04 MB / 0.5241 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01253/11.55, allocations: 8.295 MB / 4.142 GB, free: 45.35 MB / 0.5397 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004819/11.56, allocations: 368.5 kB / 4.142 GB, free: 45.34 MB / 0.5397 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007387/11.56, allocations: 157.5 kB / 4.142 GB, free: 45.34 MB / 0.5397 GB Notification: Performance of prepare postOptimizeDAE: time 1.159e-05/11.56, allocations: 3.781 kB / 4.142 GB, free: 45.34 MB / 0.5397 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02542/11.58, allocations: 6.422 MB / 4.149 GB, free: 45.19 MB / 0.5397 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.456e-05/11.58, allocations: 20.97 kB / 4.149 GB, free: 45.19 MB / 0.5397 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002327/11.58, allocations: 0.6119 MB / 4.149 GB, free: 45.12 MB / 0.5397 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004697/11.59, allocations: 0.6994 MB / 4.15 GB, free: 45.12 MB / 0.5397 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008899/11.6, allocations: 8.218 MB / 4.158 GB, free: 38.73 MB / 0.5397 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004364/11.6, allocations: 337.8 kB / 4.158 GB, free: 38.72 MB / 0.5397 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005572/11.6, allocations: 141.7 kB / 4.158 GB, free: 38.72 MB / 0.5397 GB Warning: There are iteration variables with default zero start attribute. For more information set -d=initialization. In OMEdit Tools->Options->Simulation->OMCFlags, in OMNotebook call setCommandLineOptions("-d=initialization"). Notification: Performance of prepare postOptimizeDAE: time 0.0004355/11.6, allocations: 7.5 kB / 4.158 GB, free: 38.71 MB / 0.5397 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00339/11.61, allocations: 0.6799 MB / 4.159 GB, free: 38.61 MB / 0.5397 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02475/11.63, allocations: 11.73 MB / 4.171 GB, free: 37.99 MB / 0.5397 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01977/11.65, allocations: 10.18 MB / 4.18 GB, free: 37.47 MB / 0.5397 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.585e-05/11.65, allocations: 2.078 kB / 4.18 GB, free: 37.47 MB / 0.5397 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01977/11.67, allocations: 10.31 MB / 4.191 GB, free: 36.66 MB / 0.5397 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04045/11.71, allocations: 18.17 MB / 4.208 GB, free: 35.27 MB / 0.5397 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.387e-05/11.71, allocations: 0 / 4.208 GB, free: 35.27 MB / 0.5397 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003051/11.72, allocations: 415.1 kB / 4.209 GB, free: 35.27 MB / 0.5397 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01179/11.73, allocations: 4.232 MB / 4.213 GB, free: 35.06 MB / 0.5397 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006585/11.73, allocations: 73.92 kB / 4.213 GB, free: 35.06 MB / 0.5397 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01675/11.75, allocations: 10.69 MB / 4.223 GB, free: 30.3 MB / 0.5397 GB Error: Model is structurally singular, error found sorting equations 35: $cse27 = Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(pump.p_b_nominal, pump.medium.h, 0, 0); 34: heater.statesFM[1].T = Modelica.Media.Water.IF97_Utilities.T_props_ph(pump.p_b_nominal, pump.medium.h, $cse27); 17: heater.heatTransfer.Ts[1] = Modelica.Media.Water.IF97_Utilities.T_props_ph(heater.mediums[1].p, heater.mediums[1].h, $cse17); 14: heater.flowModel.Fs_p[1] = heater.crossAreas[1] * (heater.mediums[1].p - pump.p_b_nominal) * heater.flowModel.nParallel; 27: pump.heatTransfer.states[1].phase = if pump.medium.h < Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.hvl_p(pump.p_b_nominal, Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.boilingcurve_p(pump.p_b_nominal)) or pump.medium.h > Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.hvl_p(pump.p_b_nominal, Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.dewcurve_p(pump.p_b_nominal)) or pump.p_b_nominal > 22064000.0 then 1 else 2; 26: $cse6 = Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(pump.p_b_nominal, pump.medium.h, pump.heatTransfer.states[1].phase, 0); 10: pump.Hb_flow = m_flow * (smooth(0, tank.medium.h) - smooth(0, pump.medium.h)); 8: -pump.Hb_flow = pump.W_single * /*Real*/(pump.nParallel); 5: pump.eta = Modelica.Fluid.Machines.ControlledPump$pump.efficiencyCharacteristic(pump.V_flow_single * pump.N_nominal / pump.N, 0.8); 3: pump.dp_pump = pump.p_b_nominal - tank.ports[2].p; 38: $STATESET1.J[3] = pump.W_single - pump.dp_pump * pump.V_flow_single / pump.eta; 25: pump.rho = Modelica.Media.Water.IF97_Utilities.rho_props_ph(pump.p_b_nominal, pump.medium.h, $cse6); 7: pump.V_flow_single = pump.V_flow / /*Real*/(pump.nParallel); 9: pump.V_flow = m_flow / pump.rho; 33: heater.statesFM[1].d = Modelica.Media.Water.IF97_Utilities.rho_props_ph(pump.p_b_nominal, pump.medium.h, $cse27); 32: heater.flowModel.mus[1] = Modelica.Media.Water.IF97_Utilities.dynamicViscosity(heater.statesFM[1].d, heater.statesFM[1].T, pump.p_b_nominal, 0); 15: heater.flowModel.mus[2] = Modelica.Media.Water.IF97_Utilities.dynamicViscosity(heater.statesFM[2].d, heater.heatTransfer.Ts[1], heater.mediums[1].p, heater.statesFM[2].phase); 13: heater.flowModel.dps_fg[1] = -2.0 * heater.flowModel.Fs_p[1] / (heater.flowModel.nParallel * 2.0 * heater.crossAreas[1]); 11: m_flow = $cse43 * heater.flowModel.nParallel; 12: $cse43 = Modelica.Fluid.Pipes.DynamicPipe$heater.FlowModel$heater$flowModel.WallFriction.massFlowRate_dp_staticHead(heater.flowModel.dps_fg[1], heater.statesFM[1].d, heater.statesFM[2].d, heater.flowModel.mus[1], heater.flowModel.mus[2], heater.pathLengths[1], heater.dimensions[1], 0.0, heater.crossAreas[1], heater.roughnesses[1], 0.5 * heater.flowModel.dp_small, heater.flowModel.Re_turbulent); 19: heater.statesFM[2].phase = if heater.mediums[1].h < Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.hvl_p(heater.mediums[1].p, Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.boilingcurve_p(heater.mediums[1].p)) or heater.mediums[1].h > Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.hvl_p(heater.mediums[1].p, Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.dewcurve_p(heater.mediums[1].p)) or heater.mediums[1].p > 22064000.0 then 1 else 2; 16: heater.statesFM[2].d = Modelica.Media.Water.IF97_Utilities.rho_props_ph(heater.mediums[1].p, heater.mediums[1].h, $cse17); 18: $cse17 = Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(heater.mediums[1].p, heater.mediums[1].h, heater.statesFM[2].phase, 0); for variables $cse27.x(3), $cse27.vt(4), $cse27.pd(5), $cse27.region(6), pump.N(113), $cse27.dpT(8), $cse27.pt(7), $cse27.phase(10), $cse27.p(9), $cse27.s(11), $cse27.h(13), $cse27.cp(14), $cse27.R(15), $cse27.cv(12), $cse27.rho(17), tank.heatTransfer.states[1].phase(22), $cse1.dpT(27), $cse43(101), pump.V_flow(104), $cse6.cv(45), $cse1.pd(36), $cse6.region(42), pump.heatTransfer.states[1].phase(41), $cse6.vt(43), $cse1.cp(38), tank.regularFlow[2](40), $cse1.s(37), $cse6.cp(48), $cse6.rho(50), $cse6.dpT(46), $cse6.h(52), $cse6.x(53), $cse6.T(54), $cse6.R(55), $cse5.rho(65), $cse5.cp(64), heater.heatTransfer.Ts[1](96), heater.flowModel.mus[2](98), pump.eta(108), m_flow(102), tank.vessel_ps_static[2](61), pump.head(109), pump.W_single(105), heater.statesFM[1].d(20), $cse1.rho(30), pump.V_flow_single(106), pump.dp_pump(110), $cse17.R(95), heater.flowModel.dps_fg[1](100), $cse5.vt(77), pump.Hb_flow(103), $cse17.pt(81), heater.statesFM[2].phase(79), $cse17.pd(83), $cse17.p(89), $cse5.p(75), $cse5.T(76), $cse17.rho(80), $cse17.vp(84), $cse17.s(82), $cse17.cv(88), $cse17.phase(85), $cse17.region(91), $cse17.dpT(92), $cse17.x(93), $cse17.h(94), heater.flowModel.Fs_p[1](99), $cse1.phase(23) Error: Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed! Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.006169/11.75, allocations: 2.922 MB / 4.226 GB, free: 29.71 MB / 0.5397 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02833/11.78, allocations: 13.42 MB / 4.239 GB, free: 24.71 MB / 0.5397 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.04903/11.83, allocations: 25.75 MB / 4.264 GB, free: 8.715 MB / 0.5397 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002619/11.83, allocations: 0.8487 MB / 4.265 GB, free: 7.977 MB / 0.5397 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009419/11.83, allocations: 17.97 kB / 4.265 GB, free: 7.961 MB / 0.5397 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004646/11.84, allocations: 299.7 kB / 4.266 GB, free: 7.777 MB / 0.5397 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008889/11.84, allocations: 223.1 kB / 4.266 GB, free: 7.652 MB / 0.5397 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004177/11.84, allocations: 126 kB / 4.266 GB, free: 7.555 MB / 0.5397 GB Notification: Performance of sort global known variables: time 0.001638/11.84, allocations: 0.8716 MB / 4.267 GB, free: 6.77 MB / 0.5397 GB Notification: Performance of remove unused functions: time 0.01697/11.86, allocations: 4.375 MB / 4.271 GB, free: 2.82 MB / 0.5397 GB Notification: Performance of Backend phase and start with SimCode phase: time 0.01543/11.87, allocations: 3.873 MB / 4.275 GB, free: 324 kB / 0.5397 GB Notification: Performance of simCode: created initialization part: time 0.2605/12.13, allocations: 10.43 MB / 4.285 GB, free: 76.38 MB / 0.5397 GB Notification: Performance of simCode: created event and clocks part: time 9.917e-06/12.13, allocations: 5.781 kB / 4.285 GB, free: 76.38 MB / 0.5397 GB Notification: Performance of simCode: created simulation system equations: time 0.0112/12.15, allocations: 5.01 MB / 4.29 GB, free: 76.34 MB / 0.5397 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006636/12.15, allocations: 0.8844 MB / 4.291 GB, free: 76.33 MB / 0.5397 GB [SimCode/SimCodeUtil.mo:0:0-0:0:writable] Error: Internal error function createStateSetsSets failed. [SimCode/SimCodeUtil.mo:0:0-0:0:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed] Error: Internal error SimCode: The model ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial could not be translated to FMU