The Upper West Side nanny accused of brutally murdering two children in her care cried for the first time during her trial as she heard testimony from a psychiatrist who attended to her twice in the weeks following the bloody incident.

Yoselyn Ortega turned her head away, wiping tears from her eyes as Dr. Marc Dubin — the first psychiatrist to evaluate Ortega after the horrific stabbing murders of Lucia, 6, and Leo Krim, 2 — mentioned Ortega’s family during his testimony in Manhattan Supreme Court.

The 55-year-old nanny — who had previously remained stoic throughout her trial — teared up as Dubin read from his Nov. 25, 2012, evaluation form. “She reports she has been sad most of the day crying, upset that she has been unable to see her family, listing her son, brother and sister and father and mother,” Dubin read.

Dubin’s report went on to say Ortega says she “hears voices throughout the day, saying ‘we are going to get you’ and worried they are going to cut her throat. She says almost every night she sees the people uttering these statements running around her room.”

At the time, Dubin diagnosed Ortega with major depression with psychotic features and told the jury he didn’t believe that she was faking the symptoms.

The jury also saw reports from various doctors who treated Ortega during her monthlong stay at New York Presbyterian Weill Cornell Medical Center following the Oct. 25, 2012, slayings