# ModelingToolkit doesn't precompile any more

**URL:** <https://discourse.julialang.org/t/modelingtoolkit-doesnt-precompile-any-more/114548>\
**Category:** Modelling & Simulations\
**Created:** [May 22, 2024, 7:44am UTC](https://discourse.julialang.org/t/modelingtoolkit-doesnt-precompile-any-more/114548 "2024-05-22T07:44:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![BLI](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bli/32/37206_2.png) [@BLI](https://discourse.julialang.org/u/BLI)\
**Post date:** [May 22, 2024, 7:44am UTC](https://discourse.julialang.org/t/modelingtoolkit-doesnt-precompile-any-more/114548/1 "2024-05-22T07:44:03Z")

</div>

A few days ago, I installed some new packages (`AbstractAlgebra`, `Nemo`, `Groebner`). I also tried to install `Oscar`. When I tried to compile `Oscar`, I was told it doesn’t run on Windows, and I removed it.

Since then, `ModelingToolkit` doesn’t precompile. I don’t know whether there is a conflict with the above mentioned installations/attempts of installation, or whether the problem is due to some new versions of `ModelingToolkit`.

* * *

I have tried to _remove_ all packages and re-install them. Problem persists. I have tried to remove all packages, and only install MTK. Problem persists… Precompilation of MTK hangs in the last step (222/223 with a fresh installation), and hangs for like 8-12 hours before I have given up.

* * *

I have now uninstalled Julia, deleted the `.julia` directory, restarted computer, checked that Julia is not on it, downloaded the Julia app and reinstalled Julia v10.3, and started to add MTK again.

Again, precompiling until step 222/223 went fine; now it is hanging again. So far for 20 minutes…

**Questions** :

1. Anyone has got a clue of what has gone wrong? [Latest version of Win 11, 1TB free disk space, 32 GB RAM, 12th gen intel]
2. How long time should I _expect_ the precompilation to take? [I know it is a big package]

---

<div class="post-metadata">

**Author:** ![lmiq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lmiq/32/18314_2.png) [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Post date:** [May 22, 2024, 11:53am UTC](https://discourse.julialang.org/t/modelingtoolkit-doesnt-precompile-any-more/114548/2 "2024-05-22T11:53:46Z")

</div>

Here ModelingToolkit installation/precompilation took:

1. ~2 minutes after `add ModelingToolkit`
2. `using ModelingToolkit` for the first time, precompiled again (?) and took about 5 minutes.
3. On restarting Julia in the same project, `using ModelingToolkit` precompiled again (?) and took more 2 minutes.
4. On restarting Julia again, `using ModelingToolkit` took ~3s.

`AbstractAlgebra`, `Nemo`, `Groebner` and took about 1 minute to install.

```julia
julia> versioninfo()
Julia Version 1.10.3
Commit 0b4590a5507 (2024-04-30 10:59 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 20 × 12th Gen Intel(R) Core(TM) i7-12700F
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-15.0.7 (ORCJIT, alderlake)
Threads: 1 default, 0 interactive, 1 GC (on 20 virtual cores)

```

---

<div class="post-metadata">

**Author:** ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Post date:** [May 22, 2024, 3:49pm UTC](https://discourse.julialang.org/t/modelingtoolkit-doesnt-precompile-any-more/114548/3 "2024-05-22T15:49:53Z")

</div>

There is a known issue as of yesterday. Please keep the reports to one thread

---

<div class="post-metadata">

**Author:** ![Oscar\_Smith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oscar_smith/32/25343_2.png) [@Oscar\_Smith](https://discourse.julialang.org/u/Oscar_Smith)\
**Post date:** [June 4, 2024, 9:26pm UTC](https://discourse.julialang.org/t/modelingtoolkit-doesnt-precompile-any-more/114548/4 "2024-06-04T21:26:55Z")

</div>

1.10.4 has been released which fixes this bug [Julia v1.10.4 has been released](https://discourse.julialang.org/t/julia-v1-10-4-has-been-released/115197)
