Package evaluation to test LineSearch on Julia 1.11.7 (58327cce5e*) started at 2025-10-28T21:27:37.691 ################################################################################ # Set-up # Installing PkgEval dependencies (TestEnv)... Set-up completed after 8.16s ################################################################################ # Installation # Installing LineSearch... Resolving package versions... Updating `~/.julia/environments/v1.11/Project.toml` [87fe0de2] + LineSearch v0.1.4 Updating `~/.julia/environments/v1.11/Manifest.toml` [47edcb42] + ADTypes v1.18.0 [7d9f7c33] + Accessors v0.1.42 [79e6a3ab] + Adapt v4.4.0 [4fba245c] + ArrayInterface v7.22.0 [38540f10] + CommonSolve v0.2.4 [a33af91c] + CompositionsBase v0.1.2 [2569d6c7] + ConcreteStructs v0.2.3 [187b0558] + ConstructionBase v1.6.0 [a0c0ee7d] + DifferentiationInterface v0.7.9 [ffbed154] + DocStringExtensions v0.9.5 [4e289a0a] + EnumX v1.0.5 [e2ba6199] + ExprTools v0.1.10 [55351af7] + ExproniconLite v0.10.14 [9aa1b823] + FastClosures v0.3.2 [069b7b12] + FunctionWrappers v1.1.3 [77dc65aa] + FunctionWrappersWrappers v0.1.3 [46192b85] + GPUArraysCore v0.2.0 [3587e190] + InverseFunctions v0.1.17 [82899510] + IteratorInterfaceExtensions v1.0.0 [ae98c720] + Jieko v0.2.1 [87fe0de2] + LineSearch v0.1.4 [e6f89c97] + LoggingExtras v1.2.0 [1914dd2f] + MacroTools v0.5.16 [bb5d69b7] + MaybeInplace v0.1.4 [2e0e35c7] + Moshi v0.3.7 [d236fae5] + PreallocationTools v0.4.34 ⌅ [aea7be01] + PrecompileTools v1.2.1 [21216c6a] + Preferences v1.5.0 [3cdcf5f2] + RecipesBase v1.3.4 [731186ca] + RecursiveArrayTools v3.39.0 [189a3867] + Reexport v1.2.2 [ae029012] + Requires v1.3.1 [7e49a35a] + RuntimeGeneratedFunctions v0.5.15 [0bca4576] + SciMLBase v2.124.0 [19f34311] + SciMLJacobianOperators v0.1.11 [a6db7da4] + SciMLLogging v1.3.1 [c0aeaf25] + SciMLOperators v1.9.0 [431bcebd] + SciMLPublic v1.0.0 [53ae85a6] + SciMLStructures v1.7.0 [1e83bf80] + StaticArraysCore v1.4.4 [10745b16] + Statistics v1.11.1 [2efcf032] + SymbolicIndexingInterface v0.3.46 [56f22d72] + Artifacts v1.11.0 [2a0f44e3] + Base64 v1.11.0 [ade2ca70] + Dates v1.11.0 [8ba89e20] + Distributed v1.11.0 [8f399da3] + Libdl v1.11.0 [37e2e46d] + LinearAlgebra v1.11.0 [56ddb016] + Logging v1.11.0 [d6f4376e] + Markdown v1.11.0 [de0858da] + Printf v1.11.0 [9a3f8284] + Random v1.11.0 [ea8e919c] + SHA v0.7.0 [9e88b42a] + Serialization v1.11.0 [6462fe0b] + Sockets v1.11.0 [fa267f1f] + TOML v1.0.3 [cf7118a7] + UUIDs v1.11.0 [4ec0a83e] + Unicode v1.11.0 [e66e0078] + CompilerSupportLibraries_jll v1.1.1+0 [4536629a] + OpenBLAS_jll v0.3.27+1 [8e850b90] + libblastrampoline_jll v5.11.0+0 Info Packages marked with ⌅ have new versions available but compatibility constraints restrict them from upgrading. To see why use `status --outdated -m` Installation completed after 4.66s ################################################################################ # Precompilation # Precompiling PkgEval dependencies... ┌ Warning: Could not use exact versions of packages in manifest, re-resolving └ @ TestEnv ~/.julia/packages/TestEnv/nGMfF/src/julia-1.11/activate_set.jl:76 Precompiling package dependencies... Precompilation completed after 494.65s ################################################################################ # Testing # Testing LineSearch ┌ Warning: Could not use exact versions of packages in manifest, re-resolving └ @ Pkg.Operations /opt/julia/share/julia/stdlib/v1.11/Pkg/src/Operations.jl:1924 Status `/tmp/jl_COxxSj/Project.toml` [47edcb42] ADTypes v1.18.0 [38540f10] CommonSolve v0.2.4 [2569d6c7] ConcreteStructs v0.2.3 ⌅ [a0c0ee7d] DifferentiationInterface v0.6.54 [7da242da] Enzyme v0.13.93 [9aa1b823] FastClosures v0.3.2 [6a86dc24] FiniteDiff v2.29.0 ⌅ [f6369f11] ForwardDiff v0.10.39 [0e44f5e4] Hwloc v3.3.0 [87fe0de2] LineSearch v0.1.4 [d3d80556] LineSearches v7.4.0 [bb5d69b7] MaybeInplace v0.1.4 [b7050fa9] NonlinearProblemLibrary v0.1.3 [817f1d60] ReTestItems v1.34.0 [37e2e3b7] ReverseDiff v1.16.1 ⌃ [0bca4576] SciMLBase v2.101.0 [19f34311] SciMLJacobianOperators v0.1.11 [1e83bf80] StaticArraysCore v1.4.4 [9f7883ad] Tracker v0.2.38 ⌅ [e88e6eb3] Zygote v0.6.77 [b77e0a4c] InteractiveUtils v1.11.0 [37e2e46d] LinearAlgebra v1.11.0 [8dfed614] Test v1.11.0 Status `/tmp/jl_COxxSj/Manifest.toml` [47edcb42] ADTypes v1.18.0 [621f4979] AbstractFFTs v1.5.0 [7d9f7c33] Accessors v0.1.42 [79e6a3ab] Adapt v4.4.0 [4fba245c] ArrayInterface v7.22.0 [a9b6321e] Atomix v1.1.2 [fa961155] CEnum v0.5.0 [082447d4] ChainRules v1.72.6 [d360d2e6] ChainRulesCore v1.26.0 [38540f10] CommonSolve v0.2.4 [bbf7d656] CommonSubexpressions v0.3.1 [34da2185] Compat v4.18.1 [a33af91c] CompositionsBase v0.1.2 [2569d6c7] ConcreteStructs v0.2.3 [187b0558] ConstructionBase v1.6.0 [9a962f9c] DataAPI v1.16.0 [e2d170a0] DataValueInterfaces v1.0.0 [163ba53b] DiffResults v1.1.0 [b552c78f] DiffRules v1.15.1 ⌅ [a0c0ee7d] DifferentiationInterface v0.6.54 [ffbed154] DocStringExtensions v0.9.5 [4e289a0a] EnumX v1.0.5 [7da242da] Enzyme v0.13.93 [f151be2c] EnzymeCore v0.8.15 [e2ba6199] ExprTools v0.1.10 [55351af7] ExproniconLite v0.10.14 [9aa1b823] FastClosures v0.3.2 [1a297f60] FillArrays v1.14.0 [6a86dc24] FiniteDiff v2.29.0 ⌅ [f6369f11] ForwardDiff v0.10.39 [069b7b12] FunctionWrappers v1.1.3 [77dc65aa] FunctionWrappersWrappers v0.1.3 [d9f16b24] Functors v0.5.2 [0c68f7d7] GPUArrays v11.2.6 [46192b85] GPUArraysCore v0.2.0 [61eb1bfa] GPUCompiler v1.7.2 [076d061b] HashArrayMappedTries v0.2.0 [0e44f5e4] Hwloc v3.3.0 [7869d1d1] IRTools v0.4.15 [3587e190] InverseFunctions v0.1.17 [92d709cd] IrrationalConstants v0.2.6 [82899510] IteratorInterfaceExtensions v1.0.0 [692b3bcd] JLLWrappers v1.7.1 [ae98c720] Jieko v0.2.1 [63c18a36] KernelAbstractions v0.9.38 [929cbde3] LLVM v9.4.4 [87fe0de2] LineSearch v0.1.4 [d3d80556] LineSearches v7.4.0 [2ab3a3ac] LogExpFunctions v0.3.29 [1914dd2f] MacroTools v0.5.16 [bb5d69b7] MaybeInplace v0.1.4 [2e0e35c7] Moshi v0.3.7 [d41bc354] NLSolversBase v7.10.0 [872c559c] NNlib v0.9.31 [77ba4419] NaNMath v1.1.3 [b7050fa9] NonlinearProblemLibrary v0.1.3 [d8793406] ObjectFile v0.5.0 [3bd65402] Optimisers v0.4.6 [bac558e1] OrderedCollections v1.8.1 [d96e819e] Parameters v0.12.3 ⌅ [aea7be01] PrecompileTools v1.2.1 [21216c6a] Preferences v1.5.0 [817f1d60] ReTestItems v1.34.0 [c1ae055f] RealDot v0.1.0 [3cdcf5f2] RecipesBase v1.3.4 ⌃ [731186ca] RecursiveArrayTools v3.36.0 [189a3867] Reexport v1.2.2 [ae029012] Requires v1.3.1 [37e2e3b7] ReverseDiff v1.16.1 [7e49a35a] RuntimeGeneratedFunctions v0.5.15 ⌃ [0bca4576] SciMLBase v2.101.0 [19f34311] SciMLJacobianOperators v0.1.11 [c0aeaf25] SciMLOperators v1.9.0 [53ae85a6] SciMLStructures v1.7.0 [7e506255] ScopedValues v1.5.0 [6c6a2e73] Scratch v1.3.0 [efcf1570] Setfield v1.1.2 [dc90abb0] SparseInverseSubset v0.1.2 [276daf66] SpecialFunctions v2.6.1 [90137ffa] StaticArrays v1.9.15 [1e83bf80] StaticArraysCore v1.4.4 [10745b16] Statistics v1.11.1 [09ab397b] StructArrays v0.7.2 [53d494c1] StructIO v0.3.1 [2efcf032] SymbolicIndexingInterface v0.3.46 [3783bdb8] TableTraits v1.0.1 [bd369af6] Tables v1.12.1 [1e6cf692] TestEnv v1.102.2 [9f7883ad] Tracker v0.2.38 [e689c965] Tracy v0.1.6 [3a884ed6] UnPack v1.0.2 [013be700] UnsafeAtomics v0.3.0 ⌅ [e88e6eb3] Zygote v0.6.77 [700de1a5] ZygoteRules v0.2.7 [7cc45869] Enzyme_jll v0.0.205+0 [e33a78d0] Hwloc_jll v2.12.2+0 [dad2f222] LLVMExtra_jll v0.0.38+0 [ad6e5548] LibTracyClient_jll v0.9.1+6 [94ce4f54] Libiconv_jll v1.18.0+0 [efe28fd5] OpenSpecFun_jll v0.5.6+0 ⌅ [02c8fc9c] XML2_jll v2.13.9+0 [a65dc6b1] Xorg_libpciaccess_jll v0.18.1+0 [0dad84c5] ArgTools v1.1.2 [56f22d72] Artifacts v1.11.0 [2a0f44e3] Base64 v1.11.0 [ade2ca70] Dates v1.11.0 [8ba89e20] Distributed v1.11.0 [f43a241f] Downloads v1.6.0 [7b1f6079] FileWatching v1.11.0 [9fa8497b] Future v1.11.0 [b77e0a4c] InteractiveUtils v1.11.0 [4af54fe1] LazyArtifacts v1.11.0 [b27032c2] LibCURL v0.6.4 [76f85450] LibGit2 v1.11.0 [8f399da3] Libdl v1.11.0 [37e2e46d] LinearAlgebra v1.11.0 [56ddb016] Logging v1.11.0 [d6f4376e] Markdown v1.11.0 [ca575930] NetworkOptions v1.2.0 [44cfe95a] Pkg v1.11.0 [de0858da] Printf v1.11.0 [9a3f8284] Random v1.11.0 [ea8e919c] SHA v0.7.0 [9e88b42a] Serialization v1.11.0 [6462fe0b] Sockets v1.11.0 [2f01184e] SparseArrays v1.11.0 [4607b0f0] SuiteSparse [fa267f1f] TOML v1.0.3 [a4e569a6] Tar v1.10.0 [8dfed614] Test v1.11.0 [cf7118a7] UUIDs v1.11.0 [4ec0a83e] Unicode v1.11.0 [e66e0078] CompilerSupportLibraries_jll v1.1.1+0 [deac9b47] LibCURL_jll v8.6.0+0 [e37daf67] LibGit2_jll v1.7.2+0 [29816b5a] LibSSH2_jll v1.11.0+1 [c8ffd9c3] MbedTLS_jll v2.28.6+0 [14a3606d] MozillaCACerts_jll v2023.12.12 [4536629a] OpenBLAS_jll v0.3.27+1 [05823500] OpenLibm_jll v0.8.5+0 [bea87d4a] SuiteSparse_jll v7.7.0+0 [83775a58] Zlib_jll v1.2.13+1 [8e850b90] libblastrampoline_jll v5.11.0+0 [8e850ede] nghttp2_jll v1.59.0+0 [3f19e933] p7zip_jll v17.4.0+2 Info Packages marked with ⌃ and ⌅ have new versions available. Those with ⌃ may be upgradable, but those with ⌅ are restricted by compatibility constraints from upgrading. Testing Running tests... Precompiling Hwloc... 4617.9 ms ✓ Hwloc 1 dependency successfully precompiled in 5 seconds. 12 already precompiled. ┌ Info: Julia Version 1.11.7 │ Commit 58327cce5e* (2025-10-06 21:27 UTC) │ Platform Info: │ OS: Linux (x86_64-linux-gnu) │ CPU: 128 × AMD EPYC 7502 32-Core Processor │ WORD_SIZE: 64 │ LLVM: libLLVM-16.0.6 (ORCJIT, znver2) │ Threads: 1 default, 0 interactive, 1 GC (on 1 virtual cores) │ Environment: │ JULIA_CPU_THREADS = 1 │ JULIA_NUM_PRECOMPILE_TASKS = 1 │ JULIA_PKG_PRECOMPILE_AUTO = 0 │ JULIA_PKGEVAL = true │ JULIA_DEPOT_PATH = /home/pkgeval/.julia:/usr/local/share/julia: │ JULIA_NUM_THREADS = 1 └ JULIA_LOAD_PATH = @:/tmp/jl_COxxSj [ Info: Running tests for group: all with 1 workers [ Info: Scanning for test items in project `LineSearch` at paths: /home/pkgeval/.julia/packages/LineSearch/Ky1ZB [ Info: Finished scanning for test items in 6.49 seconds. [ Info: Scheduling 4 tests on pid 223 with 1 worker processes and 1 threads per worker. [ Info: Starting test workers Worker 231: [ Info: Starting test worker 1 on pid = 231, with 1 threads [ Info: Starting running test items Worker 231: 21:39:15 | maxrss 2.2% | mem 4.4% | START (1/4) test item "LineSearches.jl: Custom Optimizer" at test/custom_optimizer_tests.jl:51 Worker 231: 22:06:25 | maxrss 3.1% | mem 6.6% | DONE (1/4) test item "LineSearches.jl: Custom Optimizer" 1627.4 secs (35.3% compile, <0.1% recompile, 0.3% GC), 168.23 M allocs (9.288 GB) Worker 231: 22:06:27 | maxrss 3.1% | mem 6.6% | START (2/4) test item "Native Line Search: Custom Optimizer" at test/custom_optimizer_tests.jl:103 Worker 231: 22:07:24 | maxrss 3.1% | mem 6.7% | DONE (2/4) test item "Native Line Search: Custom Optimizer" 56.9 secs (91.5% compile, 1.0% GC), 33.75 M allocs (1.455 GB) Worker 231: 22:07:24 | maxrss 3.1% | mem 6.7% | START (3/4) test item "LineSearches.jl: Newton Raphson" at test/root_finding_tests.jl:77 Worker 231: 22:11:16 | maxrss 3.4% | mem 7.0% | DONE (3/4) test item "LineSearches.jl: Newton Raphson" 230.7 secs (99.5% compile, 0.6% GC), 52.38 M allocs (2.873 GB) No Captured Logs for test item "LineSearches.jl: Newton Raphson" at test/root_finding_tests.jl:77 on worker 231 Error in testset "method: BackTracking" on worker 231: Error During Test at /home/pkgeval/.julia/packages/LineSearch/Ky1ZB/test/root_finding_tests.jl:112 Got exception outside of a @test Constant memory is stored (or returned) to a differentiable variable. As a result, Enzyme cannot provably ensure correctness and throws this error. This might be due to the use of a constant variable as temporary storage for active memory (https://enzyme.mit.edu/julia/stable/faq/#Runtime-Activity). If Enzyme should be able to prove this use non-differentable, open an issue! To work around this issue, either: a) rewrite this variable to not be conditionally active (fastest, but requires a code change), or b) set the Enzyme mode to turn on runtime activity (e.g. autodiff(set_runtime_activity(Reverse), ...) ). This will maintain correctness, but may slightly reduce performance. Failure within method: MethodInstance for (::Main.var"##LineSearches.jl: Newton Raphson#4212".var"#nlf#2")(::Vector{Float64}, ::Vector{Float64}, ::Vector{Float64}) Hint: catch this exception as `err` and call `code_typed(err)` to inspect the errornous code. If you have Cthulu.jl loaded you can also use `code_typed(err; interactive = true)` to interactively introspect the code. Mismatched activity for: %nodecayed..pre-phi113 = phi {} addrspace(10)* [ %97, %L184 ], [ %0, %L119 ], [ %2, %L136 ], [ %2, %guard_exit29 ], !dbg !161 const val: {} addrspace(10)* %2 value=Unknown object of type Vector{Float64} llvalue={} addrspace(10)* %2 Stacktrace: [1] size @ ./array.jl:194 [2] axes @ ./abstractarray.jl:98 [3] newindexer @ ./broadcast.jl:598 [4] extrude @ ./broadcast.jl:645 [5] preprocess @ ./broadcast.jl:953 [6] preprocess_args @ ./broadcast.jl:956 [7] preprocess_args @ ./broadcast.jl:955 [8] preprocess @ ./broadcast.jl:952 [9] override_bc_copyto! @ ~/.julia/packages/Enzyme/Op3Un/src/compiler/interpreter.jl:818 [10] copyto! @ ./broadcast.jl:925 [11] materialize! @ ./broadcast.jl:883 [12] materialize! @ ./broadcast.jl:880 [13] nlf @ ~/.julia/packages/LineSearch/Ky1ZB/test/root_finding_tests.jl:106 Stacktrace: [1] mightalias @ ./abstractarray.jl:1537 [inlined] [2] unalias @ ./abstractarray.jl:1500 [inlined] [3] broadcast_unalias @ ./broadcast.jl:946 [inlined] [4] preprocess @ ./broadcast.jl:953 [inlined] [5] preprocess_args @ ./broadcast.jl:956 [inlined] [6] preprocess_args @ ./broadcast.jl:955 [inlined] [7] preprocess @ ./broadcast.jl:952 [inlined] [8] override_bc_copyto! @ ~/.julia/packages/Enzyme/Op3Un/src/compiler/interpreter.jl:818 [inlined] [9] copyto! @ ./broadcast.jl:925 [inlined] [10] materialize! @ ./broadcast.jl:883 [inlined] [11] materialize! @ ./broadcast.jl:880 [inlined] [12] nlf @ ~/.julia/packages/LineSearch/Ky1ZB/test/root_finding_tests.jl:106 [13] NonlinearFunction @ ~/.julia/packages/SciMLBase/rvXrA/src/scimlfunctions.jl:2593 [inlined] [14] NonlinearFunction @ ~/.julia/packages/SciMLBase/rvXrA/src/scimlfunctions.jl:0 [inlined] [15] diffejulia_NonlinearFunction_102320_inner_3wrap @ ~/.julia/packages/SciMLBase/rvXrA/src/scimlfunctions.jl:0 [16] macro expansion @ ~/.julia/packages/Enzyme/Op3Un/src/compiler.jl:5883 [inlined] [17] enzyme_call @ ~/.julia/packages/Enzyme/Op3Un/src/compiler.jl:5417 [inlined] [18] CombinedAdjointThunk @ ~/.julia/packages/Enzyme/Op3Un/src/compiler.jl:5303 [inlined] [19] autodiff @ ~/.julia/packages/Enzyme/Op3Un/src/Enzyme.jl:521 [inlined] [20] autodiff @ ~/.julia/packages/Enzyme/Op3Un/src/Enzyme.jl:542 [inlined] [21] value_and_pullback!(f!::SciMLBase.NonlinearFunction{true, SciMLBase.FullSpecialize, Main.var"##LineSearches.jl: Newton Raphson#4212".var"#nlf#2", LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED_NO_TIME), Nothing, Nothing, Nothing, Nothing}, y::Vector{Float64}, tx::Tuple{Vector{Float64}}, prep::DifferentiationInterfaceEnzymeExt.EnzymeReverseTwoArgPullbackPrep{Nothing, Nothing, Tuple{Nothing}, Tuple{Vector{Float64}}}, backend::ADTypes.AutoEnzyme{Nothing, Nothing}, x::Vector{Float64}, ty::Tuple{Vector{Float64}}, contexts::DifferentiationInterface.Constant{Vector{Float64}}) @ DifferentiationInterfaceEnzymeExt ~/.julia/packages/DifferentiationInterface/zJHX8/ext/DifferentiationInterfaceEnzymeExt/reverse_twoarg.jl:142 [22] pullback! @ ~/.julia/packages/DifferentiationInterface/zJHX8/src/first_order/pullback.jl:557 [inlined] [23] #9 @ ~/.julia/packages/SciMLJacobianOperators/zHNyf/src/SciMLJacobianOperators.jl:317 [inlined] [24] (::SciMLJacobianOperators.JacobianOperator{true, Float64, SciMLJacobianOperators.VJP, Nothing, SciMLJacobianOperators.var"#9#13"{SciMLBase.NonlinearFunction{true, SciMLBase.FullSpecialize, Main.var"##LineSearches.jl: Newton Raphson#4212".var"#nlf#2", LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED_NO_TIME), Nothing, Nothing, Nothing, Nothing}, Vector{Float64}, DifferentiationInterfaceEnzymeExt.EnzymeReverseTwoArgPullbackPrep{Nothing, Nothing, Tuple{Nothing}, Tuple{Vector{Float64}}}, ADTypes.AutoEnzyme{Nothing, Nothing}}, Tuple{Int64, Int64}, Vector{Float64}, Vector{Float64}})(v::Vector{Float64}, u::Vector{Float64}, p::Vector{Float64}) @ SciMLJacobianOperators ~/.julia/packages/SciMLJacobianOperators/zHNyf/src/SciMLJacobianOperators.jl:140 [25] (::LineSearch.var"#4#6")(du::Vector{Float64}, u::Vector{Float64}, fu::Vector{Float64}, p::Vector{Float64}) @ LineSearch ~/.julia/packages/LineSearch/Ky1ZB/src/utils.jl:44 [26] #52 @ ~/.julia/packages/LineSearch/Ky1ZB/src/line_searches_ext.jl:88 [inlined] [27] #58 @ ~/.julia/packages/LineSearch/Ky1ZB/src/line_searches_ext.jl:102 [inlined] [28] solve!(cache::LineSearch.LineSearchesJLCache{SciMLBase.NonlinearFunction{true, SciMLBase.FullSpecialize, Main.var"##LineSearches.jl: Newton Raphson#4212".var"#nlf#2", LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED_NO_TIME), Nothing, Nothing, Nothing, Nothing}, Vector{Float64}, LineSearch.var"#50#53"{typeof(+), typeof(*), Nothing}, LineSearch.var"#51#54"{typeof(+), typeof(*), Nothing}, LineSearch.var"#52#55"{typeof(+), typeof(*), Nothing}, LineSearches.BackTracking{Float64, Int64}, Float64, Float64, LineSearch.var"#4#6", Vector{Float64}, Vector{Float64}, Nothing, LineSearch.LineSearchesJL{LineSearches.BackTracking{Float64, Int64}, Bool, ADTypes.AutoEnzyme{Nothing, Nothing}}}, u::Vector{Float64}, du::Vector{Float64}) @ LineSearch ~/.julia/packages/LineSearch/Ky1ZB/src/line_searches_ext.jl:105 [29] newton_raphson_iip(prob::SciMLBase.NonlinearProblem{Vector{Float64}, true, Vector{Float64}, SciMLBase.NonlinearFunction{true, SciMLBase.FullSpecialize, Main.var"##LineSearches.jl: Newton Raphson#4212".var"#nlf#2", LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED_NO_TIME), Nothing, Nothing, Nothing, Nothing}, @Kwargs{}, SciMLBase.StandardNonlinearProblem}, ls::LineSearch.LineSearchesJL{LineSearches.BackTracking{Float64, Int64}, Bool, ADTypes.AutoEnzyme{Nothing, Nothing}}) @ Main.var"##RootFinding#4211" ~/.julia/packages/LineSearch/Ky1ZB/test/root_finding_tests.jl:62 [30] newton_raphson(prob::SciMLBase.NonlinearProblem{Vector{Float64}, true, Vector{Float64}, SciMLBase.NonlinearFunction{true, SciMLBase.FullSpecialize, Main.var"##LineSearches.jl: Newton Raphson#4212".var"#nlf#2", LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED_NO_TIME), Nothing, Nothing, Nothing, Nothing}, @Kwargs{}, SciMLBase.StandardNonlinearProblem}, ls::LineSearch.LineSearchesJL{LineSearches.BackTracking{Float64, Int64}, Bool, ADTypes.AutoEnzyme{Nothing, Nothing}}) @ Main.var"##RootFinding#4211" ~/.julia/packages/LineSearch/Ky1ZB/test/root_finding_tests.jl:11 [31] macro expansion @ ~/.julia/packages/LineSearch/Ky1ZB/test/root_finding_tests.jl:120 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.11/Test/src/Test.jl:1798 [inlined] [33] macro expansion @ ~/.julia/packages/LineSearch/Ky1ZB/test/root_finding_tests.jl:112 [inlined] [34] macro expansion @ /opt/julia/share/julia/stdlib/v1.11/Test/src/Test.jl:1798 [inlined] [35] macro expansion @ ~/.julia/packages/LineSearch/Ky1ZB/test/root_finding_tests.jl:109 [inlined] [36] macro expansion @ /opt/julia/share/julia/stdlib/v1.11/Test/src/Test.jl:1709 [inlined] [37] top-level scope @ ~/.julia/packages/LineSearch/Ky1ZB/test/root_finding_tests.jl:106 [38] eval @ ./boot.jl:430 [inlined] [39] #100 @ ~/.julia/packages/ReTestItems/0nAwp/src/ReTestItems.jl:1140 [inlined] [40] with_source_path(f::ReTestItems.var"#100#104"{Expr}, path::String) @ ReTestItems ~/.julia/packages/ReTestItems/0nAwp/src/ReTestItems.jl:963 [41] (::ReTestItems.var"#99#103"{TestItem, String, Expr, Expr})() @ ReTestItems ~/.julia/packages/ReTestItems/0nAwp/src/ReTestItems.jl:1140 [42] redirect_stdio(f::ReTestItems.var"#99#103"{TestItem, String, Expr, Expr}; stdin::Nothing, stderr::IOContext{IOStream}, stdout::IOContext{IOStream}) @ Base ./stream.jl:1448 [43] redirect_stdio @ ./stream.jl:1411 [inlined] [44] _redirect_logs(f::ReTestItems.var"#99#103"{TestItem, String, Expr, Expr}, target::IOStream) @ ReTestItems ~/.julia/packages/ReTestItems/0nAwp/src/log_capture.jl:124 [45] #33 @ ~/.julia/packages/ReTestItems/0nAwp/src/log_capture.jl:107 [inlined] [46] open(::ReTestItems.var"#33#34"{ReTestItems.var"#99#103"{TestItem, String, Expr, Expr}}, ::String, ::Vararg{String}; kwargs::@Kwargs{}) @ Base ./io.jl:410 [47] open @ ./io.jl:407 [inlined] [48] _redirect_logs @ ~/.julia/packages/ReTestItems/0nAwp/src/log_capture.jl:107 [inlined] [49] macro expansion @ ~/.julia/packages/ReTestItems/0nAwp/src/macros.jl:82 [inlined] [50] runtestitem(ti::TestItem, ctx::ReTestItems.TestContext; test_end_expr::Expr, logs::Symbol, verbose_results::Bool, finish_test::Bool, catch_test_error::Bool, failfast::Bool) @ ReTestItems ~/.julia/packages/ReTestItems/0nAwp/src/ReTestItems.jl:1137 Error in testset "method: StrongWolfe" on worker 231: Error During Test at /home/pkgeval/.julia/packages/LineSearch/Ky1ZB/test/root_finding_tests.jl:112 Got exception outside of a @test Constant memory is stored (or returned) to a differentiable variable. As a result, Enzyme cannot provably ensure correctness and throws this error. This might be due to the use of a constant variable as temporary storage for active memory (https://enzyme.mit.edu/julia/stable/faq/#Runtime-Activity). If Enzyme should be able to prove this use non-differentable, open an issue! To work around this issue, either: a) rewrite this variable to not be conditionally active (fastest, but requires a code change), or b) set the Enzyme mode to turn on runtime activity (e.g. autodiff(set_runtime_activity(Reverse), ...) ). This will maintain correctness, but may slightly reduce performance. Failure within method: MethodInstance for (::Main.var"##LineSearches.jl: Newton Raphson#4212".var"#nlf#2")(::Vector{Float64}, ::Vector{Float64}, ::Vector{Float64}) Hint: catch this exception as `err` and call `code_typed(err)` to inspect the errornous code. If you have Cthulu.jl loaded you can also use `code_typed(err; interactive = true)` to interactively introspect the code. Mismatched activity for: %nodecayed..pre-phi113 = phi {} addrspace(10)* [ %97, %L184 ], [ %0, %L119 ], [ %2, %L136 ], [ %2, %guard_exit29 ], !dbg !161 const val: {} addrspace(10)* %2 value=Unknown object of type Vector{Float64} llvalue={} addrspace(10)* %2 Stacktrace: [1] size @ ./array.jl:194 [2] axes @ ./abstractarray.jl:98 [3] newindexer @ ./broadcast.jl:598 [4] extrude @ ./broadcast.jl:645 [5] preprocess @ ./broadcast.jl:953 [6] preprocess_args @ ./broadcast.jl:956 [7] preprocess_args @ ./broadcast.jl:955 [8] preprocess @ ./broadcast.jl:952 [9] override_bc_copyto! @ ~/.julia/packages/Enzyme/Op3Un/src/compiler/interpreter.jl:818 [10] copyto! @ ./broadcast.jl:925 [11] materialize! @ ./broadcast.jl:883 [12] materialize! @ ./broadcast.jl:880 [13] nlf @ ~/.julia/packages/LineSearch/Ky1ZB/test/root_finding_tests.jl:106 Stacktrace: [1] mightalias @ ./abstractarray.jl:1537 [inlined] [2] unalias @ ./abstractarray.jl:1500 [inlined] [3] broadcast_unalias @ ./broadcast.jl:946 [inlined] [4] preprocess @ ./broadcast.jl:953 [inlined] [5] preprocess_args @ ./broadcast.jl:956 [inlined] [6] preprocess_args @ ./broadcast.jl:955 [inlined] [7] preprocess @ ./broadcast.jl:952 [inlined] [8] override_bc_copyto! @ ~/.julia/packages/Enzyme/Op3Un/src/compiler/interpreter.jl:818 [inlined] [9] copyto! @ ./broadcast.jl:925 [inlined] [10] materialize! @ ./broadcast.jl:883 [inlined] [11] materialize! @ ./broadcast.jl:880 [inlined] [12] nlf @ ~/.julia/packages/LineSearch/Ky1ZB/test/root_finding_tests.jl:106 [13] NonlinearFunction @ ~/.julia/packages/SciMLBase/rvXrA/src/scimlfunctions.jl:2593 [inlined] [14] NonlinearFunction @ ~/.julia/packages/SciMLBase/rvXrA/src/scimlfunctions.jl:0 [inlined] [15] diffejulia_NonlinearFunction_102320_inner_3wrap @ ~/.julia/packages/SciMLBase/rvXrA/src/scimlfunctions.jl:0 [16] macro expansion @ ~/.julia/packages/Enzyme/Op3Un/src/compiler.jl:5883 [inlined] [17] enzyme_call @ ~/.julia/packages/Enzyme/Op3Un/src/compiler.jl:5417 [inlined] [18] CombinedAdjointThunk @ ~/.julia/packages/Enzyme/Op3Un/src/compiler.jl:5303 [inlined] [19] autodiff @ ~/.julia/packages/Enzyme/Op3Un/src/Enzyme.jl:521 [inlined] [20] autodiff @ ~/.julia/packages/Enzyme/Op3Un/src/Enzyme.jl:542 [inlined] [21] value_and_pullback!(f!::SciMLBase.NonlinearFunction{true, SciMLBase.FullSpecialize, Main.var"##LineSearches.jl: Newton Raphson#4212".var"#nlf#2", LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED_NO_TIME), Nothing, Nothing, Nothing, Nothing}, y::Vector{Float64}, tx::Tuple{Vector{Float64}}, prep::DifferentiationInterfaceEnzymeExt.EnzymeReverseTwoArgPullbackPrep{Nothing, Nothing, Tuple{Nothing}, Tuple{Vector{Float64}}}, backend::ADTypes.AutoEnzyme{Nothing, Nothing}, x::Vector{Float64}, ty::Tuple{Vector{Float64}}, contexts::DifferentiationInterface.Constant{Vector{Float64}}) @ DifferentiationInterfaceEnzymeExt ~/.julia/packages/DifferentiationInterface/zJHX8/ext/DifferentiationInterfaceEnzymeExt/reverse_twoarg.jl:142 [22] pullback! @ ~/.julia/packages/DifferentiationInterface/zJHX8/src/first_order/pullback.jl:557 [inlined] [23] #9 @ ~/.julia/packages/SciMLJacobianOperators/zHNyf/src/SciMLJacobianOperators.jl:317 [inlined] [24] (::SciMLJacobianOperators.JacobianOperator{true, Float64, SciMLJacobianOperators.VJP, Nothing, SciMLJacobianOperators.var"#9#13"{SciMLBase.NonlinearFunction{true, SciMLBase.FullSpecialize, Main.var"##LineSearches.jl: Newton Raphson#4212".var"#nlf#2", LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED_NO_TIME), Nothing, Nothing, Nothing, Nothing}, Vector{Float64}, DifferentiationInterfaceEnzymeExt.EnzymeReverseTwoArgPullbackPrep{Nothing, Nothing, Tuple{Nothing}, Tuple{Vector{Float64}}}, ADTypes.AutoEnzyme{Nothing, Nothing}}, Tuple{Int64, Int64}, Vector{Float64}, Vector{Float64}})(v::Vector{Float64}, u::Vector{Float64}, p::Vector{Float64}) @ SciMLJacobianOperators ~/.julia/packages/SciMLJacobianOperators/zHNyf/src/SciMLJacobianOperators.jl:140 [25] (::LineSearch.var"#4#6")(du::Vector{Float64}, u::Vector{Float64}, fu::Vector{Float64}, p::Vector{Float64}) @ LineSearch ~/.julia/packages/LineSearch/Ky1ZB/src/utils.jl:44 [26] #52 @ ~/.julia/packages/LineSearch/Ky1ZB/src/line_searches_ext.jl:88 [inlined] [27] #58 @ ~/.julia/packages/LineSearch/Ky1ZB/src/line_searches_ext.jl:102 [inlined] [28] solve!(cache::LineSearch.LineSearchesJLCache{SciMLBase.NonlinearFunction{true, SciMLBase.FullSpecialize, Main.var"##LineSearches.jl: Newton Raphson#4212".var"#nlf#2", LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED_NO_TIME), Nothing, Nothing, Nothing, Nothing}, Vector{Float64}, LineSearch.var"#50#53"{typeof(+), typeof(*), Nothing}, LineSearch.var"#51#54"{typeof(+), typeof(*), Nothing}, LineSearch.var"#52#55"{typeof(+), typeof(*), Nothing}, LineSearches.StrongWolfe{Float64}, Float64, Float64, LineSearch.var"#4#6", Vector{Float64}, Vector{Float64}, Nothing, LineSearch.LineSearchesJL{LineSearches.StrongWolfe{Float64}, Bool, ADTypes.AutoEnzyme{Nothing, Nothing}}}, u::Vector{Float64}, du::Vector{Float64}) @ LineSearch ~/.julia/packages/LineSearch/Ky1ZB/src/line_searches_ext.jl:105 [29] newton_raphson_iip(prob::SciMLBase.NonlinearProblem{Vector{Float64}, true, Vector{Float64}, SciMLBase.NonlinearFunction{true, SciMLBase.FullSpecialize, Main.var"##LineSearches.jl: Newton Raphson#4212".var"#nlf#2", LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED_NO_TIME), Nothing, Nothing, Nothing, Nothing}, @Kwargs{}, SciMLBase.StandardNonlinearProblem}, ls::LineSearch.LineSearchesJL{LineSearches.StrongWolfe{Float64}, Bool, ADTypes.AutoEnzyme{Nothing, Nothing}}) @ Main.var"##RootFinding#4211" ~/.julia/packages/LineSearch/Ky1ZB/test/root_finding_tests.jl:62 [30] newton_raphson(prob::SciMLBase.NonlinearProblem{Vector{Float64}, true, Vector{Float64}, SciMLBase.NonlinearFunction{true, SciMLBase.FullSpecialize, Main.var"##LineSearches.jl: Newton Raphson#4212".var"#nlf#2", LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED_NO_TIME), Nothing, Nothing, Nothing, Nothing}, @Kwargs{}, SciMLBase.StandardNonlinearProblem}, ls::LineSearch.LineSearchesJL{LineSearches.StrongWolfe{Float64}, Bool, ADTypes.AutoEnzyme{Nothing, Nothing}}) @ Main.var"##RootFinding#4211" ~/.julia/packages/LineSearch/Ky1ZB/test/root_finding_tests.jl:11 [31] macro expansion @ ~/.julia/packages/LineSearch/Ky1ZB/test/root_finding_tests.jl:120 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.11/Test/src/Test.jl:1798 [inlined] [33] macro expansion @ ~/.julia/packages/LineSearch/Ky1ZB/test/root_finding_tests.jl:112 [inlined] [34] macro expansion @ /opt/julia/share/julia/stdlib/v1.11/Test/src/Test.jl:1798 [inlined] [35] macro expansion @ ~/.julia/packages/LineSearch/Ky1ZB/test/root_finding_tests.jl:109 [inlined] [36] macro expansion @ /opt/julia/share/julia/stdlib/v1.11/Test/src/Test.jl:1709 [inlined] [37] top-level scope @ ~/.julia/packages/LineSearch/Ky1ZB/test/root_finding_tests.jl:106 [38] eval @ ./boot.jl:430 [inlined] [39] #100 @ ~/.julia/packages/ReTestItems/0nAwp/src/ReTestItems.jl:1140 [inlined] [40] with_source_path(f::ReTestItems.var"#100#104"{Expr}, path::String) @ ReTestItems ~/.julia/packages/ReTestItems/0nAwp/src/ReTestItems.jl:963 [41] (::ReTestItems.var"#99#103"{TestItem, String, Expr, Expr})() @ ReTestItems ~/.julia/packages/ReTestItems/0nAwp/src/ReTestItems.jl:1140 [42] redirect_stdio(f::ReTestItems.var"#99#103"{TestItem, String, Expr, Expr}; stdin::Nothing, stderr::IOContext{IOStream}, stdout::IOContext{IOStream}) @ Base ./stream.jl:1448 [43] redirect_stdio @ ./stream.jl:1411 [inlined] [44] _redirect_logs(f::ReTestItems.var"#99#103"{TestItem, String, Expr, Expr}, target::IOStream) @ ReTestItems ~/.julia/packages/ReTestItems/0nAwp/src/log_capture.jl:124 [45] #33 @ ~/.julia/packages/ReTestItems/0nAwp/src/log_capture.jl:107 [inlined] [46] open(::ReTestItems.var"#33#34"{ReTestItems.var"#99#103"{TestItem, String, Expr, Expr}}, ::String, ::Vararg{String}; kwargs::@Kwargs{}) @ Base ./io.jl:410 [47] open @ ./io.jl:407 [inlined] [48] _redirect_logs @ ~/.julia/packages/ReTestItems/0nAwp/src/log_capture.jl:107 [inlined] [49] macro expansion @ ~/.julia/packages/ReTestItems/0nAwp/src/macros.jl:82 [inlined] [50] runtestitem(ti::TestItem, ctx::ReTestItems.TestContext; test_end_expr::Expr, logs::Symbol, verbose_results::Bool, finish_test::Bool, catch_test_error::Bool, failfast::Bool) @ ReTestItems ~/.julia/packages/ReTestItems/0nAwp/src/ReTestItems.jl:1137 Error in testset "method: HagerZhang" on worker 231: Error During Test at /home/pkgeval/.julia/packages/LineSearch/Ky1ZB/test/root_finding_tests.jl:112 Got exception outside of a @test Constant memory is stored (or returned) to a differentiable variable. As a result, Enzyme cannot provably ensure correctness and throws this error. This might be due to the use of a constant variable as temporary storage for active memory (https://enzyme.mit.edu/julia/stable/faq/#Runtime-Activity). If Enzyme should be able to prove this use non-differentable, open an issue! To work around this issue, either: a) rewrite this variable to not be conditionally active (fastest, but requires a code change), or b) set the Enzyme mode to turn on runtime activity (e.g. autodiff(set_runtime_activity(Reverse), ...) ). This will maintain correctness, but may slightly reduce performance. Failure within method: MethodInstance for (::Main.var"##LineSearches.jl: Newton Raphson#4212".var"#nlf#2")(::Vector{Float64}, ::Vector{Float64}, ::Vector{Float64}) Hint: catch this exception as `err` and call `code_typed(err)` to inspect the errornous code. If you have Cthulu.jl loaded you can also use `code_typed(err; interactive = true)` to interactively introspect the code. Mismatched activity for: %nodecayed..pre-phi113 = phi {} addrspace(10)* [ %97, %L184 ], [ %0, %L119 ], [ %2, %L136 ], [ %2, %guard_exit29 ], !dbg !161 const val: {} addrspace(10)* %2 value=Unknown object of type Vector{Float64} llvalue={} addrspace(10)* %2 Stacktrace: [1] size @ ./array.jl:194 [2] axes @ ./abstractarray.jl:98 [3] newindexer @ ./broadcast.jl:598 [4] extrude @ ./broadcast.jl:645 [5] preprocess @ ./broadcast.jl:953 [6] preprocess_args @ ./broadcast.jl:956 [7] preprocess_args @ ./broadcast.jl:955 [8] preprocess @ ./broadcast.jl:952 [9] override_bc_copyto! @ ~/.julia/packages/Enzyme/Op3Un/src/compiler/interpreter.jl:818 [10] copyto! @ ./broadcast.jl:925 [11] materialize! @ ./broadcast.jl:883 [12] materialize! @ ./broadcast.jl:880 [13] nlf @ ~/.julia/packages/LineSearch/Ky1ZB/test/root_finding_tests.jl:106 Stacktrace: [1] mightalias @ ./abstractarray.jl:1537 [inlined] [2] unalias @ ./abstractarray.jl:1500 [inlined] [3] broadcast_unalias @ ./broadcast.jl:946 [inlined] [4] preprocess @ ./broadcast.jl:953 [inlined] [5] preprocess_args @ ./broadcast.jl:956 [inlined] [6] preprocess_args @ ./broadcast.jl:955 [inlined] [7] preprocess @ ./broadcast.jl:952 [inlined] [8] override_bc_copyto! @ ~/.julia/packages/Enzyme/Op3Un/src/compiler/interpreter.jl:818 [inlined] [9] copyto! @ ./broadcast.jl:925 [inlined] [10] materialize! @ ./broadcast.jl:883 [inlined] [11] materialize! @ ./broadcast.jl:880 [inlined] [12] nlf @ ~/.julia/packages/LineSearch/Ky1ZB/test/root_finding_tests.jl:106 [13] NonlinearFunction @ ~/.julia/packages/SciMLBase/rvXrA/src/scimlfunctions.jl:2593 [inlined] [14] NonlinearFunction @ ~/.julia/packages/SciMLBase/rvXrA/src/scimlfunctions.jl:0 [inlined] [15] diffejulia_NonlinearFunction_102320_inner_3wrap @ ~/.julia/packages/SciMLBase/rvXrA/src/scimlfunctions.jl:0 [16] macro expansion @ ~/.julia/packages/Enzyme/Op3Un/src/compiler.jl:5883 [inlined] [17] enzyme_call @ ~/.julia/packages/Enzyme/Op3Un/src/compiler.jl:5417 [inlined] [18] CombinedAdjointThunk @ ~/.julia/packages/Enzyme/Op3Un/src/compiler.jl:5303 [inlined] [19] autodiff @ ~/.julia/packages/Enzyme/Op3Un/src/Enzyme.jl:521 [inlined] [20] autodiff @ ~/.julia/packages/Enzyme/Op3Un/src/Enzyme.jl:542 [inlined] [21] value_and_pullback!(f!::SciMLBase.NonlinearFunction{true, SciMLBase.FullSpecialize, Main.var"##LineSearches.jl: Newton Raphson#4212".var"#nlf#2", LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED_NO_TIME), Nothing, Nothing, Nothing, Nothing}, y::Vector{Float64}, tx::Tuple{Vector{Float64}}, prep::DifferentiationInterfaceEnzymeExt.EnzymeReverseTwoArgPullbackPrep{Nothing, Nothing, Tuple{Nothing}, Tuple{Vector{Float64}}}, backend::ADTypes.AutoEnzyme{Nothing, Nothing}, x::Vector{Float64}, ty::Tuple{Vector{Float64}}, contexts::DifferentiationInterface.Constant{Vector{Float64}}) @ DifferentiationInterfaceEnzymeExt ~/.julia/packages/DifferentiationInterface/zJHX8/ext/DifferentiationInterfaceEnzymeExt/reverse_twoarg.jl:142 [22] pullback! @ ~/.julia/packages/DifferentiationInterface/zJHX8/src/first_order/pullback.jl:557 [inlined] [23] #9 @ ~/.julia/packages/SciMLJacobianOperators/zHNyf/src/SciMLJacobianOperators.jl:317 [inlined] [24] (::SciMLJacobianOperators.JacobianOperator{true, Float64, SciMLJacobianOperators.VJP, Nothing, SciMLJacobianOperators.var"#9#13"{SciMLBase.NonlinearFunction{true, SciMLBase.FullSpecialize, Main.var"##LineSearches.jl: Newton Raphson#4212".var"#nlf#2", LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED_NO_TIME), Nothing, Nothing, Nothing, Nothing}, Vector{Float64}, DifferentiationInterfaceEnzymeExt.EnzymeReverseTwoArgPullbackPrep{Nothing, Nothing, Tuple{Nothing}, Tuple{Vector{Float64}}}, ADTypes.AutoEnzyme{Nothing, Nothing}}, Tuple{Int64, Int64}, Vector{Float64}, Vector{Float64}})(v::Vector{Float64}, u::Vector{Float64}, p::Vector{Float64}) @ SciMLJacobianOperators ~/.julia/packages/SciMLJacobianOperators/zHNyf/src/SciMLJacobianOperators.jl:140 [25] (::LineSearch.var"#4#6")(du::Vector{Float64}, u::Vector{Float64}, fu::Vector{Float64}, p::Vector{Float64}) @ LineSearch ~/.julia/packages/LineSearch/Ky1ZB/src/utils.jl:44 [26] #52 @ ~/.julia/packages/LineSearch/Ky1ZB/src/line_searches_ext.jl:88 [inlined] [27] #58 @ ~/.julia/packages/LineSearch/Ky1ZB/src/line_searches_ext.jl:102 [inlined] [28] solve!(cache::LineSearch.LineSearchesJLCache{SciMLBase.NonlinearFunction{true, SciMLBase.FullSpecialize, Main.var"##LineSearches.jl: Newton Raphson#4212".var"#nlf#2", LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED_NO_TIME), Nothing, Nothing, Nothing, Nothing}, Vector{Float64}, LineSearch.var"#50#53"{typeof(+), typeof(*), Nothing}, LineSearch.var"#51#54"{typeof(+), typeof(*), Nothing}, LineSearch.var"#52#55"{typeof(+), typeof(*), Nothing}, LineSearches.HagerZhang{Float64, Base.RefValue{Bool}}, Float64, Float64, LineSearch.var"#4#6", Vector{Float64}, Vector{Float64}, Nothing, LineSearch.LineSearchesJL{LineSearches.HagerZhang{Float64, Base.RefValue{Bool}}, Bool, ADTypes.AutoEnzyme{Nothing, Nothing}}}, u::Vector{Float64}, du::Vector{Float64}) @ LineSearch ~/.julia/packages/LineSearch/Ky1ZB/src/line_searches_ext.jl:105 [29] newton_raphson_iip(prob::SciMLBase.NonlinearProblem{Vector{Float64}, true, Vector{Float64}, SciMLBase.NonlinearFunction{true, SciMLBase.FullSpecialize, Main.var"##LineSearches.jl: Newton Raphson#4212".var"#nlf#2", LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED_NO_TIME), Nothing, Nothing, Nothing, Nothing}, @Kwargs{}, SciMLBase.StandardNonlinearProblem}, ls::LineSearch.LineSearchesJL{LineSearches.HagerZhang{Float64, Base.RefValue{Bool}}, Bool, ADTypes.AutoEnzyme{Nothing, Nothing}}) @ Main.var"##RootFinding#4211" ~/.julia/packages/LineSearch/Ky1ZB/test/root_finding_tests.jl:62 [30] newton_raphson(prob::SciMLBase.NonlinearProblem{Vector{Float64}, true, Vector{Float64}, SciMLBase.NonlinearFunction{true, SciMLBase.FullSpecialize, Main.var"##LineSearches.jl: Newton Raphson#4212".var"#nlf#2", LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED_NO_TIME), Nothing, Nothing, Nothing, Nothing}, @Kwargs{}, SciMLBase.StandardNonlinearProblem}, ls::LineSearch.LineSearchesJL{LineSearches.HagerZhang{Float64, Base.RefValue{Bool}}, Bool, ADTypes.AutoEnzyme{Nothing, Nothing}}) @ Main.var"##RootFinding#4211" ~/.julia/packages/LineSearch/Ky1ZB/test/root_finding_tests.jl:11 [31] macro expansion @ ~/.julia/packages/LineSearch/Ky1ZB/test/root_finding_tests.jl:120 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.11/Test/src/Test.jl:1798 [inlined] [33] macro expansion @ ~/.julia/packages/LineSearch/Ky1ZB/test/root_finding_tests.jl:112 [inlined] [34] macro expansion @ /opt/julia/share/julia/stdlib/v1.11/Test/src/Test.jl:1798 [inlined] [35] macro expansion @ ~/.julia/packages/LineSearch/Ky1ZB/test/root_finding_tests.jl:109 [inlined] [36] macro expansion @ /opt/julia/share/julia/stdlib/v1.11/Test/src/Test.jl:1709 [inlined] [37] top-level scope @ ~/.julia/packages/LineSearch/Ky1ZB/test/root_finding_tests.jl:106 [38] eval @ ./boot.jl:430 [inlined] [39] #100 @ ~/.julia/packages/ReTestItems/0nAwp/src/ReTestItems.jl:1140 [inlined] [40] with_source_path(f::ReTestItems.var"#100#104"{Expr}, path::String) @ ReTestItems ~/.julia/packages/ReTestItems/0nAwp/src/ReTestItems.jl:963 [41] (::ReTestItems.var"#99#103"{TestItem, String, Expr, Expr})() @ ReTestItems ~/.julia/packages/ReTestItems/0nAwp/src/ReTestItems.jl:1140 [42] redirect_stdio(f::ReTestItems.var"#99#103"{TestItem, String, Expr, Expr}; stdin::Nothing, stderr::IOContext{IOStream}, stdout::IOContext{IOStream}) @ Base ./stream.jl:1448 [43] redirect_stdio @ ./stream.jl:1411 [inlined] [44] _redirect_logs(f::ReTestItems.var"#99#103"{TestItem, String, Expr, Expr}, target::IOStream) @ ReTestItems ~/.julia/packages/ReTestItems/0nAwp/src/log_capture.jl:124 [45] #33 @ ~/.julia/packages/ReTestItems/0nAwp/src/log_capture.jl:107 [inlined] [46] open(::ReTestItems.var"#33#34"{ReTestItems.var"#99#103"{TestItem, String, Expr, Expr}}, ::String, ::Vararg{String}; kwargs::@Kwargs{}) @ Base ./io.jl:410 [47] open @ ./io.jl:407 [inlined] [48] _redirect_logs @ ~/.julia/packages/ReTestItems/0nAwp/src/log_capture.jl:107 [inlined] [49] macro expansion @ ~/.julia/packages/ReTestItems/0nAwp/src/macros.jl:82 [inlined] [50] runtestitem(ti::TestItem, ctx::ReTestItems.TestContext; test_end_expr::Expr, logs::Symbol, verbose_results::Bool, finish_test::Bool, catch_test_error::Bool, failfast::Bool) @ ReTestItems ~/.julia/packages/ReTestItems/0nAwp/src/ReTestItems.jl:1137 Error in testset "method: MoreThuente" on worker 231: Error During Test at /home/pkgeval/.julia/packages/LineSearch/Ky1ZB/test/root_finding_tests.jl:112 Got exception outside of a @test Constant memory is stored (or returned) to a differentiable variable. As a result, Enzyme cannot provably ensure correctness and throws this error. This might be due to the use of a constant variable as temporary storage for active memory (https://enzyme.mit.edu/julia/stable/faq/#Runtime-Activity). If Enzyme should be able to prove this use non-differentable, open an issue! To work around this issue, either: a) rewrite this variable to not be conditionally active (fastest, but requires a code change), or b) set the Enzyme mode to turn on runtime activity (e.g. autodiff(set_runtime_activity(Reverse), ...) ). This will maintain correctness, but may slightly reduce performance. Failure within method: MethodInstance for (::Main.var"##LineSearches.jl: Newton Raphson#4212".var"#nlf#2")(::Vector{Float64}, ::Vector{Float64}, ::Vector{Float64}) Hint: catch this exception as `err` and call `code_typed(err)` to inspect the errornous code. If you have Cthulu.jl loaded you can also use `code_typed(err; interactive = true)` to interactively introspect the code. Mismatched activity for: %nodecayed..pre-phi113 = phi {} addrspace(10)* [ %97, %L184 ], [ %0, %L119 ], [ %2, %L136 ], [ %2, %guard_exit29 ], !dbg !161 const val: {} addrspace(10)* %2 value=Unknown object of type Vector{Float64} llvalue={} addrspace(10)* %2 Stacktrace: [1] size @ ./array.jl:194 [2] axes @ ./abstractarray.jl:98 [3] newindexer @ ./broadcast.jl:598 [4] extrude @ ./broadcast.jl:645 [5] preprocess @ ./broadcast.jl:953 [6] preprocess_args @ ./broadcast.jl:956 [7] preprocess_args @ ./broadcast.jl:955 [8] preprocess @ ./broadcast.jl:952 [9] override_bc_copyto! @ ~/.julia/packages/Enzyme/Op3Un/src/compiler/interpreter.jl:818 [10] copyto! @ ./broadcast.jl:925 [11] materialize! @ ./broadcast.jl:883 [12] materialize! @ ./broadcast.jl:880 [13] nlf @ ~/.julia/packages/LineSearch/Ky1ZB/test/root_finding_tests.jl:106 Stacktrace: [1] mightalias @ ./abstractarray.jl:1537 [inlined] [2] unalias @ ./abstractarray.jl:1500 [inlined] [3] broadcast_unalias @ ./broadcast.jl:946 [inlined] [4] preprocess @ ./broadcast.jl:953 [inlined] [5] preprocess_args @ ./broadcast.jl:956 [inlined] [6] preprocess_args @ ./broadcast.jl:955 [inlined] [7] preprocess @ ./broadcast.jl:952 [inlined] [8] override_bc_copyto! @ ~/.julia/packages/Enzyme/Op3Un/src/compiler/interpreter.jl:818 [inlined] [9] copyto! @ ./broadcast.jl:925 [inlined] [10] materialize! @ ./broadcast.jl:883 [inlined] [11] materialize! @ ./broadcast.jl:880 [inlined] [12] nlf @ ~/.julia/packages/LineSearch/Ky1ZB/test/root_finding_tests.jl:106 [13] NonlinearFunction @ ~/.julia/packages/SciMLBase/rvXrA/src/scimlfunctions.jl:2593 [inlined] [14] NonlinearFunction @ ~/.julia/packages/SciMLBase/rvXrA/src/scimlfunctions.jl:0 [inlined] [15] diffejulia_NonlinearFunction_102320_inner_3wrap @ ~/.julia/packages/SciMLBase/rvXrA/src/scimlfunctions.jl:0 [16] macro expansion @ ~/.julia/packages/Enzyme/Op3Un/src/compiler.jl:5883 [inlined] [17] enzyme_call @ ~/.julia/packages/Enzyme/Op3Un/src/compiler.jl:5417 [inlined] [18] CombinedAdjointThunk @ ~/.julia/packages/Enzyme/Op3Un/src/compiler.jl:5303 [inlined] [19] autodiff @ ~/.julia/packages/Enzyme/Op3Un/src/Enzyme.jl:521 [inlined] [20] autodiff @ ~/.julia/packages/Enzyme/Op3Un/src/Enzyme.jl:542 [inlined] [21] value_and_pullback!(f!::SciMLBase.NonlinearFunction{true, SciMLBase.FullSpecialize, Main.var"##LineSearches.jl: Newton Raphson#4212".var"#nlf#2", LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED_NO_TIME), Nothing, Nothing, Nothing, Nothing}, y::Vector{Float64}, tx::Tuple{Vector{Float64}}, prep::DifferentiationInterfaceEnzymeExt.EnzymeReverseTwoArgPullbackPrep{Nothing, Nothing, Tuple{Nothing}, Tuple{Vector{Float64}}}, backend::ADTypes.AutoEnzyme{Nothing, Nothing}, x::Vector{Float64}, ty::Tuple{Vector{Float64}}, contexts::DifferentiationInterface.Constant{Vector{Float64}}) @ DifferentiationInterfaceEnzymeExt ~/.julia/packages/DifferentiationInterface/zJHX8/ext/DifferentiationInterfaceEnzymeExt/reverse_twoarg.jl:142 [22] pullback! @ ~/.julia/packages/DifferentiationInterface/zJHX8/src/first_order/pullback.jl:557 [inlined] [23] #9 @ ~/.julia/packages/SciMLJacobianOperators/zHNyf/src/SciMLJacobianOperators.jl:317 [inlined] [24] (::SciMLJacobianOperators.JacobianOperator{true, Float64, SciMLJacobianOperators.VJP, Nothing, SciMLJacobianOperators.var"#9#13"{SciMLBase.NonlinearFunction{true, SciMLBase.FullSpecialize, Main.var"##LineSearches.jl: Newton Raphson#4212".var"#nlf#2", LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED_NO_TIME), Nothing, Nothing, Nothing, Nothing}, Vector{Float64}, DifferentiationInterfaceEnzymeExt.EnzymeReverseTwoArgPullbackPrep{Nothing, Nothing, Tuple{Nothing}, Tuple{Vector{Float64}}}, ADTypes.AutoEnzyme{Nothing, Nothing}}, Tuple{Int64, Int64}, Vector{Float64}, Vector{Float64}})(v::Vector{Float64}, u::Vector{Float64}, p::Vector{Float64}) @ SciMLJacobianOperators ~/.julia/packages/SciMLJacobianOperators/zHNyf/src/SciMLJacobianOperators.jl:140 [25] (::LineSearch.var"#4#6")(du::Vector{Float64}, u::Vector{Float64}, fu::Vector{Float64}, p::Vector{Float64}) @ LineSearch ~/.julia/packages/LineSearch/Ky1ZB/src/utils.jl:44 [26] #52 @ ~/.julia/packages/LineSearch/Ky1ZB/src/line_searches_ext.jl:88 [inlined] [27] #58 @ ~/.julia/packages/LineSearch/Ky1ZB/src/line_searches_ext.jl:102 [inlined] [28] solve!(cache::LineSearch.LineSearchesJLCache{SciMLBase.NonlinearFunction{true, SciMLBase.FullSpecialize, Main.var"##LineSearches.jl: Newton Raphson#4212".var"#nlf#2", LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED_NO_TIME), Nothing, Nothing, Nothing, Nothing}, Vector{Float64}, LineSearch.var"#50#53"{typeof(+), typeof(*), Nothing}, LineSearch.var"#51#54"{typeof(+), typeof(*), Nothing}, LineSearch.var"#52#55"{typeof(+), typeof(*), Nothing}, LineSearches.MoreThuente{Float64}, Float64, Float64, LineSearch.var"#4#6", Vector{Float64}, Vector{Float64}, Nothing, LineSearch.LineSearchesJL{LineSearches.MoreThuente{Float64}, Bool, ADTypes.AutoEnzyme{Nothing, Nothing}}}, u::Vector{Float64}, du::Vector{Float64}) @ LineSearch ~/.julia/packages/LineSearch/Ky1ZB/src/line_searches_ext.jl:105 [29] newton_raphson_iip(prob::SciMLBase.NonlinearProblem{Vector{Float64}, true, Vector{Float64}, SciMLBase.NonlinearFunction{true, SciMLBase.FullSpecialize, Main.var"##LineSearches.jl: Newton Raphson#4212".var"#nlf#2", LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED_NO_TIME), Nothing, Nothing, Nothing, Nothing}, @Kwargs{}, SciMLBase.StandardNonlinearProblem}, ls::LineSearch.LineSearchesJL{LineSearches.MoreThuente{Float64}, Bool, ADTypes.AutoEnzyme{Nothing, Nothing}}) @ Main.var"##RootFinding#4211" ~/.julia/packages/LineSearch/Ky1ZB/test/root_finding_tests.jl:62 [30] newton_raphson(prob::SciMLBase.NonlinearProblem{Vector{Float64}, true, Vector{Float64}, SciMLBase.NonlinearFunction{true, SciMLBase.FullSpecialize, Main.var"##LineSearches.jl: Newton Raphson#4212".var"#nlf#2", LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED_NO_TIME), Nothing, Nothing, Nothing, Nothing}, @Kwargs{}, SciMLBase.StandardNonlinearProblem}, ls::LineSearch.LineSearchesJL{LineSearches.MoreThuente{Float64}, Bool, ADTypes.AutoEnzyme{Nothing, Nothing}}) @ Main.var"##RootFinding#4211" ~/.julia/packages/LineSearch/Ky1ZB/test/root_finding_tests.jl:11 [31] macro expansion @ ~/.julia/packages/LineSearch/Ky1ZB/test/root_finding_tests.jl:120 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.11/Test/src/Test.jl:1798 [inlined] [33] macro expansion @ ~/.julia/packages/LineSearch/Ky1ZB/test/root_finding_tests.jl:112 [inlined] [34] macro expansion @ /opt/julia/share/julia/stdlib/v1.11/Test/src/Test.jl:1798 [inlined] [35] macro expansion @ ~/.julia/packages/LineSearch/Ky1ZB/test/root_finding_tests.jl:109 [inlined] [36] macro expansion @ /opt/julia/share/julia/stdlib/v1.11/Test/src/Test.jl:1709 [inlined] [37] top-level scope @ ~/.julia/packages/LineSearch/Ky1ZB/test/root_finding_tests.jl:106 [38] eval @ ./boot.jl:430 [inlined] [39] #100 @ ~/.julia/packages/ReTestItems/0nAwp/src/ReTestItems.jl:1140 [inlined] [40] with_source_path(f::ReTestItems.var"#100#104"{Expr}, path::String) @ ReTestItems ~/.julia/packages/ReTestItems/0nAwp/src/ReTestItems.jl:963 [41] (::ReTestItems.var"#99#103"{TestItem, String, Expr, Expr})() @ ReTestItems ~/.julia/packages/ReTestItems/0nAwp/src/ReTestItems.jl:1140 [42] redirect_stdio(f::ReTestItems.var"#99#103"{TestItem, String, Expr, Expr}; stdin::Nothing, stderr::IOContext{IOStream}, stdout::IOContext{IOStream}) @ Base ./stream.jl:1448 [43] redirect_stdio @ ./stream.jl:1411 [inlined] [44] _redirect_logs(f::ReTestItems.var"#99#103"{TestItem, String, Expr, Expr}, target::IOStream) @ ReTestItems ~/.julia/packages/ReTestItems/0nAwp/src/log_capture.jl:124 [45] #33 @ ~/.julia/packages/ReTestItems/0nAwp/src/log_capture.jl:107 [inlined] [46] open(::ReTestItems.var"#33#34"{ReTestItems.var"#99#103"{TestItem, String, Expr, Expr}}, ::String, ::Vararg{String}; kwargs::@Kwargs{}) @ Base ./io.jl:410 [47] open @ ./io.jl:407 [inlined] [48] _redirect_logs @ ~/.julia/packages/ReTestItems/0nAwp/src/log_capture.jl:107 [inlined] [49] macro expansion @ ~/.julia/packages/ReTestItems/0nAwp/src/macros.jl:82 [inlined] [50] runtestitem(ti::TestItem, ctx::ReTestItems.TestContext; test_end_expr::Expr, logs::Symbol, verbose_results::Bool, finish_test::Bool, catch_test_error::Bool, failfast::Bool) @ ReTestItems ~/.julia/packages/ReTestItems/0nAwp/src/ReTestItems.jl:1137 Error in testset "method: Static" on worker 231: Error During Test at /home/pkgeval/.julia/packages/LineSearch/Ky1ZB/test/root_finding_tests.jl:112 Got exception outside of a @test Constant memory is stored (or returned) to a differentiable variable. As a result, Enzyme cannot provably ensure correctness and throws this error. This might be due to the use of a constant variable as temporary storage for active memory (https://enzyme.mit.edu/julia/stable/faq/#Runtime-Activity). If Enzyme should be able to prove this use non-differentable, open an issue! To work around this issue, either: a) rewrite this variable to not be conditionally active (fastest, but requires a code change), or b) set the Enzyme mode to turn on runtime activity (e.g. autodiff(set_runtime_activity(Reverse), ...) ). This will maintain correctness, but may slightly reduce performance. Failure within method: MethodInstance for (::Main.var"##LineSearches.jl: Newton Raphson#4212".var"#nlf#2")(::Vector{Float64}, ::Vector{Float64}, ::Vector{Float64}) Hint: catch this exception as `err` and call `code_typed(err)` to inspect the errornous code. If you have Cthulu.jl loaded you can also use `code_typed(err; interactive = true)` to interactively introspect the code. Mismatched activity for: %nodecayed..pre-phi113 = phi {} addrspace(10)* [ %97, %L184 ], [ %0, %L119 ], [ %2, %L136 ], [ %2, %guard_exit29 ], !dbg !161 const val: {} addrspace(10)* %2 value=Unknown object of type Vector{Float64} llvalue={} addrspace(10)* %2 Stacktrace: [1] size @ ./array.jl:194 [2] axes @ ./abstractarray.jl:98 [3] newindexer @ ./broadcast.jl:598 [4] extrude @ ./broadcast.jl:645 [5] preprocess @ ./broadcast.jl:953 [6] preprocess_args @ ./broadcast.jl:956 [7] preprocess_args @ ./broadcast.jl:955 [8] preprocess @ ./broadcast.jl:952 [9] override_bc_copyto! @ ~/.julia/packages/Enzyme/Op3Un/src/compiler/interpreter.jl:818 [10] copyto! @ ./broadcast.jl:925 [11] materialize! @ ./broadcast.jl:883 [12] materialize! @ ./broadcast.jl:880 [13] nlf @ ~/.julia/packages/LineSearch/Ky1ZB/test/root_finding_tests.jl:106 Stacktrace: [1] mightalias @ ./abstractarray.jl:1537 [inlined] [2] unalias @ ./abstractarray.jl:1500 [inlined] [3] broadcast_unalias @ ./broadcast.jl:946 [inlined] [4] preprocess @ ./broadcast.jl:953 [inlined] [5] preprocess_args @ ./broadcast.jl:956 [inlined] [6] preprocess_args @ ./broadcast.jl:955 [inlined] [7] preprocess @ ./broadcast.jl:952 [inlined] [8] override_bc_copyto! @ ~/.julia/packages/Enzyme/Op3Un/src/compiler/interpreter.jl:818 [inlined] [9] copyto! @ ./broadcast.jl:925 [inlined] [10] materialize! @ ./broadcast.jl:883 [inlined] [11] materialize! @ ./broadcast.jl:880 [inlined] [12] nlf @ ~/.julia/packages/LineSearch/Ky1ZB/test/root_finding_tests.jl:106 [13] NonlinearFunction @ ~/.julia/packages/SciMLBase/rvXrA/src/scimlfunctions.jl:2593 [inlined] [14] NonlinearFunction @ ~/.julia/packages/SciMLBase/rvXrA/src/scimlfunctions.jl:0 [inlined] [15] diffejulia_NonlinearFunction_102320_inner_3wrap @ ~/.julia/packages/SciMLBase/rvXrA/src/scimlfunctions.jl:0 [16] macro expansion @ ~/.julia/packages/Enzyme/Op3Un/src/compiler.jl:5883 [inlined] [17] enzyme_call @ ~/.julia/packages/Enzyme/Op3Un/src/compiler.jl:5417 [inlined] [18] CombinedAdjointThunk @ ~/.julia/packages/Enzyme/Op3Un/src/compiler.jl:5303 [inlined] [19] autodiff @ ~/.julia/packages/Enzyme/Op3Un/src/Enzyme.jl:521 [inlined] [20] autodiff @ ~/.julia/packages/Enzyme/Op3Un/src/Enzyme.jl:542 [inlined] [21] value_and_pullback!(f!::SciMLBase.NonlinearFunction{true, SciMLBase.FullSpecialize, Main.var"##LineSearches.jl: Newton Raphson#4212".var"#nlf#2", LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED_NO_TIME), Nothing, Nothing, Nothing, Nothing}, y::Vector{Float64}, tx::Tuple{Vector{Float64}}, prep::DifferentiationInterfaceEnzymeExt.EnzymeReverseTwoArgPullbackPrep{Nothing, Nothing, Tuple{Nothing}, Tuple{Vector{Float64}}}, backend::ADTypes.AutoEnzyme{Nothing, Nothing}, x::Vector{Float64}, ty::Tuple{Vector{Float64}}, contexts::DifferentiationInterface.Constant{Vector{Float64}}) @ DifferentiationInterfaceEnzymeExt ~/.julia/packages/DifferentiationInterface/zJHX8/ext/DifferentiationInterfaceEnzymeExt/reverse_twoarg.jl:142 [22] pullback! @ ~/.julia/packages/DifferentiationInterface/zJHX8/src/first_order/pullback.jl:557 [inlined] [23] #9 @ ~/.julia/packages/SciMLJacobianOperators/zHNyf/src/SciMLJacobianOperators.jl:317 [inlined] [24] (::SciMLJacobianOperators.JacobianOperator{true, Float64, SciMLJacobianOperators.VJP, Nothing, SciMLJacobianOperators.var"#9#13"{SciMLBase.NonlinearFunction{true, SciMLBase.FullSpecialize, Main.var"##LineSearches.jl: Newton Raphson#4212".var"#nlf#2", LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED_NO_TIME), Nothing, Nothing, Nothing, Nothing}, Vector{Float64}, DifferentiationInterfaceEnzymeExt.EnzymeReverseTwoArgPullbackPrep{Nothing, Nothing, Tuple{Nothing}, Tuple{Vector{Float64}}}, ADTypes.AutoEnzyme{Nothing, Nothing}}, Tuple{Int64, Int64}, Vector{Float64}, Vector{Float64}})(v::Vector{Float64}, u::Vector{Float64}, p::Vector{Float64}) @ SciMLJacobianOperators ~/.julia/packages/SciMLJacobianOperators/zHNyf/src/SciMLJacobianOperators.jl:140 [25] (::LineSearch.var"#4#6")(du::Vector{Float64}, u::Vector{Float64}, fu::Vector{Float64}, p::Vector{Float64}) @ LineSearch ~/.julia/packages/LineSearch/Ky1ZB/src/utils.jl:44 [26] #52 @ ~/.julia/packages/LineSearch/Ky1ZB/src/line_searches_ext.jl:88 [inlined] [27] #58 @ ~/.julia/packages/LineSearch/Ky1ZB/src/line_searches_ext.jl:102 [inlined] [28] solve!(cache::LineSearch.LineSearchesJLCache{SciMLBase.NonlinearFunction{true, SciMLBase.FullSpecialize, Main.var"##LineSearches.jl: Newton Raphson#4212".var"#nlf#2", LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED_NO_TIME), Nothing, Nothing, Nothing, Nothing}, Vector{Float64}, LineSearch.var"#50#53"{typeof(+), typeof(*), Nothing}, LineSearch.var"#51#54"{typeof(+), typeof(*), Nothing}, LineSearch.var"#52#55"{typeof(+), typeof(*), Nothing}, LineSearches.Static, Float64, Float64, LineSearch.var"#4#6", Vector{Float64}, Vector{Float64}, Nothing, LineSearch.LineSearchesJL{LineSearches.Static, Bool, ADTypes.AutoEnzyme{Nothing, Nothing}}}, u::Vector{Float64}, du::Vector{Float64}) @ LineSearch ~/.julia/packages/LineSearch/Ky1ZB/src/line_searches_ext.jl:105 [29] newton_raphson_iip(prob::SciMLBase.NonlinearProblem{Vector{Float64}, true, Vector{Float64}, SciMLBase.NonlinearFunction{true, SciMLBase.FullSpecialize, Main.var"##LineSearches.jl: Newton Raphson#4212".var"#nlf#2", LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED_NO_TIME), Nothing, Nothing, Nothing, Nothing}, @Kwargs{}, SciMLBase.StandardNonlinearProblem}, ls::LineSearch.LineSearchesJL{LineSearches.Static, Bool, ADTypes.AutoEnzyme{Nothing, Nothing}}) @ Main.var"##RootFinding#4211" ~/.julia/packages/LineSearch/Ky1ZB/test/root_finding_tests.jl:62 [30] newton_raphson(prob::SciMLBase.NonlinearProblem{Vector{Float64}, true, Vector{Float64}, SciMLBase.NonlinearFunction{true, SciMLBase.FullSpecialize, Main.var"##LineSearches.jl: Newton Raphson#4212".var"#nlf#2", LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED_NO_TIME), Nothing, Nothing, Nothing, Nothing}, @Kwargs{}, SciMLBase.StandardNonlinearProblem}, ls::LineSearch.LineSearchesJL{LineSearches.Static, Bool, ADTypes.AutoEnzyme{Nothing, Nothing}}) @ Main.var"##RootFinding#4211" ~/.julia/packages/LineSearch/Ky1ZB/test/root_finding_tests.jl:11 [31] macro expansion @ ~/.julia/packages/LineSearch/Ky1ZB/test/root_finding_tests.jl:120 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.11/Test/src/Test.jl:1798 [inlined] [33] macro expansion @ ~/.julia/packages/LineSearch/Ky1ZB/test/root_finding_tests.jl:112 [inlined] [34] macro expansion @ /opt/julia/share/julia/stdlib/v1.11/Test/src/Test.jl:1798 [inlined] [35] macro expansion @ ~/.julia/packages/LineSearch/Ky1ZB/test/root_finding_tests.jl:109 [inlined] [36] macro expansion @ /opt/julia/share/julia/stdlib/v1.11/Test/src/Test.jl:1709 [inlined] [37] top-level scope @ ~/.julia/packages/LineSearch/Ky1ZB/test/root_finding_tests.jl:106 [38] eval @ ./boot.jl:430 [inlined] [39] #100 @ ~/.julia/packages/ReTestItems/0nAwp/src/ReTestItems.jl:1140 [inlined] [40] with_source_path(f::ReTestItems.var"#100#104"{Expr}, path::String) @ ReTestItems ~/.julia/packages/ReTestItems/0nAwp/src/ReTestItems.jl:963 [41] (::ReTestItems.var"#99#103"{TestItem, String, Expr, Expr})() @ ReTestItems ~/.julia/packages/ReTestItems/0nAwp/src/ReTestItems.jl:1140 [42] redirect_stdio(f::ReTestItems.var"#99#103"{TestItem, String, Expr, Expr}; stdin::Nothing, stderr::IOContext{IOStream}, stdout::IOContext{IOStream}) @ Base ./stream.jl:1448 [43] redirect_stdio @ ./stream.jl:1411 [inlined] [44] _redirect_logs(f::ReTestItems.var"#99#103"{TestItem, String, Expr, Expr}, target::IOStream) @ ReTestItems ~/.julia/packages/ReTestItems/0nAwp/src/log_capture.jl:124 [45] #33 @ ~/.julia/packages/ReTestItems/0nAwp/src/log_capture.jl:107 [inlined] [46] open(::ReTestItems.var"#33#34"{ReTestItems.var"#99#103"{TestItem, String, Expr, Expr}}, ::String, ::Vararg{String}; kwargs::@Kwargs{}) @ Base ./io.jl:410 [47] open @ ./io.jl:407 [inlined] [48] _redirect_logs @ ~/.julia/packages/ReTestItems/0nAwp/src/log_capture.jl:107 [inlined] [49] macro expansion @ ~/.julia/packages/ReTestItems/0nAwp/src/macros.jl:82 [inlined] [50] runtestitem(ti::TestItem, ctx::ReTestItems.TestContext; test_end_expr::Expr, logs::Symbol, verbose_results::Bool, finish_test::Bool, catch_test_error::Bool, failfast::Bool) @ ReTestItems ~/.julia/packages/ReTestItems/0nAwp/src/ReTestItems.jl:1137 Worker 231: 22:11:16 | maxrss 3.4% | mem 7.0% | START (4/4) test item "Native Line Search: Newton Raphson" at test/root_finding_tests.jl:129 Worker 231: 22:12:07 | maxrss 3.4% | mem 7.0% | DONE (4/4) test item "Native Line Search: Newton Raphson" 50.8 secs (98.9% compile, 2.0% GC), 15.79 M allocs (858.230 MB) No Captured Logs for test item "Native Line Search: Newton Raphson" at test/root_finding_tests.jl:129 on worker 231 Error in testset "method: BackTracking" on worker 231: Error During Test at /home/pkgeval/.julia/packages/LineSearch/Ky1ZB/test/root_finding_tests.jl:180 Got exception outside of a @test Constant memory is stored (or returned) to a differentiable variable. As a result, Enzyme cannot provably ensure correctness and throws this error. This might be due to the use of a constant variable as temporary storage for active memory (https://enzyme.mit.edu/julia/stable/faq/#Runtime-Activity). If Enzyme should be able to prove this use non-differentable, open an issue! To work around this issue, either: a) rewrite this variable to not be conditionally active (fastest, but requires a code change), or b) set the Enzyme mode to turn on runtime activity (e.g. autodiff(set_runtime_activity(Reverse), ...) ). This will maintain correctness, but may slightly reduce performance. Failure within method: MethodInstance for (::Main.var"##Native Line Search: Newton Raphson#8429".var"#nlf#2")(::Vector{Float64}, ::Vector{Float64}, ::Vector{Float64}) Hint: catch this exception as `err` and call `code_typed(err)` to inspect the errornous code. If you have Cthulu.jl loaded you can also use `code_typed(err; interactive = true)` to interactively introspect the code. Mismatched activity for: %nodecayed..pre-phi113 = phi {} addrspace(10)* [ %97, %L184 ], [ %0, %L119 ], [ %2, %L136 ], [ %2, %guard_exit29 ], !dbg !161 const val: {} addrspace(10)* %2 value=Unknown object of type Vector{Float64} llvalue={} addrspace(10)* %2 Stacktrace: [1] size @ ./array.jl:194 [2] axes @ ./abstractarray.jl:98 [3] newindexer @ ./broadcast.jl:598 [4] extrude @ ./broadcast.jl:645 [5] preprocess @ ./broadcast.jl:953 [6] preprocess_args @ ./broadcast.jl:956 [7] preprocess_args @ ./broadcast.jl:955 [8] preprocess @ ./broadcast.jl:952 [9] override_bc_copyto! @ ~/.julia/packages/Enzyme/Op3Un/src/compiler/interpreter.jl:818 [10] copyto! @ ./broadcast.jl:925 [11] materialize! @ ./broadcast.jl:883 [12] materialize! @ ./broadcast.jl:880 [13] nlf @ ~/.julia/packages/LineSearch/Ky1ZB/test/root_finding_tests.jl:164 Stacktrace: [1] mightalias @ ./abstractarray.jl:1537 [inlined] [2] unalias @ ./abstractarray.jl:1500 [inlined] [3] broadcast_unalias @ ./broadcast.jl:946 [inlined] [4] preprocess @ ./broadcast.jl:953 [inlined] [5] preprocess_args @ ./broadcast.jl:956 [inlined] [6] preprocess_args @ ./broadcast.jl:955 [inlined] [7] preprocess @ ./broadcast.jl:952 [inlined] [8] override_bc_copyto! @ ~/.julia/packages/Enzyme/Op3Un/src/compiler/interpreter.jl:818 [inlined] [9] copyto! @ ./broadcast.jl:925 [inlined] [10] materialize! @ ./broadcast.jl:883 [inlined] [11] materialize! @ ./broadcast.jl:880 [inlined] [12] nlf @ ~/.julia/packages/LineSearch/Ky1ZB/test/root_finding_tests.jl:164 [13] NonlinearFunction @ ~/.julia/packages/SciMLBase/rvXrA/src/scimlfunctions.jl:2593 [inlined] [14] NonlinearFunction @ ~/.julia/packages/SciMLBase/rvXrA/src/scimlfunctions.jl:0 [inlined] [15] diffejulia_NonlinearFunction_112806_inner_3wrap @ ~/.julia/packages/SciMLBase/rvXrA/src/scimlfunctions.jl:0 [16] macro expansion @ ~/.julia/packages/Enzyme/Op3Un/src/compiler.jl:5883 [inlined] [17] enzyme_call @ ~/.julia/packages/Enzyme/Op3Un/src/compiler.jl:5417 [inlined] [18] CombinedAdjointThunk @ ~/.julia/packages/Enzyme/Op3Un/src/compiler.jl:5303 [inlined] [19] autodiff @ ~/.julia/packages/Enzyme/Op3Un/src/Enzyme.jl:521 [inlined] [20] autodiff @ ~/.julia/packages/Enzyme/Op3Un/src/Enzyme.jl:542 [inlined] [21] value_and_pullback!(f!::SciMLBase.NonlinearFunction{true, SciMLBase.FullSpecialize, Main.var"##Native Line Search: Newton Raphson#8429".var"#nlf#2", LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED_NO_TIME), Nothing, Nothing, Nothing, Nothing}, y::Vector{Float64}, tx::Tuple{Vector{Float64}}, prep::DifferentiationInterfaceEnzymeExt.EnzymeReverseTwoArgPullbackPrep{Nothing, Nothing, Tuple{Nothing}, Tuple{Vector{Float64}}}, backend::ADTypes.AutoEnzyme{Nothing, Nothing}, x::Vector{Float64}, ty::Tuple{Vector{Float64}}, contexts::DifferentiationInterface.Constant{Vector{Float64}}) @ DifferentiationInterfaceEnzymeExt ~/.julia/packages/DifferentiationInterface/zJHX8/ext/DifferentiationInterfaceEnzymeExt/reverse_twoarg.jl:142 [22] pullback! @ ~/.julia/packages/DifferentiationInterface/zJHX8/src/first_order/pullback.jl:557 [inlined] [23] #9 @ ~/.julia/packages/SciMLJacobianOperators/zHNyf/src/SciMLJacobianOperators.jl:317 [inlined] [24] (::SciMLJacobianOperators.JacobianOperator{true, Float64, SciMLJacobianOperators.VJP, Nothing, SciMLJacobianOperators.var"#9#13"{SciMLBase.NonlinearFunction{true, SciMLBase.FullSpecialize, Main.var"##Native Line Search: Newton Raphson#8429".var"#nlf#2", LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED_NO_TIME), Nothing, Nothing, Nothing, Nothing}, Vector{Float64}, DifferentiationInterfaceEnzymeExt.EnzymeReverseTwoArgPullbackPrep{Nothing, Nothing, Tuple{Nothing}, Tuple{Vector{Float64}}}, ADTypes.AutoEnzyme{Nothing, Nothing}}, Tuple{Int64, Int64}, Vector{Float64}, Vector{Float64}})(v::Vector{Float64}, u::Vector{Float64}, p::Vector{Float64}) @ SciMLJacobianOperators ~/.julia/packages/SciMLJacobianOperators/zHNyf/src/SciMLJacobianOperators.jl:140 [25] (::LineSearch.var"#4#6")(du::Vector{Float64}, u::Vector{Float64}, fu::Vector{Float64}, p::Vector{Float64}) @ LineSearch ~/.julia/packages/LineSearch/Ky1ZB/src/utils.jl:44 [26] #10 @ ~/.julia/packages/LineSearch/Ky1ZB/src/backtracking.jl:78 [inlined] [27] #14 @ ~/.julia/packages/LineSearch/Ky1ZB/src/backtracking.jl:94 [inlined] [28] solve!(cache::LineSearch.BackTrackingCache{SciMLBase.NonlinearFunction{true, SciMLBase.FullSpecialize, Main.var"##Native Line Search: Newton Raphson#8429".var"#nlf#2", LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED_NO_TIME), Nothing, Nothing, Nothing, Nothing}, Vector{Float64}, LineSearch.var"#9#11"{typeof(+), typeof(*), Nothing}, LineSearch.var"#10#12"{typeof(+), typeof(*), Nothing}, Float64, Float64, LineSearch.var"#4#6", Vector{Float64}, Vector{Float64}, Nothing, LineSearch.BackTracking{ADTypes.AutoEnzyme{Nothing, Nothing}, Float64, Float64, Float64, Val{3}, Float64, Bool}}, u::Vector{Float64}, du::Vector{Float64}) @ LineSearch ~/.julia/packages/LineSearch/Ky1ZB/src/backtracking.jl:97 [29] newton_raphson_iip(prob::SciMLBase.NonlinearProblem{Vector{Float64}, true, Vector{Float64}, SciMLBase.NonlinearFunction{true, SciMLBase.FullSpecialize, Main.var"##Native Line Search: Newton Raphson#8429".var"#nlf#2", LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED_NO_TIME), Nothing, Nothing, Nothing, Nothing}, @Kwargs{}, SciMLBase.StandardNonlinearProblem}, ls::LineSearch.BackTracking{ADTypes.AutoEnzyme{Nothing, Nothing}, Float64, Float64, Float64, Val{3}, Float64, Bool}) @ Main.var"##RootFinding#4211" ~/.julia/packages/LineSearch/Ky1ZB/test/root_finding_tests.jl:62 [30] newton_raphson(prob::SciMLBase.NonlinearProblem{Vector{Float64}, true, Vector{Float64}, SciMLBase.NonlinearFunction{true, SciMLBase.FullSpecialize, Main.var"##Native Line Search: Newton Raphson#8429".var"#nlf#2", LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED_NO_TIME), Nothing, Nothing, Nothing, Nothing}, @Kwargs{}, SciMLBase.StandardNonlinearProblem}, ls::LineSearch.BackTracking{ADTypes.AutoEnzyme{Nothing, Nothing}, Float64, Float64, Float64, Val{3}, Float64, Bool}) @ Main.var"##RootFinding#4211" ~/.julia/packages/LineSearch/Ky1ZB/test/root_finding_tests.jl:11 [31] macro expansion @ ~/.julia/packages/LineSearch/Ky1ZB/test/root_finding_tests.jl:184 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.11/Test/src/Test.jl:1798 [inlined] [33] macro expansion @ ~/.julia/packages/LineSearch/Ky1ZB/test/root_finding_tests.jl:180 [inlined] [34] macro expansion @ /opt/julia/share/julia/stdlib/v1.11/Test/src/Test.jl:1798 [inlined] [35] macro expansion @ ~/.julia/packages/LineSearch/Ky1ZB/test/root_finding_tests.jl:177 [inlined] [36] macro expansion @ /opt/julia/share/julia/stdlib/v1.11/Test/src/Test.jl:1709 [inlined] [37] top-level scope @ ~/.julia/packages/LineSearch/Ky1ZB/test/root_finding_tests.jl:164 [38] eval @ ./boot.jl:430 [inlined] [39] #100 @ ~/.julia/packages/ReTestItems/0nAwp/src/ReTestItems.jl:1140 [inlined] [40] with_source_path(f::ReTestItems.var"#100#104"{Expr}, path::String) @ ReTestItems ~/.julia/packages/ReTestItems/0nAwp/src/ReTestItems.jl:963 [41] (::ReTestItems.var"#99#103"{TestItem, String, Expr, Expr})() @ ReTestItems ~/.julia/packages/ReTestItems/0nAwp/src/ReTestItems.jl:1140 [42] redirect_stdio(f::ReTestItems.var"#99#103"{TestItem, String, Expr, Expr}; stdin::Nothing, stderr::IOContext{IOStream}, stdout::IOContext{IOStream}) @ Base ./stream.jl:1448 [43] redirect_stdio @ ./stream.jl:1411 [inlined] [44] _redirect_logs(f::ReTestItems.var"#99#103"{TestItem, String, Expr, Expr}, target::IOStream) @ ReTestItems ~/.julia/packages/ReTestItems/0nAwp/src/log_capture.jl:124 [45] #33 @ ~/.julia/packages/ReTestItems/0nAwp/src/log_capture.jl:107 [inlined] [46] open(::ReTestItems.var"#33#34"{ReTestItems.var"#99#103"{TestItem, String, Expr, Expr}}, ::String, ::Vararg{String}; kwargs::@Kwargs{}) @ Base ./io.jl:410 [47] open @ ./io.jl:407 [inlined] [48] _redirect_logs @ ~/.julia/packages/ReTestItems/0nAwp/src/log_capture.jl:107 [inlined] [49] macro expansion @ ~/.julia/packages/ReTestItems/0nAwp/src/macros.jl:82 [inlined] [50] runtestitem(ti::TestItem, ctx::ReTestItems.TestContext; test_end_expr::Expr, logs::Symbol, verbose_results::Bool, finish_test::Bool, catch_test_error::Bool, failfast::Bool) @ ReTestItems ~/.julia/packages/ReTestItems/0nAwp/src/ReTestItems.jl:1137 Error in testset "method: BackTracking" on worker 231: Error During Test at /home/pkgeval/.julia/packages/LineSearch/Ky1ZB/test/root_finding_tests.jl:180 Got exception outside of a @test Constant memory is stored (or returned) to a differentiable variable. As a result, Enzyme cannot provably ensure correctness and throws this error. This might be due to the use of a constant variable as temporary storage for active memory (https://enzyme.mit.edu/julia/stable/faq/#Runtime-Activity). If Enzyme should be able to prove this use non-differentable, open an issue! To work around this issue, either: a) rewrite this variable to not be conditionally active (fastest, but requires a code change), or b) set the Enzyme mode to turn on runtime activity (e.g. autodiff(set_runtime_activity(Reverse), ...) ). This will maintain correctness, but may slightly reduce performance. Failure within method: MethodInstance for (::Main.var"##Native Line Search: Newton Raphson#8429".var"#nlf#2")(::Vector{Float64}, ::Vector{Float64}, ::Vector{Float64}) Hint: catch this exception as `err` and call `code_typed(err)` to inspect the errornous code. If you have Cthulu.jl loaded you can also use `code_typed(err; interactive = true)` to interactively introspect the code. Mismatched activity for: %nodecayed..pre-phi113 = phi {} addrspace(10)* [ %97, %L184 ], [ %0, %L119 ], [ %2, %L136 ], [ %2, %guard_exit29 ], !dbg !161 const val: {} addrspace(10)* %2 value=Unknown object of type Vector{Float64} llvalue={} addrspace(10)* %2 Stacktrace: [1] size @ ./array.jl:194 [2] axes @ ./abstractarray.jl:98 [3] newindexer @ ./broadcast.jl:598 [4] extrude @ ./broadcast.jl:645 [5] preprocess @ ./broadcast.jl:953 [6] preprocess_args @ ./broadcast.jl:956 [7] preprocess_args @ ./broadcast.jl:955 [8] preprocess @ ./broadcast.jl:952 [9] override_bc_copyto! @ ~/.julia/packages/Enzyme/Op3Un/src/compiler/interpreter.jl:818 [10] copyto! @ ./broadcast.jl:925 [11] materialize! @ ./broadcast.jl:883 [12] materialize! @ ./broadcast.jl:880 [13] nlf @ ~/.julia/packages/LineSearch/Ky1ZB/test/root_finding_tests.jl:164 Stacktrace: [1] mightalias @ ./abstractarray.jl:1537 [inlined] [2] unalias @ ./abstractarray.jl:1500 [inlined] [3] broadcast_unalias @ ./broadcast.jl:946 [inlined] [4] preprocess @ ./broadcast.jl:953 [inlined] [5] preprocess_args @ ./broadcast.jl:956 [inlined] [6] preprocess_args @ ./broadcast.jl:955 [inlined] [7] preprocess @ ./broadcast.jl:952 [inlined] [8] override_bc_copyto! @ ~/.julia/packages/Enzyme/Op3Un/src/compiler/interpreter.jl:818 [inlined] [9] copyto! @ ./broadcast.jl:925 [inlined] [10] materialize! @ ./broadcast.jl:883 [inlined] [11] materialize! @ ./broadcast.jl:880 [inlined] [12] nlf @ ~/.julia/packages/LineSearch/Ky1ZB/test/root_finding_tests.jl:164 [13] NonlinearFunction @ ~/.julia/packages/SciMLBase/rvXrA/src/scimlfunctions.jl:2593 [inlined] [14] NonlinearFunction @ ~/.julia/packages/SciMLBase/rvXrA/src/scimlfunctions.jl:0 [inlined] [15] diffejulia_NonlinearFunction_112806_inner_3wrap @ ~/.julia/packages/SciMLBase/rvXrA/src/scimlfunctions.jl:0 [16] macro expansion @ ~/.julia/packages/Enzyme/Op3Un/src/compiler.jl:5883 [inlined] [17] enzyme_call @ ~/.julia/packages/Enzyme/Op3Un/src/compiler.jl:5417 [inlined] [18] CombinedAdjointThunk @ ~/.julia/packages/Enzyme/Op3Un/src/compiler.jl:5303 [inlined] [19] autodiff @ ~/.julia/packages/Enzyme/Op3Un/src/Enzyme.jl:521 [inlined] [20] autodiff @ ~/.julia/packages/Enzyme/Op3Un/src/Enzyme.jl:542 [inlined] [21] value_and_pullback!(f!::SciMLBase.NonlinearFunction{true, SciMLBase.FullSpecialize, Main.var"##Native Line Search: Newton Raphson#8429".var"#nlf#2", LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED_NO_TIME), Nothing, Nothing, Nothing, Nothing}, y::Vector{Float64}, tx::Tuple{Vector{Float64}}, prep::DifferentiationInterfaceEnzymeExt.EnzymeReverseTwoArgPullbackPrep{Nothing, Nothing, Tuple{Nothing}, Tuple{Vector{Float64}}}, backend::ADTypes.AutoEnzyme{Nothing, Nothing}, x::Vector{Float64}, ty::Tuple{Vector{Float64}}, contexts::DifferentiationInterface.Constant{Vector{Float64}}) @ DifferentiationInterfaceEnzymeExt ~/.julia/packages/DifferentiationInterface/zJHX8/ext/DifferentiationInterfaceEnzymeExt/reverse_twoarg.jl:142 [22] pullback! @ ~/.julia/packages/DifferentiationInterface/zJHX8/src/first_order/pullback.jl:557 [inlined] [23] #9 @ ~/.julia/packages/SciMLJacobianOperators/zHNyf/src/SciMLJacobianOperators.jl:317 [inlined] [24] (::SciMLJacobianOperators.JacobianOperator{true, Float64, SciMLJacobianOperators.VJP, Nothing, SciMLJacobianOperators.var"#9#13"{SciMLBase.NonlinearFunction{true, SciMLBase.FullSpecialize, Main.var"##Native Line Search: Newton Raphson#8429".var"#nlf#2", LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED_NO_TIME), Nothing, Nothing, Nothing, Nothing}, Vector{Float64}, DifferentiationInterfaceEnzymeExt.EnzymeReverseTwoArgPullbackPrep{Nothing, Nothing, Tuple{Nothing}, Tuple{Vector{Float64}}}, ADTypes.AutoEnzyme{Nothing, Nothing}}, Tuple{Int64, Int64}, Vector{Float64}, Vector{Float64}})(v::Vector{Float64}, u::Vector{Float64}, p::Vector{Float64}) @ SciMLJacobianOperators ~/.julia/packages/SciMLJacobianOperators/zHNyf/src/SciMLJacobianOperators.jl:140 [25] (::LineSearch.var"#4#6")(du::Vector{Float64}, u::Vector{Float64}, fu::Vector{Float64}, p::Vector{Float64}) @ LineSearch ~/.julia/packages/LineSearch/Ky1ZB/src/utils.jl:44 [26] #10 @ ~/.julia/packages/LineSearch/Ky1ZB/src/backtracking.jl:78 [inlined] [27] #14 @ ~/.julia/packages/LineSearch/Ky1ZB/src/backtracking.jl:94 [inlined] [28] solve!(cache::LineSearch.BackTrackingCache{SciMLBase.NonlinearFunction{true, SciMLBase.FullSpecialize, Main.var"##Native Line Search: Newton Raphson#8429".var"#nlf#2", LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED_NO_TIME), Nothing, Nothing, Nothing, Nothing}, Vector{Float64}, LineSearch.var"#9#11"{typeof(+), typeof(*), Nothing}, LineSearch.var"#10#12"{typeof(+), typeof(*), Nothing}, Float64, Float64, LineSearch.var"#4#6", Vector{Float64}, Vector{Float64}, Nothing, LineSearch.BackTracking{ADTypes.AutoEnzyme{Nothing, Nothing}, Float64, Float64, Float64, Val{2}, Float64, Bool}}, u::Vector{Float64}, du::Vector{Float64}) @ LineSearch ~/.julia/packages/LineSearch/Ky1ZB/src/backtracking.jl:97 [29] newton_raphson_iip(prob::SciMLBase.NonlinearProblem{Vector{Float64}, true, Vector{Float64}, SciMLBase.NonlinearFunction{true, SciMLBase.FullSpecialize, Main.var"##Native Line Search: Newton Raphson#8429".var"#nlf#2", LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED_NO_TIME), Nothing, Nothing, Nothing, Nothing}, @Kwargs{}, SciMLBase.StandardNonlinearProblem}, ls::LineSearch.BackTracking{ADTypes.AutoEnzyme{Nothing, Nothing}, Float64, Float64, Float64, Val{2}, Float64, Bool}) @ Main.var"##RootFinding#4211" ~/.julia/packages/LineSearch/Ky1ZB/test/root_finding_tests.jl:62 [30] newton_raphson(prob::SciMLBase.NonlinearProblem{Vector{Float64}, true, Vector{Float64}, SciMLBase.NonlinearFunction{true, SciMLBase.FullSpecialize, Main.var"##Native Line Search: Newton Raphson#8429".var"#nlf#2", LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED_NO_TIME), Nothing, Nothing, Nothing, Nothing}, @Kwargs{}, SciMLBase.StandardNonlinearProblem}, ls::LineSearch.BackTracking{ADTypes.AutoEnzyme{Nothing, Nothing}, Float64, Float64, Float64, Val{2}, Float64, Bool}) @ Main.var"##RootFinding#4211" ~/.julia/packages/LineSearch/Ky1ZB/test/root_finding_tests.jl:11 [31] macro expansion @ ~/.julia/packages/LineSearch/Ky1ZB/test/root_finding_tests.jl:184 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.11/Test/src/Test.jl:1798 [inlined] [33] macro expansion @ ~/.julia/packages/LineSearch/Ky1ZB/test/root_finding_tests.jl:180 [inlined] [34] macro expansion @ /opt/julia/share/julia/stdlib/v1.11/Test/src/Test.jl:1798 [inlined] [35] macro expansion @ ~/.julia/packages/LineSearch/Ky1ZB/test/root_finding_tests.jl:177 [inlined] [36] macro expansion @ /opt/julia/share/julia/stdlib/v1.11/Test/src/Test.jl:1709 [inlined] [37] top-level scope @ ~/.julia/packages/LineSearch/Ky1ZB/test/root_finding_tests.jl:164 [38] eval @ ./boot.jl:430 [inlined] [39] #100 @ ~/.julia/packages/ReTestItems/0nAwp/src/ReTestItems.jl:1140 [inlined] [40] with_source_path(f::ReTestItems.var"#100#104"{Expr}, path::String) @ ReTestItems ~/.julia/packages/ReTestItems/0nAwp/src/ReTestItems.jl:963 [41] (::ReTestItems.var"#99#103"{TestItem, String, Expr, Expr})() @ ReTestItems ~/.julia/packages/ReTestItems/0nAwp/src/ReTestItems.jl:1140 [42] redirect_stdio(f::ReTestItems.var"#99#103"{TestItem, String, Expr, Expr}; stdin::Nothing, stderr::IOContext{IOStream}, stdout::IOContext{IOStream}) @ Base ./stream.jl:1448 [43] redirect_stdio @ ./stream.jl:1411 [inlined] [44] _redirect_logs(f::ReTestItems.var"#99#103"{TestItem, String, Expr, Expr}, target::IOStream) @ ReTestItems ~/.julia/packages/ReTestItems/0nAwp/src/log_capture.jl:124 [45] #33 @ ~/.julia/packages/ReTestItems/0nAwp/src/log_capture.jl:107 [inlined] [46] open(::ReTestItems.var"#33#34"{ReTestItems.var"#99#103"{TestItem, String, Expr, Expr}}, ::String, ::Vararg{String}; kwargs::@Kwargs{}) @ Base ./io.jl:410 [47] open @ ./io.jl:407 [inlined] [48] _redirect_logs @ ~/.julia/packages/ReTestItems/0nAwp/src/log_capture.jl:107 [inlined] [49] macro expansion @ ~/.julia/packages/ReTestItems/0nAwp/src/macros.jl:82 [inlined] [50] runtestitem(ti::TestItem, ctx::ReTestItems.TestContext; test_end_expr::Expr, logs::Symbol, verbose_results::Bool, finish_test::Bool, catch_test_error::Bool, failfast::Bool) @ ReTestItems ~/.julia/packages/ReTestItems/0nAwp/src/ReTestItems.jl:1137 [ Info: All tests on worker 1 completed. Closing Worker(pid=231). Worker 231: [231] signal 15: Terminated [ Tests Completed: 4/4 test items were run. Test Summary: | Pass Error Total Time LineSearch | 374 7 381 33m21.3s test | 374 7 381 test/custom_optimizer_tests.jl | 240 240 test/root_finding_tests.jl | 134 7 141 LineSearches.jl: Newton Raphson | 90 5 95 3m50.7s OOP Problem | 60 60 2m14.2s In-Place Problem | 30 5 35 1m36.4s autodiff = ADTypes.AutoForwardDiff() | 10 10 26.0s autodiff = ADTypes.AutoEnzyme() | 5 5 27.4s method: BackTracking | 1 1 19.6s method: StrongWolfe | 1 1 1.9s method: HagerZhang | 1 1 2.0s method: MoreThuente | 1 1 2.0s method: Static | 1 1 1.9s autodiff = ADTypes.AutoReverseDiff() | 10 10 21.6s autodiff = ADTypes.AutoFiniteDiff() | 10 10 21.4s Native Line Search: Newton Raphson | 44 2 46 50.8s OOP Problem | 28 28 24.5s In-Place Problem | 16 2 18 26.1s method: LiFukushimaLineSearch | 2 2 7.8s method: NoLineSearch | 2 2 0.6s autodiff = ADTypes.AutoForwardDiff() | 4 4 4.7s autodiff = ADTypes.AutoEnzyme() | 2 2 4.7s method: BackTracking | 1 1 2.9s method: BackTracking | 1 1 1.8s autodiff = ADTypes.AutoReverseDiff() | 4 4 4.0s autodiff = ADTypes.AutoFiniteDiff() | 4 4 4.3s ERROR: LoadError: Some tests did not pass: 374 passed, 0 failed, 7 errored, 0 broken. in expression starting at /home/pkgeval/.julia/packages/LineSearch/Ky1ZB/test/runtests.jl:15 Testing failed after 2145.14s ERROR: LoadError: Package LineSearch errored during testing Stacktrace: [1] pkgerror(msg::String) @ Pkg.Types /opt/julia/share/julia/stdlib/v1.11/Pkg/src/Types.jl:68 [2] test(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; coverage::Bool, julia_args::Cmd, test_args::Cmd, test_fn::Nothing, force_latest_compatible_version::Bool, allow_earlier_backwards_compatible_versions::Bool, allow_reresolve::Bool) @ Pkg.Operations /opt/julia/share/julia/stdlib/v1.11/Pkg/src/Operations.jl:2128 [3] test @ /opt/julia/share/julia/stdlib/v1.11/Pkg/src/Operations.jl:2011 [inlined] [4] test(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; coverage::Bool, test_fn::Nothing, julia_args::Cmd, test_args::Cmd, force_latest_compatible_version::Bool, allow_earlier_backwards_compatible_versions::Bool, allow_reresolve::Bool, kwargs::@Kwargs{io::IOContext{IO}}) @ Pkg.API /opt/julia/share/julia/stdlib/v1.11/Pkg/src/API.jl:481 [5] test(pkgs::Vector{Pkg.Types.PackageSpec}; io::IOContext{IO}, kwargs::@Kwargs{julia_args::Cmd}) @ Pkg.API /opt/julia/share/julia/stdlib/v1.11/Pkg/src/API.jl:159 [6] test @ /opt/julia/share/julia/stdlib/v1.11/Pkg/src/API.jl:147 [inlined] [7] #test#74 @ /opt/julia/share/julia/stdlib/v1.11/Pkg/src/API.jl:146 [inlined] [8] top-level scope @ /PkgEval.jl/scripts/evaluate.jl:219 in expression starting at /PkgEval.jl/scripts/evaluate.jl:210 PkgEval failed after 2691.75s: package tests unexpectedly errored