# ModelingToolkit @named

**URL:** https://discourse.julialang.org/t/modelingtoolkit-named/82772
**Category:** General Usage
**Created:** [June 14, 2022, 5:40pm UTC](https://discourse.julialang.org/t/modelingtoolkit-named/82772 "2022-06-14T17:40:33Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![ccccc](https://avatars.discourse-cdn.com/v4/letter/c/aca169/32.png) [@ccccc](https://discourse.julialang.org/u/ccccc)
#### Post date: [June 14, 2022, 5:40pm UTC](https://discourse.julialang.org/t/modelingtoolkit-named/82772/1 "2022-06-14T17:40:33Z")

</div>

I am following the modeling toolkit examples, I am copy/pasting from:

> **[GitHub - SciML/ModelingToolkit.jl: An acausal modeling framework for...](https://github.com/SciML/ModelingToolkit.jl)**
>
> An acausal modeling framework for automatically parallelized scientific machine learning (SciML) in Julia. A computer algebra system for integrated symbolics for physics-informed machine learning a...

[https://mtk.sciml.ai/stable/tutorials/ode\_modeling/](https://mtk.sciml.ai/stable/tutorials/ode_modeling/)

but @named is not working. Does anyone know why?

@named fol = ODESystem([D(x) ~ (1 - x)/τ])  
LoadError: UndefVarError: @named not defined  
in expression starting at In[5]:1

Stacktrace:  
[1] top-level scope  
@ :0  
[2] eval  
@ .\boot.jl:373 [inlined]  
[3] include\_string(mapexpr::typeof(REPL.softscope), mod::Module, code::String, filename::String)  
@ Base .\loading.jl:1196

---

<div class="post-metadata">

### Author: ![baggepinnen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/baggepinnen/32/693_2.png) [@baggepinnen](https://discourse.julialang.org/u/baggepinnen)
#### Post date: [June 14, 2022, 5:48pm UTC](https://discourse.julialang.org/t/modelingtoolkit-named/82772/2 "2022-06-14T17:48:59Z")

</div>

What version of MTK are you using? Is it the latest version?

---

<div class="post-metadata">

### Author: ![ccccc](https://avatars.discourse-cdn.com/v4/letter/c/aca169/32.png) [@ccccc](https://discourse.julialang.org/u/ccccc)
#### Post date: [June 14, 2022, 8:36pm UTC](https://discourse.julialang.org/t/modelingtoolkit-named/82772/3 "2022-06-14T20:36:11Z")

</div>

I think so. If I add ModelingToolkit again or update it, it says no changes.

---

<div class="post-metadata">

### Author: ![baggepinnen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/baggepinnen/32/693_2.png) [@baggepinnen](https://discourse.julialang.org/u/baggepinnen)
#### Post date: [June 15, 2022, 5:28am UTC](https://discourse.julialang.org/t/modelingtoolkit-named/82772/4 "2022-06-15T05:28:42Z")

</div>

That does not guarantee that you have the latest version, you might have another package installed that is holding MTK back from being updated

---

<div class="post-metadata">

### Author: ![ccccc](https://avatars.discourse-cdn.com/v4/letter/c/aca169/32.png) [@ccccc](https://discourse.julialang.org/u/ccccc)
#### Post date: [June 15, 2022, 9:09am UTC](https://discourse.julialang.org/t/modelingtoolkit-named/82772/5 "2022-06-15T09:09:15Z")

</div>

Thanks - I learned about project environments and deleted and reinstalled. Pretty sure at some point there was a package that needed it to be an earlier version…
