Not sleeping makes me tired at work all day

I haven’t been sleeping very well at night for the last 2 weeks.

My girlfriend broke up with me and moved out of our apartment.

Ever since she left, the bed has felt very lonely and uncomfortable. I toss and turn all night long. The lack of sleep is really affecting my job during the day. I have to be alert, because I work on HVAC machinery all day. Some jobs are more difficult than others and they require concentration and a steady hand. I almost fell asleep yesterday when I went to work on a boiler repair. I was the only person in the basement where the boiler is located. It was very warm and cozy in the boiler room. I sat down on the floor for a minute to think about the problem and I fell asleep for 25 minutes. I only woke up because there was a loud bang on the roof. I’m very lucky that the owner of the business didn’t find me fast asleep on the floor. The lady probably would have called my boss to complain and I might have been fired. That 25 minute nap was the best sleep I’ve had in two weeks though. I’m so tired and depressed and most of my friends are happy that my girlfriend and I broke up. They didn’t like the way she was bossy with me. They thought she was the reason why I never want to go hang out at the bar. I can’t talk to anyone about the way that I am feeling, but I think it might help me stop feeling so upset.