Notification: Performance of loadModel(Modelica): time 1.491/1.491, allocations: 194.3 MB / 200.6 MB, free: 7.508 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 9.498e-06/9.638e-06, allocations: 1.281 kB / 247.2 MB, free: 5.473 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06033/0.06041, allocations: 44.32 MB / 291.5 MB, free: 11.9 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.675/4.736, allocations: 2.66 GB / 2.945 GB, free: 105.4 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001925/4.736, allocations: 89.84 kB / 2.945 GB, free: 105.3 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.889/8.625, allocations: 1.018 GB / 3.963 GB, free: 21.42 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002512/8.626, allocations: 78.22 kB / 3.963 GB, free: 21.4 MB / 442.7 MB Notification: Performance of Generate backend data structure: time 0.01616/8.642, allocations: 4.407 MB / 3.967 GB, free: 19.03 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.205e-05/8.642, allocations: 9.688 kB / 3.967 GB, free: 19.03 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01321/8.655, allocations: 1.146 MB / 3.969 GB, free: 18.77 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007656/8.663, allocations: 2.224 MB / 3.971 GB, free: 17.73 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003087/8.664, allocations: 202.7 kB / 3.971 GB, free: 17.64 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007999/8.664, allocations: 146.5 kB / 3.971 GB, free: 17.64 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007723/8.672, allocations: 3.531 MB / 3.975 GB, free: 14.69 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008586/8.681, allocations: 3.717 MB / 3.978 GB, free: 11.38 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.801e-05/8.681, allocations: 7.938 kB / 3.978 GB, free: 11.37 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004145/8.682, allocations: 11.91 kB / 3.978 GB, free: 11.36 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002326/8.682, allocations: 236.5 kB / 3.978 GB, free: 11.16 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03125/8.713, allocations: 19.86 MB / 3.998 GB, free: 6.074 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003154/8.716, allocations: 1.521 MB / 3.999 GB, free: 4.543 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003125/8.72, allocations: 1.497 MB / 4.001 GB, free: 3.047 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2279/8.948, allocations: 17.06 MB / 4.017 GB, free: 51.73 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.128e-05/8.948, allocations: 53.97 kB / 4.017 GB, free: 51.7 MB / 458.7 MB Notification: Performance of pre-optimization done (n=194): time 9.428e-06/8.948, allocations: 0.5625 kB / 4.017 GB, free: 51.7 MB / 458.7 MB Notification: Performance of matching and sorting (n=244): time 0.2094/9.157, allocations: 19.26 MB / 4.036 GB, free: 50.42 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.93e-05/9.157, allocations: 127.6 kB / 4.036 GB, free: 50.29 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002358/9.16, allocations: 1.221 MB / 4.038 GB, free: 50.12 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005483/9.161, allocations: 25.7 kB / 4.038 GB, free: 50.09 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005473/9.161, allocations: 0.9077 MB / 4.039 GB, free: 49.7 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001138/9.162, allocations: 0.7959 MB / 4.039 GB, free: 49.27 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003489/9.163, allocations: 1.969 kB / 4.039 GB, free: 49.27 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001823/9.163, allocations: 415.9 kB / 4.04 GB, free: 48.96 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003949/9.167, allocations: 2.035 MB / 4.042 GB, free: 48.95 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00467/9.172, allocations: 2.538 MB / 4.044 GB, free: 48.43 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02403/9.196, allocations: 4.571 MB / 4.049 GB, free: 48.39 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.877e-05/9.196, allocations: 6.938 kB / 4.049 GB, free: 48.39 MB / 458.7 MB Notification: Performance of matching and sorting (n=339) (initialization): time 0.04361/9.24, allocations: 10.43 MB / 4.059 GB, free: 48.12 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001023/9.241, allocations: 5.425 MB / 4.064 GB, free: 42.57 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.246e-05/9.241, allocations: 17.47 kB / 4.064 GB, free: 42.57 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01744/9.258, allocations: 4.458 MB / 4.068 GB, free: 42.52 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002448/9.261, allocations: 372.2 kB / 4.069 GB, free: 42.52 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02003/9.281, allocations: 7.958 MB / 4.077 GB, free: 41.39 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005494/9.287, allocations: 367.6 kB / 4.077 GB, free: 41.38 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006838/9.287, allocations: 156.8 kB / 4.077 GB, free: 41.38 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.341e-05/9.288, allocations: 3.938 kB / 4.077 GB, free: 41.38 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02608/9.314, allocations: 6.892 MB / 4.084 GB, free: 41.28 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.169e-05/9.314, allocations: 14.44 kB / 4.084 GB, free: 41.28 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01169/9.326, allocations: 2.489 MB / 4.086 GB, free: 41.24 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002978/9.329, allocations: 480.4 kB / 4.087 GB, free: 41.24 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008959/9.338, allocations: 4.265 MB / 4.091 GB, free: 40.65 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004852/9.343, allocations: 339.4 kB / 4.091 GB, free: 40.64 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006181/9.343, allocations: 140.3 kB / 4.091 GB, free: 40.64 MB / 458.7 MB 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.0004324/9.344, allocations: 81.47 kB / 4.091 GB, free: 40.57 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003439/9.347, allocations: 0.6815 MB / 4.092 GB, free: 40.46 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02439/9.372, allocations: 11.72 MB / 4.104 GB, free: 39.84 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01925/9.391, allocations: 10.17 MB / 4.114 GB, free: 39.33 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.69e-05/9.391, allocations: 0.9062 kB / 4.114 GB, free: 39.33 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01908/9.41, allocations: 10.32 MB / 4.124 GB, free: 38.51 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03798/9.449, allocations: 18.18 MB / 4.141 GB, free: 34.47 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-05/9.449, allocations: 6.062 kB / 4.141 GB, free: 34.46 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003103/9.452, allocations: 415 kB / 4.142 GB, free: 34.45 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01168/9.464, allocations: 4.218 MB / 4.146 GB, free: 33.47 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006087/9.464, allocations: 75.33 kB / 4.146 GB, free: 33.45 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01623/9.481, allocations: 10.71 MB / 4.156 GB, free: 23.68 MB / 458.7 MB 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.006192/9.487, allocations: 2.918 MB / 4.159 GB, free: 21.25 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02553/9.513, allocations: 13.42 MB / 4.172 GB, free: 9.281 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002587/9.515, allocations: 0.8494 MB / 4.173 GB, free: 8.543 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009799/9.516, allocations: 15.52 kB / 4.173 GB, free: 8.531 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004978/9.521, allocations: 302.7 kB / 4.173 GB, free: 8.34 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007469/9.522, allocations: 225 kB / 4.174 GB, free: 8.215 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003988/9.523, allocations: 117.9 kB / 4.174 GB, free: 8.125 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.001542/9.524, allocations: 0.8802 MB / 4.175 GB, free: 7.336 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01282/9.537, allocations: 3.731 MB / 4.178 GB, free: 4.027 MB / 458.7 MB Notification: Performance of Backend phase and start with SimCode phase: time 0.01497/9.552, allocations: 3.878 MB / 4.182 GB, free: 1.406 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.2193/9.772, allocations: 9.869 MB / 4.192 GB, free: 57.82 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.962e-06/9.772, allocations: 4.781 kB / 4.192 GB, free: 57.82 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0105/9.782, allocations: 5.052 MB / 4.197 GB, free: 57.79 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006337/9.789, allocations: 0.8835 MB / 4.198 GB, free: 57.77 MB / 458.7 MB [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]