Newbie: Variables are missing from the variable map: PMSM model

I figured it out.

The right idea came from StackOverFlow Error in SIR model using ModelingTookit - #18 by contradict

Actually I needed to do 2 things:

  1. After structural_simplify the “states” ωel and M are removed.
  2. The motor. namespace somehow seems to confuse