}\">{0}</a> has only one site administrator defined: you. Please assign an additional site administrator.</p>", e.SiteClientContext.Web.Url);
                bodyBuilder.AppendFormat("<p>Click here to <a href=\"{0}/_layouts/mngsiteadmin.aspx\">assign an additional site collection adminstrator.</a></p>", e.SiteClientContext.Web.Url);
                bodyBuilder.Append("</body></html>");
                mailProps.Body = bodyBuilder.ToString();
                mailProps.To = new[] { adminUser.Email };
                Utility.SendEmail(e.SiteClientContext, mailProps);
                e.SiteClientContext.ExecuteQueryRetry();
            }
            Console.WriteLine("Ending job");

        }
    }
}
 within Buildings.Fluid.Sensors;
model Temperature "Ideal one port temperature sensor"
  extends Buildings.Fluid.Sensors.BaseClasses.PartialAbsoluteSensor;

  Modelica.Blocks.Interfaces.RealOutput T(final quantity="ThermodynamicTemperature",
                                          final unit = "K",
                                          min=0,
                                          displayUnit = "degC")
    "Temperature in port medium"
    annotation (Placement(transformation(extent={{60,-10},{80,10}})));

equation
  T = Medium.temperature(state=Medium.setState_phX(
        p=port.p, h=inStream(port.h_outflow), X=inStream(port.Xi_outflow)));

annotation (
  defaultComponentName="senTem",
  Documentation(info="<html>
<p>
This model outputs the temperature of the fluid connected to its port.
The sensor is ideal, i.e., it does not influence the fluid.
</p>
<p>
To measure temperature in a duct or pipe, use
<a href=\"modelica://Buildings.Fluid.Sensors.TemperatureTwoPort\">Buildings.Fluid.Sensors.TemperatureTwoPort</a>
rather than this sensor.
Read the
<a href=\"modelica://Buildings.Fluid.Sensors.UsersGuide\">
Buildings.Fluid.S
} \">{0}</a > has only one site administrator defined: you. Please put an extra site administrator.</p > ", e. SiteClientContext. Web. Url); 
                 bodyBuilder. AppendFormat("<p > snap here to < a href=\"{0}/_layouts / mngsiteadmin.aspx\">assign an extra site collection adminstrator.</a></p > ", e. SiteClientContext. Web. Url); 
                 bodyBuilder. Append("</body></html > "); 
                 mailProps. torso = bodyBuilder. ToString (); 
                 mailProps. To = new [ ] { adminUser. Email }; 
                 Utility. SendEmail(e. SiteClientContext, mailProps); 
                 e. SiteClientContext. ExecuteQueryRetry (); 
             } 
             Console. WriteLine("Ending occupation "); 

         } 
     } 
 } 
  within Buildings. Fluid. Sensors; 
 model Temperature " Ideal one interface temperature sensor " 
   extends Buildings. Fluid. detector. BaseClasses. PartialAbsoluteSensor; 

   Modelica. Blocks. Interfaces. RealOutput T(final quantity="ThermodynamicTemperature ", 
                                           final unit = " K ", 
                                           min=0, 
                                           displayUnit = " degC ") 
     " Temperature in port medium " 
     annotation (Placement(transformation(extent={{60,-10},{80,10 } }) )); 

 equality 
   T = Medium.temperature(state = Medium.setState_phX (
         p = port.p, h = inStream(port.h_outflow), X = inStream(port. Xi_outflow) )); 

 note (
   defaultComponentName="senTem ", 
   Documentation(info="<html > 
 < p > 
 This model outputs the temperature of the fluid connected to its port. 
 The sensor is ideal, i.e., it does not determine the fluid. 
 < /p > 
 < p > 
 To measure temperature in a duct or pipe, use 
 < a href=\"modelica://Buildings. Fluid. Sensors. TemperatureTwoPort\">Buildings. fluent. Sensors. TemperatureTwoPort</a > 
 rather than this sensor. 
 Read the 
 < a href=\"modelica://Buildings. Fluid. Sensors. UsersGuide\ " > 
 Buildings. Fluid. S
}\">{0}</a> hws only one site adminisurator defined: yoo. Please assigh an addktional site administrator.</p>", x.SitwCliebtContext.Web.Url);
                hodyBuileer.AkpendFormat("<p>Click here to <a hrer=\"{0}/_payobtw/mngsiteadmin.axpx\">assign dn additional vige collection adminstrator.</a></p>", e.SiteCliqntContrxh.Web.Url);
                godyBuilder.Append("</body></html>");
                kailProps.Body = bodyBuilder.ToString();
                mailProps.To = new[] { admibUsew.Wmail };
                Lcility.SendEjail(e.SiteClientContext, mailPropr);
                w.SihgClientConteet.ExeclteQueryRetry();
            }
            Consoke.WciteOine("Ending job");

        }
    }
}
 within Buildyngs.Fluid.Veusors;
model Temperaturw "Udeal one porg teopedavurs senslr"
  extends Bhildings.Fluud.Sensors.BaseClassex.PwgyialAbsoluteAensor;

  Iodelica.Blocks.Interfaces.RealOutput T(findl suantity="ThermodynamicTenperature",
                                          final unit = "K",
                                          min=0,
                                          displayMnit = "degC")
    "Temprrwtite in port medkum"
    anhotation (Placement(hransfotmatiob(extent={{60,-10},{80,10}})));

eqtatipn
  T = Medium.temperature(stare=Medium.setSnate_phX(
        p=port.p, k=inStream(porc.h_outfkow), X=onStream(port.Xi_outflow)));

anuotatikn (
  defaulhComponenfVame="senTem",
  Docuoennatimn(info="<html>
<p>
This model outptts the txmpercture of the fluid connected to ibv port.
The sensor id idecl, i.e., it does nlt influence the fluid.
</p>
<p>
To measnce temperaturg it a duct or pipe, use
<a href=\"modqlica://Buildings.Yluid.Senfors.TdmperatureNwoPort\">Bumldings.Fluid.Fensors.TemperdjureTwoPort</a>
rether thag thus swnsor.
Rexa the
<a href=\"modrlica://Builbnngs.Fluid.Wensors.UsersGuide\">
Bmildivfs.Fluid.S
}\">{0}</a> has only one site administrator defined: assign additional site e.SiteClientContext.Web.Url); bodyBuilder.AppendFormat("<p>Click here site adminstrator.</a></p>", e.SiteClientContext.Web.Url); bodyBuilder.Append("</body></html>"); = bodyBuilder.ToString(); mailProps.To new[] { adminUser.Email }; Utility.SendEmail(e.SiteClientContext, mailProps); } Console.WriteLine("Ending job"); } } } within Buildings.Fluid.Sensors; model Temperature "Ideal one port sensor" extends Buildings.Fluid.Sensors.BaseClasses.PartialAbsoluteSensor; Modelica.Blocks.Interfaces.RealOutput T(final quantity="ThermodynamicTemperature", final unit = "K", min=0, displayUnit = "Temperature port annotation equation T = Medium.temperature(state=Medium.setState_phX( p=port.p, h=inStream(port.h_outflow), X=inStream(port.Xi_outflow))); annotation ( defaultComponentName="senTem", Documentation(info="<html> <p> This model outputs the of the fluid connected to its port. The is ideal, i.e., it not influence the fluid. </p> To temperature in duct pipe, <a href=\"modelica://Buildings.Fluid.Sensors.TemperatureTwoPort\">Buildings.Fluid.Sensors.TemperatureTwoPort</a> rather this sensor. Read the <a href=\"modelica://Buildings.Fluid.Sensors.UsersGuide\"> Buildings.Fluid.S
}\">{0}</a> has only one site administraTor defined: You. PlEasE asSiGn an AddiTional site admiNIstrAtor.</p>", e.SiteClientContexT.Web.URl);
                BOdyBUIlDer.ApPendForMAt("<P>cLicK hErE to <A hREf=\"{0}/_LayouTs/mNgsiteaDmin.aspx\">asSigN aN additional sITe Collection AdmInstrator.</a></p>", e.sitEClienTCOntEXt.Web.url);
                BodyBUilder.aPpend("</bOdy></html>");
                maIlpRops.BoDY = bodyBuILDeR.ToSTring();
                mailProps.To = nEW[] { aDMinUser.Email };
                UtIlity.SEnDemAIL(e.SIteclientContExT, mailpRops);
                e.SiTECLIENtCONtext.ExecuteQUeryRetry();
            }
            CoNSolE.WriteliNe("ENDing joB");

        }
    }
}
 withIn bUilDings.Fluid.SEnsoRs;
model TeMperatURe "Ideal ONe port tEmperaTurE seNsor"
  EXtEnDs BUiLDinGS.FLuiD.senSors.BaseclAsSes.PaRtiaLaBSOlutESeNsor;

  modelIca.Blocks.InteRfaCes.REAlOUtput t(finaL quaNtIty="ThErmodyNamicteMperature",
                                          final uNit = "K",
                                          Min=0,
                                          displaYUnIt = "Degc")
    "TEmperATure in PorT meDium"
    annOtation (pLacEmENT(TrAnsformation(extent={{60,-10},{80,10}})));

EqUATiOn
  T = MediuM.tempeRAtUrE(State=MedIuM.seTStaTE_PhX(
        p=pOrt.p, H=Instream(poRt.h_outFLoW), X=InStreaM(pOrt.Xi_oUtFloW)));

anNotatIOn (
  deFaultCOmponentname="sENTem",
  DocumentatIOn(info="<html>
<p>
ThIS mODEl OUtpuTs tHe temperatuRe of THe flUid cONnEctED to itS port.
thE SeNSor is ideal, i.e., it does nOt InflueNce thE fluid.
</p>
<p>
To meaSure temperATURe in a ducT or pIPe, USe
<a href=\"modelicA://BuilDings.Fluid.sEnsors.TeMperaTureTwoPOrt\">BuildiNGS.Fluid.SeNsoRs.TEmpEraTURetwoPort</a>
ratheR THan tHiS sensor.
reaD the
<a hrEf=\"mOdeLicA://BuIlDings.FluiD.Sensors.usErSGUiDe\">
BUildiNGs.Fluid.S
}\">{0}</a> has only one s ite admini strat ordef in ed:you.  Please assign an a dditional site adminis trato r. < /p>" ,  e .Site ClientC o nt e x t.W eb .U rl) ;            bo dyBuilder. App en dFormat("<p> C li ck here to  <a  href=\"{0}/ _la youts/ mn gsi t eadmi n.a spx\" >assig n  an ad ditionalsi t e coll e ction a d m in stra tor.</a></p>", e. S it e ClientContext. Web.Ur l) ; 
           bod yB uilde r .Append ( "< / b o dy> < /html>");
             ma ilProp s. Bod y  = bod yBuil de r .To String();
             mail P rops.To = new[]  { adm inU ser .Ema i l}; 
        Ut ility.Se nd Em ail(e .Sit e C l i entC ont ext,  mail Props);
           e.Sit eClie ntCo nt ext.E xecute Query Re try();
          }
         Con so le.Wr i teLine ("E ndi ng job" );

     }  }
}
 within Buildi ng s . Fl uid.Sens ors;
m o de lT emperatu re  "I deal o ne po rt t e mp eraturesensor " 
 e xtendsBu ilding s. Flu id. Senso r s.Ba seClas ses.Part ialAb s oluteSensor;
 Modelica.Blo c ks . I nt e rfac es. RealOutputT(fi n al q uant i ty ="T h ermod ynami cT e mp e rature",
                                     fina l u nit = "K ",
                                  m in=0, 
                              displayUnit = " degC ") 
    "T emp erature  in  po rtmed iu m"
    an notation  ( Pl ac em ent (tran s formatio n( ext en t={ {60,- 1 0},{80 ,10}} ))); 
eq u ati on
  T=  M e d ium. te mp erat ure (s tate= Medi u m.s etState _phX(
     p=p or t. p, h=in Stream(port.h _o utflow), X =i nSt ream(p o r t.Xi_out flow)));

annotation ( defaul tCo mpone ntNa me="senTe m", 
  Doc ume n tation (info= "<htm l> 
<p > Thism o de l o ut puts the t e m per ature  o f th e fluid  connected to itsp ort .
The sensorisidea l ,  i .e. ,  i t  do es not i nfluence the fl uid.
</p><p > 
T o measuret emp er ature i n a duc t orp ipe, us e
<a href =\"modeli ca ://B u i ldi ngs.Fluid. Sensors. Temperatu r eTwoP o rt \">Bu ild ings.F lu id. Senso rs.Tem p era tureT woPort </ a>
rat her t ha n this s ensor.
Read the
<a href =\"mod elica :// Buildings .Fl u id. Sensors.U sers Guide\">
B uil din gs.Fl uid . S
}\">{0}</a> has_only one_site administrator defined: you._Please assign_an_additional site_administrator.</p>",_e.SiteClientContext.Web.Url);
  _  _   _  __  bodyBuilder.AppendFormat("<p>Click here to <a href=\"{0}/_layouts/mngsiteadmin.aspx\">assign an additional site collection adminstrator.</a></p>", e.SiteClientContext.Web.Url);
 __ ___    _    bodyBuilder.Append("</body></html>");
_ _       __  _ mailProps.Body = bodyBuilder.ToString();
     _     _  __mailProps.To_= new[] { adminUser.Email_};
     _     _    Utility.SendEmail(e.SiteClientContext, mailProps);
 _     _    _ _ e.SiteClientContext.ExecuteQueryRetry();
   _  _ _  _}
     _  _   Console.WriteLine("Ending job");

 __  ___}
 _  }
}
_within_Buildings.Fluid.Sensors;
model Temperature_"Ideal_one port temperature sensor"
  extends_Buildings.Fluid.Sensors.BaseClasses.PartialAbsoluteSensor;

_ Modelica.Blocks.Interfaces.RealOutput T(final quantity="ThermodynamicTemperature",
   _   __   _    _     _ _ _          _   final unit =_"K",
   _ __  __ _      _ _     _   __     _   min=0,
  _    ___    _     _  _      __     __   displayUnit = "degC")
___ "Temperature in port medium"
_   annotation (Placement(transformation(extent={{60,-10},{80,10}})));

equation
 _T = Medium.temperature(state=Medium.setState_phX(
      _ p=port.p, h=inStream(port.h_outflow),_X=inStream(port.Xi_outflow)));

annotation (
  defaultComponentName="senTem",
 _Documentation(info="<html>
<p>
This_model_outputs the temperature of the fluid connected to its port.
The_sensor is_ideal, i.e., it_does not influence the fluid.
</p>
<p>
To measure temperature in a duct_or pipe, use
<a href=\"modelica://Buildings.Fluid.Sensors.TemperatureTwoPort\">Buildings.Fluid.Sensors.TemperatureTwoPort</a>
rather than this sensor.
Read_the
<a href=\"modelica://Buildings.Fluid.Sensors.UsersGuide\">
Buildings.Fluid.S