If this is allowed to go much longer you are going to have some really huge problems. School refusal can be a really difficult problem to solve, regardless of how the child expresses their anger/anxiety/etc... Call the school and speak to both the counsellor AND the principal and the sp ed teacher and reg teacher. You need to figure out why he is refusing. Trouble with the work? With something in his classes? With some teacher or student or group? With unstructured time - recess, bus rides, lunch, etc?? IS there an option for him to spend time in the sp ed or resource room if he is having troubles with a specific time, or to get more help if it is the work? You also need to see what truancy enforcement entails. Some schools will send a resource officer to your home (here is it a police officer in a police car who is assigned to your school for the upper grades and one officer assigned to all 6 elem schools) to get the child, in extreme cases they will get the kid out bed and dressed if he won't do it for you.
You also need to set some rules for what he can do at night when he is up. does he have a tv, computer, game system (even handheld) in his bedroom? Does he stay in his room or come out to the main areas of the house? Here in that situation we insisted that our kids stay in their rooms with only a low light on. they could read or listen to soothing music or an audiobook on low volume. No popular music (they had a choice of a mozart or beethoven or vivaldi cd) or anything rowdy. We found that few audiobooks are rowdy. At some points I insisted they do a 30 min guided meditation from a selection we have (you can find them for cheap online or even for free) before they could read or do anything else. If they got up to use the bathroom or whatever they had to restart it at the beginning. Many times that put them back to sleep. My general goal was to soothe or bore them back to sleep.
If he is watching tv or doing anything "fun" then he is getting a payoff for being awake then. When he is "sick" does he get to stay home and do what he wants? Or do you have rules? Wiz went through a lot of school refusal one year. He would have panic attacks and often he vomitted. then he had to be at home for 24 hrs per school policy - no exceptions. But they also told us to bring him anyway and he could get sick in class with a garbage can by his desk. I called the district nurse to verify and she freaked - NO WAY was that appropriate regardless of why he got sick (I agreed - the principal and resource officer wanted to do the barfing in class routine).
I made life at home so boring and miserable that he didn't want to be at home. If he was awake he had to do school stuff. He could NOT eat what he wanted. Upset stomachs get weak tea, ginger ale, toast, chicken broth, crackers or applesauce - all in fairly small amounts and NOT all you want to eat. If that was why he was home, that was ALL he could have until dinner. IF he was feeling okay he could have whatever we fixed for dinner. If his stomach hurt the next day then he stayed on the upset tummy diet for dinner the second day and until he went to school for the day with-o coming home sick. He could write essays, work on school assignments, watch a selection of educational videos (history of the US, science, etc... NOT most things on reg tv except on our channel for adults working on GED programs - and those lessons are incredibly boring). It is pretty easy to find documentaries and educational videos online (try hulu but screen the ones he is allowed to watch) and in used video stores. Libraries often have a good selection also.
By making him either sleep or doing something educational and NOT stimulating, my kids figured out that it was a lot better to go to school. If I caught them doing something like playing video games they lost them for a LONG time, and often lost access to ALL electronics. That was NOT fun, esp the first 2-3 days, but I survived them, lol. in my opinion it is what you need to resort to.
If you get to school and he won't get out, turn the car off. Get someone from the building to come out and get him. He may be so embarrassed by this that he won't give them a fuss. If he does fuss, let the embarrassment be HIS, not yours.
It rather sounds like you are a bit afraid of him. I understand the feeling and how it happens. If he is aware of this you have lost. It is really really IMPORTANT to get to a point that he does NOT know you are afraid of him or of being embarrassed by him. I have let mine know that embarrassment is a 2 way street. Embarrassing me means I WILL embarrass you - in front of YOUR peers. husband told Wiz that he would sing the Barney song over the school intercom, dedicated to Wiz if it needed to happen. That motivated Wiz to do a LOT of things - just to avoid it. When he was about 2 he tried that routine of tossing himself on the floor and kicking and yelling. Being pretty sure he was going to pull this, based on a prior attempt, I was in a place where I knew the employees, it wasn't busy at all, and I layed down and told him he "wasn't doing it right, so I was going to teach him how" and did the same things he was doing. Less than 30 seconds and he was HORRIFIED! He told me I HAD to stop as I was "barrassing" him. I only EVER had one more outburst in public from him - and he was 15 and not living with us then! My daughter had one public tantrum in her life. She was 9 and hormonal and started screaming at me in a mall. I tossed a cup of ice water on her (after telling her to get a grip on herself and calm down) and it shocked her out of it. It was incredibly out of character (esp as there was no trigger - even SHE couldn't figure out why she was yelling and why she was yelling the things she was yelling) and of course it was during an icy February day. She got a new shirt and pants but I made sure htey were NOT clothing she would like - we were almost 2 hours from home so letting her ride home in wet clothes was not do-able as the heater wasn't working well in the car.
I hope these ideas help.
PLEASE get a copy of "Love and Logic Parenting" by Fay and Cline. It is common sense, logical, and works. It is also empowering to parents.