|I'm no doctor, but it sounds like the problems you're having could be caused by not getting enough sleep. I know when I was taking AP Biology and not sleeping/eating enough because of studying I had a lot of the same problems that you do (losing consciousness [once in class xD], depression, anxiety). You might need to take some breaks from your work as well, and there's a homeopathic supplement I've been taking called Nerve Tonic that might help with the anxiety... it seems to work pretty well, and it's really easy to take because it dissolves in your mouth.
This disturbs me a little:
"It may be that i've cut off relations or lost relations with pretty much every person i've known in the last year. I don't talk to any friends I had in high school. I don't talk to the only childhood friends I was still friends with anymore. I haven't heard from anyone I spent time with my entire first year of college this year. And i've cut off relations with any friends that I never got any reciprocity from..Which is basically all of them. Maybe that's what's causing the derealization."
For that, I think talk therapy might help you A LOT. Having someone, anyone to talk to, even a therapist, is worthwhile when you're not talking to anyone. Have you tried talking to online friends over Skype or anything like that? Not being well socialized can make you feel very depressed...
... I don't know. It sounds like you've really withdrawn from the world, and that's not a good thing for your health. You NEED to get involved with other people. It's just human nature. I know this from experience, because whenever I get too shy to talk to people for a long time(or convince myself that I don't want to talk to anyone) I get really crazy. like f**king voices in my head, "Kill...kill...kill...", crazy.
I think the best thing for you would be to get out of your house and join a group of people-- a chess club, a sports team, college, an entrepreneur's society, a religion, a Luciferian cult... whatever will get you interacting with people in person. I think it will contribute a lot to your happiness.
*** sorry if I misinterpreted the above posted, I wasn't sure if you have been having social contact or not, because in the first post you mentioned your friend and then in the second post you say you've cut off most of your ties... ? ah well. :/