Notification: Performance of loadModel(Modelica): time 1.475/1.475, allocations: 194.3 MB / 200.6 MB, free: 5.293 MB / 168.6 MB Notification: Performance of FrontEnd - loaded program: time 9.149e-06/9.289e-06, allocations: 2.031 kB / 247.2 MB, free: 4.738 MB / 200.6 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05988/0.05995, allocations: 44.33 MB / 291.5 MB, free: 9.445 MB / 248.6 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.693/4.753, allocations: 2.66 GB / 2.945 GB, free: 71.64 MB / 392.6 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001863/4.753, allocations: 83.14 kB / 2.945 GB, free: 71.6 MB / 392.6 MB Notification: Performance of FrontEnd: time 3.884/8.637, allocations: 1.018 GB / 3.963 GB, free: 1.836 MB / 456.6 MB Notification: Performance of Transformations before backend: time 0.0002174/8.638, allocations: 70.03 kB / 3.963 GB, free: 1.77 MB / 456.6 MB Notification: Performance of Generate backend data structure: time 0.1977/8.835, allocations: 4.409 MB / 3.967 GB, free: 48.89 MB / 456.6 MB Notification: Performance of prepare preOptimizeDAE: time 4.023e-05/8.836, allocations: 11.53 kB / 3.968 GB, free: 48.89 MB / 456.6 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01276/8.848, allocations: 1.149 MB / 3.969 GB, free: 48.72 MB / 456.6 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007076/8.856, allocations: 2.213 MB / 3.971 GB, free: 48.32 MB / 456.6 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000319/8.856, allocations: 200.2 kB / 3.971 GB, free: 48.25 MB / 456.6 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000908/8.857, allocations: 148.1 kB / 3.971 GB, free: 48.25 MB / 456.6 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00793/8.865, allocations: 3.531 MB / 3.975 GB, free: 48.23 MB / 456.6 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007448/8.872, allocations: 3.716 MB / 3.978 GB, free: 47.65 MB / 456.6 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.319e-05/8.873, allocations: 9.125 kB / 3.978 GB, free: 47.65 MB / 456.6 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000397/8.873, allocations: 13.39 kB / 3.978 GB, free: 47.64 MB / 456.6 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002222/8.873, allocations: 228.7 kB / 3.978 GB, free: 47.64 MB / 456.6 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02997/8.903, allocations: 19.86 MB / 3.998 GB, free: 36.06 MB / 456.6 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002832/8.906, allocations: 1.53 MB / 3.999 GB, free: 36.04 MB / 456.6 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00257/8.909, allocations: 1.488 MB / 4.001 GB, free: 36.02 MB / 456.6 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04082/8.95, allocations: 17.07 MB / 4.017 GB, free: 25.51 MB / 456.6 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.98e-05/8.95, allocations: 60.91 kB / 4.018 GB, free: 25.46 MB / 456.6 MB Notification: Performance of pre-optimization done (n=194): time 8.451e-06/8.95, allocations: 3.594 kB / 4.018 GB, free: 25.46 MB / 456.6 MB Notification: Performance of matching and sorting (n=244): time 0.2075/9.158, allocations: 19.25 MB / 4.036 GB, free: 23.74 MB / 456.6 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.364e-05/9.158, allocations: 131.1 kB / 4.036 GB, free: 23.61 MB / 456.6 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002213/9.16, allocations: 1.214 MB / 4.038 GB, free: 23.43 MB / 456.6 MB Notification: Performance of collectPreVariables (initialization): time 0.0004505/9.161, allocations: 28.89 kB / 4.038 GB, free: 23.4 MB / 456.6 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004805/9.161, allocations: 0.9155 MB / 4.039 GB, free: 22.86 MB / 456.6 MB Notification: Performance of collectInitialBindings (initialization): time 0.000949/9.162, allocations: 0.7962 MB / 4.039 GB, free: 22.32 MB / 456.6 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003082/9.163, allocations: 0.9375 kB / 4.039 GB, free: 22.32 MB / 456.6 MB Notification: Performance of setup shared object (initialization): time 0.0001583/9.163, allocations: 414 kB / 4.04 GB, free: 22.02 MB / 456.6 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003911/9.167, allocations: 2.035 MB / 4.042 GB, free: 22.01 MB / 456.6 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004305/9.171, allocations: 2.538 MB / 4.044 GB, free: 21.49 MB / 456.6 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02216/9.193, allocations: 4.566 MB / 4.049 GB, free: 21.45 MB / 456.6 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.612e-05/9.194, allocations: 3.469 kB / 4.049 GB, free: 21.45 MB / 456.6 MB Notification: Performance of matching and sorting (n=339) (initialization): time 0.04513/9.239, allocations: 10.44 MB / 4.059 GB, free: 21.17 MB / 456.6 MB Notification: Performance of prepare postOptimizeDAE: time 0.001499/9.24, allocations: 5.417 MB / 4.064 GB, free: 31.63 MB / 472.6 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.371e-05/9.24, allocations: 13.72 kB / 4.064 GB, free: 31.63 MB / 472.6 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01752/9.258, allocations: 4.462 MB / 4.068 GB, free: 31.57 MB / 472.6 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002242/9.26, allocations: 370.3 kB / 4.069 GB, free: 31.57 MB / 472.6 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02109/9.282, allocations: 7.964 MB / 4.077 GB, free: 30.43 MB / 472.6 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005572/9.287, allocations: 371.9 kB / 4.077 GB, free: 30.41 MB / 472.6 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007604/9.288, allocations: 159.5 kB / 4.077 GB, free: 30.41 MB / 472.6 MB Notification: Performance of prepare postOptimizeDAE: time 1.285e-05/9.288, allocations: 4.844 kB / 4.077 GB, free: 30.41 MB / 472.6 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0264/9.315, allocations: 6.885 MB / 4.084 GB, free: 30.32 MB / 472.6 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.763e-05/9.315, allocations: 12.38 kB / 4.084 GB, free: 30.32 MB / 472.6 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01172/9.327, allocations: 2.487 MB / 4.086 GB, free: 30.28 MB / 472.6 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003098/9.33, allocations: 481.9 kB / 4.087 GB, free: 30.28 MB / 472.6 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009342/9.339, allocations: 4.266 MB / 4.091 GB, free: 29.7 MB / 472.6 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005045/9.344, allocations: 339.7 kB / 4.091 GB, free: 29.68 MB / 472.6 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007497/9.345, allocations: 148.4 kB / 4.091 GB, free: 29.68 MB / 472.6 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.0005286/9.346, allocations: 75.28 kB / 4.091 GB, free: 29.61 MB / 472.6 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00358/9.35, allocations: 0.685 MB / 4.092 GB, free: 29.5 MB / 472.6 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02534/9.375, allocations: 11.72 MB / 4.104 GB, free: 28.88 MB / 472.6 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01965/9.395, allocations: 10.18 MB / 4.114 GB, free: 28.36 MB / 472.6 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.886e-05/9.395, allocations: 0 / 4.114 GB, free: 28.36 MB / 472.6 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01991/9.415, allocations: 10.32 MB / 4.124 GB, free: 26.18 MB / 472.6 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03901/9.454, allocations: 18.17 MB / 4.141 GB, free: 12.82 MB / 472.6 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.053e-05/9.454, allocations: 4 kB / 4.141 GB, free: 12.82 MB / 472.6 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002915/9.457, allocations: 418.2 kB / 4.142 GB, free: 12.51 MB / 472.6 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01073/9.468, allocations: 4.226 MB / 4.146 GB, free: 9.16 MB / 472.6 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007588/9.469, allocations: 74.5 kB / 4.146 GB, free: 9.109 MB / 472.6 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2071/9.676, allocations: 10.77 MB / 4.156 GB, free: 61.68 MB / 472.6 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.005926/9.682, allocations: 2.916 MB / 4.159 GB, free: 61.11 MB / 472.6 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02745/9.709, allocations: 13.42 MB / 4.172 GB, free: 60.46 MB / 472.6 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00255/9.712, allocations: 0.8506 MB / 4.173 GB, free: 60.37 MB / 472.6 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009439/9.713, allocations: 20.77 kB / 4.173 GB, free: 60.37 MB / 472.6 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004538/9.718, allocations: 300.8 kB / 4.174 GB, free: 60.37 MB / 472.6 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007504/9.719, allocations: 227 kB / 4.174 GB, free: 60.37 MB / 472.6 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003985/9.719, allocations: 113.1 kB / 4.174 GB, free: 60.37 MB / 472.6 MB Notification: Performance of sort global known variables: time 0.00162/9.721, allocations: 0.8788 MB / 4.175 GB, free: 60.26 MB / 472.6 MB Notification: Performance of remove unused functions: time 0.01329/9.734, allocations: 3.734 MB / 4.178 GB, free: 60.21 MB / 472.6 MB Notification: Performance of Backend phase and start with SimCode phase: time 0.01489/9.749, allocations: 3.869 MB / 4.182 GB, free: 59.89 MB / 472.6 MB Notification: Performance of simCode: created initialization part: time 0.02143/9.771, allocations: 9.261 MB / 4.191 GB, free: 59.71 MB / 472.6 MB Notification: Performance of simCode: created event and clocks part: time 9.079e-06/9.771, allocations: 1.844 kB / 4.191 GB, free: 59.71 MB / 472.6 MB Notification: Performance of simCode: created simulation system equations: time 0.01136/9.782, allocations: 5.051 MB / 4.196 GB, free: 59.67 MB / 472.6 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006214/9.789, allocations: 0.888 MB / 4.197 GB, free: 59.66 MB / 472.6 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]