Notification: Performance of loadModel(Modelica): time 1.511/1.511, allocations: 194.5 MB / 200.4 MB, free: 5.16 MB / 168.6 MB Notification: Performance of FrontEnd - loaded program: time 0.1579/1.669, allocations: 46.31 MB / 246.7 MB, free: 4.996 MB / 200.6 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05998/1.729, allocations: 44.36 MB / 291.1 MB, free: 9.582 MB / 248.6 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.536/6.265, allocations: 2.66 GB / 2.944 GB, free: 21.08 MB / 408.6 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001818/6.265, allocations: 78.88 kB / 2.944 GB, free: 21 MB / 408.6 MB Notification: Performance of Generate backend data structure: time 4.222/10.49, allocations: 1.023 GB / 3.967 GB, free: 27.69 MB / 456.6 MB Notification: Performance of prepare preOptimizeDAE: time 4.854e-05/10.49, allocations: 7.656 kB / 3.967 GB, free: 27.69 MB / 456.6 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01307/10.5, allocations: 1.149 MB / 3.968 GB, free: 27.52 MB / 456.6 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007663/10.51, allocations: 2.216 MB / 3.97 GB, free: 27.04 MB / 456.6 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003433/10.51, allocations: 201.3 kB / 3.971 GB, free: 26.97 MB / 456.6 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009481/10.51, allocations: 147.2 kB / 3.971 GB, free: 26.96 MB / 456.6 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008579/10.52, allocations: 3.528 MB / 3.974 GB, free: 26.95 MB / 456.6 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009416/10.53, allocations: 3.717 MB / 3.978 GB, free: 26.36 MB / 456.6 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-05/10.53, allocations: 14.66 kB / 3.978 GB, free: 26.36 MB / 456.6 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004404/10.53, allocations: 3.312 kB / 3.978 GB, free: 26.36 MB / 456.6 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002439/10.53, allocations: 236.7 kB / 3.978 GB, free: 26.35 MB / 456.6 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03375/10.56, allocations: 19.86 MB / 3.997 GB, free: 14.67 MB / 456.6 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003211/10.57, allocations: 1.527 MB / 3.999 GB, free: 14.64 MB / 456.6 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002992/10.57, allocations: 1.494 MB / 4 GB, free: 14.63 MB / 456.6 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04355/10.61, allocations: 17.07 MB / 4.017 GB, free: 20.08 MB / 472.6 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.456e-05/10.61, allocations: 53.97 kB / 4.017 GB, free: 20.04 MB / 472.6 MB Notification: Performance of pre-optimization done (n=194): time 9.219e-06/10.61, allocations: 0 / 4.017 GB, free: 20.04 MB / 472.6 MB Notification: Performance of matching and sorting (n=244): time 0.2103/10.82, allocations: 19.26 MB / 4.036 GB, free: 18.25 MB / 472.6 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.608e-05/10.82, allocations: 128.7 kB / 4.036 GB, free: 18.13 MB / 472.6 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002418/10.83, allocations: 1.214 MB / 4.037 GB, free: 17.95 MB / 472.6 MB Notification: Performance of collectPreVariables (initialization): time 0.0006092/10.83, allocations: 29.61 kB / 4.037 GB, free: 17.92 MB / 472.6 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004527/10.83, allocations: 0.866 MB / 4.038 GB, free: 17.31 MB / 472.6 MB Notification: Performance of collectInitialBindings (initialization): time 0.001247/10.83, allocations: 0.7962 MB / 4.039 GB, free: 16.78 MB / 472.6 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005055/10.83, allocations: 3.406 kB / 4.039 GB, free: 16.78 MB / 472.6 MB Notification: Performance of setup shared object (initialization): time 0.000369/10.83, allocations: 420.5 kB / 4.039 GB, free: 16.46 MB / 472.6 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004238/10.83, allocations: 2.037 MB / 4.041 GB, free: 16.45 MB / 472.6 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004571/10.84, allocations: 2.536 MB / 4.044 GB, free: 15.93 MB / 472.6 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0221/10.86, allocations: 4.568 MB / 4.048 GB, free: 15.89 MB / 472.6 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.668e-05/10.86, allocations: 3.469 kB / 4.048 GB, free: 15.89 MB / 472.6 MB Notification: Performance of matching and sorting (n=339) (initialization): time 0.04575/10.91, allocations: 10.33 MB / 4.058 GB, free: 15.55 MB / 472.6 MB Notification: Performance of prepare postOptimizeDAE: time 0.001297/10.91, allocations: 5.307 MB / 4.063 GB, free: 9.961 MB / 472.6 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.531e-05/10.91, allocations: 14.47 kB / 4.063 GB, free: 9.961 MB / 472.6 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01642/10.92, allocations: 4.229 MB / 4.068 GB, free: 9.84 MB / 472.6 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002292/10.93, allocations: 371.7 kB / 4.068 GB, free: 9.836 MB / 472.6 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02047/10.95, allocations: 7.95 MB / 4.076 GB, free: 8.695 MB / 472.6 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00507/10.95, allocations: 368.8 kB / 4.076 GB, free: 8.652 MB / 472.6 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008675/10.95, allocations: 160.8 kB / 4.076 GB, free: 8.648 MB / 472.6 MB Notification: Performance of prepare postOptimizeDAE: time 1.39e-05/10.95, allocations: 3.5 kB / 4.076 GB, free: 8.648 MB / 472.6 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02908/10.98, allocations: 6.89 MB / 4.083 GB, free: 7.414 MB / 472.6 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.055e-05/10.98, allocations: 15.05 kB / 4.083 GB, free: 7.402 MB / 472.6 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0111/10.99, allocations: 2.355 MB / 4.085 GB, free: 5.922 MB / 472.6 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003088/11, allocations: 486.7 kB / 4.086 GB, free: 5.566 MB / 472.6 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009174/11.01, allocations: 4.262 MB / 4.09 GB, free: 3.062 MB / 472.6 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00443/11.01, allocations: 340.9 kB / 4.09 GB, free: 2.824 MB / 472.6 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000731/11.01, allocations: 141.7 kB / 4.09 GB, free: 2.734 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.000479/11.01, allocations: 4 kB / 4.09 GB, free: 2.73 MB / 472.6 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003761/11.02, allocations: 0.6839 MB / 4.091 GB, free: 2.297 MB / 472.6 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2238/11.24, allocations: 11.74 MB / 4.103 GB, free: 67.11 MB / 472.6 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01918/11.26, allocations: 10.18 MB / 4.112 GB, free: 66.61 MB / 472.6 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.095e-05/11.26, allocations: 3.906 kB / 4.112 GB, free: 66.61 MB / 472.6 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0196/11.28, allocations: 10.31 MB / 4.123 GB, free: 65.79 MB / 472.6 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04066/11.32, allocations: 18.18 MB / 4.14 GB, free: 64.54 MB / 472.6 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.66e-05/11.32, allocations: 3.969 kB / 4.14 GB, free: 64.54 MB / 472.6 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003058/11.32, allocations: 419.7 kB / 4.141 GB, free: 64.54 MB / 472.6 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01173/11.33, allocations: 4.232 MB / 4.145 GB, free: 64.34 MB / 472.6 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006523/11.34, allocations: 72.17 kB / 4.145 GB, free: 64.34 MB / 472.6 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01702/11.35, allocations: 10.71 MB / 4.155 GB, free: 59.66 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.006575/11.36, allocations: 2.914 MB / 4.158 GB, free: 59.07 MB / 472.6 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0285/11.39, allocations: 13.41 MB / 4.171 GB, free: 58.43 MB / 472.6 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.04775/11.44, allocations: 25.75 MB / 4.196 GB, free: 55.65 MB / 472.6 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002686/11.44, allocations: 0.8506 MB / 4.197 GB, free: 55.2 MB / 472.6 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00109/11.44, allocations: 14.89 kB / 4.197 GB, free: 55.19 MB / 472.6 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004697/11.44, allocations: 302.5 kB / 4.198 GB, free: 55.18 MB / 472.6 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008934/11.45, allocations: 226.3 kB / 4.198 GB, free: 55.15 MB / 472.6 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005104/11.45, allocations: 116.8 kB / 4.198 GB, free: 55.13 MB / 472.6 MB Notification: Performance of sort global known variables: time 0.001757/11.45, allocations: 0.8728 MB / 4.199 GB, free: 54.76 MB / 472.6 MB Notification: Performance of remove unused functions: time 0.01754/11.47, allocations: 4.346 MB / 4.203 GB, free: 54.02 MB / 472.6 MB Notification: Performance of Backend phase and start with SimCode phase: time 0.01572/11.48, allocations: 3.871 MB / 4.207 GB, free: 53.67 MB / 472.6 MB Notification: Performance of simCode: created initialization part: time 0.02149/11.5, allocations: 9.194 MB / 4.216 GB, free: 50.56 MB / 472.6 MB Notification: Performance of simCode: created event and clocks part: time 1.034e-05/11.5, allocations: 0 / 4.216 GB, free: 50.56 MB / 472.6 MB Notification: Performance of simCode: created simulation system equations: time 0.01114/11.51, allocations: 5.016 MB / 4.221 GB, free: 48.54 MB / 472.6 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006845/11.52, allocations: 0.8895 MB / 4.222 GB, free: 48.39 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] Error: Internal error SimCode: The model Modelica.Fluid.Examples.HeatingSystem could not be translated to FMU