# StackOverFlow Error in SIR model using ModelingTookit

**URL:** https://discourse.julialang.org/t/stackoverflow-error-in-sir-model-using-modelingtookit/64604
**Category:** General Usage
**Tags:** error, ode, stackoverflow, modelingtoolkit
**Created:** [July 13, 2021, 9:22pm UTC](https://discourse.julialang.org/t/stackoverflow-error-in-sir-model-using-modelingtookit/64604 "2021-07-13T21:22:26Z")
**Posts on this page:** 1
**Showing post:** 18

<div class="post-metadata">

### Author: ![contradict](https://avatars.discourse-cdn.com/v4/letter/c/ac91a4/32.png) [@contradict](https://discourse.julialang.org/u/contradict)
#### Post date: [July 19, 2021, 3:20am UTC](https://discourse.julialang.org/t/stackoverflow-error-in-sir-model-using-modelingtookit/64604/18 "2021-07-19T03:20:05Z")

</div>

I think you need to specify initial values `u0` for lower case `[s, i, r]` not upper case since you did a substitution. Those are the values mentioned in the error message, the variable map is the list of initial values you provided.

---

_[View the full topic](https://discourse.julialang.org/t/stackoverflow-error-in-sir-model-using-modelingtookit/64604)._
