SciMLSensitivity.jl Precompile error because of Enzyme

Edit: Issue opened with Trixi.jl

Trixi forcing downgrades when using Enzyme.jl, Zygote.jl, SciMLsensitivity.jl · Issue #2157 · trixi-framework/Trixi.jl


Trying to follow along this the SciMLSensitivity.jl tutorial:

Parameter Estimation of Ordinary Differential Equations · SciMLSensitivity.jl

If anyone has any idea what’s going on, I’d appreciate it.

Julia version: Version 1.11.1 (2024-10-16)

When looking for Enzyme.jl version:

] status Enzyme

Status ~/TRIXI/Project.toml ⌅ [7da242da] Enzyme v0.11.20 Info Packages marked with ⌅ have new versions available but compatibility constraints restrict them from upgrading. To see why use 'status --outdated'

and

status --outdated
Status `~/TRIXI/Project.toml`
⌅ [7da242da] Enzyme v0.11.20 (<v0.13.14): SciMLSensitivity
⌃ [7ed4a6bd] LinearSolve v2.22.1 (<v2.36.2)
⌅ [7f7a1694] Optimization v3.19.3 (<v4.0.5): OptimizationOptimJL, OptimizationOptimisers, OptimizationPolyalgorithms
⌃ [500b13db] OptimizationPolyalgorithms v0.1.2 (<v0.3.0)
⌃ [1dea7af3] OrdinaryDiffEq v6.66.0 (<v6.90.1)
⌃ [1ed8b502] SciMLSensitivity v7.51.0 (<v7.71.1)

When using Pkg.add:

Pkg.add("OrdinaryDiffEq")
Pkg.add("Trixi")
Pkg.add("Plots")
Pkg.add("LinearSolve")
Pkg.add("LaTeXStrings")
Pkg.add("LinearAlgebra")
Pkg.add("Enzyme")
Pkg.add("Optimization")
Pkg.add("OptimizationPolyalgorithms")
Pkg.add("SciMLSensitivity")
Pkg.add("Zygote")

I get many errors but most being due to Enzym.jl :

0 dependencies successfully precompiled in 25 seconds. 496 already precompiled. 7 dependencies errored. For a report of the errors see `julia> err`. To retry use `pkg> precompile` Resolving package versions... Updating `[~/TRIXI/Project.toml](http://127.0.0.1:8888/lab/tree/TRIXI/TRIXI/Project.toml)` [37e2e46d] + LinearAlgebra v1.11.0 No Changes to `[~/TRIXI/Manifest.toml](http://127.0.0.1:8888/lab/tree/TRIXI/TRIXI/Manifest.toml)` Precompiling project... ✗ Enzyme ✗ Enzyme → EnzymeSpecialFunctionsExt ✗ DiffEqBase → DiffEqBaseEnzymeExt ✗ Optimization → OptimizationEnzymeExt ✗ LinearSolve → LinearSolveEnzymeExt ✗ SparseDiffTools → SparseDiffToolsEnzymeExt ✗ SciMLSensitivity 0 dependencies successfully precompiled in 22 seconds. 496 already precompiled. 7 dependencies errored. For a report of the errors see `julia> err`. To retry use `pkg> precompile`

And then using :

using OrdinaryDiffEq
using Trixi
using Plots
using LaTeXStrings
using LinearSolve
using LinearAlgebra
using Optimization
using OptimizationPolyalgorithms 
using SciMLSensitivity
using Zygote
[ Info: Precompiling IJuliaExt [2f4121a4-3b3a-5ce6-9c5e-1f2673ce168a] 
[ Info: Precompiling SciMLSensitivity [1ed8b502-d754-442c-8d5d-10ac956f44a1] (cache misses: wrong dep version loaded (2))
ERROR: LoadError: InitError: type Nothing has no field major
Stacktrace:
  [1] getproperty
    @ ./Base.jl:49 [inlined]
  [2] __init__()
    @ GPUCompiler ~/.julia/packages/GPUCompiler/U36Ed/src/GPUCompiler.jl:64
  [3] run_module_init(mod::Module, i::Int64)
    @ Base ./loading.jl:1336
  [4] register_restored_modules(sv::Core.SimpleVector, pkg::Base.PkgId, path::String)
    @ Base ./loading.jl:1324
  [5] _include_from_serialized(pkg::Base.PkgId, path::String, ocachepath::String, depmods::Vector{Any}, ignore_native::Nothing; register::Bool)
    @ Base ./loading.jl:1213
  [6] _include_from_serialized (repeats 2 times)
    @ ./loading.jl:1169 [inlined]
  [7] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String, build_id::UInt128, stalecheck::Bool; reasons::Dict{String, Int64}, DEPOT_PATH::Vector{String})
    @ Base ./loading.jl:1985
  [8] _require(pkg::Base.PkgId, env::String)
    @ Base ./loading.jl:2450
  [9] __require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base ./loading.jl:2315
 [10] #invoke_in_world#3
    @ ./essentials.jl:1089 [inlined]
 [11] invoke_in_world
    @ ./essentials.jl:1086 [inlined]
 [12] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base ./loading.jl:2302
 [13] macro expansion
    @ ./loading.jl:2241 [inlined]
 [14] macro expansion
    @ ./lock.jl:273 [inlined]
 [15] __require(into::Module, mod::Symbol)
    @ Base ./loading.jl:2198
 [16] #invoke_in_world#3
    @ ./essentials.jl:1089 [inlined]
 [17] invoke_in_world
    @ ./essentials.jl:1086 [inlined]
 [18] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:2191
 [19] include(mod::Module, _path::String)
    @ Base ./Base.jl:557
 [20] include(x::String)
    @ Enzyme ~/.julia/packages/Enzyme/l4FS0/src/Enzyme.jl:1
 [21] top-level scope
    @ ~/.julia/packages/Enzyme/l4FS0/src/Enzyme.jl:43
 [22] include
    @ ./Base.jl:557 [inlined]
 [23] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::String)
    @ Base ./loading.jl:2790
 [24] top-level scope
    @ stdin:5
during initialization of module GPUCompiler
in expression starting at /home/evaldez/.julia/packages/Enzyme/l4FS0/src/typetree.jl:6
in expression starting at /home/evaldez/.julia/packages/Enzyme/l4FS0/src/Enzyme.jl:1
in expression starting at stdin:5
ERROR: LoadError: Failed to precompile Enzyme [7da242da-08ed-463a-9acd-ee780be4f1d9] to "/home/evaldez/.julia/compiled/v1.11/Enzyme/jl_oI4hIh".

Found an issue opened and closed on github:

Enzyme Julia 1.11 UndefVarError: CodeCache not defined in GPUCompiler · Issue #1527 · EnzymeAD/Enzyme.jl

Still don’t see a solution yet they closed it for whatever reason.

It looks like your working in some trixi environment. Are there other packages already present? Try ] activate —temp in a fresh Julia session before adding those packages. Does this still reproduce the error? Can you share the output of ] st?

It is always a good idea to create a new local environments for each project to decrease the chance for version conflicts of unrelated packages. See Writing your code for a quick introduction to Julia environments.

hm… Well I would like to use Trixi.jl along with SciMLSensitivity.jl for a PDE parameter estimation problem (inverse problem). How is Trixi.jl affecting the latter?

So that linked issue was fixed in subsequent releases.

What version of Enzyme (and also Julia) are you using?

Edited the OP.

] status Enzyme

Status ~/TRIXI/Project.toml ⌅ [7da242da] Enzyme v0.11.20 Info Packages marked with ⌅ have new versions available but compatibility constraints restrict them from upgrading. To see why use 'status --outdated'

status --outdated
Status `~/TRIXI/Project.toml`
⌅ [7da242da] Enzyme v0.11.20 (<v0.13.14): SciMLSensitivity
⌃ [7ed4a6bd] LinearSolve v2.22.1 (<v2.36.2)
⌅ [7f7a1694] Optimization v3.19.3 (<v4.0.5): OptimizationOptimJL, OptimizationOptimisers, OptimizationPolyalgorithms
⌃ [500b13db] OptimizationPolyalgorithms v0.1.2 (<v0.3.0)
⌃ [1dea7af3] OrdinaryDiffEq v6.66.0 (<v6.90.1)
⌃ [1ed8b502] SciMLSensitivity v7.51.0 (<v7.71.1)

Yeah your problem is that you have a really old Enzyme, update to the latest and precompilation should be fine.

It looks like it does precompile to the latest version in a new project by itself.

But there’s something in the dependencies that’s causing it to downgrade, SciMLSensitivity.jl ?

Ya basically, anytime I try to update anything I get:

(TRIXI) pkg> update Enzyme
    Updating registry at `~/.julia/registries/General.toml`
  No Changes to `~/TRIXI/Project.toml`
  No Changes to `~/TRIXI/Manifest.toml`
Precompiling project...
  ✗ Enzyme
  ✗ Enzyme → EnzymeSpecialFunctionsExt
  ✗ SparseDiffTools → SparseDiffToolsEnzymeExt
  ✗ Optimization → OptimizationEnzymeExt
  ✗ DiffEqBase → DiffEqBaseEnzymeExt
  ✗ LinearSolve → LinearSolveEnzymeExt
  ✗ SciMLSensitivity
  0 dependencies successfully precompiled in 16 seconds. 496 already precompiled.
  7 dependencies errored.
  For a report of the errors see `julia> err`. To retry use `pkg> precompile`

(TRIXI) pkg> update  OrdinaryDiffEq
    Updating registry at `~/.julia/registries/General.toml`
  No Changes to `~/TRIXI/Project.toml`
  No Changes to `~/TRIXI/Manifest.toml`
Precompiling project...
  Progress [=================>                       ]  5/12
  ✗ Enzyme
  ✗ Enzyme → EnzymeSpecialFunctionsExt
  ✗ SparseDiffTools → SparseDiffToolsEnzymeExt
  ✗ Optimization → OptimizationEnzymeExt
  ✗ DiffEqBase → DiffEqBaseEnzymeExt
  ◑ LinearSolve → LinearSolveEnzymeExt

Ok so:

] rm Trixi
] update

allows everything to update properly.

then:

] add Trixi

gives the previous downgrades.

So looks like this is a Trixi.jl issue

If you run

pkg> add Enzwme@0.13

you should get an error telling you what’s holding Enzyme back

yup, it’s Trixi.jl

pkg> add Enzyme@0.13
   Resolving package versions...
ERROR: Unsatisfiable requirements detected for package Trixi [a7f1ee26]:
 Trixi [a7f1ee26] log:
 ├─possible versions are: 0.1.0 - 0.9.4 or uninstalled
 ├─restricted to versions * by project [b4869454], leaving only versions: 0.1.0 - 0.9.4
 │ └─project [b4869454] log:
 │   ├─possible versions are: 0.0.0 or uninstalled
 │   └─project [b4869454] is fixed to version 0.0.0
 ├─restricted by compatibility requirements with SciMLBase [0bca4576] to versions: [0.1.0 - 0.4.12, 0.5.45 - 0.9.4] or uninstalled, leaving only versions: [0.1.0 - 0.4.12, 0.5.45 - 0.9.4]
 │ └─SciMLBase [0bca4576] log:
 │   ├─possible versions are: 1.0.0 - 2.60.0 or uninstalled
 │   ├─restricted by compatibility requirements with LinearSolve [7ed4a6bd] to versions: 1.18.6 - 2.60.0
 │   │ └─LinearSolve [7ed4a6bd] log:
 │   │   ├─possible versions are: 0.1.0 - 2.36.2 or uninstalled
 │   │   ├─restricted to versions * by project [b4869454], leaving only versions: 0.1.0 - 2.36.2
 │   │   │ └─project [b4869454] log: see above
 │   │   ├─restricted by compatibility requirements with Enzyme [7da242da] to versions: [0.1.0 - 2.20.0, 2.35.0 - 2.36.2] or uninstalled, leaving only versions: [0.1.0 - 2.20.0, 2.35.0 - 2.36.2]
 │   │   │ └─Enzyme [7da242da] log:
 │   │   │   ├─possible versions are: 0.1.0 - 0.13.14 or uninstalled
 │   │   │   ├─restricted to versions * by project [b4869454], leaving only versions: 0.1.0 - 0.13.14
 │   │   │   │ └─project [b4869454] log: see above
 │   │   │   └─restricted to versions 0.13 by an explicit requirement, leaving only versions: 0.13.0 - 0.13.14
 │   │   ├─restricted by compatibility requirements with SciMLSensitivity [1ed8b502] to versions: 2.0.0 - 2.36.2, leaving only versions: [2.0.0 - 2.20.0, 2.35.0 - 2.36.2]
 │   │   │ └─SciMLSensitivity [1ed8b502] log:
 │   │   │   ├─possible versions are: 7.0.0 - 7.71.1 or uninstalled
 │   │   │   ├─restricted to versions * by project [b4869454], leaving only versions: 7.0.0 - 7.71.1
 │   │   │   │ └─project [b4869454] log: see above
 │   │   │   └─restricted by compatibility requirements with Enzyme [7da242da] to versions: 7.68.0 - 7.71.1 or uninstalled, leaving only versions: 7.68.0 - 7.71.1
 │   │   │     └─Enzyme [7da242da] log: see above
 │   │   ├─restricted by compatibility requirements with SciMLBase [0bca4576] to versions: 2.7.0 - 2.36.2 or uninstalled, leaving only versions: [2.7.0 - 2.20.0, 2.35.0 - 2.36.2]
 │   │   │ └─SciMLBase [0bca4576] log: see above
 │   │   ├─restricted by compatibility requirements with RecursiveArrayTools [731186ca] to versions: [0.1.0 - 2.10.0, 2.21.0 - 2.36.2] or uninstalled, leaving only versions: [2.7.0 - 2.10.0, 2.35.0 - 2.36.2]
 │   │   │ └─RecursiveArrayTools [731186ca] log:
 │   │   │   ├─possible versions are: 0.16.0 - 3.27.3 or uninstalled
 │   │   │   ├─restricted by compatibility requirements with SciMLSensitivity [1ed8b502] to versions: 3.18.1 - 3.27.3
 │   │   │   │ └─SciMLSensitivity [1ed8b502] log: see above
 │   │   │   └─restricted by compatibility requirements with SciMLBase [0bca4576] to versions: 3.26.0 - 3.27.3
 │   │   │     └─SciMLBase [0bca4576] log: see above
 │   │   └─restricted by compatibility requirements with EnzymeCore [f151be2c] to versions: [0.1.0 - 2.7.0, 2.35.0 - 2.36.2] or uninstalled, leaving only versions: [2.7.0, 2.35.0 - 2.36.2]
 │   │     └─EnzymeCore [f151be2c] log:
 │   │       ├─possible versions are: 0.1.0 - 0.8.5 or uninstalled
 │   │       └─restricted by compatibility requirements with Enzyme [7da242da] to versions: 0.8.0 - 0.8.5
 │   │         └─Enzyme [7da242da] log: see above
 │   └─restricted by compatibility requirements with SciMLSensitivity [1ed8b502] to versions: 2.51.4 - 2.60.0
 │     └─SciMLSensitivity [1ed8b502] log: see above
 ├─restricted by compatibility requirements with RecursiveArrayTools [731186ca] to versions: 0.1.0 - 0.8.8 or uninstalled, leaving only versions: [0.1.0 - 0.4.12, 0.5.45 - 0.8.8]
 │ └─RecursiveArrayTools [731186ca] log: see above
 ├─restricted by compatibility requirements with LoopVectorization [bdcacae8] to versions: [0.1.0 - 0.2.1, 0.3.19 - 0.9.4] or uninstalled, leaving only versions: [0.1.0 - 0.2.1, 0.3.19 - 0.4.12, 0.5.45 - 0.8.8]
 │ └─LoopVectorization [bdcacae8] log:
 │   ├─possible versions are: 0.1.0 - 0.12.171 or uninstalled
 │   ├─restricted by julia compatibility requirements to versions: 0.9.0 - 0.12.171 or uninstalled
 │   ├─restricted by compatibility requirements with VectorizationBase [3d5dd08c] to versions: 0.12.19 - 0.12.171 or uninstalled
 │   │ └─VectorizationBase [3d5dd08c] log:
 │   │   ├─possible versions are: 0.1.0 - 0.21.71 or uninstalled
 │   │   ├─restricted by julia compatibility requirements to versions: 0.20.8 - 0.21.71 or uninstalled
 │   │   ├─restricted by compatibility requirements with TriangularSolve [d5829a12] to versions: 0.20.0 - 0.21.71, leaving only versions: 0.20.8 - 0.21.71
 │   │   │ └─TriangularSolve [d5829a12] log:
 │   │   │   ├─possible versions are: 0.1.0 - 0.2.1 or uninstalled
 │   │   │   ├─restricted by compatibility requirements with RecursiveFactorization [f2c3362d] to versions: 0.1.1 - 0.2.1
 │   │   │   │ └─RecursiveFactorization [f2c3362d] log:
 │   │   │   │   ├─possible versions are: 0.0.1 - 0.2.23 or uninstalled
 │   │   │   │   ├─restricted by compatibility requirements with VectorizationBase [3d5dd08c] to versions: [0.0.1 - 0.1.2, 0.1.11 - 0.2.23] or uninstalled
 │   │   │   │   │ └─VectorizationBase [3d5dd08c] log: see above
 │   │   │   │   ├─restricted by compatibility requirements with LinearSolve [7ed4a6bd] to versions: 0.2.8 - 0.2.23
 │   │   │   │   │ └─LinearSolve [7ed4a6bd] log: see above
 │   │   │   │   ├─restricted by compatibility requirements with StrideArraysCore [7792a7ef] to versions: [0.0.1 - 0.1.13, 0.2.13 - 0.2.23] or uninstalled, leaving only versions: 0.2.13 - 0.2.23
 │   │   │   │   │ └─StrideArraysCore [7792a7ef] log:
 │   │   │   │   │   ├─possible versions are: 0.1.0 - 0.5.7 or uninstalled
 │   │   │   │   │   ├─restricted by compatibility requirements with VectorizationBase [3d5dd08c] to versions: 0.1.8 - 0.5.7 or uninstalled
 │   │   │   │   │   │ └─VectorizationBase [3d5dd08c] log: see above
 │   │   │   │   │   ├─restricted by compatibility requirements with RecursiveFactorization [f2c3362d] to versions: [0.1.13 - 0.1.18, 0.2.1 - 0.3.17, 0.4.1 - 0.5.7]
 │   │   │   │   │   │ └─RecursiveFactorization [f2c3362d] log: see above
 │   │   │   │   │   ├─restricted by compatibility requirements with Static [aedffcd0] to versions: [0.1.0 - 0.1.18, 0.3.12 - 0.5.7] or uninstalled, leaving only versions: [0.1.13 - 0.1.18, 0.3.12 - 0.3.17, 0.4.1 - 0.5.7]
 │   │   │   │   │   │ └─Static [aedffcd0] log:
 │   │   │   │   │   │   ├─possible versions are: 0.1.0 - 1.1.1 or uninstalled
 │   │   │   │   │   │   └─restricted by compatibility requirements with DiffEqBase [2b5f629d] to versions: 0.7.0 - 1.1.1
 │   │   │   │   │   │     └─DiffEqBase [2b5f629d] log:
 │   │   │   │   │   │       ├─possible versions are: 3.13.2 - 6.159.0 or uninstalled
 │   │   │   │   │   │       ├─restricted by compatibility requirements with Enzyme [7da242da] to versions: [3.13.2 - 6.151.1, 6.155.4 - 6.159.0] or uninstalled
 │   │   │   │   │   │       │ └─Enzyme [7da242da] log: see above
 │   │   │   │   │   │       ├─restricted by compatibility requirements with SciMLSensitivity [1ed8b502] to versions: 6.151.1 - 6.159.0, leaving only versions: [6.151.1, 6.155.4 - 6.159.0]
 │   │   │   │   │   │       │ └─SciMLSensitivity [1ed8b502] log: see above
 │   │   │   │   │   │       └─restricted by compatibility requirements with EnzymeCore [f151be2c] to versions: [3.13.2 - 6.130.1, 6.155.4 - 6.159.0] or uninstalled, leaving only versions: 6.155.4 - 6.159.0
 │   │   │   │   │   │         └─EnzymeCore [f151be2c] log: see above
 │   │   │   │   │   └─restricted by compatibility requirements with ArrayInterface [4fba245c] to versions: 0.4.8 - 0.5.7 or uninstalled, leaving only versions: 0.4.8 - 0.5.7
 │   │   │   │   │     └─ArrayInterface [4fba245c] log:
 │   │   │   │   │       ├─possible versions are: 0.0.1 - 7.17.0 or uninstalled
 │   │   │   │   │       ├─restricted by compatibility requirements with SciMLSensitivity [1ed8b502] to versions: 7.0.0 - 7.17.0
 │   │   │   │   │       │ └─SciMLSensitivity [1ed8b502] log: see above
 │   │   │   │   │       └─restricted by compatibility requirements with SciMLStructures [53ae85a6] to versions: 7.11.0 - 7.17.0
 │   │   │   │   │         └─SciMLStructures [53ae85a6] log:
 │   │   │   │   │           ├─possible versions are: 1.0.0 - 1.5.0 or uninstalled
 │   │   │   │   │           └─restricted by compatibility requirements with SciMLSensitivity [1ed8b502] to versions: 1.3.0 - 1.5.0
 │   │   │   │   │             └─SciMLSensitivity [1ed8b502] log: see above
 │   │   │   │   └─restricted by compatibility requirements with Polyester [f517fe37] to versions: [0.0.1 - 0.1.13, 0.2.14 - 0.2.23] or uninstalled, leaving only versions: 0.2.14 - 0.2.23
 │   │   │   │     └─Polyester [f517fe37] log:
 │   │   │   │       ├─possible versions are: 0.3.0 - 0.7.16 or uninstalled
 │   │   │   │       ├─restricted by compatibility requirements with RecursiveFactorization [f2c3362d] to versions: [0.3.2 - 0.3.9, 0.4.1 - 0.7.16]
 │   │   │   │       │ └─RecursiveFactorization [f2c3362d] log: see above
 │   │   │   │       ├─restricted by compatibility requirements with Static [aedffcd0] to versions: 0.6.13 - 0.7.16 or uninstalled, leaving only versions: 0.6.13 - 0.7.16
 │   │   │   │       │ └─Static [aedffcd0] log: see above
 │   │   │   │       └─restricted by compatibility requirements with ArrayInterface [4fba245c] to versions: 0.7.3 - 0.7.16 or uninstalled, leaving only versions: 0.7.3 - 0.7.16
 │   │   │   │         └─ArrayInterface [4fba245c] log: see above
 │   │   │   ├─restricted by compatibility requirements with Static [aedffcd0] to versions: [0.1.0, 0.1.12 - 0.2.1] or uninstalled, leaving only versions: 0.1.12 - 0.2.1
 │   │   │   │ └─Static [aedffcd0] log: see above
 │   │   │   └─restricted by compatibility requirements with Polyester [f517fe37] to versions: [0.1.0, 0.1.17 - 0.2.1] or uninstalled, leaving only versions: 0.1.17 - 0.2.1
 │   │   │     └─Polyester [f517fe37] log: see above
 │   │   ├─restricted by compatibility requirements with Static [aedffcd0] to versions: [0.1.0 - 0.19.0, 0.21.37 - 0.21.71] or uninstalled, leaving only versions: 0.21.37 - 0.21.71
 │   │   │ └─Static [aedffcd0] log: see above
 │   │   └─restricted by compatibility requirements with ArrayInterface [4fba245c] to versions: [0.1.0 - 0.12.33, 0.21.59 - 0.21.71] or uninstalled, leaving only versions: 0.21.59 - 0.21.71
 │   │     └─ArrayInterface [4fba245c] log: see above
 │   ├─restricted by compatibility requirements with ChainRulesCore [d360d2e6] to versions: [0.1.0 - 0.12.29, 0.12.31 - 0.12.171] or uninstalled, leaving only versions: [0.12.19 - 0.12.29, 0.12.31 - 0.12.171] or uninstalled
 │   │ └─ChainRulesCore [d360d2e6] log:
 │   │   ├─possible versions are: 0.1.0 - 1.25.0 or uninstalled
 │   │   ├─restricted by compatibility requirements with Enzyme [7da242da] to versions: 1.0.0 - 1.25.0 or uninstalled
 │   │   │ └─Enzyme [7da242da] log: see above
 │   │   ├─restricted by compatibility requirements with SciMLSensitivity [1ed8b502] to versions: 0.10.7 - 1.25.0, leaving only versions: 1.0.0 - 1.25.0
 │   │   │ └─SciMLSensitivity [1ed8b502] log: see above
 │   │   ├─restricted by compatibility requirements with Zygote [e88e6eb3] to versions: 1.9.0 - 1.25.0
 │   │   │ └─Zygote [e88e6eb3] log:
 │   │   │   ├─possible versions are: 0.1.0 - 0.6.73 or uninstalled
 │   │   │   ├─restricted to versions * by project [b4869454], leaving only versions: 0.1.0 - 0.6.73
 │   │   │   │ └─project [b4869454] log: see above
 │   │   │   └─restricted by compatibility requirements with SciMLSensitivity [1ed8b502] to versions: 0.6.67 - 0.6.73
 │   │   │     └─SciMLSensitivity [1ed8b502] log: see above
 │   │   └─restricted by compatibility requirements with SciMLBase [0bca4576] to versions: 1.18.0 - 1.25.0 or uninstalled, leaving only versions: 1.18.0 - 1.25.0
 │   │     └─SciMLBase [0bca4576] log: see above
 │   ├─restricted by compatibility requirements with RecursiveFactorization [f2c3362d] to versions: 0.10.0 - 0.12.171, leaving only versions: [0.12.19 - 0.12.29, 0.12.31 - 0.12.171]
 │   │ └─RecursiveFactorization [f2c3362d] log: see above
 │   ├─restricted by compatibility requirements with TriangularSolve [d5829a12] to versions: 0.12.30 - 0.12.171, leaving only versions: 0.12.31 - 0.12.171
 │   │ └─TriangularSolve [d5829a12] log: see above
 │   ├─restricted by compatibility requirements with Static [aedffcd0] to versions: [0.1.0 - 0.11.2, 0.12.119 - 0.12.171] or uninstalled, leaving only versions: 0.12.119 - 0.12.171
 │   │ └─Static [aedffcd0] log: see above
 │   └─restricted by compatibility requirements with ArrayInterface [4fba245c] to versions: [0.1.0 - 0.8.26, 0.12.151 - 0.12.171] or uninstalled, leaving only versions: 0.12.151 - 0.12.171
 │     └─ArrayInterface [4fba245c] log: see above
 ├─restricted by compatibility requirements with StartUpDG [472ebc20] to versions: [0.1.0 - 0.5.4, 0.8.9 - 0.9.4] or uninstalled, leaving only versions: [0.1.0 - 0.2.1, 0.3.19 - 0.4.12]
 │ └─StartUpDG [472ebc20] log:
 │   ├─possible versions are: 0.4.0 - 1.1.5 or uninstalled
 │   ├─restricted by compatibility requirements with RecursiveArrayTools [731186ca] to versions: [0.4.0 - 0.13.1, 0.13.5 - 0.14.10, 1.0.0 - 1.0.3, 1.1.3 - 1.1.5] or uninstalled
 │   │ └─RecursiveArrayTools [731186ca] log: see above
 │   ├─restricted by compatibility requirements with ComponentArrays [b0b7db55] to versions: [0.4.0 - 0.13.4, 0.13.9 - 1.1.5] or uninstalled, leaving only versions: [0.4.0 - 0.13.1, 0.13.9 - 0.14.10, 1.0.0 - 1.0.3, 1.1.3 - 1.1.5] or uninstalled
 │   │ └─ComponentArrays [b0b7db55] log:
 │   │   ├─possible versions are: 0.1.0 - 0.15.17 or uninstalled
 │   │   ├─restricted by compatibility requirements with SciMLBase [0bca4576] to versions: [0.1.0 - 0.13.8, 0.15.3 - 0.15.17] or uninstalled
 │   │   │ └─SciMLBase [0bca4576] log: see above
 │   │   ├─restricted by compatibility requirements with RecursiveArrayTools [731186ca] to versions: [0.1.0 - 0.13.8, 0.15.6 - 0.15.17] or uninstalled
 │   │   │ └─RecursiveArrayTools [731186ca] log: see above
 │   │   ├─restricted by compatibility requirements with ChainRulesCore [d360d2e6] to versions: [0.1.0 - 0.10.5, 0.11.2 - 0.15.17] or uninstalled, leaving only versions: [0.1.0 - 0.10.5, 0.11.2 - 0.13.8, 0.15.6 - 0.15.17] or uninstalled
 │   │   │ └─ChainRulesCore [d360d2e6] log: see above
 │   │   ├─restricted by compatibility requirements with ArrayInterface [4fba245c] to versions: [0.1.0 - 0.6.0, 0.13.8 - 0.15.17] or uninstalled, leaving only versions: [0.1.0 - 0.6.0, 0.13.8, 0.15.6 - 0.15.17] or uninstalled
 │   │   │ └─ArrayInterface [4fba245c] log: see above
 │   │   └─restricted by compatibility requirements with Adapt [79e6a3ab] to versions: [0.1.0 - 0.14.0, 0.15.8 - 0.15.17] or uninstalled, leaving only versions: [0.1.0 - 0.6.0, 0.13.8, 0.15.8 - 0.15.17] or uninstalled
 │   │     └─Adapt [79e6a3ab] log:
 │   │       ├─possible versions are: 0.3.0 - 4.1.1 or uninstalled
 │   │       ├─restricted by compatibility requirements with SciMLSensitivity [1ed8b502] to versions: 1.0.0 - 4.1.1
 │   │       │ └─SciMLSensitivity [1ed8b502] log: see above
 │   │       ├─restricted by compatibility requirements with RecursiveArrayTools [731186ca] to versions: 3.4.0 - 4.1.1
 │   │       │ └─RecursiveArrayTools [731186ca] log: see above
 │   │       └─restricted by compatibility requirements with ArrayInterface [4fba245c] to versions: 4.0.0 - 4.1.1
 │   │         └─ArrayInterface [4fba245c] log: see above
 │   └─restricted by compatibility requirements with Setfield [efcf1570] to versions: 0.11.2 - 1.1.5 or uninstalled, leaving only versions: [0.11.2 - 0.13.1, 0.13.9 - 0.14.10, 1.0.0 - 1.0.3, 1.1.3 - 1.1.5] or uninstalled
 │     └─Setfield [efcf1570] log:
 │       ├─possible versions are: 0.2.0 - 1.1.1 or uninstalled
 │       ├─restricted by compatibility requirements with LinearSolve [7ed4a6bd] to versions: 0.7.0 - 1.1.1
 │       │ └─LinearSolve [7ed4a6bd] log: see above
 │       └─restricted by compatibility requirements with DiffEqBase [2b5f629d] to versions: 0.8.0 - 1.1.1
 │         └─DiffEqBase [2b5f629d] log: see above
 ├─restricted by compatibility requirements with StaticArrays [90137ffa] to versions: [0.3.4 - 0.4.37, 0.4.40 - 0.9.4] or uninstalled, leaving only versions: 0.3.19 - 0.4.12
 │ └─StaticArrays [90137ffa] log:
 │   ├─possible versions are: 0.8.0 - 1.9.8 or uninstalled
 │   ├─restricted by compatibility requirements with Enzyme [7da242da] to versions: 1.0.0 - 1.9.8 or uninstalled
 │   │ └─Enzyme [7da242da] log: see above
 │   ├─restricted by julia compatibility requirements to versions: [0.12.0 - 0.12.6, 1.5.0 - 1.9.8] or uninstalled, leaving only versions: 1.5.0 - 1.9.8 or uninstalled
 │   └─restricted by compatibility requirements with SciMLSensitivity [1ed8b502] to versions: 1.8.0 - 1.9.8
 │     └─SciMLSensitivity [1ed8b502] log: see above
 ├─restricted by compatibility requirements with Static [aedffcd0] to versions: [0.1.0 - 0.4.2, 0.4.42 - 0.9.4] or uninstalled, leaving only versions: 0.3.19 - 0.4.2
 │ └─Static [aedffcd0] log: see above
 ├─restricted by compatibility requirements with FillArrays [1a297f60] to versions: [0.1.0 - 0.3.55, 0.3.57 - 0.9.4] or uninstalled, leaving only versions: [0.3.19 - 0.3.55, 0.3.57 - 0.4.2]
 │ └─FillArrays [1a297f60] log:
 │   ├─possible versions are: 0.2.0 - 1.13.0 or uninstalled
 │   ├─restricted by julia compatibility requirements to versions: 0.13.8 - 1.13.0 or uninstalled
 │   └─restricted by compatibility requirements with Zygote [e88e6eb3] to versions: 0.8.0 - 1.13.0, leaving only versions: 0.13.8 - 1.13.0
 │     └─Zygote [e88e6eb3] log: see above
 ├─restricted by compatibility requirements with CheapThreads [b630d9fa] to versions: [0.1.0 - 0.3.32, 0.3.37 - 0.9.4] or uninstalled, leaving only versions: [0.3.19 - 0.3.32, 0.3.37 - 0.3.55, 0.3.57 - 0.4.2]
 │ └─CheapThreads [b630d9fa] log:
 │   ├─possible versions are: 0.1.0 - 0.2.5 or uninstalled
 │   ├─restricted by compatibility requirements with VectorizationBase [3d5dd08c] to versions: 0.2.4 - 0.2.5 or uninstalled
 │   │ └─VectorizationBase [3d5dd08c] log: see above
 │   └─restricted by compatibility requirements with Static [aedffcd0] to versions: 0.1.0 - 0.1.2 or uninstalled, leaving only versions: uninstalled
 │     └─Static [aedffcd0] log: see above
 ├─restricted by compatibility requirements with LazyArrays [5078a376] to versions: [0.1.0 - 0.3.49, 0.3.56 - 0.9.4] or uninstalled, leaving only versions: [0.3.19 - 0.3.32, 0.3.37 - 0.3.49, 0.3.57 - 0.4.2]
 │ └─LazyArrays [5078a376] log:
 │   ├─possible versions are: 0.0.1 - 2.2.1 or uninstalled
 │   ├─restricted by compatibility requirements with StaticArrays [90137ffa] to versions: [0.0.1 - 0.1.0, 0.19.3 - 2.2.1] or uninstalled
 │   │ └─StaticArrays [90137ffa] log: see above
 │   └─restricted by compatibility requirements with FillArrays [1a297f60] to versions: [0.0.1 - 0.1.0, 0.22.5 - 2.2.1] or uninstalled
 │     └─FillArrays [1a297f60] log: see above
 ├─restricted by compatibility requirements with Polyester [f517fe37] to versions: [0.1.0 - 0.3.36, 0.5.3 - 0.9.4] or uninstalled, leaving only versions: 0.3.19 - 0.3.32
 │ └─Polyester [f517fe37] log: see above
 └─restricted by compatibility requirements with MPI [da04e1cc] to versions: [0.1.0 - 0.2.6, 0.4.50 - 0.9.4] or uninstalled — no versions left
   └─MPI [da04e1cc] log:
     ├─possible versions are: 0.7.0 - 0.20.22 or uninstalled
     ├─restricted by compatibility requirements with Requires [ae029012] to versions: [0.7.0 - 0.9.0, 0.12.0 - 0.20.22] or uninstalled
     │ └─Requires [ae029012] log:
     │   ├─possible versions are: 0.5.0 - 1.3.0 or uninstalled
     │   └─restricted by compatibility requirements with Zygote [e88e6eb3] to versions: 1.1.0 - 1.3.0
     │     └─Zygote [e88e6eb3] log: see above
     ├─restricted by compatibility requirements with DocStringExtensions [ffbed154] to versions: [0.7.0 - 0.11.0, 0.20.0 - 0.20.22] or uninstalled, leaving only versions: [0.7.0 - 0.9.0, 0.20.0 - 0.20.22] or uninstalled
     │ └─DocStringExtensions [ffbed154] log:
     │   ├─possible versions are: 0.4.6 - 0.9.3 or uninstalled
     │   ├─restricted by compatibility requirements with Optimization [7f7a1694] to versions: 0.8.0 - 0.9.3
     │   │ └─Optimization [7f7a1694] log:
     │   │   ├─possible versions are: 3.5.0 - 4.0.5 or uninstalled
     │   │   ├─restricted to versions * by project [b4869454], leaving only versions: 3.5.0 - 4.0.5
     │   │   │ └─project [b4869454] log: see above
     │   │   ├─restricted by compatibility requirements with Enzyme [7da242da] to versions: [3.5.0 - 3.14.0, 3.24.0 - 4.0.5] or uninstalled, leaving only versions: [3.5.0 - 3.14.0, 3.24.0 - 4.0.5]
     │   │   │ └─Enzyme [7da242da] log: see above
     │   │   ├─restricted by compatibility requirements with SciMLBase [0bca4576] to versions: 3.19.0 - 4.0.5 or uninstalled, leaving only versions: 3.24.0 - 4.0.5
     │   │   │ └─SciMLBase [0bca4576] log: see above
     │   │   └─restricted by compatibility requirements with OptimizationBase [bca83a33] to versions: [3.5.0 - 3.23.0, 4.0.0 - 4.0.5] or uninstalled, leaving only versions: 4.0.0 - 4.0.5
     │   │     └─OptimizationBase [bca83a33] log:
     │   │       ├─possible versions are: 0.0.1 - 2.4.0 or uninstalled
     │   │       ├─restricted by compatibility requirements with Enzyme [7da242da] to versions: 2.1.0 - 2.4.0 or uninstalled
     │   │       │ └─Enzyme [7da242da] log: see above
     │   │       └─restricted by compatibility requirements with Optimization [7f7a1694] to versions: 2.0.0 - 2.4.0, leaving only versions: 2.1.0 - 2.4.0
     │   │         └─Optimization [7f7a1694] log: see above
     │   └─restricted by compatibility requirements with SciMLBase [0bca4576] to versions: 0.9.0 - 0.9.3
     │     └─SciMLBase [0bca4576] log: see above
     └─restricted by compatibility requirements with Compat [34da2185] to versions: 0.9.0 - 0.20.22 or uninstalled, leaving only versions: [0.9.0, 0.20.0 - 0.20.22] or uninstalled
       └─Compat [34da2185] log:
         ├─possible versions are: 1.0.0 - 4.16.0 or uninstalled
         ├─restricted by julia compatibility requirements to versions: 2.0.0 - 4.16.0 or uninstalled
         ├─restricted by compatibility requirements with ChainRulesCore [d360d2e6] to versions: 2.0.0 - 4.16.0
         │ └─ChainRulesCore [d360d2e6] log: see above
         ├─restricted by compatibility requirements with Optim [429524aa] to versions: 3.2.0 - 4.16.0
         │ └─Optim [429524aa] log:
         │   ├─possible versions are: 0.15.3 - 1.10.0 or uninstalled
         │   ├─restricted by compatibility requirements with OptimizationOptimJL [36348300] to versions: 1.0.0 - 1.10.0
         │   │ └─OptimizationOptimJL [36348300] log:
         │   │   ├─possible versions are: 0.1.1 - 0.4.1 or uninstalled
         │   │   └─restricted by compatibility requirements with Optimization [7f7a1694] to versions: 0.4.0 - 0.4.1 or uninstalled, leaving only versions: 0.4.0 - 0.4.1
         │   │     └─Optimization [7f7a1694] log: see above
         │   └─restricted by compatibility requirements with NaNMath [77ba4419] to versions: 1.6.2 - 1.10.0 or uninstalled, leaving only versions: 1.6.2 - 1.10.0
         │     └─NaNMath [77ba4419] log:
         │       ├─possible versions are: 0.3.2 - 1.0.2 or uninstalled
         │       └─restricted by compatibility requirements with Tracker [9f7883ad] to versions: 1.0.0 - 1.0.2
         │         └─Tracker [9f7883ad] log:
         │           ├─possible versions are: 0.1.0 - 0.2.37 or uninstalled
         │           ├─restricted by compatibility requirements with SciMLSensitivity [1ed8b502] to versions: 0.2.30 - 0.2.37
         │           │ └─SciMLSensitivity [1ed8b502] log: see above
         │           └─restricted by compatibility requirements with Adapt [79e6a3ab] to versions: 0.2.31 - 0.2.37 or uninstalled, leaving only versions: 0.2.31 - 0.2.37
         │             └─Adapt [79e6a3ab] log: see above
         └─restricted by compatibility requirements with ChainRules [082447d4] to versions: [3.46.0 - 3.47.0, 4.2.0 - 4.16.0]
           └─ChainRules [082447d4] log:
             ├─possible versions are: 0.0.1 - 1.72.0 or uninstalled
             ├─restricted by compatibility requirements with Zygote [e88e6eb3] to versions: 1.44.1 - 1.72.0
             │ └─Zygote [e88e6eb3] log: see above
             ├─restricted by compatibility requirements with SciMLBase [0bca4576] to versions: 1.58.0 - 1.72.0 or uninstalled, leaving only versions: 1.58.0 - 1.72.0
             │ └─SciMLBase [0bca4576] log: see above
             └─restricted by compatibility requirements with Adapt [79e6a3ab] to versions: [0.0.1 - 1.43.2, 1.60.0 - 1.72.0] or uninstalled, leaving only versions: 1.60.0 - 1.72.0
               └─Adapt [79e6a3ab] log: see above

Opened an issue with Trixi.jl:

Trixi forcing downgrades when using Enzyme.jl, Zygote.jl, SciMLsensitivity.jl · Issue #2157 · trixi-framework/Trixi.jl