Modafinil made me sleep.. deep sleep

So last night around 12:30am I decided I was gonna stay up and do work so I took 100mg of modafinil but after ah hour or so I started to feel very tired, I don’t remember falling asleep but I had a very very deep sleep, I got a good 10 hours of sleep, why could this be?

Edit: I took 50mg from the rest of the same tablet today and I feel amazing. I’ve got so much done. So what I’ve gathered is my sleep schedule is so fucked up and I haven’t actually sleep so my body was exhausted