Forum etiquette: You should post your question once, in one place, not multiple times in multiple forums (try General Europe, since you're asking about multiple countries).
As to your question: it (probably) won't be freezing and miserable in these places. It might be rainy and/or cold, or it might be fairly mild, maybe even "balmy", but it won't be what most of us would consider "warm" (depends to some extent where you're from/what you're used to). And a lot depends on luck. Some things that are geared primarily for tourists might be shuttered but some things will still be open, albeit with limited hours. Entire towns do not close completely.
Friendly suggestion: Forget taking a ferry to Tangier. Morocco is great, but the day-trip ferry ports ensure you only see the absolute worst of it. The day-trip to any ferry port in Morocco is no different from going across the border to Tijuana or Juarez for a few hours and thinking that you experienced Mexico. If you want to visit Morocco (and you should), ditch the ferry and just fly to Marrakech or Fez for a few days - flights are dirt-cheap, it's easy, and it takes you to the real Morocco, where it's awesome. The ferry crossing and what you get on the other side is not worth your time, better to spend that in Spain or elsewhere.