Notification: Performance of loadModel(Modelica): time 1.475/1.475, allocations: 194.3 MB / 200.5 MB, free: 5.305 MB / 168.6 MB Notification: Performance of FrontEnd - loaded program: time 1.111e-05/1.117e-05, allocations: 1.125 kB / 247.2 MB, free: 4.73 MB / 200.6 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05795/0.05803, allocations: 44.31 MB / 291.5 MB, free: 9.449 MB / 248.6 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.715/4.773, allocations: 2.66 GB / 2.945 GB, free: 71.07 MB / 392.6 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001834/4.773, allocations: 91.25 kB / 2.945 GB, free: 71.03 MB / 392.6 MB Notification: Performance of FrontEnd: time 3.674/8.447, allocations: 1.018 GB / 3.963 GB, free: 4.848 MB / 456.6 MB Notification: Performance of Transformations before backend: time 0.0001923/8.447, allocations: 79.39 kB / 3.963 GB, free: 4.773 MB / 456.6 MB Notification: Performance of Generate backend data structure: time 0.01484/8.462, allocations: 4.408 MB / 3.968 GB, free: 328 kB / 456.6 MB Notification: Performance of prepare preOptimizeDAE: time 4.491e-05/8.462, allocations: 12.03 kB / 3.968 GB, free: 316 kB / 456.6 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1543/8.617, allocations: 1.147 MB / 3.969 GB, free: 85.88 MB / 456.6 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006585/8.623, allocations: 2.214 MB / 3.971 GB, free: 85.53 MB / 456.6 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002873/8.624, allocations: 206.8 kB / 3.971 GB, free: 85.46 MB / 456.6 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007228/8.624, allocations: 141.1 kB / 3.971 GB, free: 85.46 MB / 456.6 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007375/8.632, allocations: 3.527 MB / 3.975 GB, free: 85.45 MB / 456.6 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007878/8.64, allocations: 3.719 MB / 3.978 GB, free: 84.86 MB / 456.6 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.004e-05/8.64, allocations: 11.59 kB / 3.978 GB, free: 84.86 MB / 456.6 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003959/8.64, allocations: 7.406 kB / 3.978 GB, free: 84.86 MB / 456.6 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002175/8.641, allocations: 235.1 kB / 3.979 GB, free: 84.85 MB / 456.6 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02822/8.669, allocations: 19.89 MB / 3.998 GB, free: 73.35 MB / 456.6 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002752/8.672, allocations: 1.526 MB / 3.999 GB, free: 73.32 MB / 456.6 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002518/8.674, allocations: 1.495 MB / 4.001 GB, free: 73.31 MB / 456.6 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03668/8.711, allocations: 17.08 MB / 4.018 GB, free: 62.77 MB / 456.6 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.638e-05/8.711, allocations: 52.62 kB / 4.018 GB, free: 62.73 MB / 456.6 MB Notification: Performance of pre-optimization done (n=194): time 8.59e-06/8.711, allocations: 3.219 kB / 4.018 GB, free: 62.73 MB / 456.6 MB Notification: Performance of matching and sorting (n=244): time 0.1759/8.887, allocations: 19.22 MB / 4.036 GB, free: 61.12 MB / 456.6 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.532e-05/8.888, allocations: 128 kB / 4.037 GB, free: 61 MB / 456.6 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002087/8.89, allocations: 1.218 MB / 4.038 GB, free: 60.83 MB / 456.6 MB Notification: Performance of collectPreVariables (initialization): time 0.0005505/8.89, allocations: 29.61 kB / 4.038 GB, free: 60.8 MB / 456.6 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004715/8.891, allocations: 0.9118 MB / 4.039 GB, free: 60.4 MB / 456.6 MB Notification: Performance of collectInitialBindings (initialization): time 0.000985/8.892, allocations: 0.792 MB / 4.039 GB, free: 59.98 MB / 456.6 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000307/8.892, allocations: 0 / 4.039 GB, free: 59.98 MB / 456.6 MB Notification: Performance of setup shared object (initialization): time 0.0001651/8.893, allocations: 411.5 kB / 4.04 GB, free: 59.68 MB / 456.6 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003356/8.896, allocations: 2.037 MB / 4.042 GB, free: 59.67 MB / 456.6 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003881/8.9, allocations: 2.537 MB / 4.044 GB, free: 59.15 MB / 456.6 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01978/8.92, allocations: 4.569 MB / 4.049 GB, free: 59.11 MB / 456.6 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.584e-05/8.92, allocations: 3.156 kB / 4.049 GB, free: 59.11 MB / 456.6 MB Notification: Performance of matching and sorting (n=339) (initialization): time 0.03926/8.959, allocations: 10.45 MB / 4.059 GB, free: 58.82 MB / 456.6 MB Notification: Performance of prepare postOptimizeDAE: time 0.001034/8.96, allocations: 5.42 MB / 4.064 GB, free: 53.29 MB / 456.6 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.009e-05/8.961, allocations: 18.59 kB / 4.064 GB, free: 53.29 MB / 456.6 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01525/8.976, allocations: 4.454 MB / 4.069 GB, free: 53.23 MB / 456.6 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00198/8.978, allocations: 369.2 kB / 4.069 GB, free: 53.23 MB / 456.6 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01773/8.996, allocations: 7.956 MB / 4.077 GB, free: 52.1 MB / 456.6 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00551/9.001, allocations: 371.3 kB / 4.077 GB, free: 52.09 MB / 456.6 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006472/9.002, allocations: 155.5 kB / 4.077 GB, free: 52.09 MB / 456.6 MB Notification: Performance of prepare postOptimizeDAE: time 1.32e-05/9.002, allocations: 9.438 kB / 4.077 GB, free: 52.09 MB / 456.6 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02331/9.026, allocations: 6.889 MB / 4.084 GB, free: 52 MB / 456.6 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.583e-05/9.026, allocations: 15.56 kB / 4.084 GB, free: 52 MB / 456.6 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01017/9.036, allocations: 2.484 MB / 4.086 GB, free: 51.96 MB / 456.6 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002605/9.039, allocations: 482.5 kB / 4.087 GB, free: 51.96 MB / 456.6 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007852/9.047, allocations: 4.272 MB / 4.091 GB, free: 51.37 MB / 456.6 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004294/9.051, allocations: 342 kB / 4.091 GB, free: 51.36 MB / 456.6 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004189/9.052, allocations: 139.4 kB / 4.092 GB, free: 51.36 MB / 456.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.0004091/9.052, allocations: 85.48 kB / 4.092 GB, free: 51.28 MB / 456.6 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003001/9.055, allocations: 0.6764 MB / 4.092 GB, free: 51.18 MB / 456.6 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02198/9.077, allocations: 11.72 MB / 4.104 GB, free: 48.29 MB / 456.6 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01622/9.093, allocations: 10.18 MB / 4.114 GB, free: 44.36 MB / 456.6 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.851e-05/9.094, allocations: 2.438 kB / 4.114 GB, free: 44.36 MB / 456.6 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01626/9.11, allocations: 10.32 MB / 4.124 GB, free: 40.13 MB / 456.6 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03226/9.142, allocations: 18.18 MB / 4.141 GB, free: 26.63 MB / 456.6 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-05/9.142, allocations: 0 / 4.141 GB, free: 26.63 MB / 456.6 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002558/9.145, allocations: 418.1 kB / 4.142 GB, free: 26.31 MB / 456.6 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009327/9.154, allocations: 4.224 MB / 4.146 GB, free: 23.02 MB / 456.6 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000544/9.155, allocations: 70.45 kB / 4.146 GB, free: 22.97 MB / 456.6 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01403/9.169, allocations: 10.71 MB / 4.157 GB, free: 13.04 MB / 456.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.00557/9.175, allocations: 2.916 MB / 4.159 GB, free: 10.61 MB / 456.6 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.1783/9.353, allocations: 13.87 MB / 4.173 GB, free: 79.62 MB / 456.6 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002392/9.356, allocations: 0.8541 MB / 4.174 GB, free: 79.52 MB / 456.6 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006263/9.356, allocations: 17.12 kB / 4.174 GB, free: 79.52 MB / 456.6 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00368/9.36, allocations: 298.8 kB / 4.174 GB, free: 79.52 MB / 456.6 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005781/9.361, allocations: 224.6 kB / 4.174 GB, free: 79.52 MB / 456.6 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003467/9.361, allocations: 116.3 kB / 4.174 GB, free: 79.52 MB / 456.6 MB Notification: Performance of sort global known variables: time 0.001467/9.363, allocations: 0.8762 MB / 4.175 GB, free: 79.41 MB / 456.6 MB Notification: Performance of remove unused functions: time 0.01167/9.374, allocations: 3.742 MB / 4.179 GB, free: 79.41 MB / 456.6 MB Notification: Performance of Backend phase and start with SimCode phase: time 0.01392/9.388, allocations: 3.862 MB / 4.183 GB, free: 79.25 MB / 456.6 MB Notification: Performance of simCode: created initialization part: time 0.01776/9.406, allocations: 9.27 MB / 4.192 GB, free: 79.07 MB / 456.6 MB Notification: Performance of simCode: created event and clocks part: time 8.102e-06/9.406, allocations: 3.844 kB / 4.192 GB, free: 79.07 MB / 456.6 MB Notification: Performance of simCode: created simulation system equations: time 0.009199/9.416, allocations: 5.049 MB / 4.197 GB, free: 79.02 MB / 456.6 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005211/9.421, allocations: 0.8839 MB / 4.198 GB, free: 79.01 MB / 456.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]