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

**URL:** <https://discourse.julialang.org/t/newbie-variables-are-missing-from-the-variable-map-pmsm-model/69314>\
**Category:** Modelling & Simulations\
**Tags:** modelingtoolkit\
**Created:** [October 6, 2021, 4:01pm UTC](https://discourse.julialang.org/t/newbie-variables-are-missing-from-the-variable-map-pmsm-model/69314 "2021-10-06T16:01:38Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![gruemelmonster](https://avatars.discourse-cdn.com/v4/letter/g/b782af/32.png) [@gruemelmonster](https://discourse.julialang.org/u/gruemelmonster)\
**Post date:** [October 7, 2021, 4:24pm UTC](https://discourse.julialang.org/t/newbie-variables-are-missing-from-the-variable-map-pmsm-model/69314/2 "2021-10-07T16:24:22Z")

</div>

I figured it out.

The right idea came from [StackOverFlow Error in SIR model using ModelingTookit - #18 by contradict](https://discourse.julialang.org/t/stackoverflow-error-in-sir-model-using-modelingtookit/64604/18)

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

---

_[View the full topic](https://discourse.julialang.org/t/newbie-variables-are-missing-from-the-variable-map-pmsm-model/69314)._
