Notification: Performance of loadModel(Modelica): time 1.536/1.536, allocations: 194.5 MB / 200.7 MB, free: 5.18 MB / 168.6 MB Notification: Performance of FrontEnd - loaded program: time 9.638e-06/9.778e-06, allocations: 1.531 kB / 247.4 MB, free: 4.652 MB / 200.6 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06474/0.06482, allocations: 44.36 MB / 291.8 MB, free: 9.234 MB / 248.6 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.952/5.016, allocations: 2.66 GB / 2.945 GB, free: 68.1 MB / 392.6 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001993/5.017, allocations: 85.27 kB / 2.945 GB, free: 68.06 MB / 392.6 MB Notification: Performance of FrontEnd: time 4.214/9.23, allocations: 1.018 GB / 3.963 GB, free: 26.15 MB / 456.6 MB Notification: Performance of Transformations before backend: time 0.0002547/9.231, allocations: 73 kB / 3.963 GB, free: 26.14 MB / 456.6 MB Notification: Performance of Generate backend data structure: time 0.01674/9.248, allocations: 4.42 MB / 3.968 GB, free: 24.27 MB / 456.6 MB Notification: Performance of prepare preOptimizeDAE: time 4.232e-05/9.248, allocations: 7.281 kB / 3.968 GB, free: 24.27 MB / 456.6 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01315/9.261, allocations: 1.148 MB / 3.969 GB, free: 24.11 MB / 456.6 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007556/9.269, allocations: 2.221 MB / 3.971 GB, free: 23.62 MB / 456.6 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003302/9.269, allocations: 203.6 kB / 3.971 GB, free: 23.55 MB / 456.6 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009773/9.27, allocations: 148.2 kB / 3.971 GB, free: 23.55 MB / 456.6 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008581/9.279, allocations: 3.531 MB / 3.975 GB, free: 23.54 MB / 456.6 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01005/9.289, allocations: 3.711 MB / 3.978 GB, free: 22.95 MB / 456.6 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.793e-05/9.289, allocations: 7.062 kB / 3.979 GB, free: 22.95 MB / 456.6 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004809/9.29, allocations: 7.594 kB / 3.979 GB, free: 22.95 MB / 456.6 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002359/9.29, allocations: 241.7 kB / 3.979 GB, free: 22.94 MB / 456.6 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03328/9.323, allocations: 19.87 MB / 3.998 GB, free: 11.27 MB / 456.6 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003246/9.327, allocations: 1.521 MB / 4 GB, free: 11.25 MB / 456.6 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00303/9.33, allocations: 1.495 MB / 4.001 GB, free: 11.23 MB / 456.6 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04235/9.372, allocations: 17.06 MB / 4.018 GB, free: 16.7 MB / 472.6 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.365e-05/9.372, allocations: 61.53 kB / 4.018 GB, free: 16.66 MB / 472.6 MB Notification: Performance of pre-optimization done (n=194): time 8.031e-06/9.372, allocations: 3.938 kB / 4.018 GB, free: 16.66 MB / 472.6 MB Notification: Performance of matching and sorting (n=244): time 0.2153/9.588, allocations: 19.25 MB / 4.037 GB, free: 14.89 MB / 472.6 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.649e-05/9.588, allocations: 130.1 kB / 4.037 GB, free: 14.77 MB / 472.6 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002423/9.59, allocations: 1.216 MB / 4.038 GB, free: 14.59 MB / 472.6 MB Notification: Performance of collectPreVariables (initialization): time 0.0006116/9.591, allocations: 29.64 kB / 4.038 GB, free: 14.55 MB / 472.6 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005921/9.592, allocations: 0.9072 MB / 4.039 GB, free: 14.01 MB / 472.6 MB Notification: Performance of collectInitialBindings (initialization): time 0.001231/9.593, allocations: 0.794 MB / 4.04 GB, free: 13.48 MB / 472.6 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003576/9.594, allocations: 0 / 4.04 GB, free: 13.48 MB / 472.6 MB Notification: Performance of setup shared object (initialization): time 0.0003603/9.594, allocations: 419.9 kB / 4.04 GB, free: 13.18 MB / 472.6 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004106/9.598, allocations: 2.038 MB / 4.042 GB, free: 13.17 MB / 472.6 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004816/9.603, allocations: 2.532 MB / 4.044 GB, free: 12.65 MB / 472.6 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02411/9.627, allocations: 4.568 MB / 4.049 GB, free: 12.61 MB / 472.6 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.717e-05/9.627, allocations: 7.062 kB / 4.049 GB, free: 12.61 MB / 472.6 MB Notification: Performance of matching and sorting (n=339) (initialization): time 0.04537/9.673, allocations: 10.44 MB / 4.059 GB, free: 12.32 MB / 472.6 MB Notification: Performance of prepare postOptimizeDAE: time 0.001359/9.674, allocations: 5.421 MB / 4.064 GB, free: 6.781 MB / 472.6 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.265e-05/9.674, allocations: 12.78 kB / 4.064 GB, free: 6.781 MB / 472.6 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01785/9.692, allocations: 4.452 MB / 4.069 GB, free: 6.727 MB / 472.6 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002277/9.695, allocations: 370.1 kB / 4.069 GB, free: 6.727 MB / 472.6 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02145/9.716, allocations: 7.971 MB / 4.077 GB, free: 5.586 MB / 472.6 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005732/9.722, allocations: 367 kB / 4.077 GB, free: 5.57 MB / 472.6 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008197/9.723, allocations: 155.6 kB / 4.077 GB, free: 5.57 MB / 472.6 MB Notification: Performance of prepare postOptimizeDAE: time 1.516e-05/9.723, allocations: 4.312 kB / 4.077 GB, free: 5.57 MB / 472.6 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02712/9.75, allocations: 6.893 MB / 4.084 GB, free: 5.477 MB / 472.6 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.938e-05/9.75, allocations: 12.38 kB / 4.084 GB, free: 5.477 MB / 472.6 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01216/9.763, allocations: 2.483 MB / 4.087 GB, free: 5.398 MB / 472.6 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003056/9.766, allocations: 487.9 kB / 4.087 GB, free: 5.391 MB / 472.6 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009148/9.775, allocations: 4.268 MB / 4.091 GB, free: 4.797 MB / 472.6 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004762/9.78, allocations: 343.7 kB / 4.092 GB, free: 4.758 MB / 472.6 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004681/9.78, allocations: 139.7 kB / 4.092 GB, free: 4.758 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.0004255/9.781, allocations: 86.2 kB / 4.092 GB, free: 4.68 MB / 472.6 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003278/9.784, allocations: 0.6839 MB / 4.092 GB, free: 4.57 MB / 472.6 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02586/9.81, allocations: 11.71 MB / 4.104 GB, free: 3.852 MB / 472.6 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02123/9.832, allocations: 10.18 MB / 4.114 GB, free: 0.7109 MB / 472.6 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.879e-05/9.832, allocations: 0 / 4.114 GB, free: 0.7109 MB / 472.6 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02469/9.856, allocations: 10.54 MB / 4.124 GB, free: 8.91 MB / 488.6 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2394/10.1, allocations: 18.2 MB / 4.142 GB, free: 77.02 MB / 488.6 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-05/10.1, allocations: 0 / 4.142 GB, free: 77.02 MB / 488.6 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003094/10.1, allocations: 415 kB / 4.142 GB, free: 77.02 MB / 488.6 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0115/10.11, allocations: 4.235 MB / 4.146 GB, free: 76.83 MB / 488.6 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006846/10.11, allocations: 73.31 kB / 4.146 GB, free: 76.83 MB / 488.6 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01712/10.13, allocations: 10.7 MB / 4.157 GB, free: 72.16 MB / 488.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.006504/10.14, allocations: 2.906 MB / 4.16 GB, free: 71.58 MB / 488.6 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02897/10.16, allocations: 13.42 MB / 4.173 GB, free: 70.93 MB / 488.6 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002895/10.17, allocations: 0.8508 MB / 4.174 GB, free: 70.84 MB / 488.6 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00121/10.17, allocations: 15.97 kB / 4.174 GB, free: 70.84 MB / 488.6 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004722/10.17, allocations: 291.6 kB / 4.174 GB, free: 70.84 MB / 488.6 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008541/10.17, allocations: 227.2 kB / 4.174 GB, free: 70.83 MB / 488.6 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004079/10.18, allocations: 115.7 kB / 4.174 GB, free: 70.83 MB / 488.6 MB Notification: Performance of sort global known variables: time 0.001674/10.18, allocations: 0.877 MB / 4.175 GB, free: 70.72 MB / 488.6 MB Notification: Performance of remove unused functions: time 0.01299/10.19, allocations: 3.734 MB / 4.179 GB, free: 70.72 MB / 488.6 MB Notification: Performance of Backend phase and start with SimCode phase: time 0.01503/10.21, allocations: 3.886 MB / 4.183 GB, free: 70.55 MB / 488.6 MB Notification: Performance of simCode: created initialization part: time 0.02293/10.23, allocations: 9.266 MB / 4.192 GB, free: 70.38 MB / 488.6 MB Notification: Performance of simCode: created event and clocks part: time 9.149e-06/10.23, allocations: 3.75 kB / 4.192 GB, free: 70.38 MB / 488.6 MB Notification: Performance of simCode: created simulation system equations: time 0.0113/10.24, allocations: 5.047 MB / 4.197 GB, free: 70.34 MB / 488.6 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006506/10.25, allocations: 0.8797 MB / 4.197 GB, free: 70.33 MB / 488.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]