The number is likely much higher than that, Moroccans all know the official demographic numbers (for big cities) are vastly understated because they're not based on a census like in say the US, but rather based on a registry of every single person like in most of Europe, only there are millions of internal migrants who don't register when they move to the city, and there's significant semi-homelessness and shanty towns which aren't reflected in the official numbers. For Casablanca it's usually a really really big difference, with official numbers at 3 million and some, and locals approximating it topping 6 million. The official numbers in Rabat aren't as inaccurate but 150k households at least feels much lower than my personal experiences.
https://en.wikipedia.org/wiki/Rabat#Subdivisions