Precompilation conflicts between Symbolics and ModelingToolkit while installing DifferentialEquations

While precompiling DifferentialEquations in a new environment, I encounter the following warnings:

(NewEnv) pkg> add DifferentialEquations
  Resolving package versions...
Updating `~/NewEnv/Project.toml`
  [0c46a032] + DifferentialEquations v6.16.0
Updating `~/NewEnv/Manifest.toml`
  [c3fe647b] + AbstractAlgebra v0.13.6
  [1520ce14] + AbstractTrees v0.3.4
  [79e6a3ab] + Adapt v3.2.0
  [ec485272] + ArnoldiMethod v0.1.0
  [4fba245c] + ArrayInterface v3.1.5
  [4c555306] + ArrayLayouts v0.6.2
  [56f22d72] + Artifacts v1.3.0
  [aae01518] + BandedMatrices v0.16.6
  [764a87c0] + BoundaryValueDiffEq v2.7.1
  [fa961155] + CEnum v0.4.1
  [d360d2e6] + ChainRulesCore v0.9.29
  [861a8166] + Combinatorics v1.0.2
  [38540f10] + CommonSolve v0.2.0
  [bbf7d656] + CommonSubexpressions v0.3.0
  [34da2185] + Compat v3.25.0
  [e66e0078] + CompilerSupportLibraries_jll v0.3.4+0
  [187b0558] + ConstructionBase v1.1.0
  [9a962f9c] + DataAPI v1.6.0
  [864edb3b] + DataStructures v0.18.9
  [e2d170a0] + DataValueInterfaces v1.0.0
  [bcd4f6db] + DelayDiffEq v5.29.0
  [2b5f629d] + DiffEqBase v6.57.7
  [459566f4] + DiffEqCallbacks v2.16.0
  [5a0ffddc] + DiffEqFinancial v2.4.0
  [c894b116] + DiffEqJump v6.13.0
  [77a26b50] + DiffEqNoiseProcess v5.6.0
  [055956cb] + DiffEqPhysics v3.9.0
  [163ba53b] + DiffResults v1.0.3
  [b552c78f] + DiffRules v1.0.2
  [0c46a032] + DifferentialEquations v6.16.0
  [c619ae07] + DimensionalPlotRecipes v1.2.0
  [b4f34e82] + Distances v0.10.2
  [31c24e10] + Distributions v0.24.15
  [ffbed154] + DocStringExtensions v0.8.3
  [d4d017d3] + ExponentialUtilities v1.8.0
  [e2ba6199] + ExprTools v0.1.3
  [9aa1b823] + FastClosures v0.3.2
  [1a297f60] + FillArrays v0.11.5
  [6a86dc24] + FiniteDiff v2.8.0
  [59287772] + Formatting v0.4.2
  [f6369f11] + ForwardDiff v0.10.16
  [069b7b12] + FunctionWrappers v1.1.2
  [01680d73] + GenericSVD v0.3.0
  [0e44f5e4] + Hwloc v1.3.0
  [e33a78d0] + Hwloc_jll v2.4.1+0
  [615f187c] + IfElse v0.1.0
  [d25df0c9] + Inflate v0.1.2
  [42fd0dbc] + IterativeSolvers v0.9.0
  [82899510] + IteratorInterfaceExtensions v1.0.0
  [692b3bcd] + JLLWrappers v1.2.0
  [b964fa9f] + LaTeXStrings v1.2.1
  [2ee39098] + LabelledArrays v1.5.0
  [23fbe1c1] + Latexify v0.14.10
  [093fc24a] + LightGraphs v1.3.5
  [d3d80556] + LineSearches v7.1.1
  [bdcacae8] + LoopVectorization v0.11.2
  [d00139f3] + METIS_jll v5.1.0+5
  [1914dd2f] + MacroTools v0.5.6
  [e1d29d7a] + Missings v0.4.5
  [961ee093] + ModelingToolkit v5.12.1
  [46d2c3a1] + MuladdMacro v0.2.2
  [f9640e96] + MultiScaleArrays v1.8.1
  [d41bc354] + NLSolversBase v7.7.1
  [2774e3e8] + NLsolve v4.5.1
  [77ba4419] + NaNMath v0.3.5
  [8913a72c] + NonlinearSolve v0.3.8
  [6fe1bfb0] + OffsetArrays v1.6.2
  [4536629a] + OpenBLAS_jll v0.3.9+5
  [efe28fd5] + OpenSpecFun_jll v0.5.3+4
  [429524aa] + Optim v1.2.4
  [bac558e1] + OrderedCollections v1.4.0
  [1dea7af3] + OrdinaryDiffEq v5.51.2
  [90014a1f] + PDMats v0.11.0
  [65888b18] + ParameterizedFunctions v5.9.0
  [d96e819e] + Parameters v0.12.2
  [e409e4f3] + PoissonRandom v0.4.0
  [85a6dd25] + PositiveFactorizations v0.2.4
  [1fd47b50] + QuadGK v2.4.1
  [74087812] + Random123 v1.3.1
  [fb686558] + RandomExtensions v0.4.3
  [e6cf234a] + RandomNumbers v1.4.0
  [3cdcf5f2] + RecipesBase v1.1.1
  [731186ca] + RecursiveArrayTools v2.11.0
  [f2c3362d] + RecursiveFactorization v0.1.11
  [189a3867] + Reexport v1.0.0
  [ae029012] + Requires v1.1.3
  [ae5879a3] + ResettableStacks v1.1.0
  [79098fc4] + Rmath v0.6.1
  [f50d1b31] + Rmath_jll v0.2.2+1
  [7e49a35a] + RuntimeGeneratedFunctions v0.5.1
  [476501e8] + SLEEFPirates v0.6.10
  [1bc83da4] + SafeTestsets v0.0.1
  [0bca4576] + SciMLBase v1.8.2
  [efcf1570] + Setfield v0.7.0
  [699a6c99] + SimpleTraits v0.9.3
  [a2af1166] + SortingAlgorithms v0.3.1
  [47a9eef4] + SparseDiffTools v1.13.0
  [276daf66] + SpecialFunctions v1.3.0
  [aedffcd0] + Static v0.2.3
  [90137ffa] + StaticArrays v1.0.1
  [2913bbd2] + StatsBase v0.33.3
  [4c63d2b9] + StatsFuns v0.9.6
  [9672c7b4] + SteadyStateDiffEq v1.6.1
  [789caeaf] + StochasticDiffEq v6.33.0
  [bea87d4a] + SuiteSparse_jll v5.4.0+9
  [c3572dad] + Sundials v4.4.1
  [fb77eaff] + Sundials_jll v5.2.0+1
  [d1185830] + SymbolicUtils v0.9.0
  [0c5d862f] + Symbolics v0.1.5
  [3783bdb8] + TableTraits v1.0.0
  [bd369af6] + Tables v1.4.0
  [8290d209] + ThreadingUtilities v0.2.5
  [a759f4b9] + TimerOutputs v0.5.8
  [a2a6695c] + TreeViews v0.3.0
  [3a884ed6] + UnPack v1.0.2
  [1986cc42] + Unitful v1.6.0
  [3d5dd08c] + VectorizationBase v0.18.14
  [19fa3120] + VertexSafeGraphs v0.1.2
  [700de1a5] + ZygoteRules v0.2.1
  [2a0f44e3] + Base64
  [ade2ca70] + Dates
  [8bb1440f] + DelimitedFiles
  [8ba89e20] + Distributed
  [9fa8497b] + Future
  [b77e0a4c] + InteractiveUtils
  [76f85450] + LibGit2
  [8f399da3] + Libdl
  [37e2e46d] + LinearAlgebra
  [56ddb016] + Logging
  [d6f4376e] + Markdown
  [a63ad114] + Mmap
  [44cfe95a] + Pkg
  [de0858da] + Printf
  [3fa0cd96] + REPL
  [9a3f8284] + Random
  [ea8e919c] + SHA
  [9e88b42a] + Serialization
  [1a1011a3] + SharedArrays
  [6462fe0b] + Sockets
  [2f01184e] + SparseArrays
  [10745b16] + Statistics
  [4607b0f0] + SuiteSparse
  [8dfed614] + Test
  [cf7118a7] + UUIDs
  [4ec0a83e] + Unicode

(NewEnv) pkg> precompile
Precompiling project...
[ Info: Precompiling DifferentialEquations [0c46a032-eb83-5123-abaf-570d42b7fbaa]
WARNING: Method definition substitute(Symbolics.Num, Base.Dict{K, V} where V where K) in module Symbolics at /home/jishnu/.julia/packages/Symbolics/XVpe1/src/num.jl:63 overwritten in module ModelingToolkit at /home/jishnu/.julia/packages/ModelingToolkit/Df3sc/src/utils.jl:65.
  ** incremental compilation may be fatally broken for this module **

WARNING: Method definition substitute##kw(Any, typeof(SymbolicUtils.substitute), Symbolics.Num, Base.Dict{K, V} where V where K) in module Symbolics at /home/jishnu/.julia/packages/Symbolics/XVpe1/src/num.jl:63 overwritten in module ModelingToolkit at /home/jishnu/.julia/packages/ModelingToolkit/Df3sc/src/utils.jl:65.
  ** incremental compilation may be fatally broken for this module **

WARNING: Method definition substitute(Symbolics.Num, Base.Dict{K, V} where V where K) in module Symbolics at /home/jishnu/.julia/packages/Symbolics/XVpe1/src/num.jl:63 overwritten in module ModelingToolkit at /home/jishnu/.julia/packages/ModelingToolkit/Df3sc/src/utils.jl:65.
  ** incremental compilation may be fatally broken for this module **

WARNING: Method definition substitute##kw(Any, typeof(SymbolicUtils.substitute), Symbolics.Num, Base.Dict{K, V} where V where K) in module Symbolics at /home/jishnu/.julia/packages/Symbolics/XVpe1/src/num.jl:63 overwritten in module ModelingToolkit at /home/jishnu/.julia/packages/ModelingToolkit/Df3sc/src/utils.jl:65.
  ** incremental compilation may be fatally broken for this module **

WARNING: Method definition substitute(Symbolics.Num, Base.Dict{K, V} where V where K) in module Symbolics at /home/jishnu/.julia/packages/Symbolics/XVpe1/src/num.jl:63 overwritten in module ModelingToolkit at /home/jishnu/.julia/packages/ModelingToolkit/Df3sc/src/utils.jl:65.
  ** incremental compilation may be fatally broken for this module **

WARNING: Method definition substitute##kw(Any, typeof(SymbolicUtils.substitute), Symbolics.Num, Base.Dict{K, V} where V where K) in module Symbolics at /home/jishnu/.julia/packages/Symbolics/XVpe1/src/num.jl:63 overwritten in module ModelingToolkit at /home/jishnu/.julia/packages/ModelingToolkit/Df3sc/src/utils.jl:65.
  ** incremental compilation may be fatally broken for this module **

[ Info: Precompiling NewEnv [e8fcf75b-4bc0-4fcb-82ee-44c8233df937]

Is this something that I should be concerned about? Also is there a way to avoid this?

@Mason I think your PR might’ve done something? Not sure how though.

hmm. I also don’t see how that could happen. I just tried this in a fresh environment myself and was not able to reproduce the issues.