Model M has wrong MOSFET polarity for instance M1

Why is the error message “Model M has wrong MOSFET polarity for instance M1” produced when a PMOS symbol is inserted? If I replace the PMOS with an NMOS, there is no such error.

Because there’s no model for the “PMOS” defined, meaning it is a default MOSFET, which is N. But the symbol is P, so the simulator detected an error instead of giving you simulation results with an unintended polarity MOSFET, which can be confusing since the error isn’t seen on the schematic.

–Mike