# Error: "Electrical model inputs are infinite or NaN"

**URL:** <https://forum.plexim.com/t/error-electrical-model-inputs-are-infinite-or-nan/1503>\
**Category:** PLECS\
**Tags:** plecs\
**Created:** [November 9, 2024, 11:43pm UTC](https://forum.plexim.com/t/error-electrical-model-inputs-are-infinite-or-nan/1503 "2024-11-09T23:43:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aanshy](https://avatars.discourse-cdn.com/v4/letter/a/f17d59/32.png) [@Aanshy](https://forum.plexim.com/u/Aanshy)\
**Post date:** [November 9, 2024, 11:43pm UTC](https://forum.plexim.com/t/error-electrical-model-inputs-are-infinite-or-nan/1503/1 "2024-11-09T23:43:41Z")

</div>

I am making an average model of 2 level SST with DC bus as output. The cells are a combination of CHB and DAB. When I am trying to simulate it is giving this error with respect to the input side of CHB. The same model works well in Simulink. How to solve this?  
[Link for the model](https://drive.google.com/file/d/1Mhnq0fAwCNKw2tI2PkKHDh6z6OXMkaEV/view?usp=drive_link)

---

<div class="post-metadata">

**Author:** ![Bryan\_Lieblick](https://dub1.discourse-cdn.com/flex006/user_avatar/forum.plexim.com/bryan_lieblick/32/10_2.png) [@Bryan\_Lieblick](https://forum.plexim.com/u/Bryan_Lieblick)\
**Post date:** [November 13, 2024, 3:06pm UTC](https://forum.plexim.com/t/error-electrical-model-inputs-are-infinite-or-nan/1503/2 "2024-11-13T15:06:34Z")

</div>

It looks like your control is unstable. It’s not clear why that is. Since you have a model working in Simulink, indicating there may not be something fundamental driving the instability, perhaps there is an implementation error such as a flipped measurement or math operation in the model.

I would suggest reducing the model complexity, analyzing a simpler system, and benchmarking subsystems against a similar subsystem in your Simulink model to see where the error is introduced.

---

<div class="post-metadata">

**Author:** ![Bryan\_Lieblick](https://dub1.discourse-cdn.com/flex006/user_avatar/forum.plexim.com/bryan_lieblick/32/10_2.png) [@Bryan\_Lieblick](https://forum.plexim.com/u/Bryan_Lieblick)\
**Post date:** [November 13, 2024, 8:45pm UTC](https://forum.plexim.com/t/error-electrical-model-inputs-are-infinite-or-nan/1503/3 "2024-11-13T20:45:08Z")

</div>

By the way, in the future you can post your \*.plecs model directly. When we first transitioned to the new forum we blocked certain attachment types but this should be resolved. Please let me know if there’s any issues!

---

<div class="post-metadata">

**Author:** ![Aanshy](https://avatars.discourse-cdn.com/v4/letter/a/f17d59/32.png) [@Aanshy](https://forum.plexim.com/u/Aanshy)\
**Post date:** [November 14, 2024, 7:37pm UTC](https://forum.plexim.com/t/error-electrical-model-inputs-are-infinite-or-nan/1503/4 "2024-11-14T19:37:35Z")

</div>

Thank you for the reply. I will check the model part by part and see. About uploading model, I was not able to find any option for direct attachment probably because I am new here. Next time I will try to directly attach the model.
