Package evaluation to test EnzymeTestUtils on Julia 1.12.7-DEV.42 (6f510b6086*) started at 2026-06-19T16:16:47.480 ################################################################################ # Set-up # Installing PkgEval dependencies (TestEnv)... Activating project at `~/.julia/environments/v1.12` Set-up completed after 9.19s ################################################################################ # Installation # Installing EnzymeTestUtils... Resolving package versions... Installed Richardson ───────── v1.4.3 Installed Scratch ──────────── v1.3.0 Installed Enzyme_jll ───────── v0.0.269+0 Installed JLLWrappers ──────── v1.8.0 Installed StructIO ─────────── v0.3.1 Installed GPUCompiler ──────── v1.22.1 Installed Preferences ──────── v1.5.2 Installed FiniteDifferences ── v0.12.34 Installed StaticArrays ─────── v1.9.18 Installed Tracy ────────────── v0.1.6 Installed ConstructionBase ─── v1.6.0 Installed StaticArraysCore ─── v1.4.4 Installed LLVMExtra_jll ────── v0.0.43+1 Installed CEnum ────────────── v0.5.0 Installed EnzymeCore ───────── v0.8.20 Installed PrecompileTools ──── v1.3.4 Installed EnzymeTestUtils ──── v0.2.8 Installed Reexport ─────────── v1.2.2 Installed LibTracyClient_jll ─ v0.13.1+0 Installed ChainRulesCore ───── v1.26.1 Installed Enzyme ───────────── v0.13.162 Installed ExprTools ────────── v0.1.10 Installed ObjectFile ───────── v0.5.0 Installed Compat ───────────── v4.18.1 Installed LLVM ─────────────── v9.9.0 Installing 3 artifacts Installed artifact LibTracyClient 502.2 KiB Installed artifact LLVMExtra 3.2 MiB Installed artifact Enzyme 156.7 MiB Updating `~/.julia/environments/v1.12/Project.toml` [12d8515a] + EnzymeTestUtils v0.2.8 Updating `~/.julia/environments/v1.12/Manifest.toml` [fa961155] + CEnum v0.5.0 [d360d2e6] + ChainRulesCore v1.26.1 [34da2185] + Compat v4.18.1 [187b0558] + ConstructionBase v1.6.0 [7da242da] + Enzyme v0.13.162 [f151be2c] + EnzymeCore v0.8.20 [12d8515a] + EnzymeTestUtils v0.2.8 [e2ba6199] + ExprTools v0.1.10 [26cc04aa] + FiniteDifferences v0.12.34 [61eb1bfa] + GPUCompiler v1.22.1 [692b3bcd] + JLLWrappers v1.8.0 [929cbde3] + LLVM v9.9.0 [d8793406] + ObjectFile v0.5.0 [aea7be01] + PrecompileTools v1.3.4 [21216c6a] + Preferences v1.5.2 [189a3867] + Reexport v1.2.2 [708f8203] + Richardson v1.4.3 [6c6a2e73] + Scratch v1.3.0 [90137ffa] + StaticArrays v1.9.18 [1e83bf80] + StaticArraysCore v1.4.4 [53d494c1] + StructIO v0.3.1 [e689c965] + Tracy v0.1.6 ⌅ [7cc45869] + Enzyme_jll v0.0.269+0 [dad2f222] + LLVMExtra_jll v0.0.43+1 [ad6e5548] + LibTracyClient_jll v0.13.1+0 [0dad84c5] + ArgTools v1.1.2 [56f22d72] + Artifacts v1.11.0 [2a0f44e3] + Base64 v1.11.0 [ade2ca70] + Dates v1.11.0 [f43a241f] + Downloads v1.7.0 [7b1f6079] + FileWatching v1.11.0 [b77e0a4c] + InteractiveUtils v1.11.0 [ac6e5ff7] + JuliaSyntaxHighlighting v1.12.0 [4af54fe1] + LazyArtifacts v1.11.0 [b27032c2] + LibCURL v0.6.4 [76f85450] + LibGit2 v1.11.0 [8f399da3] + Libdl v1.11.0 [37e2e46d] + LinearAlgebra v1.12.0 [56ddb016] + Logging v1.11.0 [d6f4376e] + Markdown v1.11.0 [ca575930] + NetworkOptions v1.3.0 [44cfe95a] + Pkg v1.12.1 [de0858da] + Printf v1.11.0 [9a3f8284] + Random v1.11.0 [ea8e919c] + SHA v0.7.0 [9e88b42a] + Serialization v1.11.0 [2f01184e] + SparseArrays v1.12.0 [f489334b] + StyledStrings v1.11.0 [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.3.0+1 [deac9b47] + LibCURL_jll v8.15.0+0 [e37daf67] + LibGit2_jll v1.9.0+0 [29816b5a] + LibSSH2_jll v1.11.3+1 [14a3606d] + MozillaCACerts_jll v2025.11.4 [4536629a] + OpenBLAS_jll v0.3.29+0 [458c3c95] + OpenSSL_jll v3.5.6+0 [bea87d4a] + SuiteSparse_jll v7.8.3+2 [83775a58] + Zlib_jll v1.3.1+2 [8e850b90] + libblastrampoline_jll v5.15.0+0 [8e850ede] + nghttp2_jll v1.64.0+1 [3f19e933] + p7zip_jll v17.7.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 21.48s ################################################################################ # Precompilation # Precompiling PkgEval dependencies... Precompiling packages... 4262.0 ms ✓ TestEnv 1 dependency successfully precompiled in 4 seconds. 26 already precompiled. 24 dependencies precompiled but different versions are currently loaded (ArgTools, Base64, Dates, Downloads, JuliaSyntaxHighlighting, LibCURL, LibCURL_jll, LibGit2, LibGit2_jll, LibSSH2_jll, Logging, Markdown, MozillaCACerts_jll, NetworkOptions, OpenSSL_jll, Pkg, Printf, StyledStrings, TOML, Tar, UUIDs, Zlib_jll, nghttp2_jll and p7zip_jll). Restart julia to access the new versions. Otherwise, 1 dependent of these packages may trigger further precompilation to work with the unexpected versions. Precompiling package dependencies... Precompiling packages... 903.9 ms ✓ Richardson 908.8 ms ✓ StructIO 771.2 ms ✓ RealDot 752.2 ms ✓ Reexport 1335.9 ms ✓ EnzymeCore 862.0 ms ✓ ExprTools 3930.1 ms ✓ ConstructionBase 3557.7 ms ✓ CEnum 1000.1 ms ✓ StaticArraysCore 895.1 ms ✓ Scratch 4123.6 ms ✓ Compat 1150.4 ms ✓ Preferences 1635.1 ms ✓ MetaTesting 1103.1 ms ✓ Quaternions 4639.4 ms ✓ ObjectFile 821.1 ms ✓ ConstructionBase → ConstructionBaseLinearAlgebraExt 883.3 ms ✓ Compat → CompatLinearAlgebraExt 1067.1 ms ✓ PrecompileTools 1332.2 ms ✓ JLLWrappers 5211.0 ms ✓ ChainRulesCore 18784.6 ms ✓ StaticArrays 4938.4 ms ✓ Enzyme_jll 1435.0 ms ✓ LibTracyClient_jll 4948.3 ms ✓ LLVMExtra_jll 4185.0 ms ✓ ChainRulesCore → ChainRulesCoreSparseArraysExt 1361.2 ms ✓ EnzymeCore → EnzymeCoreChainRulesCoreExt 4355.2 ms ✓ StaticArrays → StaticArraysChainRulesCoreExt 1415.9 ms ✓ ConstructionBase → ConstructionBaseStaticArraysExt 2479.0 ms ✓ Tracy 21502.5 ms ✓ LLVM 5583.4 ms ✓ FiniteDifferences 58239.6 ms ✓ GPUCompiler 136166.3 ms ✓ Enzyme 31539.6 ms ✓ Enzyme → EnzymeStaticArraysExt 30705.6 ms ✓ Enzyme → EnzymeChainRulesCoreExt 33863.2 ms ✓ EnzymeTestUtils 36 dependencies successfully precompiled in 398 seconds. 32 already precompiled. 24 dependencies precompiled but different versions are currently loaded (ArgTools, Base64, Dates, Downloads, JuliaSyntaxHighlighting, LibCURL, LibCURL_jll, LibGit2, LibGit2_jll, LibSSH2_jll, Logging, Markdown, MozillaCACerts_jll, NetworkOptions, OpenSSL_jll, Pkg, Printf, StyledStrings, TOML, Tar, UUIDs, Zlib_jll, nghttp2_jll and p7zip_jll). Restart julia to access the new versions. Otherwise, 27 dependents of these packages may trigger further precompilation to work with the unexpected versions. Precompilation completed after 424.33s ################################################################################ # Testing # Testing EnzymeTestUtils Status `/tmp/jl_ElOvSj/Project.toml` [187b0558] ConstructionBase v1.6.0 [7da242da] Enzyme v0.13.162 [f151be2c] EnzymeCore v0.8.20 [12d8515a] EnzymeTestUtils v0.2.8 [26cc04aa] FiniteDifferences v0.12.34 [9e32d19f] MetaTesting v0.1.0 [94ee1d12] Quaternions v0.7.7 [37e2e46d] LinearAlgebra v1.12.0 [9a3f8284] Random v1.11.0 [8dfed614] Test v1.11.0 Status `/tmp/jl_ElOvSj/Manifest.toml` [fa961155] CEnum v0.5.0 [d360d2e6] ChainRulesCore v1.26.1 [34da2185] Compat v4.18.1 [187b0558] ConstructionBase v1.6.0 [7da242da] Enzyme v0.13.162 [f151be2c] EnzymeCore v0.8.20 [12d8515a] EnzymeTestUtils v0.2.8 [e2ba6199] ExprTools v0.1.10 [26cc04aa] FiniteDifferences v0.12.34 [61eb1bfa] GPUCompiler v1.22.1 [692b3bcd] JLLWrappers v1.8.0 [929cbde3] LLVM v9.9.0 [9e32d19f] MetaTesting v0.1.0 [d8793406] ObjectFile v0.5.0 [aea7be01] PrecompileTools v1.3.4 [21216c6a] Preferences v1.5.2 [94ee1d12] Quaternions v0.7.7 [c1ae055f] RealDot v0.1.0 [189a3867] Reexport v1.2.2 [708f8203] Richardson v1.4.3 [6c6a2e73] Scratch v1.3.0 [90137ffa] StaticArrays v1.9.18 [1e83bf80] StaticArraysCore v1.4.4 [53d494c1] StructIO v0.3.1 [e689c965] Tracy v0.1.6 ⌅ [7cc45869] Enzyme_jll v0.0.269+0 [dad2f222] LLVMExtra_jll v0.0.43+1 [ad6e5548] LibTracyClient_jll v0.13.1+0 [0dad84c5] ArgTools v1.1.2 [56f22d72] Artifacts v1.11.0 [2a0f44e3] Base64 v1.11.0 [ade2ca70] Dates v1.11.0 [f43a241f] Downloads v1.7.0 [7b1f6079] FileWatching v1.11.0 [b77e0a4c] InteractiveUtils v1.11.0 [ac6e5ff7] JuliaSyntaxHighlighting v1.12.0 [4af54fe1] LazyArtifacts v1.11.0 [b27032c2] LibCURL v0.6.4 [76f85450] LibGit2 v1.11.0 [8f399da3] Libdl v1.11.0 [37e2e46d] LinearAlgebra v1.12.0 [56ddb016] Logging v1.11.0 [d6f4376e] Markdown v1.11.0 [ca575930] NetworkOptions v1.3.0 [44cfe95a] Pkg v1.12.1 [de0858da] Printf v1.11.0 [9a3f8284] Random v1.11.0 [ea8e919c] SHA v0.7.0 [9e88b42a] Serialization v1.11.0 [2f01184e] SparseArrays v1.12.0 [f489334b] StyledStrings v1.11.0 [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.3.0+1 [deac9b47] LibCURL_jll v8.15.0+0 [e37daf67] LibGit2_jll v1.9.0+0 [29816b5a] LibSSH2_jll v1.11.3+1 [14a3606d] MozillaCACerts_jll v2025.11.4 [4536629a] OpenBLAS_jll v0.3.29+0 [458c3c95] OpenSSL_jll v3.5.6+0 [bea87d4a] SuiteSparse_jll v7.8.3+2 [83775a58] Zlib_jll v1.3.1+2 [8e850b90] libblastrampoline_jll v5.15.0+0 [8e850ede] nghttp2_jll v1.64.0+1 [3f19e933] p7zip_jll v17.7.0+0 Info Packages marked with ⌅ have new versions available but compatibility constraints restrict them from upgrading. Testing Running tests... test_forward: f_struct with return activity Duplicated on (::TestStruct{Vector{Float32}, Float32}, Const): Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:71 Got exception outside of a @test EnzymeRuntimeActivityError: Detected potential need for runtime activity. Constant memory is stored (or returned) to a differentiable variable and correctness cannot be guaranteed with static activity analysis. This might be due to the use of a constant variable as temporary storage for active memory (https://enzyme.mit.edu/julia/stable/faq/#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 performance, slower to setup), 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: f_struct(::TestStruct{Vector{Float32}, Float32}) @ Main ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:9 Hint: catch this exception as `err` and call `code_typed(err)` to inspect the surrounding code. Mismatched activity for: %nodecayed..pre-phi180.ph = phi ptr addrspace(10) [ %"new::Array108", %L96 ], [ %0, %L40 ] const val: %0 = load ptr addrspace(10), ptr %.roots.x, align 8, !tbaa !15, !alias.scope !19, !noalias !22, !enzyme_type !27, !enzymejl_source_type_Vector\7BFloat32\7D !0, !enzymejl_byref_MUT_REF !0 Julia value causing error: Unknown object of type Vector{Float32} LLVM view of erring value: %0 = load ptr addrspace(10), ptr %.roots.x, align 8, !tbaa !15, !alias.scope !19, !noalias !22, !enzyme_type !27, !enzymejl_source_type_Vector\7BFloat32\7D !0, !enzymejl_byref_MUT_REF !0 Stacktrace: [1] preprocess_args @ ./broadcast.jl:977 [2] preprocess @ ./broadcast.jl:974 [3] preprocess_args (repeats 2 times) @ ./broadcast.jl:977 [4] preprocess @ ./broadcast.jl:974 [5] copyto! @ ./broadcast.jl:991 [6] copyto! @ ./broadcast.jl:947 [7] copy @ ./broadcast.jl:919 [8] materialize @ ./broadcast.jl:894 [9] f_struct @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:9 Stacktrace: [1] unalias @ ./abstractarray.jl:1530 [inlined] [2] broadcast_unalias @ ./broadcast.jl:968 [inlined] [3] preprocess @ ./broadcast.jl:975 [inlined] [4] preprocess_args @ ./broadcast.jl:978 [inlined] [5] preprocess_args @ ./broadcast.jl:977 [inlined] [6] preprocess @ ./broadcast.jl:974 [inlined] [7] preprocess_args (repeats 2 times) @ ./broadcast.jl:977 [inlined] [8] preprocess @ ./broadcast.jl:974 [inlined] [9] copyto! @ ./broadcast.jl:991 [inlined] [10] copyto! @ ./broadcast.jl:947 [inlined] [11] copy @ ./broadcast.jl:919 [inlined] [12] materialize @ ./broadcast.jl:894 [inlined] [13] f_struct @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:9 [14] CallWithKWargs @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:7 [inlined] [15] CallWithKWargs @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:0 [inlined] [16] fwddiffejulia_CallWithKWargs_79174_inner_2wrap @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:0 [17] macro expansion @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6883 [inlined] [18] enzyme_call @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6353 [inlined] [19] ForwardModeThunk @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6253 [inlined] [20] autodiff @ ~/.julia/packages/Enzyme/lNw5i/src/Enzyme.jl:688 [inlined] [21] autodiff(::ForwardMode{true, FFIABI, false, false, false}, ::EnzymeTestUtils.CallWithKWargs{@NamedTuple{}}, ::Type{Duplicated}, ::Const{typeof(f_struct)}, ::Const{TestStruct{Vector{Float32}, Float32}}) @ Enzyme ~/.julia/packages/Enzyme/lNw5i/src/Enzyme.jl:557 [22] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:96 [inlined] [23] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [24] test_forward(f::typeof(f_struct), ret_activity::Type, args::Tuple{TestStruct{Vector{Float32}, Float32}, UnionAll}; rng::TaskLocalRNG, fdm::FiniteDifferences.AdaptedFiniteDifferenceMethod{5, 1, FiniteDifferences.UnadaptedFiniteDifferenceMethod{7, 5}}, fkwargs::@NamedTuple{}, rtol::Float32, atol::Float32, testset_name::Nothing, runtime_activity::Bool) @ EnzymeTestUtils ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:73 [25] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [27] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:59 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [29] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:60 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [31] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:69 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [33] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:70 [inlined] [34] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [35] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:94 [inlined] [36] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [37] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/runtests.jl:8 [38] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [39] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/runtests.jl:13 [inlined] [40] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [41] top-level scope @ none:6 [42] eval(m::Module, e::Any) @ Core ./boot.jl:489 [43] exec_options(opts::Base.JLOptions) @ Base ./client.jl:283 [44] _start() @ Base ./client.jl:550 test_forward: f_struct with return activity Duplicated on (::TestStruct{Vector{Float64}, Float64}, Const): Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:71 Got exception outside of a @test EnzymeRuntimeActivityError: Detected potential need for runtime activity. Constant memory is stored (or returned) to a differentiable variable and correctness cannot be guaranteed with static activity analysis. This might be due to the use of a constant variable as temporary storage for active memory (https://enzyme.mit.edu/julia/stable/faq/#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 performance, slower to setup), 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: f_struct(::TestStruct{Vector{Float64}, Float64}) @ Main ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:9 Hint: catch this exception as `err` and call `code_typed(err)` to inspect the surrounding code. Mismatched activity for: %nodecayed..pre-phi180.ph = phi ptr addrspace(10) [ %"new::Array108", %L96 ], [ %0, %L40 ] const val: %0 = load ptr addrspace(10), ptr %.roots.x, align 8, !tbaa !15, !alias.scope !19, !noalias !22, !enzyme_type !27, !enzymejl_source_type_Vector\7BFloat64\7D !0, !enzymejl_byref_MUT_REF !0 Julia value causing error: Unknown object of type Vector{Float64} LLVM view of erring value: %0 = load ptr addrspace(10), ptr %.roots.x, align 8, !tbaa !15, !alias.scope !19, !noalias !22, !enzyme_type !27, !enzymejl_source_type_Vector\7BFloat64\7D !0, !enzymejl_byref_MUT_REF !0 Stacktrace: [1] preprocess_args @ ./broadcast.jl:977 [2] preprocess @ ./broadcast.jl:974 [3] preprocess_args (repeats 2 times) @ ./broadcast.jl:977 [4] preprocess @ ./broadcast.jl:974 [5] copyto! @ ./broadcast.jl:991 [6] copyto! @ ./broadcast.jl:947 [7] copy @ ./broadcast.jl:919 [8] materialize @ ./broadcast.jl:894 [9] f_struct @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:9 Stacktrace: [1] unalias @ ./abstractarray.jl:1530 [inlined] [2] broadcast_unalias @ ./broadcast.jl:968 [inlined] [3] preprocess @ ./broadcast.jl:975 [inlined] [4] preprocess_args @ ./broadcast.jl:978 [inlined] [5] preprocess_args @ ./broadcast.jl:977 [inlined] [6] preprocess @ ./broadcast.jl:974 [inlined] [7] preprocess_args (repeats 2 times) @ ./broadcast.jl:977 [inlined] [8] preprocess @ ./broadcast.jl:974 [inlined] [9] copyto! @ ./broadcast.jl:991 [inlined] [10] copyto! @ ./broadcast.jl:947 [inlined] [11] copy @ ./broadcast.jl:919 [inlined] [12] materialize @ ./broadcast.jl:894 [inlined] [13] f_struct @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:9 [14] CallWithKWargs @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:7 [inlined] [15] CallWithKWargs @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:0 [inlined] [16] fwddiffejulia_CallWithKWargs_81565_inner_1wrap @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:0 [17] macro expansion @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6883 [inlined] [18] enzyme_call @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6353 [inlined] [19] ForwardModeThunk @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6253 [inlined] [20] autodiff @ ~/.julia/packages/Enzyme/lNw5i/src/Enzyme.jl:688 [inlined] [21] autodiff(::ForwardMode{true, FFIABI, false, false, false}, ::EnzymeTestUtils.CallWithKWargs{@NamedTuple{}}, ::Type{Duplicated}, ::Const{typeof(f_struct)}, ::Const{TestStruct{Vector{Float64}, Float64}}) @ Enzyme ~/.julia/packages/Enzyme/lNw5i/src/Enzyme.jl:557 [22] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:96 [inlined] [23] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [24] test_forward(f::typeof(f_struct), ret_activity::Type, args::Tuple{TestStruct{Vector{Float64}, Float64}, UnionAll}; rng::TaskLocalRNG, fdm::FiniteDifferences.AdaptedFiniteDifferenceMethod{5, 1, FiniteDifferences.UnadaptedFiniteDifferenceMethod{7, 5}}, fkwargs::@NamedTuple{}, rtol::Float64, atol::Float64, testset_name::Nothing, runtime_activity::Bool) @ EnzymeTestUtils ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:73 [25] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [27] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:59 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [29] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:60 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [31] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:69 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [33] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:70 [inlined] [34] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [35] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:94 [inlined] [36] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [37] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/runtests.jl:8 [38] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [39] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/runtests.jl:13 [inlined] [40] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [41] top-level scope @ none:6 [42] eval(m::Module, e::Any) @ Core ./boot.jl:489 [43] exec_options(opts::Base.JLOptions) @ Base ./client.jl:283 [44] _start() @ Base ./client.jl:550 test_forward: f_struct with return activity Duplicated on (::TestStruct{Vector{ComplexF64}, ComplexF64}, Const): Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:71 Got exception outside of a @test EnzymeRuntimeActivityError: Detected potential need for runtime activity. Constant memory is stored (or returned) to a differentiable variable and correctness cannot be guaranteed with static activity analysis. This might be due to the use of a constant variable as temporary storage for active memory (https://enzyme.mit.edu/julia/stable/faq/#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 performance, slower to setup), 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: f_struct(::TestStruct{Vector{ComplexF64}, ComplexF64}) @ Main ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:9 Hint: catch this exception as `err` and call `code_typed(err)` to inspect the surrounding code. Mismatched activity for: %value_phi12265 = phi ptr addrspace(10) [ %0, %L40 ], [ %"new::Array113", %L96 ], [ %0, %L105 ] const val: %0 = load ptr addrspace(10), ptr %.roots.x, align 8, !tbaa !20, !alias.scope !24, !noalias !27, !enzyme_type !32, !enzymejl_byref_MUT_REF !0, !enzymejl_source_type_Vector\7BComplexF64\7D !0 Julia value causing error: Unknown object of type Vector{ComplexF64} LLVM view of erring value: %0 = load ptr addrspace(10), ptr %.roots.x, align 8, !tbaa !20, !alias.scope !24, !noalias !27, !enzyme_type !32, !enzymejl_byref_MUT_REF !0, !enzymejl_source_type_Vector\7BComplexF64\7D !0 Stacktrace: [1] size @ ./array.jl:194 [2] axes @ ./abstractarray.jl:98 [3] newindexer @ ./broadcast.jl:605 [4] extrude @ ./broadcast.jl:666 [5] preprocess @ ./broadcast.jl:975 [6] preprocess_args @ ./broadcast.jl:978 [7] preprocess_args @ ./broadcast.jl:977 [8] preprocess @ ./broadcast.jl:974 [9] preprocess_args (repeats 2 times) @ ./broadcast.jl:977 [10] preprocess @ ./broadcast.jl:974 [11] copyto! @ ./broadcast.jl:991 [12] copyto! @ ./broadcast.jl:947 [13] copy @ ./broadcast.jl:919 [14] materialize @ ./broadcast.jl:894 [15] f_struct @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:9 Stacktrace: [1] unalias @ ./abstractarray.jl:1530 [inlined] [2] broadcast_unalias @ ./broadcast.jl:968 [inlined] [3] preprocess @ ./broadcast.jl:975 [inlined] [4] preprocess_args @ ./broadcast.jl:978 [inlined] [5] preprocess_args @ ./broadcast.jl:977 [inlined] [6] preprocess @ ./broadcast.jl:974 [inlined] [7] preprocess_args (repeats 2 times) @ ./broadcast.jl:977 [inlined] [8] preprocess @ ./broadcast.jl:974 [inlined] [9] copyto! @ ./broadcast.jl:991 [inlined] [10] copyto! @ ./broadcast.jl:947 [inlined] [11] copy @ ./broadcast.jl:919 [inlined] [12] materialize @ ./broadcast.jl:894 [inlined] [13] f_struct @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:9 [14] CallWithKWargs @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:7 [inlined] [15] CallWithKWargs @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:0 [inlined] [16] fwddiffejulia_CallWithKWargs_81695_inner_2wrap @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:0 [17] macro expansion @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6883 [inlined] [18] enzyme_call @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6353 [inlined] [19] ForwardModeThunk @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6253 [inlined] [20] autodiff @ ~/.julia/packages/Enzyme/lNw5i/src/Enzyme.jl:688 [inlined] [21] autodiff(::ForwardMode{true, FFIABI, false, false, false}, ::EnzymeTestUtils.CallWithKWargs{@NamedTuple{}}, ::Type{Duplicated}, ::Const{typeof(f_struct)}, ::Const{TestStruct{Vector{ComplexF64}, ComplexF64}}) @ Enzyme ~/.julia/packages/Enzyme/lNw5i/src/Enzyme.jl:557 [22] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:96 [inlined] [23] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [24] test_forward(f::typeof(f_struct), ret_activity::Type, args::Tuple{TestStruct{Vector{ComplexF64}, ComplexF64}, UnionAll}; rng::TaskLocalRNG, fdm::FiniteDifferences.AdaptedFiniteDifferenceMethod{5, 1, FiniteDifferences.UnadaptedFiniteDifferenceMethod{7, 5}}, fkwargs::@NamedTuple{}, rtol::Float64, atol::Float64, testset_name::Nothing, runtime_activity::Bool) @ EnzymeTestUtils ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:73 [25] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [27] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:59 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [29] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:60 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [31] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:69 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [33] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:70 [inlined] [34] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [35] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:94 [inlined] [36] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [37] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/runtests.jl:8 [38] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [39] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/runtests.jl:13 [inlined] [40] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [41] top-level scope @ none:6 [42] eval(m::Module, e::Any) @ Core ./boot.jl:489 [43] exec_options(opts::Base.JLOptions) @ Base ./client.jl:283 [44] _start() @ Base ./client.jl:550 test_forward: f_struct with return activity DuplicatedNoNeed on (::TestStruct{Vector{Float32}, Float32}, Const): Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:71 Got exception outside of a @test EnzymeRuntimeActivityError: Detected potential need for runtime activity. Constant memory is stored (or returned) to a differentiable variable and correctness cannot be guaranteed with static activity analysis. This might be due to the use of a constant variable as temporary storage for active memory (https://enzyme.mit.edu/julia/stable/faq/#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 performance, slower to setup), 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: f_struct(::TestStruct{Vector{Float32}, Float32}) @ Main ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:9 Hint: catch this exception as `err` and call `code_typed(err)` to inspect the surrounding code. Mismatched activity for: %nodecayed..pre-phi180.ph = phi ptr addrspace(10) [ %"new::Array108", %L96 ], [ %0, %L40 ] const val: %0 = load ptr addrspace(10), ptr %.roots.x, align 8, !tbaa !15, !alias.scope !19, !noalias !22, !enzyme_type !27, !enzymejl_source_type_Vector\7BFloat32\7D !0, !enzymejl_byref_MUT_REF !0 Julia value causing error: Unknown object of type Vector{Float32} LLVM view of erring value: %0 = load ptr addrspace(10), ptr %.roots.x, align 8, !tbaa !15, !alias.scope !19, !noalias !22, !enzyme_type !27, !enzymejl_source_type_Vector\7BFloat32\7D !0, !enzymejl_byref_MUT_REF !0 Stacktrace: [1] preprocess_args @ ./broadcast.jl:977 [2] preprocess @ ./broadcast.jl:974 [3] preprocess_args (repeats 2 times) @ ./broadcast.jl:977 [4] preprocess @ ./broadcast.jl:974 [5] copyto! @ ./broadcast.jl:991 [6] copyto! @ ./broadcast.jl:947 [7] copy @ ./broadcast.jl:919 [8] materialize @ ./broadcast.jl:894 [9] f_struct @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:9 Stacktrace: [1] unalias @ ./abstractarray.jl:1530 [inlined] [2] broadcast_unalias @ ./broadcast.jl:968 [inlined] [3] preprocess @ ./broadcast.jl:975 [inlined] [4] preprocess_args @ ./broadcast.jl:978 [inlined] [5] preprocess_args @ ./broadcast.jl:977 [inlined] [6] preprocess @ ./broadcast.jl:974 [inlined] [7] preprocess_args (repeats 2 times) @ ./broadcast.jl:977 [inlined] [8] preprocess @ ./broadcast.jl:974 [inlined] [9] copyto! @ ./broadcast.jl:991 [inlined] [10] copyto! @ ./broadcast.jl:947 [inlined] [11] copy @ ./broadcast.jl:919 [inlined] [12] materialize @ ./broadcast.jl:894 [inlined] [13] f_struct @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:9 [14] CallWithKWargs @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:7 [inlined] [15] CallWithKWargs @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:0 [inlined] [16] fwddiffejulia_CallWithKWargs_82785_inner_2wrap @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:0 [17] macro expansion @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6883 [inlined] [18] enzyme_call @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6353 [inlined] [19] ForwardModeThunk @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6253 [inlined] [20] autodiff @ ~/.julia/packages/Enzyme/lNw5i/src/Enzyme.jl:688 [inlined] [21] autodiff(::ForwardMode{false, FFIABI, false, false, false}, ::EnzymeTestUtils.CallWithKWargs{@NamedTuple{}}, ::Type{Duplicated}, ::Const{typeof(f_struct)}, ::Const{TestStruct{Vector{Float32}, Float32}}) @ Enzyme ~/.julia/packages/Enzyme/lNw5i/src/Enzyme.jl:557 [22] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:96 [inlined] [23] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [24] test_forward(f::typeof(f_struct), ret_activity::Type, args::Tuple{TestStruct{Vector{Float32}, Float32}, UnionAll}; rng::TaskLocalRNG, fdm::FiniteDifferences.AdaptedFiniteDifferenceMethod{5, 1, FiniteDifferences.UnadaptedFiniteDifferenceMethod{7, 5}}, fkwargs::@NamedTuple{}, rtol::Float32, atol::Float32, testset_name::Nothing, runtime_activity::Bool) @ EnzymeTestUtils ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:73 [25] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [27] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:59 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [29] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:60 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [31] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:69 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [33] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:70 [inlined] [34] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [35] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:94 [inlined] [36] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [37] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/runtests.jl:8 [38] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [39] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/runtests.jl:13 [inlined] [40] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [41] top-level scope @ none:6 [42] eval(m::Module, e::Any) @ Core ./boot.jl:489 [43] exec_options(opts::Base.JLOptions) @ Base ./client.jl:283 [44] _start() @ Base ./client.jl:550 test_forward: f_struct with return activity DuplicatedNoNeed on (::TestStruct{Vector{Float64}, Float64}, Const): Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:71 Got exception outside of a @test EnzymeRuntimeActivityError: Detected potential need for runtime activity. Constant memory is stored (or returned) to a differentiable variable and correctness cannot be guaranteed with static activity analysis. This might be due to the use of a constant variable as temporary storage for active memory (https://enzyme.mit.edu/julia/stable/faq/#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 performance, slower to setup), 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: f_struct(::TestStruct{Vector{Float64}, Float64}) @ Main ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:9 Hint: catch this exception as `err` and call `code_typed(err)` to inspect the surrounding code. Mismatched activity for: %nodecayed..pre-phi180.ph = phi ptr addrspace(10) [ %"new::Array108", %L96 ], [ %0, %L40 ] const val: %0 = load ptr addrspace(10), ptr %.roots.x, align 8, !tbaa !15, !alias.scope !19, !noalias !22, !enzyme_type !27, !enzymejl_source_type_Vector\7BFloat64\7D !0, !enzymejl_byref_MUT_REF !0 Julia value causing error: Unknown object of type Vector{Float64} LLVM view of erring value: %0 = load ptr addrspace(10), ptr %.roots.x, align 8, !tbaa !15, !alias.scope !19, !noalias !22, !enzyme_type !27, !enzymejl_source_type_Vector\7BFloat64\7D !0, !enzymejl_byref_MUT_REF !0 Stacktrace: [1] preprocess_args @ ./broadcast.jl:977 [2] preprocess @ ./broadcast.jl:974 [3] preprocess_args (repeats 2 times) @ ./broadcast.jl:977 [4] preprocess @ ./broadcast.jl:974 [5] copyto! @ ./broadcast.jl:991 [6] copyto! @ ./broadcast.jl:947 [7] copy @ ./broadcast.jl:919 [8] materialize @ ./broadcast.jl:894 [9] f_struct @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:9 Stacktrace: [1] unalias @ ./abstractarray.jl:1530 [inlined] [2] broadcast_unalias @ ./broadcast.jl:968 [inlined] [3] preprocess @ ./broadcast.jl:975 [inlined] [4] preprocess_args @ ./broadcast.jl:978 [inlined] [5] preprocess_args @ ./broadcast.jl:977 [inlined] [6] preprocess @ ./broadcast.jl:974 [inlined] [7] preprocess_args (repeats 2 times) @ ./broadcast.jl:977 [inlined] [8] preprocess @ ./broadcast.jl:974 [inlined] [9] copyto! @ ./broadcast.jl:991 [inlined] [10] copyto! @ ./broadcast.jl:947 [inlined] [11] copy @ ./broadcast.jl:919 [inlined] [12] materialize @ ./broadcast.jl:894 [inlined] [13] f_struct @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:9 [14] CallWithKWargs @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:7 [inlined] [15] CallWithKWargs @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:0 [inlined] [16] fwddiffejulia_CallWithKWargs_82857_inner_1wrap @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:0 [17] macro expansion @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6883 [inlined] [18] enzyme_call @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6353 [inlined] [19] ForwardModeThunk @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6253 [inlined] [20] autodiff @ ~/.julia/packages/Enzyme/lNw5i/src/Enzyme.jl:688 [inlined] [21] autodiff(::ForwardMode{false, FFIABI, false, false, false}, ::EnzymeTestUtils.CallWithKWargs{@NamedTuple{}}, ::Type{Duplicated}, ::Const{typeof(f_struct)}, ::Const{TestStruct{Vector{Float64}, Float64}}) @ Enzyme ~/.julia/packages/Enzyme/lNw5i/src/Enzyme.jl:557 [22] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:96 [inlined] [23] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [24] test_forward(f::typeof(f_struct), ret_activity::Type, args::Tuple{TestStruct{Vector{Float64}, Float64}, UnionAll}; rng::TaskLocalRNG, fdm::FiniteDifferences.AdaptedFiniteDifferenceMethod{5, 1, FiniteDifferences.UnadaptedFiniteDifferenceMethod{7, 5}}, fkwargs::@NamedTuple{}, rtol::Float64, atol::Float64, testset_name::Nothing, runtime_activity::Bool) @ EnzymeTestUtils ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:73 [25] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [27] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:59 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [29] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:60 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [31] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:69 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [33] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:70 [inlined] [34] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [35] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:94 [inlined] [36] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [37] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/runtests.jl:8 [38] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [39] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/runtests.jl:13 [inlined] [40] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [41] top-level scope @ none:6 [42] eval(m::Module, e::Any) @ Core ./boot.jl:489 [43] exec_options(opts::Base.JLOptions) @ Base ./client.jl:283 [44] _start() @ Base ./client.jl:550 test_forward: f_struct with return activity DuplicatedNoNeed on (::TestStruct{Vector{ComplexF64}, ComplexF64}, Const): Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:71 Got exception outside of a @test EnzymeRuntimeActivityError: Detected potential need for runtime activity. Constant memory is stored (or returned) to a differentiable variable and correctness cannot be guaranteed with static activity analysis. This might be due to the use of a constant variable as temporary storage for active memory (https://enzyme.mit.edu/julia/stable/faq/#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 performance, slower to setup), 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: f_struct(::TestStruct{Vector{ComplexF64}, ComplexF64}) @ Main ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:9 Hint: catch this exception as `err` and call `code_typed(err)` to inspect the surrounding code. Mismatched activity for: %value_phi12265 = phi ptr addrspace(10) [ %0, %L40 ], [ %"new::Array113", %L96 ], [ %0, %L105 ] const val: %0 = load ptr addrspace(10), ptr %.roots.x, align 8, !tbaa !20, !alias.scope !24, !noalias !27, !enzyme_type !32, !enzymejl_byref_MUT_REF !0, !enzymejl_source_type_Vector\7BComplexF64\7D !0 Julia value causing error: Unknown object of type Vector{ComplexF64} LLVM view of erring value: %0 = load ptr addrspace(10), ptr %.roots.x, align 8, !tbaa !20, !alias.scope !24, !noalias !27, !enzyme_type !32, !enzymejl_byref_MUT_REF !0, !enzymejl_source_type_Vector\7BComplexF64\7D !0 Stacktrace: [1] size @ ./array.jl:194 [2] axes @ ./abstractarray.jl:98 [3] newindexer @ ./broadcast.jl:605 [4] extrude @ ./broadcast.jl:666 [5] preprocess @ ./broadcast.jl:975 [6] preprocess_args @ ./broadcast.jl:978 [7] preprocess_args @ ./broadcast.jl:977 [8] preprocess @ ./broadcast.jl:974 [9] preprocess_args (repeats 2 times) @ ./broadcast.jl:977 [10] preprocess @ ./broadcast.jl:974 [11] copyto! @ ./broadcast.jl:991 [12] copyto! @ ./broadcast.jl:947 [13] copy @ ./broadcast.jl:919 [14] materialize @ ./broadcast.jl:894 [15] f_struct @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:9 Stacktrace: [1] unalias @ ./abstractarray.jl:1530 [inlined] [2] broadcast_unalias @ ./broadcast.jl:968 [inlined] [3] preprocess @ ./broadcast.jl:975 [inlined] [4] preprocess_args @ ./broadcast.jl:978 [inlined] [5] preprocess_args @ ./broadcast.jl:977 [inlined] [6] preprocess @ ./broadcast.jl:974 [inlined] [7] preprocess_args (repeats 2 times) @ ./broadcast.jl:977 [inlined] [8] preprocess @ ./broadcast.jl:974 [inlined] [9] copyto! @ ./broadcast.jl:991 [inlined] [10] copyto! @ ./broadcast.jl:947 [inlined] [11] copy @ ./broadcast.jl:919 [inlined] [12] materialize @ ./broadcast.jl:894 [inlined] [13] f_struct @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:9 [14] CallWithKWargs @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:7 [inlined] [15] CallWithKWargs @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:0 [inlined] [16] fwddiffejulia_CallWithKWargs_82920_inner_2wrap @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:0 [17] macro expansion @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6883 [inlined] [18] enzyme_call @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6353 [inlined] [19] ForwardModeThunk @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6253 [inlined] [20] autodiff @ ~/.julia/packages/Enzyme/lNw5i/src/Enzyme.jl:688 [inlined] [21] autodiff(::ForwardMode{false, FFIABI, false, false, false}, ::EnzymeTestUtils.CallWithKWargs{@NamedTuple{}}, ::Type{Duplicated}, ::Const{typeof(f_struct)}, ::Const{TestStruct{Vector{ComplexF64}, ComplexF64}}) @ Enzyme ~/.julia/packages/Enzyme/lNw5i/src/Enzyme.jl:557 [22] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:96 [inlined] [23] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [24] test_forward(f::typeof(f_struct), ret_activity::Type, args::Tuple{TestStruct{Vector{ComplexF64}, ComplexF64}, UnionAll}; rng::TaskLocalRNG, fdm::FiniteDifferences.AdaptedFiniteDifferenceMethod{5, 1, FiniteDifferences.UnadaptedFiniteDifferenceMethod{7, 5}}, fkwargs::@NamedTuple{}, rtol::Float64, atol::Float64, testset_name::Nothing, runtime_activity::Bool) @ EnzymeTestUtils ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:73 [25] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [27] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:59 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [29] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:60 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [31] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:69 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [33] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:70 [inlined] [34] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [35] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:94 [inlined] [36] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [37] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/runtests.jl:8 [38] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [39] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/runtests.jl:13 [inlined] [40] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [41] top-level scope @ none:6 [42] eval(m::Module, e::Any) @ Core ./boot.jl:489 [43] exec_options(opts::Base.JLOptions) @ Base ./client.jl:283 [44] _start() @ Base ./client.jl:550 test_forward: f_struct with return activity BatchDuplicated on (::TestStruct{Vector{Float32}, Float32}, Const): Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:71 Got exception outside of a @test EnzymeRuntimeActivityError: Detected potential need for runtime activity. Constant memory is stored (or returned) to a differentiable variable and correctness cannot be guaranteed with static activity analysis. This might be due to the use of a constant variable as temporary storage for active memory (https://enzyme.mit.edu/julia/stable/faq/#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 performance, slower to setup), 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: f_struct(::TestStruct{Vector{Float32}, Float32}) @ Main ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:9 Hint: catch this exception as `err` and call `code_typed(err)` to inspect the surrounding code. Mismatched activity for: %nodecayed..pre-phi180.ph = phi ptr addrspace(10) [ %"new::Array108", %L96 ], [ %0, %L40 ] const val: %0 = load ptr addrspace(10), ptr %.roots.x, align 8, !tbaa !15, !alias.scope !19, !noalias !22, !enzyme_type !27, !enzymejl_source_type_Vector\7BFloat32\7D !0, !enzymejl_byref_MUT_REF !0 Julia value causing error: Unknown object of type Vector{Float32} LLVM view of erring value: %0 = load ptr addrspace(10), ptr %.roots.x, align 8, !tbaa !15, !alias.scope !19, !noalias !22, !enzyme_type !27, !enzymejl_source_type_Vector\7BFloat32\7D !0, !enzymejl_byref_MUT_REF !0 Stacktrace: [1] preprocess_args @ ./broadcast.jl:977 [2] preprocess @ ./broadcast.jl:974 [3] preprocess_args (repeats 2 times) @ ./broadcast.jl:977 [4] preprocess @ ./broadcast.jl:974 [5] copyto! @ ./broadcast.jl:991 [6] copyto! @ ./broadcast.jl:947 [7] copy @ ./broadcast.jl:919 [8] materialize @ ./broadcast.jl:894 [9] f_struct @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:9 Stacktrace: [1] unalias @ ./abstractarray.jl:1530 [inlined] [2] broadcast_unalias @ ./broadcast.jl:968 [inlined] [3] preprocess @ ./broadcast.jl:975 [inlined] [4] preprocess_args @ ./broadcast.jl:978 [inlined] [5] preprocess_args @ ./broadcast.jl:977 [inlined] [6] preprocess @ ./broadcast.jl:974 [inlined] [7] preprocess_args (repeats 2 times) @ ./broadcast.jl:977 [inlined] [8] preprocess @ ./broadcast.jl:974 [inlined] [9] copyto! @ ./broadcast.jl:991 [inlined] [10] copyto! @ ./broadcast.jl:947 [inlined] [11] copy @ ./broadcast.jl:919 [inlined] [12] materialize @ ./broadcast.jl:894 [inlined] [13] f_struct @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:9 [14] CallWithKWargs @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:7 [inlined] [15] CallWithKWargs @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:0 [inlined] [16] fwddiffejulia_CallWithKWargs_83187_inner_2wrap @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:0 [17] macro expansion @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6883 [inlined] [18] enzyme_call @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6353 [inlined] [19] ForwardModeThunk @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6253 [inlined] [20] autodiff @ ~/.julia/packages/Enzyme/lNw5i/src/Enzyme.jl:688 [inlined] [21] autodiff(::ForwardMode{true, FFIABI, false, false, false}, ::EnzymeTestUtils.CallWithKWargs{@NamedTuple{}}, ::Type{BatchDuplicated}, ::Const{typeof(f_struct)}, ::Const{TestStruct{Vector{Float32}, Float32}}) @ Enzyme ~/.julia/packages/Enzyme/lNw5i/src/Enzyme.jl:557 [22] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:96 [inlined] [23] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [24] test_forward(f::typeof(f_struct), ret_activity::Type, args::Tuple{TestStruct{Vector{Float32}, Float32}, UnionAll}; rng::TaskLocalRNG, fdm::FiniteDifferences.AdaptedFiniteDifferenceMethod{5, 1, FiniteDifferences.UnadaptedFiniteDifferenceMethod{7, 5}}, fkwargs::@NamedTuple{}, rtol::Float32, atol::Float32, testset_name::Nothing, runtime_activity::Bool) @ EnzymeTestUtils ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:73 [25] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [27] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:59 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [29] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:60 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [31] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:69 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [33] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:70 [inlined] [34] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [35] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:94 [inlined] [36] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [37] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/runtests.jl:8 [38] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [39] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/runtests.jl:13 [inlined] [40] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [41] top-level scope @ none:6 [42] eval(m::Module, e::Any) @ Core ./boot.jl:489 [43] exec_options(opts::Base.JLOptions) @ Base ./client.jl:283 [44] _start() @ Base ./client.jl:550 test_forward: f_struct with return activity BatchDuplicated on (::TestStruct{Vector{Float64}, Float64}, Const): Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:71 Got exception outside of a @test EnzymeRuntimeActivityError: Detected potential need for runtime activity. Constant memory is stored (or returned) to a differentiable variable and correctness cannot be guaranteed with static activity analysis. This might be due to the use of a constant variable as temporary storage for active memory (https://enzyme.mit.edu/julia/stable/faq/#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 performance, slower to setup), 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: f_struct(::TestStruct{Vector{Float64}, Float64}) @ Main ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:9 Hint: catch this exception as `err` and call `code_typed(err)` to inspect the surrounding code. Mismatched activity for: %nodecayed..pre-phi180.ph = phi ptr addrspace(10) [ %"new::Array108", %L96 ], [ %0, %L40 ] const val: %0 = load ptr addrspace(10), ptr %.roots.x, align 8, !tbaa !15, !alias.scope !19, !noalias !22, !enzyme_type !27, !enzymejl_source_type_Vector\7BFloat64\7D !0, !enzymejl_byref_MUT_REF !0 Julia value causing error: Unknown object of type Vector{Float64} LLVM view of erring value: %0 = load ptr addrspace(10), ptr %.roots.x, align 8, !tbaa !15, !alias.scope !19, !noalias !22, !enzyme_type !27, !enzymejl_source_type_Vector\7BFloat64\7D !0, !enzymejl_byref_MUT_REF !0 Stacktrace: [1] preprocess_args @ ./broadcast.jl:977 [2] preprocess @ ./broadcast.jl:974 [3] preprocess_args (repeats 2 times) @ ./broadcast.jl:977 [4] preprocess @ ./broadcast.jl:974 [5] copyto! @ ./broadcast.jl:991 [6] copyto! @ ./broadcast.jl:947 [7] copy @ ./broadcast.jl:919 [8] materialize @ ./broadcast.jl:894 [9] f_struct @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:9 Stacktrace: [1] unalias @ ./abstractarray.jl:1530 [inlined] [2] broadcast_unalias @ ./broadcast.jl:968 [inlined] [3] preprocess @ ./broadcast.jl:975 [inlined] [4] preprocess_args @ ./broadcast.jl:978 [inlined] [5] preprocess_args @ ./broadcast.jl:977 [inlined] [6] preprocess @ ./broadcast.jl:974 [inlined] [7] preprocess_args (repeats 2 times) @ ./broadcast.jl:977 [inlined] [8] preprocess @ ./broadcast.jl:974 [inlined] [9] copyto! @ ./broadcast.jl:991 [inlined] [10] copyto! @ ./broadcast.jl:947 [inlined] [11] copy @ ./broadcast.jl:919 [inlined] [12] materialize @ ./broadcast.jl:894 [inlined] [13] f_struct @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:9 [14] CallWithKWargs @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:7 [inlined] [15] CallWithKWargs @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:0 [inlined] [16] fwddiffejulia_CallWithKWargs_83365_inner_1wrap @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:0 [17] macro expansion @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6883 [inlined] [18] enzyme_call @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6353 [inlined] [19] ForwardModeThunk @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6253 [inlined] [20] autodiff @ ~/.julia/packages/Enzyme/lNw5i/src/Enzyme.jl:688 [inlined] [21] autodiff(::ForwardMode{true, FFIABI, false, false, false}, ::EnzymeTestUtils.CallWithKWargs{@NamedTuple{}}, ::Type{BatchDuplicated}, ::Const{typeof(f_struct)}, ::Const{TestStruct{Vector{Float64}, Float64}}) @ Enzyme ~/.julia/packages/Enzyme/lNw5i/src/Enzyme.jl:557 [22] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:96 [inlined] [23] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [24] test_forward(f::typeof(f_struct), ret_activity::Type, args::Tuple{TestStruct{Vector{Float64}, Float64}, UnionAll}; rng::TaskLocalRNG, fdm::FiniteDifferences.AdaptedFiniteDifferenceMethod{5, 1, FiniteDifferences.UnadaptedFiniteDifferenceMethod{7, 5}}, fkwargs::@NamedTuple{}, rtol::Float64, atol::Float64, testset_name::Nothing, runtime_activity::Bool) @ EnzymeTestUtils ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:73 [25] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [27] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:59 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [29] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:60 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [31] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:69 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [33] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:70 [inlined] [34] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [35] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:94 [inlined] [36] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [37] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/runtests.jl:8 [38] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [39] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/runtests.jl:13 [inlined] [40] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [41] top-level scope @ none:6 [42] eval(m::Module, e::Any) @ Core ./boot.jl:489 [43] exec_options(opts::Base.JLOptions) @ Base ./client.jl:283 [44] _start() @ Base ./client.jl:550 test_forward: f_struct with return activity BatchDuplicated on (::TestStruct{Vector{ComplexF64}, ComplexF64}, Const): Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:71 Got exception outside of a @test EnzymeRuntimeActivityError: Detected potential need for runtime activity. Constant memory is stored (or returned) to a differentiable variable and correctness cannot be guaranteed with static activity analysis. This might be due to the use of a constant variable as temporary storage for active memory (https://enzyme.mit.edu/julia/stable/faq/#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 performance, slower to setup), 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: f_struct(::TestStruct{Vector{ComplexF64}, ComplexF64}) @ Main ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:9 Hint: catch this exception as `err` and call `code_typed(err)` to inspect the surrounding code. Mismatched activity for: %value_phi12265 = phi ptr addrspace(10) [ %0, %L40 ], [ %"new::Array113", %L96 ], [ %0, %L105 ] const val: %0 = load ptr addrspace(10), ptr %.roots.x, align 8, !tbaa !20, !alias.scope !24, !noalias !27, !enzyme_type !32, !enzymejl_byref_MUT_REF !0, !enzymejl_source_type_Vector\7BComplexF64\7D !0 Julia value causing error: Unknown object of type Vector{ComplexF64} LLVM view of erring value: %0 = load ptr addrspace(10), ptr %.roots.x, align 8, !tbaa !20, !alias.scope !24, !noalias !27, !enzyme_type !32, !enzymejl_byref_MUT_REF !0, !enzymejl_source_type_Vector\7BComplexF64\7D !0 Stacktrace: [1] size @ ./array.jl:194 [2] axes @ ./abstractarray.jl:98 [3] newindexer @ ./broadcast.jl:605 [4] extrude @ ./broadcast.jl:666 [5] preprocess @ ./broadcast.jl:975 [6] preprocess_args @ ./broadcast.jl:978 [7] preprocess_args @ ./broadcast.jl:977 [8] preprocess @ ./broadcast.jl:974 [9] preprocess_args (repeats 2 times) @ ./broadcast.jl:977 [10] preprocess @ ./broadcast.jl:974 [11] copyto! @ ./broadcast.jl:991 [12] copyto! @ ./broadcast.jl:947 [13] copy @ ./broadcast.jl:919 [14] materialize @ ./broadcast.jl:894 [15] f_struct @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:9 Stacktrace: [1] unalias @ ./abstractarray.jl:1530 [inlined] [2] broadcast_unalias @ ./broadcast.jl:968 [inlined] [3] preprocess @ ./broadcast.jl:975 [inlined] [4] preprocess_args @ ./broadcast.jl:978 [inlined] [5] preprocess_args @ ./broadcast.jl:977 [inlined] [6] preprocess @ ./broadcast.jl:974 [inlined] [7] preprocess_args (repeats 2 times) @ ./broadcast.jl:977 [inlined] [8] preprocess @ ./broadcast.jl:974 [inlined] [9] copyto! @ ./broadcast.jl:991 [inlined] [10] copyto! @ ./broadcast.jl:947 [inlined] [11] copy @ ./broadcast.jl:919 [inlined] [12] materialize @ ./broadcast.jl:894 [inlined] [13] f_struct @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:9 [14] CallWithKWargs @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:7 [inlined] [15] CallWithKWargs @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:0 [inlined] [16] fwddiffejulia_CallWithKWargs_83428_inner_2wrap @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:0 [17] macro expansion @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6883 [inlined] [18] enzyme_call @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6353 [inlined] [19] ForwardModeThunk @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6253 [inlined] [20] autodiff @ ~/.julia/packages/Enzyme/lNw5i/src/Enzyme.jl:688 [inlined] [21] autodiff(::ForwardMode{true, FFIABI, false, false, false}, ::EnzymeTestUtils.CallWithKWargs{@NamedTuple{}}, ::Type{BatchDuplicated}, ::Const{typeof(f_struct)}, ::Const{TestStruct{Vector{ComplexF64}, ComplexF64}}) @ Enzyme ~/.julia/packages/Enzyme/lNw5i/src/Enzyme.jl:557 [22] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:96 [inlined] [23] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [24] test_forward(f::typeof(f_struct), ret_activity::Type, args::Tuple{TestStruct{Vector{ComplexF64}, ComplexF64}, UnionAll}; rng::TaskLocalRNG, fdm::FiniteDifferences.AdaptedFiniteDifferenceMethod{5, 1, FiniteDifferences.UnadaptedFiniteDifferenceMethod{7, 5}}, fkwargs::@NamedTuple{}, rtol::Float64, atol::Float64, testset_name::Nothing, runtime_activity::Bool) @ EnzymeTestUtils ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:73 [25] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [27] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:59 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [29] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:60 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [31] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:69 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [33] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:70 [inlined] [34] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [35] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:94 [inlined] [36] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [37] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/runtests.jl:8 [38] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [39] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/runtests.jl:13 [inlined] [40] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [41] top-level scope @ none:6 [42] eval(m::Module, e::Any) @ Core ./boot.jl:489 [43] exec_options(opts::Base.JLOptions) @ Base ./client.jl:283 [44] _start() @ Base ./client.jl:550 test_forward: f_struct with return activity BatchDuplicatedNoNeed on (::TestStruct{Vector{Float32}, Float32}, Const): Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:71 Got exception outside of a @test EnzymeRuntimeActivityError: Detected potential need for runtime activity. Constant memory is stored (or returned) to a differentiable variable and correctness cannot be guaranteed with static activity analysis. This might be due to the use of a constant variable as temporary storage for active memory (https://enzyme.mit.edu/julia/stable/faq/#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 performance, slower to setup), 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: f_struct(::TestStruct{Vector{Float32}, Float32}) @ Main ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:9 Hint: catch this exception as `err` and call `code_typed(err)` to inspect the surrounding code. Mismatched activity for: %nodecayed..pre-phi180.ph = phi ptr addrspace(10) [ %"new::Array108", %L96 ], [ %0, %L40 ] const val: %0 = load ptr addrspace(10), ptr %.roots.x, align 8, !tbaa !15, !alias.scope !19, !noalias !22, !enzyme_type !27, !enzymejl_source_type_Vector\7BFloat32\7D !0, !enzymejl_byref_MUT_REF !0 Julia value causing error: Unknown object of type Vector{Float32} LLVM view of erring value: %0 = load ptr addrspace(10), ptr %.roots.x, align 8, !tbaa !15, !alias.scope !19, !noalias !22, !enzyme_type !27, !enzymejl_source_type_Vector\7BFloat32\7D !0, !enzymejl_byref_MUT_REF !0 Stacktrace: [1] preprocess_args @ ./broadcast.jl:977 [2] preprocess @ ./broadcast.jl:974 [3] preprocess_args (repeats 2 times) @ ./broadcast.jl:977 [4] preprocess @ ./broadcast.jl:974 [5] copyto! @ ./broadcast.jl:991 [6] copyto! @ ./broadcast.jl:947 [7] copy @ ./broadcast.jl:919 [8] materialize @ ./broadcast.jl:894 [9] f_struct @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:9 Stacktrace: [1] unalias @ ./abstractarray.jl:1530 [inlined] [2] broadcast_unalias @ ./broadcast.jl:968 [inlined] [3] preprocess @ ./broadcast.jl:975 [inlined] [4] preprocess_args @ ./broadcast.jl:978 [inlined] [5] preprocess_args @ ./broadcast.jl:977 [inlined] [6] preprocess @ ./broadcast.jl:974 [inlined] [7] preprocess_args (repeats 2 times) @ ./broadcast.jl:977 [inlined] [8] preprocess @ ./broadcast.jl:974 [inlined] [9] copyto! @ ./broadcast.jl:991 [inlined] [10] copyto! @ ./broadcast.jl:947 [inlined] [11] copy @ ./broadcast.jl:919 [inlined] [12] materialize @ ./broadcast.jl:894 [inlined] [13] f_struct @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:9 [14] CallWithKWargs @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:7 [inlined] [15] CallWithKWargs @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:0 [inlined] [16] fwddiffejulia_CallWithKWargs_84353_inner_2wrap @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:0 [17] macro expansion @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6883 [inlined] [18] enzyme_call @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6353 [inlined] [19] ForwardModeThunk @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6253 [inlined] [20] autodiff @ ~/.julia/packages/Enzyme/lNw5i/src/Enzyme.jl:688 [inlined] [21] autodiff(::ForwardMode{false, FFIABI, false, false, false}, ::EnzymeTestUtils.CallWithKWargs{@NamedTuple{}}, ::Type{BatchDuplicated}, ::Const{typeof(f_struct)}, ::Const{TestStruct{Vector{Float32}, Float32}}) @ Enzyme ~/.julia/packages/Enzyme/lNw5i/src/Enzyme.jl:557 [22] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:96 [inlined] [23] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [24] test_forward(f::typeof(f_struct), ret_activity::Type, args::Tuple{TestStruct{Vector{Float32}, Float32}, UnionAll}; rng::TaskLocalRNG, fdm::FiniteDifferences.AdaptedFiniteDifferenceMethod{5, 1, FiniteDifferences.UnadaptedFiniteDifferenceMethod{7, 5}}, fkwargs::@NamedTuple{}, rtol::Float32, atol::Float32, testset_name::Nothing, runtime_activity::Bool) @ EnzymeTestUtils ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:73 [25] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [27] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:59 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [29] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:60 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [31] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:69 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [33] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:70 [inlined] [34] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [35] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:94 [inlined] [36] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [37] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/runtests.jl:8 [38] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [39] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/runtests.jl:13 [inlined] [40] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [41] top-level scope @ none:6 [42] eval(m::Module, e::Any) @ Core ./boot.jl:489 [43] exec_options(opts::Base.JLOptions) @ Base ./client.jl:283 [44] _start() @ Base ./client.jl:550 test_forward: f_struct with return activity BatchDuplicatedNoNeed on (::TestStruct{Vector{Float64}, Float64}, Const): Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:71 Got exception outside of a @test EnzymeRuntimeActivityError: Detected potential need for runtime activity. Constant memory is stored (or returned) to a differentiable variable and correctness cannot be guaranteed with static activity analysis. This might be due to the use of a constant variable as temporary storage for active memory (https://enzyme.mit.edu/julia/stable/faq/#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 performance, slower to setup), 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: f_struct(::TestStruct{Vector{Float64}, Float64}) @ Main ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:9 Hint: catch this exception as `err` and call `code_typed(err)` to inspect the surrounding code. Mismatched activity for: %nodecayed..pre-phi180.ph = phi ptr addrspace(10) [ %"new::Array108", %L96 ], [ %0, %L40 ] const val: %0 = load ptr addrspace(10), ptr %.roots.x, align 8, !tbaa !15, !alias.scope !19, !noalias !22, !enzyme_type !27, !enzymejl_source_type_Vector\7BFloat64\7D !0, !enzymejl_byref_MUT_REF !0 Julia value causing error: Unknown object of type Vector{Float64} LLVM view of erring value: %0 = load ptr addrspace(10), ptr %.roots.x, align 8, !tbaa !15, !alias.scope !19, !noalias !22, !enzyme_type !27, !enzymejl_source_type_Vector\7BFloat64\7D !0, !enzymejl_byref_MUT_REF !0 Stacktrace: [1] preprocess_args @ ./broadcast.jl:977 [2] preprocess @ ./broadcast.jl:974 [3] preprocess_args (repeats 2 times) @ ./broadcast.jl:977 [4] preprocess @ ./broadcast.jl:974 [5] copyto! @ ./broadcast.jl:991 [6] copyto! @ ./broadcast.jl:947 [7] copy @ ./broadcast.jl:919 [8] materialize @ ./broadcast.jl:894 [9] f_struct @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:9 Stacktrace: [1] unalias @ ./abstractarray.jl:1530 [inlined] [2] broadcast_unalias @ ./broadcast.jl:968 [inlined] [3] preprocess @ ./broadcast.jl:975 [inlined] [4] preprocess_args @ ./broadcast.jl:978 [inlined] [5] preprocess_args @ ./broadcast.jl:977 [inlined] [6] preprocess @ ./broadcast.jl:974 [inlined] [7] preprocess_args (repeats 2 times) @ ./broadcast.jl:977 [inlined] [8] preprocess @ ./broadcast.jl:974 [inlined] [9] copyto! @ ./broadcast.jl:991 [inlined] [10] copyto! @ ./broadcast.jl:947 [inlined] [11] copy @ ./broadcast.jl:919 [inlined] [12] materialize @ ./broadcast.jl:894 [inlined] [13] f_struct @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:9 [14] CallWithKWargs @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:7 [inlined] [15] CallWithKWargs @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:0 [inlined] [16] fwddiffejulia_CallWithKWargs_84422_inner_1wrap @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:0 [17] macro expansion @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6883 [inlined] [18] enzyme_call @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6353 [inlined] [19] ForwardModeThunk @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6253 [inlined] [20] autodiff @ ~/.julia/packages/Enzyme/lNw5i/src/Enzyme.jl:688 [inlined] [21] autodiff(::ForwardMode{false, FFIABI, false, false, false}, ::EnzymeTestUtils.CallWithKWargs{@NamedTuple{}}, ::Type{BatchDuplicated}, ::Const{typeof(f_struct)}, ::Const{TestStruct{Vector{Float64}, Float64}}) @ Enzyme ~/.julia/packages/Enzyme/lNw5i/src/Enzyme.jl:557 [22] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:96 [inlined] [23] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [24] test_forward(f::typeof(f_struct), ret_activity::Type, args::Tuple{TestStruct{Vector{Float64}, Float64}, UnionAll}; rng::TaskLocalRNG, fdm::FiniteDifferences.AdaptedFiniteDifferenceMethod{5, 1, FiniteDifferences.UnadaptedFiniteDifferenceMethod{7, 5}}, fkwargs::@NamedTuple{}, rtol::Float64, atol::Float64, testset_name::Nothing, runtime_activity::Bool) @ EnzymeTestUtils ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:73 [25] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [27] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:59 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [29] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:60 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [31] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:69 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [33] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:70 [inlined] [34] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [35] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:94 [inlined] [36] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [37] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/runtests.jl:8 [38] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [39] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/runtests.jl:13 [inlined] [40] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [41] top-level scope @ none:6 [42] eval(m::Module, e::Any) @ Core ./boot.jl:489 [43] exec_options(opts::Base.JLOptions) @ Base ./client.jl:283 [44] _start() @ Base ./client.jl:550 test_forward: f_struct with return activity BatchDuplicatedNoNeed on (::TestStruct{Vector{ComplexF64}, ComplexF64}, Const): Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:71 Got exception outside of a @test EnzymeRuntimeActivityError: Detected potential need for runtime activity. Constant memory is stored (or returned) to a differentiable variable and correctness cannot be guaranteed with static activity analysis. This might be due to the use of a constant variable as temporary storage for active memory (https://enzyme.mit.edu/julia/stable/faq/#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 performance, slower to setup), 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: f_struct(::TestStruct{Vector{ComplexF64}, ComplexF64}) @ Main ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:9 Hint: catch this exception as `err` and call `code_typed(err)` to inspect the surrounding code. Mismatched activity for: %value_phi12265 = phi ptr addrspace(10) [ %0, %L40 ], [ %"new::Array113", %L96 ], [ %0, %L105 ] const val: %0 = load ptr addrspace(10), ptr %.roots.x, align 8, !tbaa !20, !alias.scope !24, !noalias !27, !enzyme_type !32, !enzymejl_byref_MUT_REF !0, !enzymejl_source_type_Vector\7BComplexF64\7D !0 Julia value causing error: Unknown object of type Vector{ComplexF64} LLVM view of erring value: %0 = load ptr addrspace(10), ptr %.roots.x, align 8, !tbaa !20, !alias.scope !24, !noalias !27, !enzyme_type !32, !enzymejl_byref_MUT_REF !0, !enzymejl_source_type_Vector\7BComplexF64\7D !0 Stacktrace: [1] size @ ./array.jl:194 [2] axes @ ./abstractarray.jl:98 [3] newindexer @ ./broadcast.jl:605 [4] extrude @ ./broadcast.jl:666 [5] preprocess @ ./broadcast.jl:975 [6] preprocess_args @ ./broadcast.jl:978 [7] preprocess_args @ ./broadcast.jl:977 [8] preprocess @ ./broadcast.jl:974 [9] preprocess_args (repeats 2 times) @ ./broadcast.jl:977 [10] preprocess @ ./broadcast.jl:974 [11] copyto! @ ./broadcast.jl:991 [12] copyto! @ ./broadcast.jl:947 [13] copy @ ./broadcast.jl:919 [14] materialize @ ./broadcast.jl:894 [15] f_struct @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:9 Stacktrace: [1] unalias @ ./abstractarray.jl:1530 [inlined] [2] broadcast_unalias @ ./broadcast.jl:968 [inlined] [3] preprocess @ ./broadcast.jl:975 [inlined] [4] preprocess_args @ ./broadcast.jl:978 [inlined] [5] preprocess_args @ ./broadcast.jl:977 [inlined] [6] preprocess @ ./broadcast.jl:974 [inlined] [7] preprocess_args (repeats 2 times) @ ./broadcast.jl:977 [inlined] [8] preprocess @ ./broadcast.jl:974 [inlined] [9] copyto! @ ./broadcast.jl:991 [inlined] [10] copyto! @ ./broadcast.jl:947 [inlined] [11] copy @ ./broadcast.jl:919 [inlined] [12] materialize @ ./broadcast.jl:894 [inlined] [13] f_struct @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:9 [14] CallWithKWargs @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:7 [inlined] [15] CallWithKWargs @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:0 [inlined] [16] fwddiffejulia_CallWithKWargs_84485_inner_2wrap @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:0 [17] macro expansion @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6883 [inlined] [18] enzyme_call @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6353 [inlined] [19] ForwardModeThunk @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6253 [inlined] [20] autodiff @ ~/.julia/packages/Enzyme/lNw5i/src/Enzyme.jl:688 [inlined] [21] autodiff(::ForwardMode{false, FFIABI, false, false, false}, ::EnzymeTestUtils.CallWithKWargs{@NamedTuple{}}, ::Type{BatchDuplicated}, ::Const{typeof(f_struct)}, ::Const{TestStruct{Vector{ComplexF64}, ComplexF64}}) @ Enzyme ~/.julia/packages/Enzyme/lNw5i/src/Enzyme.jl:557 [22] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:96 [inlined] [23] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [24] test_forward(f::typeof(f_struct), ret_activity::Type, args::Tuple{TestStruct{Vector{ComplexF64}, ComplexF64}, UnionAll}; rng::TaskLocalRNG, fdm::FiniteDifferences.AdaptedFiniteDifferenceMethod{5, 1, FiniteDifferences.UnadaptedFiniteDifferenceMethod{7, 5}}, fkwargs::@NamedTuple{}, rtol::Float64, atol::Float64, testset_name::Nothing, runtime_activity::Bool) @ EnzymeTestUtils ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:73 [25] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [27] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:59 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [29] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:60 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [31] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:69 [inlined] [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [33] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:70 [inlined] [34] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [35] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:94 [inlined] [36] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [37] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/runtests.jl:8 [38] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [39] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/runtests.jl:13 [inlined] [40] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [41] top-level scope @ none:6 [42] eval(m::Module, e::Any) @ Core ./boot.jl:489 [43] exec_options(opts::Base.JLOptions) @ Base ./client.jl:283 [44] _start() @ Base ./client.jl:550 Tret = Const, Tx = Const, Ta = Duplicated, T = Float32: Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 Test threw exception Expression: !(fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:119 =# test_forward(f_multiarg, Tret, (x, Tx), (a, Ta); atol, rtol) end) Error occurred during `fails` Stacktrace: [1] error(s::String) @ Base ./error.jl:44 [2] fails(f::Function) @ MetaTesting ~/.julia/packages/MetaTesting/nvOMS/src/MetaTesting.jl:103 [3] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:59 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [11] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:677 [inlined] [13] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] Tret = Const, Tx = Const, Ta = Duplicated, T = Float64: Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 Test threw exception Expression: !(fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:119 =# test_forward(f_multiarg, Tret, (x, Tx), (a, Ta); atol, rtol) end) Error occurred during `fails` Stacktrace: [1] error(s::String) @ Base ./error.jl:44 [2] fails(f::Function) @ MetaTesting ~/.julia/packages/MetaTesting/nvOMS/src/MetaTesting.jl:103 [3] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:59 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [11] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:677 [inlined] [13] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] Tret = Const, Tx = Const, Ta = Duplicated, T = ComplexF32: Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 Test threw exception Expression: !(fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:119 =# test_forward(f_multiarg, Tret, (x, Tx), (a, Ta); atol, rtol) end) Error occurred during `fails` Stacktrace: [1] error(s::String) @ Base ./error.jl:44 [2] fails(f::Function) @ MetaTesting ~/.julia/packages/MetaTesting/nvOMS/src/MetaTesting.jl:103 [3] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:59 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [11] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:677 [inlined] [13] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] Tret = Const, Tx = Const, Ta = Duplicated, T = ComplexF64: Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 Test threw exception Expression: !(fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:119 =# test_forward(f_multiarg, Tret, (x, Tx), (a, Ta); atol, rtol) end) Error occurred during `fails` Stacktrace: [1] error(s::String) @ Base ./error.jl:44 [2] fails(f::Function) @ MetaTesting ~/.julia/packages/MetaTesting/nvOMS/src/MetaTesting.jl:103 [3] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:59 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [11] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:677 [inlined] [13] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] Tret = Const, Tx = Const, Ta = BatchDuplicated, T = Float32: Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 Test threw exception Expression: !(fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:119 =# test_forward(f_multiarg, Tret, (x, Tx), (a, Ta); atol, rtol) end) Error occurred during `fails` Stacktrace: [1] error(s::String) @ Base ./error.jl:44 [2] fails(f::Function) @ MetaTesting ~/.julia/packages/MetaTesting/nvOMS/src/MetaTesting.jl:103 [3] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:59 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [11] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:677 [inlined] [13] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] Tret = Const, Tx = Const, Ta = BatchDuplicated, T = Float64: Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 Test threw exception Expression: !(fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:119 =# test_forward(f_multiarg, Tret, (x, Tx), (a, Ta); atol, rtol) end) Error occurred during `fails` Stacktrace: [1] error(s::String) @ Base ./error.jl:44 [2] fails(f::Function) @ MetaTesting ~/.julia/packages/MetaTesting/nvOMS/src/MetaTesting.jl:103 [3] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:59 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [11] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:677 [inlined] [13] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] Tret = Const, Tx = Const, Ta = BatchDuplicated, T = ComplexF32: Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 Test threw exception Expression: !(fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:119 =# test_forward(f_multiarg, Tret, (x, Tx), (a, Ta); atol, rtol) end) Error occurred during `fails` Stacktrace: [1] error(s::String) @ Base ./error.jl:44 [2] fails(f::Function) @ MetaTesting ~/.julia/packages/MetaTesting/nvOMS/src/MetaTesting.jl:103 [3] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:59 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [11] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:677 [inlined] [13] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] Tret = Const, Tx = Const, Ta = BatchDuplicated, T = ComplexF64: Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 Test threw exception Expression: !(fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:119 =# test_forward(f_multiarg, Tret, (x, Tx), (a, Ta); atol, rtol) end) Error occurred during `fails` Stacktrace: [1] error(s::String) @ Base ./error.jl:44 [2] fails(f::Function) @ MetaTesting ~/.julia/packages/MetaTesting/nvOMS/src/MetaTesting.jl:103 [3] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:59 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [11] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:677 [inlined] [13] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] Tret = Duplicated, Tx = Const, Ta = Const, T = Float32: Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 Test threw exception Expression: !(fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:119 =# test_forward(f_multiarg, Tret, (x, Tx), (a, Ta); atol, rtol) end) Error occurred during `fails` Stacktrace: [1] error(s::String) @ Base ./error.jl:44 [2] fails(f::Function) @ MetaTesting ~/.julia/packages/MetaTesting/nvOMS/src/MetaTesting.jl:103 [3] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:59 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [11] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:677 [inlined] [13] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] Tret = Duplicated, Tx = Const, Ta = Const, T = Float64: Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 Test threw exception Expression: !(fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:119 =# test_forward(f_multiarg, Tret, (x, Tx), (a, Ta); atol, rtol) end) Error occurred during `fails` Stacktrace: [1] error(s::String) @ Base ./error.jl:44 [2] fails(f::Function) @ MetaTesting ~/.julia/packages/MetaTesting/nvOMS/src/MetaTesting.jl:103 [3] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:59 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [11] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:677 [inlined] [13] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] Tret = Duplicated, Tx = Const, Ta = Const, T = ComplexF32: Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 Test threw exception Expression: !(fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:119 =# test_forward(f_multiarg, Tret, (x, Tx), (a, Ta); atol, rtol) end) Error occurred during `fails` Stacktrace: [1] error(s::String) @ Base ./error.jl:44 [2] fails(f::Function) @ MetaTesting ~/.julia/packages/MetaTesting/nvOMS/src/MetaTesting.jl:103 [3] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:59 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [11] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:677 [inlined] [13] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] Tret = Duplicated, Tx = Const, Ta = Const, T = ComplexF64: Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 Test threw exception Expression: !(fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:119 =# test_forward(f_multiarg, Tret, (x, Tx), (a, Ta); atol, rtol) end) Error occurred during `fails` Stacktrace: [1] error(s::String) @ Base ./error.jl:44 [2] fails(f::Function) @ MetaTesting ~/.julia/packages/MetaTesting/nvOMS/src/MetaTesting.jl:103 [3] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:59 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [11] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:677 [inlined] [13] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] Tret = Duplicated, Tx = Const, Ta = Duplicated, T = Float32: Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 Test threw exception Expression: !(fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:119 =# test_forward(f_multiarg, Tret, (x, Tx), (a, Ta); atol, rtol) end) Error occurred during `fails` Stacktrace: [1] error(s::String) @ Base ./error.jl:44 [2] fails(f::Function) @ MetaTesting ~/.julia/packages/MetaTesting/nvOMS/src/MetaTesting.jl:103 [3] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:59 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [11] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:677 [inlined] [13] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] Tret = Duplicated, Tx = Const, Ta = Duplicated, T = Float64: Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 Test threw exception Expression: !(fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:119 =# test_forward(f_multiarg, Tret, (x, Tx), (a, Ta); atol, rtol) end) Error occurred during `fails` Stacktrace: [1] error(s::String) @ Base ./error.jl:44 [2] fails(f::Function) @ MetaTesting ~/.julia/packages/MetaTesting/nvOMS/src/MetaTesting.jl:103 [3] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:59 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [11] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:677 [inlined] [13] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] Tret = Duplicated, Tx = Const, Ta = Duplicated, T = ComplexF32: Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 Test threw exception Expression: !(fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:119 =# test_forward(f_multiarg, Tret, (x, Tx), (a, Ta); atol, rtol) end) Error occurred during `fails` Stacktrace: [1] error(s::String) @ Base ./error.jl:44 [2] fails(f::Function) @ MetaTesting ~/.julia/packages/MetaTesting/nvOMS/src/MetaTesting.jl:103 [3] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:59 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [11] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:677 [inlined] [13] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] Tret = Duplicated, Tx = Const, Ta = Duplicated, T = ComplexF64: Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 Test threw exception Expression: !(fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:119 =# test_forward(f_multiarg, Tret, (x, Tx), (a, Ta); atol, rtol) end) Error occurred during `fails` Stacktrace: [1] error(s::String) @ Base ./error.jl:44 [2] fails(f::Function) @ MetaTesting ~/.julia/packages/MetaTesting/nvOMS/src/MetaTesting.jl:103 [3] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:59 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [11] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:677 [inlined] [13] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] Tret = DuplicatedNoNeed, Tx = Const, Ta = Const, T = Float32: Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 Test threw exception Expression: !(fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:119 =# test_forward(f_multiarg, Tret, (x, Tx), (a, Ta); atol, rtol) end) Error occurred during `fails` Stacktrace: [1] error(s::String) @ Base ./error.jl:44 [2] fails(f::Function) @ MetaTesting ~/.julia/packages/MetaTesting/nvOMS/src/MetaTesting.jl:103 [3] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:59 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [11] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:677 [inlined] [13] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] Tret = DuplicatedNoNeed, Tx = Const, Ta = Const, T = Float64: Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 Test threw exception Expression: !(fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:119 =# test_forward(f_multiarg, Tret, (x, Tx), (a, Ta); atol, rtol) end) Error occurred during `fails` Stacktrace: [1] error(s::String) @ Base ./error.jl:44 [2] fails(f::Function) @ MetaTesting ~/.julia/packages/MetaTesting/nvOMS/src/MetaTesting.jl:103 [3] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:59 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [11] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:677 [inlined] [13] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] Tret = DuplicatedNoNeed, Tx = Const, Ta = Const, T = ComplexF32: Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 Test threw exception Expression: !(fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:119 =# test_forward(f_multiarg, Tret, (x, Tx), (a, Ta); atol, rtol) end) Error occurred during `fails` Stacktrace: [1] error(s::String) @ Base ./error.jl:44 [2] fails(f::Function) @ MetaTesting ~/.julia/packages/MetaTesting/nvOMS/src/MetaTesting.jl:103 [3] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:59 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [11] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:677 [inlined] [13] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] Tret = DuplicatedNoNeed, Tx = Const, Ta = Const, T = ComplexF64: Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 Test threw exception Expression: !(fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:119 =# test_forward(f_multiarg, Tret, (x, Tx), (a, Ta); atol, rtol) end) Error occurred during `fails` Stacktrace: [1] error(s::String) @ Base ./error.jl:44 [2] fails(f::Function) @ MetaTesting ~/.julia/packages/MetaTesting/nvOMS/src/MetaTesting.jl:103 [3] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:59 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [11] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:677 [inlined] [13] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] Tret = DuplicatedNoNeed, Tx = Const, Ta = Duplicated, T = Float32: Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 Test threw exception Expression: !(fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:119 =# test_forward(f_multiarg, Tret, (x, Tx), (a, Ta); atol, rtol) end) Error occurred during `fails` Stacktrace: [1] error(s::String) @ Base ./error.jl:44 [2] fails(f::Function) @ MetaTesting ~/.julia/packages/MetaTesting/nvOMS/src/MetaTesting.jl:103 [3] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:59 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [11] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:677 [inlined] [13] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] Tret = DuplicatedNoNeed, Tx = Const, Ta = Duplicated, T = Float64: Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 Test threw exception Expression: !(fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:119 =# test_forward(f_multiarg, Tret, (x, Tx), (a, Ta); atol, rtol) end) Error occurred during `fails` Stacktrace: [1] error(s::String) @ Base ./error.jl:44 [2] fails(f::Function) @ MetaTesting ~/.julia/packages/MetaTesting/nvOMS/src/MetaTesting.jl:103 [3] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:59 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [11] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:677 [inlined] [13] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] Tret = DuplicatedNoNeed, Tx = Const, Ta = Duplicated, T = ComplexF32: Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 Test threw exception Expression: !(fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:119 =# test_forward(f_multiarg, Tret, (x, Tx), (a, Ta); atol, rtol) end) Error occurred during `fails` Stacktrace: [1] error(s::String) @ Base ./error.jl:44 [2] fails(f::Function) @ MetaTesting ~/.julia/packages/MetaTesting/nvOMS/src/MetaTesting.jl:103 [3] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:59 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [11] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:677 [inlined] [13] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] Tret = DuplicatedNoNeed, Tx = Const, Ta = Duplicated, T = ComplexF64: Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 Test threw exception Expression: !(fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:119 =# test_forward(f_multiarg, Tret, (x, Tx), (a, Ta); atol, rtol) end) Error occurred during `fails` Stacktrace: [1] error(s::String) @ Base ./error.jl:44 [2] fails(f::Function) @ MetaTesting ~/.julia/packages/MetaTesting/nvOMS/src/MetaTesting.jl:103 [3] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:59 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [11] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:677 [inlined] [13] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] Tret = BatchDuplicated, Tx = Const, Ta = Const, T = Float32: Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 Test threw exception Expression: !(fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:119 =# test_forward(f_multiarg, Tret, (x, Tx), (a, Ta); atol, rtol) end) Error occurred during `fails` Stacktrace: [1] error(s::String) @ Base ./error.jl:44 [2] fails(f::Function) @ MetaTesting ~/.julia/packages/MetaTesting/nvOMS/src/MetaTesting.jl:103 [3] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:59 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [11] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:677 [inlined] [13] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] Tret = BatchDuplicated, Tx = Const, Ta = Const, T = Float64: Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 Test threw exception Expression: !(fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:119 =# test_forward(f_multiarg, Tret, (x, Tx), (a, Ta); atol, rtol) end) Error occurred during `fails` Stacktrace: [1] error(s::String) @ Base ./error.jl:44 [2] fails(f::Function) @ MetaTesting ~/.julia/packages/MetaTesting/nvOMS/src/MetaTesting.jl:103 [3] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:59 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [11] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:677 [inlined] [13] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] Tret = BatchDuplicated, Tx = Const, Ta = Const, T = ComplexF32: Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 Test threw exception Expression: !(fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:119 =# test_forward(f_multiarg, Tret, (x, Tx), (a, Ta); atol, rtol) end) Error occurred during `fails` Stacktrace: [1] error(s::String) @ Base ./error.jl:44 [2] fails(f::Function) @ MetaTesting ~/.julia/packages/MetaTesting/nvOMS/src/MetaTesting.jl:103 [3] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:59 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [11] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:677 [inlined] [13] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] Tret = BatchDuplicated, Tx = Const, Ta = Const, T = ComplexF64: Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 Test threw exception Expression: !(fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:119 =# test_forward(f_multiarg, Tret, (x, Tx), (a, Ta); atol, rtol) end) Error occurred during `fails` Stacktrace: [1] error(s::String) @ Base ./error.jl:44 [2] fails(f::Function) @ MetaTesting ~/.julia/packages/MetaTesting/nvOMS/src/MetaTesting.jl:103 [3] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:59 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [11] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:677 [inlined] [13] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] Tret = BatchDuplicated, Tx = Const, Ta = BatchDuplicated, T = Float32: Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 Test threw exception Expression: !(fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:119 =# test_forward(f_multiarg, Tret, (x, Tx), (a, Ta); atol, rtol) end) Error occurred during `fails` Stacktrace: [1] error(s::String) @ Base ./error.jl:44 [2] fails(f::Function) @ MetaTesting ~/.julia/packages/MetaTesting/nvOMS/src/MetaTesting.jl:103 [3] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:59 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [11] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:677 [inlined] [13] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] Tret = BatchDuplicated, Tx = Const, Ta = BatchDuplicated, T = Float64: Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 Test threw exception Expression: !(fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:119 =# test_forward(f_multiarg, Tret, (x, Tx), (a, Ta); atol, rtol) end) Error occurred during `fails` Stacktrace: [1] error(s::String) @ Base ./error.jl:44 [2] fails(f::Function) @ MetaTesting ~/.julia/packages/MetaTesting/nvOMS/src/MetaTesting.jl:103 [3] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:59 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [11] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:677 [inlined] [13] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] Tret = BatchDuplicated, Tx = Const, Ta = BatchDuplicated, T = ComplexF32: Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 Test threw exception Expression: !(fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:119 =# test_forward(f_multiarg, Tret, (x, Tx), (a, Ta); atol, rtol) end) Error occurred during `fails` Stacktrace: [1] error(s::String) @ Base ./error.jl:44 [2] fails(f::Function) @ MetaTesting ~/.julia/packages/MetaTesting/nvOMS/src/MetaTesting.jl:103 [3] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:59 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [11] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:677 [inlined] [13] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] Tret = BatchDuplicated, Tx = Const, Ta = BatchDuplicated, T = ComplexF64: Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 Test threw exception Expression: !(fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:119 =# test_forward(f_multiarg, Tret, (x, Tx), (a, Ta); atol, rtol) end) Error occurred during `fails` Stacktrace: [1] error(s::String) @ Base ./error.jl:44 [2] fails(f::Function) @ MetaTesting ~/.julia/packages/MetaTesting/nvOMS/src/MetaTesting.jl:103 [3] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:59 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [11] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:677 [inlined] [13] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] Tret = BatchDuplicatedNoNeed, Tx = Const, Ta = Const, T = Float32: Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 Test threw exception Expression: !(fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:119 =# test_forward(f_multiarg, Tret, (x, Tx), (a, Ta); atol, rtol) end) Error occurred during `fails` Stacktrace: [1] error(s::String) @ Base ./error.jl:44 [2] fails(f::Function) @ MetaTesting ~/.julia/packages/MetaTesting/nvOMS/src/MetaTesting.jl:103 [3] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:59 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [11] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:677 [inlined] [13] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] Tret = BatchDuplicatedNoNeed, Tx = Const, Ta = Const, T = Float64: Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 Test threw exception Expression: !(fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:119 =# test_forward(f_multiarg, Tret, (x, Tx), (a, Ta); atol, rtol) end) Error occurred during `fails` Stacktrace: [1] error(s::String) @ Base ./error.jl:44 [2] fails(f::Function) @ MetaTesting ~/.julia/packages/MetaTesting/nvOMS/src/MetaTesting.jl:103 [3] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:59 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [11] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:677 [inlined] [13] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] Tret = BatchDuplicatedNoNeed, Tx = Const, Ta = Const, T = ComplexF32: Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 Test threw exception Expression: !(fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:119 =# test_forward(f_multiarg, Tret, (x, Tx), (a, Ta); atol, rtol) end) Error occurred during `fails` Stacktrace: [1] error(s::String) @ Base ./error.jl:44 [2] fails(f::Function) @ MetaTesting ~/.julia/packages/MetaTesting/nvOMS/src/MetaTesting.jl:103 [3] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:59 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [11] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:677 [inlined] [13] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] Tret = BatchDuplicatedNoNeed, Tx = Const, Ta = Const, T = ComplexF64: Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 Test threw exception Expression: !(fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:119 =# test_forward(f_multiarg, Tret, (x, Tx), (a, Ta); atol, rtol) end) Error occurred during `fails` Stacktrace: [1] error(s::String) @ Base ./error.jl:44 [2] fails(f::Function) @ MetaTesting ~/.julia/packages/MetaTesting/nvOMS/src/MetaTesting.jl:103 [3] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:59 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [11] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:677 [inlined] [13] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] Tret = BatchDuplicatedNoNeed, Tx = Const, Ta = BatchDuplicated, T = Float32: Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 Test threw exception Expression: !(fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:119 =# test_forward(f_multiarg, Tret, (x, Tx), (a, Ta); atol, rtol) end) Error occurred during `fails` Stacktrace: [1] error(s::String) @ Base ./error.jl:44 [2] fails(f::Function) @ MetaTesting ~/.julia/packages/MetaTesting/nvOMS/src/MetaTesting.jl:103 [3] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:59 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [11] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:677 [inlined] [13] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] Tret = BatchDuplicatedNoNeed, Tx = Const, Ta = BatchDuplicated, T = Float64: Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 Test threw exception Expression: !(fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:119 =# test_forward(f_multiarg, Tret, (x, Tx), (a, Ta); atol, rtol) end) Error occurred during `fails` Stacktrace: [1] error(s::String) @ Base ./error.jl:44 [2] fails(f::Function) @ MetaTesting ~/.julia/packages/MetaTesting/nvOMS/src/MetaTesting.jl:103 [3] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:59 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [11] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:677 [inlined] [13] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] Tret = BatchDuplicatedNoNeed, Tx = Const, Ta = BatchDuplicated, T = ComplexF32: Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 Test threw exception Expression: !(fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:119 =# test_forward(f_multiarg, Tret, (x, Tx), (a, Ta); atol, rtol) end) Error occurred during `fails` Stacktrace: [1] error(s::String) @ Base ./error.jl:44 [2] fails(f::Function) @ MetaTesting ~/.julia/packages/MetaTesting/nvOMS/src/MetaTesting.jl:103 [3] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:59 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [11] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:677 [inlined] [13] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] Tret = BatchDuplicatedNoNeed, Tx = Const, Ta = BatchDuplicated, T = ComplexF64: Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 Test threw exception Expression: !(fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:119 =# test_forward(f_multiarg, Tret, (x, Tx), (a, Ta); atol, rtol) end) Error occurred during `fails` Stacktrace: [1] error(s::String) @ Base ./error.jl:44 [2] fails(f::Function) @ MetaTesting ~/.julia/packages/MetaTesting/nvOMS/src/MetaTesting.jl:103 [3] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:59 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:100 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [11] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:677 [inlined] [13] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:118 [inlined] test_forward: f with return activity Duplicated on (::Matrix{Float64}, Const): Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:71 Got exception outside of a @test EnzymeRuntimeActivityError: Detected potential need for runtime activity. Constant memory is stored (or returned) to a differentiable variable and correctness cannot be guaranteed with static activity analysis. This might be due to the use of a constant variable as temporary storage for active memory (https://enzyme.mit.edu/julia/stable/faq/#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 performance, slower to setup), 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: *(::Matrix{Float64}, ::Int64) @ Base arraymath.jl:24 Hint: catch this exception as `err` and call `code_typed(err)` to inspect the surrounding code. Mismatched activity for: %nodecayed..pre-phi205 = phi ptr addrspace(10) [ %"new::Array133", %L133 ], [ %"A::Array", %L71 ], [ %"A::Array", %retval ], !dbg !156 const val: ptr addrspace(10) %"A::Array" Julia value causing error: Unknown object of type Matrix{Float64} LLVM view of erring value: ptr addrspace(10) %"A::Array" Stacktrace: [1] size @ ./array.jl:194 [2] axes @ ./abstractarray.jl:98 [3] newindexer @ ./broadcast.jl:605 [4] extrude @ ./broadcast.jl:666 [5] preprocess @ ./broadcast.jl:975 [6] preprocess_args @ ./broadcast.jl:977 [7] preprocess @ ./broadcast.jl:974 [8] copyto! @ ./broadcast.jl:991 [9] copyto! @ ./broadcast.jl:947 [10] copy @ ./broadcast.jl:919 [11] materialize @ ./broadcast.jl:894 [12] broadcast_preserving_zero_d @ ./broadcast.jl:883 [13] * @ ./arraymath.jl:24 Stacktrace: [1] mightalias @ ./abstractarray.jl:1567 [inlined] [2] unalias @ ./abstractarray.jl:1530 [inlined] [3] broadcast_unalias @ ./broadcast.jl:968 [inlined] [4] preprocess @ ./broadcast.jl:975 [inlined] [5] preprocess_args @ ./broadcast.jl:977 [inlined] [6] preprocess @ ./broadcast.jl:974 [inlined] [7] copyto! @ ./broadcast.jl:991 [inlined] [8] copyto! @ ./broadcast.jl:947 [inlined] [9] copy @ ./broadcast.jl:919 [inlined] [10] materialize @ ./broadcast.jl:894 [inlined] [11] broadcast_preserving_zero_d @ ./broadcast.jl:883 [inlined] [12] * @ ./arraymath.jl:24 [13] f @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:155 [inlined] [14] CallWithKWargs @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:7 [inlined] [15] CallWithKWargs @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:0 [inlined] [16] fwddiffejulia_CallWithKWargs_112591_inner_1wrap @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:0 [17] macro expansion @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6883 [inlined] [18] enzyme_call @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6353 [inlined] [19] ForwardModeThunk @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6253 [inlined] [20] autodiff @ ~/.julia/packages/Enzyme/lNw5i/src/Enzyme.jl:688 [inlined] [21] autodiff(::ForwardMode{true, FFIABI, false, false, false}, ::EnzymeTestUtils.CallWithKWargs{@NamedTuple{}}, ::Type{Duplicated}, ::Const{var"#f#f##0"}, ::Const{Matrix{Float64}}) @ Enzyme ~/.julia/packages/Enzyme/lNw5i/src/Enzyme.jl:557 [22] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:96 [inlined] [23] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [24] test_forward(f::var"#f#f##0", ret_activity::Type, args::Tuple{Matrix{Float64}, UnionAll}; rng::TaskLocalRNG, fdm::FiniteDifferences.AdaptedFiniteDifferenceMethod{5, 1, FiniteDifferences.UnadaptedFiniteDifferenceMethod{7, 5}}, fkwargs::@NamedTuple{}, rtol::Float64, atol::Float64, testset_name::Nothing, runtime_activity::Bool) @ EnzymeTestUtils ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:73 [25] test_forward(f::Function, ret_activity::Type, args::Tuple{Matrix{Float64}, UnionAll}) @ EnzymeTestUtils ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:54 [26] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [27] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [28] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:59 [inlined] [29] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [30] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:154 [inlined] [31] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [32] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:159 [inlined] [33] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [34] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:163 [inlined] [35] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [36] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/runtests.jl:8 [37] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [38] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/runtests.jl:13 [inlined] [39] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [40] top-level scope @ none:6 [41] eval(m::Module, e::Any) @ Core ./boot.jl:489 [42] exec_options(opts::Base.JLOptions) @ Base ./client.jl:283 [43] _start() @ Base ./client.jl:550 test_forward: f with return activity BatchDuplicated on (::Matrix{Float64}, Const): Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:71 Got exception outside of a @test EnzymeRuntimeActivityError: Detected potential need for runtime activity. Constant memory is stored (or returned) to a differentiable variable and correctness cannot be guaranteed with static activity analysis. This might be due to the use of a constant variable as temporary storage for active memory (https://enzyme.mit.edu/julia/stable/faq/#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 performance, slower to setup), 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: *(::Matrix{Float64}, ::Int64) @ Base arraymath.jl:24 Hint: catch this exception as `err` and call `code_typed(err)` to inspect the surrounding code. Mismatched activity for: %nodecayed..pre-phi205 = phi ptr addrspace(10) [ %"new::Array133", %L133 ], [ %"A::Array", %L71 ], [ %"A::Array", %retval ], !dbg !156 const val: ptr addrspace(10) %"A::Array" Julia value causing error: Unknown object of type Matrix{Float64} LLVM view of erring value: ptr addrspace(10) %"A::Array" Stacktrace: [1] size @ ./array.jl:194 [2] axes @ ./abstractarray.jl:98 [3] newindexer @ ./broadcast.jl:605 [4] extrude @ ./broadcast.jl:666 [5] preprocess @ ./broadcast.jl:975 [6] preprocess_args @ ./broadcast.jl:977 [7] preprocess @ ./broadcast.jl:974 [8] copyto! @ ./broadcast.jl:991 [9] copyto! @ ./broadcast.jl:947 [10] copy @ ./broadcast.jl:919 [11] materialize @ ./broadcast.jl:894 [12] broadcast_preserving_zero_d @ ./broadcast.jl:883 [13] * @ ./arraymath.jl:24 Stacktrace: [1] mightalias @ ./abstractarray.jl:1567 [inlined] [2] unalias @ ./abstractarray.jl:1530 [inlined] [3] broadcast_unalias @ ./broadcast.jl:968 [inlined] [4] preprocess @ ./broadcast.jl:975 [inlined] [5] preprocess_args @ ./broadcast.jl:977 [inlined] [6] preprocess @ ./broadcast.jl:974 [inlined] [7] copyto! @ ./broadcast.jl:991 [inlined] [8] copyto! @ ./broadcast.jl:947 [inlined] [9] copy @ ./broadcast.jl:919 [inlined] [10] materialize @ ./broadcast.jl:894 [inlined] [11] broadcast_preserving_zero_d @ ./broadcast.jl:883 [inlined] [12] * @ ./arraymath.jl:24 [13] f @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:155 [inlined] [14] CallWithKWargs @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:7 [inlined] [15] CallWithKWargs @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:0 [inlined] [16] fwddiffejulia_CallWithKWargs_112935_inner_1wrap @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:0 [17] macro expansion @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6883 [inlined] [18] enzyme_call @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6353 [inlined] [19] ForwardModeThunk @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6253 [inlined] [20] autodiff @ ~/.julia/packages/Enzyme/lNw5i/src/Enzyme.jl:688 [inlined] [21] autodiff(::ForwardMode{true, FFIABI, false, false, false}, ::EnzymeTestUtils.CallWithKWargs{@NamedTuple{}}, ::Type{BatchDuplicated}, ::Const{var"#f#f##0"}, ::Const{Matrix{Float64}}) @ Enzyme ~/.julia/packages/Enzyme/lNw5i/src/Enzyme.jl:557 [22] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:96 [inlined] [23] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [24] test_forward(f::var"#f#f##0", ret_activity::Type, args::Tuple{Matrix{Float64}, UnionAll}; rng::TaskLocalRNG, fdm::FiniteDifferences.AdaptedFiniteDifferenceMethod{5, 1, FiniteDifferences.UnadaptedFiniteDifferenceMethod{7, 5}}, fkwargs::@NamedTuple{}, rtol::Float64, atol::Float64, testset_name::Nothing, runtime_activity::Bool) @ EnzymeTestUtils ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:73 [25] test_forward(f::Function, ret_activity::Type, args::Tuple{Matrix{Float64}, UnionAll}) @ EnzymeTestUtils ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:54 [26] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [27] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [28] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:59 [inlined] [29] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [30] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:154 [inlined] [31] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [32] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:159 [inlined] [33] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [34] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:163 [inlined] [35] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [36] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/runtests.jl:8 [37] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [38] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/runtests.jl:13 [inlined] [39] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [40] top-level scope @ none:6 [41] eval(m::Module, e::Any) @ Core ./boot.jl:489 [42] exec_options(opts::Base.JLOptions) @ Base ./client.jl:283 [43] _start() @ Base ./client.jl:550 test_forward: #72 with return activity Duplicated on (::Matrix{Float64}, Const): Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:71 Got exception outside of a @test EnzymeRuntimeActivityError: Detected potential need for runtime activity. Constant memory is stored (or returned) to a differentiable variable and correctness cannot be guaranteed with static activity analysis. This might be due to the use of a constant variable as temporary storage for active memory (https://enzyme.mit.edu/julia/stable/faq/#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 performance, slower to setup), 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: *(::Matrix{Float64}, ::Int64) @ Base arraymath.jl:24 Hint: catch this exception as `err` and call `code_typed(err)` to inspect the surrounding code. Mismatched activity for: %nodecayed..pre-phi205 = phi ptr addrspace(10) [ %"new::Array133", %L133 ], [ %"A::Array", %L71 ], [ %"A::Array", %retval ], !dbg !156 const val: ptr addrspace(10) %"A::Array" Julia value causing error: Unknown object of type Matrix{Float64} LLVM view of erring value: ptr addrspace(10) %"A::Array" Stacktrace: [1] size @ ./array.jl:194 [2] axes @ ./abstractarray.jl:98 [3] newindexer @ ./broadcast.jl:605 [4] extrude @ ./broadcast.jl:666 [5] preprocess @ ./broadcast.jl:975 [6] preprocess_args @ ./broadcast.jl:977 [7] preprocess @ ./broadcast.jl:974 [8] copyto! @ ./broadcast.jl:991 [9] copyto! @ ./broadcast.jl:947 [10] copy @ ./broadcast.jl:919 [11] materialize @ ./broadcast.jl:894 [12] broadcast_preserving_zero_d @ ./broadcast.jl:883 [13] * @ ./arraymath.jl:24 Stacktrace: [1] mightalias @ ./abstractarray.jl:1567 [inlined] [2] unalias @ ./abstractarray.jl:1530 [inlined] [3] broadcast_unalias @ ./broadcast.jl:968 [inlined] [4] preprocess @ ./broadcast.jl:975 [inlined] [5] preprocess_args @ ./broadcast.jl:977 [inlined] [6] preprocess @ ./broadcast.jl:974 [inlined] [7] copyto! @ ./broadcast.jl:991 [inlined] [8] copyto! @ ./broadcast.jl:947 [inlined] [9] copy @ ./broadcast.jl:919 [inlined] [10] materialize @ ./broadcast.jl:894 [inlined] [11] broadcast_preserving_zero_d @ ./broadcast.jl:883 [inlined] [12] * @ ./arraymath.jl:24 [13] #72 @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:169 [inlined] [14] CallWithKWargs @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:7 [inlined] [15] CallWithKWargs @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:0 [inlined] [16] fwddiffejulia_CallWithKWargs_113617_inner_1wrap @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:0 [17] macro expansion @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6883 [inlined] [18] enzyme_call @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6353 [inlined] [19] ForwardModeThunk @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6253 [inlined] [20] autodiff @ ~/.julia/packages/Enzyme/lNw5i/src/Enzyme.jl:688 [inlined] [21] autodiff(::ForwardMode{true, FFIABI, false, false, false}, ::EnzymeTestUtils.CallWithKWargs{@NamedTuple{}}, ::Type{Duplicated}, ::Const{var"#72#73"}, ::Const{Matrix{Float64}}) @ Enzyme ~/.julia/packages/Enzyme/lNw5i/src/Enzyme.jl:557 [22] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:96 [inlined] [23] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [24] test_forward(f::var"#72#73", ret_activity::Type, args::Tuple{Matrix{Float64}, UnionAll}; rng::TaskLocalRNG, fdm::FiniteDifferences.AdaptedFiniteDifferenceMethod{5, 1, FiniteDifferences.UnadaptedFiniteDifferenceMethod{7, 5}}, fkwargs::@NamedTuple{}, rtol::Float64, atol::Float64, testset_name::Nothing, runtime_activity::Bool) @ EnzymeTestUtils ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:73 [25] test_forward(f::Function, ret_activity::Type, args::Tuple{Matrix{Float64}, UnionAll}) @ EnzymeTestUtils ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:54 [26] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [27] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [28] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:59 [inlined] [29] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [30] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:168 [inlined] [31] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [32] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:173 [inlined] [33] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [34] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:177 [inlined] [35] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [36] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/runtests.jl:8 [37] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [38] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/runtests.jl:13 [inlined] [39] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [40] top-level scope @ none:6 [41] eval(m::Module, e::Any) @ Core ./boot.jl:489 [42] exec_options(opts::Base.JLOptions) @ Base ./client.jl:283 [43] _start() @ Base ./client.jl:550 test_forward: #72 with return activity BatchDuplicated on (::Matrix{Float64}, Const): Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:71 Got exception outside of a @test EnzymeRuntimeActivityError: Detected potential need for runtime activity. Constant memory is stored (or returned) to a differentiable variable and correctness cannot be guaranteed with static activity analysis. This might be due to the use of a constant variable as temporary storage for active memory (https://enzyme.mit.edu/julia/stable/faq/#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 performance, slower to setup), 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: *(::Matrix{Float64}, ::Int64) @ Base arraymath.jl:24 Hint: catch this exception as `err` and call `code_typed(err)` to inspect the surrounding code. Mismatched activity for: %nodecayed..pre-phi205 = phi ptr addrspace(10) [ %"new::Array133", %L133 ], [ %"A::Array", %L71 ], [ %"A::Array", %retval ], !dbg !156 const val: ptr addrspace(10) %"A::Array" Julia value causing error: Unknown object of type Matrix{Float64} LLVM view of erring value: ptr addrspace(10) %"A::Array" Stacktrace: [1] size @ ./array.jl:194 [2] axes @ ./abstractarray.jl:98 [3] newindexer @ ./broadcast.jl:605 [4] extrude @ ./broadcast.jl:666 [5] preprocess @ ./broadcast.jl:975 [6] preprocess_args @ ./broadcast.jl:977 [7] preprocess @ ./broadcast.jl:974 [8] copyto! @ ./broadcast.jl:991 [9] copyto! @ ./broadcast.jl:947 [10] copy @ ./broadcast.jl:919 [11] materialize @ ./broadcast.jl:894 [12] broadcast_preserving_zero_d @ ./broadcast.jl:883 [13] * @ ./arraymath.jl:24 Stacktrace: [1] mightalias @ ./abstractarray.jl:1567 [inlined] [2] unalias @ ./abstractarray.jl:1530 [inlined] [3] broadcast_unalias @ ./broadcast.jl:968 [inlined] [4] preprocess @ ./broadcast.jl:975 [inlined] [5] preprocess_args @ ./broadcast.jl:977 [inlined] [6] preprocess @ ./broadcast.jl:974 [inlined] [7] copyto! @ ./broadcast.jl:991 [inlined] [8] copyto! @ ./broadcast.jl:947 [inlined] [9] copy @ ./broadcast.jl:919 [inlined] [10] materialize @ ./broadcast.jl:894 [inlined] [11] broadcast_preserving_zero_d @ ./broadcast.jl:883 [inlined] [12] * @ ./arraymath.jl:24 [13] #72 @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:169 [inlined] [14] CallWithKWargs @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:7 [inlined] [15] CallWithKWargs @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:0 [inlined] [16] fwddiffejulia_CallWithKWargs_113895_inner_1wrap @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:0 [17] macro expansion @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6883 [inlined] [18] enzyme_call @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6353 [inlined] [19] ForwardModeThunk @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6253 [inlined] [20] autodiff @ ~/.julia/packages/Enzyme/lNw5i/src/Enzyme.jl:688 [inlined] [21] autodiff(::ForwardMode{true, FFIABI, false, false, false}, ::EnzymeTestUtils.CallWithKWargs{@NamedTuple{}}, ::Type{BatchDuplicated}, ::Const{var"#72#73"}, ::Const{Matrix{Float64}}) @ Enzyme ~/.julia/packages/Enzyme/lNw5i/src/Enzyme.jl:557 [22] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:96 [inlined] [23] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [24] test_forward(f::var"#72#73", ret_activity::Type, args::Tuple{Matrix{Float64}, UnionAll}; rng::TaskLocalRNG, fdm::FiniteDifferences.AdaptedFiniteDifferenceMethod{5, 1, FiniteDifferences.UnadaptedFiniteDifferenceMethod{7, 5}}, fkwargs::@NamedTuple{}, rtol::Float64, atol::Float64, testset_name::Nothing, runtime_activity::Bool) @ EnzymeTestUtils ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:73 [25] test_forward(f::Function, ret_activity::Type, args::Tuple{Matrix{Float64}, UnionAll}) @ EnzymeTestUtils ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:54 [26] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [27] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [28] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:59 [inlined] [29] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [30] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:168 [inlined] [31] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [32] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:173 [inlined] [33] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [34] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:177 [inlined] [35] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [36] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/runtests.jl:8 [37] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [38] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/runtests.jl:13 [inlined] [39] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [40] top-level scope @ none:6 [41] eval(m::Module, e::Any) @ Core ./boot.jl:489 [42] exec_options(opts::Base.JLOptions) @ Base ./client.jl:283 [43] _start() @ Base ./client.jl:550 Tx = Const: Test Failed at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:211 Expression: fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:212 =# return test_forward(f_kwargs_fwd!, Const, (x, Tx); fkwargs) end Stacktrace: [1] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [2] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [3] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:59 [inlined] [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:205 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:205 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:211 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:680 [inlined] Tx = Duplicated: Test Failed at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:211 Expression: fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:212 =# return test_forward(f_kwargs_fwd!, Const, (x, Tx); fkwargs) end Stacktrace: [1] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [2] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [3] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:59 [inlined] [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:205 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:205 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:211 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:680 [inlined] ┌ Warning: Using fallback BLAS replacements for (["cblas_zdotc_sub64_"]), performance may be degraded └ @ Enzyme.Compiler ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:5478 ┌ Warning: Using fallback BLAS replacements for (["cblas_zdotc_sub64_"]), performance may be degraded └ @ Enzyme.Compiler ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:5478 ┌ Warning: Using fallback BLAS replacements for (["cblas_zdotc_sub64_"]), performance may be degraded └ @ Enzyme.Compiler ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:5478 ┌ Warning: Using fallback BLAS replacements for (["cblas_zdotc_sub64_"]), performance may be degraded └ @ Enzyme.Compiler ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:5478 ┌ Warning: Using fallback BLAS replacements for (["cblas_zdotc_sub64_"]), performance may be degraded └ @ Enzyme.Compiler ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:5478 ┌ Warning: Using fallback BLAS replacements for (["cblas_zdotc_sub64_"]), performance may be degraded └ @ Enzyme.Compiler ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:5478 ┌ Warning: Using fallback BLAS replacements for (["cblas_zdotc_sub64_"]), performance may be degraded └ @ Enzyme.Compiler ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:5478 ┌ Warning: Using fallback BLAS replacements for (["cblas_zdotc_sub64_"]), performance may be degraded └ @ Enzyme.Compiler ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:5478 ┌ Warning: Using fallback BLAS replacements for (["cblas_zdotc_sub64_"]), performance may be degraded └ @ Enzyme.Compiler ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:5478 ┌ Warning: Using fallback BLAS replacements for (["cblas_zdotc_sub64_"]), performance may be degraded └ @ Enzyme.Compiler ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:5478 ┌ Warning: Using fallback BLAS replacements for (["cblas_zdotc_sub64_"]), performance may be degraded └ @ Enzyme.Compiler ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:5478 ┌ Warning: Using fallback BLAS replacements for (["cblas_zdotc_sub64_"]), performance may be degraded └ @ Enzyme.Compiler ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:5478 ┌ Warning: Using fallback BLAS replacements for (["cblas_zdotc_sub64_"]), performance may be degraded └ @ Enzyme.Compiler ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:5478 ┌ Warning: Using fallback BLAS replacements for (["cblas_zdotc_sub64_"]), performance may be degraded └ @ Enzyme.Compiler ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:5478 ┌ Warning: Using fallback BLAS replacements for (["cblas_zdotc_sub64_"]), performance may be degraded └ @ Enzyme.Compiler ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:5478 Tret = Duplicated, Tx = Const: Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:247 Test threw exception Expression: fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:248 =# test_forward(f_kwargs_fwd, Tret, (x, Tx)) end Error occurred during `fails` Stacktrace: [1] error(s::String) @ Base ./error.jl:44 [2] fails(f::Function) @ MetaTesting ~/.julia/packages/MetaTesting/nvOMS/src/MetaTesting.jl:103 [3] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:239 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:239 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:247 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:677 [inlined] [11] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:247 [inlined] test_forward: f_kwargs_fwd with return activity Duplicated on (::Vector{Float64}, Const): Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:71 Got exception outside of a @test EnzymeRuntimeActivityError: Detected potential need for runtime activity. Constant memory is stored (or returned) to a differentiable variable and correctness cannot be guaranteed with static activity analysis. This might be due to the use of a constant variable as temporary storage for active memory (https://enzyme.mit.edu/julia/stable/faq/#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 performance, slower to setup), 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: var"#f_kwargs_fwd#56"(::Float64, ::Base.Pairs{Symbol, Union{}, Nothing, @NamedTuple{}}, ::typeof(f_kwargs_fwd), ::Vector{Float64}) @ Main ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:15 Hint: catch this exception as `err` and call `code_typed(err)` to inspect the surrounding code. Mismatched activity for: %nodecayed..pre-phi176 = phi ptr addrspace(10) [ %"new::Array107", %L94 ], [ %"x::Array", %L38 ], !dbg !145 const val: ptr addrspace(10) %"x::Array" Julia value causing error: Unknown object of type Vector{Float64} LLVM view of erring value: ptr addrspace(10) %"x::Array" Stacktrace: [1] size @ ./array.jl:194 [2] axes @ ./abstractarray.jl:98 [3] newindexer @ ./broadcast.jl:605 [4] extrude @ ./broadcast.jl:666 [5] preprocess @ ./broadcast.jl:975 [6] preprocess_args (repeats 2 times) @ ./broadcast.jl:977 [7] preprocess @ ./broadcast.jl:974 [8] preprocess_args @ ./broadcast.jl:978 [9] preprocess_args @ ./broadcast.jl:977 [10] preprocess @ ./broadcast.jl:974 [11] copyto! @ ./broadcast.jl:991 [12] copyto! @ ./broadcast.jl:947 [13] copy @ ./broadcast.jl:919 [14] materialize @ ./broadcast.jl:894 [15] #f_kwargs_fwd#56 @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:15 Stacktrace: [1] unalias @ ./abstractarray.jl:1530 [inlined] [2] broadcast_unalias @ ./broadcast.jl:968 [inlined] [3] preprocess @ ./broadcast.jl:975 [inlined] [4] preprocess_args (repeats 2 times) @ ./broadcast.jl:977 [inlined] [5] preprocess @ ./broadcast.jl:974 [inlined] [6] preprocess_args @ ./broadcast.jl:978 [inlined] [7] preprocess_args @ ./broadcast.jl:977 [inlined] [8] preprocess @ ./broadcast.jl:974 [inlined] [9] copyto! @ ./broadcast.jl:991 [inlined] [10] copyto! @ ./broadcast.jl:947 [inlined] [11] copy @ ./broadcast.jl:919 [inlined] [12] materialize @ ./broadcast.jl:894 [inlined] [13] f_kwargs_fwd @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:15 [inlined] [14] CallWithKWargs @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:7 [inlined] [15] CallWithKWargs @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:0 [inlined] [16] fwddiffejulia_CallWithKWargs_137658_inner_1wrap @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:0 [17] macro expansion @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6883 [inlined] [18] enzyme_call @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6353 [inlined] [19] ForwardModeThunk @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6253 [inlined] [20] autodiff @ ~/.julia/packages/Enzyme/lNw5i/src/Enzyme.jl:688 [inlined] [21] autodiff(::ForwardMode{true, FFIABI, false, false, false}, ::EnzymeTestUtils.CallWithKWargs{@NamedTuple{a::Float64}}, ::Type{Duplicated}, ::Const{typeof(f_kwargs_fwd)}, ::Const{Vector{Float64}}) @ Enzyme ~/.julia/packages/Enzyme/lNw5i/src/Enzyme.jl:557 [22] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:96 [inlined] [23] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [24] test_forward(f::typeof(f_kwargs_fwd), ret_activity::Type, args::Tuple{Vector{Float64}, UnionAll}; rng::TaskLocalRNG, fdm::FiniteDifferences.AdaptedFiniteDifferenceMethod{5, 1, FiniteDifferences.UnadaptedFiniteDifferenceMethod{7, 5}}, fkwargs::@NamedTuple{a::Float64}, rtol::Float64, atol::Float64, testset_name::Nothing, runtime_activity::Bool) @ EnzymeTestUtils ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:73 [25] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [27] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:239 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [29] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:239 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [31] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:250 [inlined] [32] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [33] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/runtests.jl:8 [34] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [35] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/runtests.jl:13 [inlined] [36] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [37] top-level scope @ none:6 [38] eval(m::Module, e::Any) @ Core ./boot.jl:489 [39] exec_options(opts::Base.JLOptions) @ Base ./client.jl:283 [40] _start() @ Base ./client.jl:550 Tret = Duplicated, Tx = Duplicated: Test Failed at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:247 Expression: fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:248 =# test_forward(f_kwargs_fwd, Tret, (x, Tx)) end Stacktrace: [1] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [2] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [3] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:239 [inlined] [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:239 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:247 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:680 [inlined] Tret = BatchDuplicated, Tx = Const: Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:247 Test threw exception Expression: fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:248 =# test_forward(f_kwargs_fwd, Tret, (x, Tx)) end Error occurred during `fails` Stacktrace: [1] error(s::String) @ Base ./error.jl:44 [2] fails(f::Function) @ MetaTesting ~/.julia/packages/MetaTesting/nvOMS/src/MetaTesting.jl:103 [3] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:239 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:239 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:247 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:677 [inlined] [11] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:247 [inlined] test_forward: f_kwargs_fwd with return activity BatchDuplicated on (::Vector{Float64}, Const): Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:71 Got exception outside of a @test EnzymeRuntimeActivityError: Detected potential need for runtime activity. Constant memory is stored (or returned) to a differentiable variable and correctness cannot be guaranteed with static activity analysis. This might be due to the use of a constant variable as temporary storage for active memory (https://enzyme.mit.edu/julia/stable/faq/#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 performance, slower to setup), 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: var"#f_kwargs_fwd#56"(::Float64, ::Base.Pairs{Symbol, Union{}, Nothing, @NamedTuple{}}, ::typeof(f_kwargs_fwd), ::Vector{Float64}) @ Main ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:15 Hint: catch this exception as `err` and call `code_typed(err)` to inspect the surrounding code. Mismatched activity for: %nodecayed..pre-phi176 = phi ptr addrspace(10) [ %"new::Array107", %L94 ], [ %"x::Array", %L38 ], !dbg !145 const val: ptr addrspace(10) %"x::Array" Julia value causing error: Unknown object of type Vector{Float64} LLVM view of erring value: ptr addrspace(10) %"x::Array" Stacktrace: [1] size @ ./array.jl:194 [2] axes @ ./abstractarray.jl:98 [3] newindexer @ ./broadcast.jl:605 [4] extrude @ ./broadcast.jl:666 [5] preprocess @ ./broadcast.jl:975 [6] preprocess_args (repeats 2 times) @ ./broadcast.jl:977 [7] preprocess @ ./broadcast.jl:974 [8] preprocess_args @ ./broadcast.jl:978 [9] preprocess_args @ ./broadcast.jl:977 [10] preprocess @ ./broadcast.jl:974 [11] copyto! @ ./broadcast.jl:991 [12] copyto! @ ./broadcast.jl:947 [13] copy @ ./broadcast.jl:919 [14] materialize @ ./broadcast.jl:894 [15] #f_kwargs_fwd#56 @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:15 Stacktrace: [1] unalias @ ./abstractarray.jl:1530 [inlined] [2] broadcast_unalias @ ./broadcast.jl:968 [inlined] [3] preprocess @ ./broadcast.jl:975 [inlined] [4] preprocess_args (repeats 2 times) @ ./broadcast.jl:977 [inlined] [5] preprocess @ ./broadcast.jl:974 [inlined] [6] preprocess_args @ ./broadcast.jl:978 [inlined] [7] preprocess_args @ ./broadcast.jl:977 [inlined] [8] preprocess @ ./broadcast.jl:974 [inlined] [9] copyto! @ ./broadcast.jl:991 [inlined] [10] copyto! @ ./broadcast.jl:947 [inlined] [11] copy @ ./broadcast.jl:919 [inlined] [12] materialize @ ./broadcast.jl:894 [inlined] [13] f_kwargs_fwd @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:15 [inlined] [14] CallWithKWargs @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:7 [inlined] [15] CallWithKWargs @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:0 [inlined] [16] fwddiffejulia_CallWithKWargs_138265_inner_1wrap @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:0 [17] macro expansion @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6883 [inlined] [18] enzyme_call @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6353 [inlined] [19] ForwardModeThunk @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6253 [inlined] [20] autodiff @ ~/.julia/packages/Enzyme/lNw5i/src/Enzyme.jl:688 [inlined] [21] autodiff(::ForwardMode{true, FFIABI, false, false, false}, ::EnzymeTestUtils.CallWithKWargs{@NamedTuple{a::Float64}}, ::Type{BatchDuplicated}, ::Const{typeof(f_kwargs_fwd)}, ::Const{Vector{Float64}}) @ Enzyme ~/.julia/packages/Enzyme/lNw5i/src/Enzyme.jl:557 [22] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:96 [inlined] [23] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [24] test_forward(f::typeof(f_kwargs_fwd), ret_activity::Type, args::Tuple{Vector{Float64}, UnionAll}; rng::TaskLocalRNG, fdm::FiniteDifferences.AdaptedFiniteDifferenceMethod{5, 1, FiniteDifferences.UnadaptedFiniteDifferenceMethod{7, 5}}, fkwargs::@NamedTuple{a::Float64}, rtol::Float64, atol::Float64, testset_name::Nothing, runtime_activity::Bool) @ EnzymeTestUtils ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:73 [25] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [27] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:239 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [29] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:239 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [31] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:250 [inlined] [32] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [33] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/runtests.jl:8 [34] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [35] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/runtests.jl:13 [inlined] [36] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [37] top-level scope @ none:6 [38] eval(m::Module, e::Any) @ Core ./boot.jl:489 [39] exec_options(opts::Base.JLOptions) @ Base ./client.jl:283 [40] _start() @ Base ./client.jl:550 Tret = BatchDuplicated, Tx = BatchDuplicated: Test Failed at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:247 Expression: fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:248 =# test_forward(f_kwargs_fwd, Tret, (x, Tx)) end Stacktrace: [1] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [2] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [3] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:239 [inlined] [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:239 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:247 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:680 [inlined] test_forward: f_kwargs_fwd with return activity Duplicated on (::Vector{Float64}, Const): Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:71 Got exception outside of a @test EnzymeRuntimeActivityError: Detected potential need for runtime activity. Constant memory is stored (or returned) to a differentiable variable and correctness cannot be guaranteed with static activity analysis. This might be due to the use of a constant variable as temporary storage for active memory (https://enzyme.mit.edu/julia/stable/faq/#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 performance, slower to setup), 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: var"#f_kwargs_fwd#56"(::Float64, ::Base.Pairs{Symbol, Union{}, Nothing, @NamedTuple{}}, ::typeof(f_kwargs_fwd), ::Vector{Float64}) @ Main ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:15 Hint: catch this exception as `err` and call `code_typed(err)` to inspect the surrounding code. Mismatched activity for: %nodecayed..pre-phi176 = phi ptr addrspace(10) [ %"new::Array107", %L94 ], [ %"x::Array", %L38 ], !dbg !145 const val: ptr addrspace(10) %"x::Array" Julia value causing error: Unknown object of type Vector{Float64} LLVM view of erring value: ptr addrspace(10) %"x::Array" Stacktrace: [1] size @ ./array.jl:194 [2] axes @ ./abstractarray.jl:98 [3] newindexer @ ./broadcast.jl:605 [4] extrude @ ./broadcast.jl:666 [5] preprocess @ ./broadcast.jl:975 [6] preprocess_args (repeats 2 times) @ ./broadcast.jl:977 [7] preprocess @ ./broadcast.jl:974 [8] preprocess_args @ ./broadcast.jl:978 [9] preprocess_args @ ./broadcast.jl:977 [10] preprocess @ ./broadcast.jl:974 [11] copyto! @ ./broadcast.jl:991 [12] copyto! @ ./broadcast.jl:947 [13] copy @ ./broadcast.jl:919 [14] materialize @ ./broadcast.jl:894 [15] #f_kwargs_fwd#56 @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:15 Stacktrace: [1] unalias @ ./abstractarray.jl:1530 [inlined] [2] broadcast_unalias @ ./broadcast.jl:968 [inlined] [3] preprocess @ ./broadcast.jl:975 [inlined] [4] preprocess_args (repeats 2 times) @ ./broadcast.jl:977 [inlined] [5] preprocess @ ./broadcast.jl:974 [inlined] [6] preprocess_args @ ./broadcast.jl:978 [inlined] [7] preprocess_args @ ./broadcast.jl:977 [inlined] [8] preprocess @ ./broadcast.jl:974 [inlined] [9] copyto! @ ./broadcast.jl:991 [inlined] [10] copyto! @ ./broadcast.jl:947 [inlined] [11] copy @ ./broadcast.jl:919 [inlined] [12] materialize @ ./broadcast.jl:894 [inlined] [13] f_kwargs_fwd @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:15 [inlined] [14] CallWithKWargs @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:7 [inlined] [15] CallWithKWargs @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:0 [inlined] [16] fwddiffejulia_CallWithKWargs_137658_inner_1wrap @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:0 [17] macro expansion @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6883 [inlined] [18] enzyme_call @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6353 [inlined] [19] ForwardModeThunk @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6253 [inlined] [20] autodiff @ ~/.julia/packages/Enzyme/lNw5i/src/Enzyme.jl:688 [inlined] [21] autodiff(::ForwardMode{true, FFIABI, false, false, false}, ::EnzymeTestUtils.CallWithKWargs{@NamedTuple{a::Float64}}, ::Type{Duplicated}, ::Const{typeof(f_kwargs_fwd)}, ::Const{Vector{Float64}}) @ Enzyme ~/.julia/packages/Enzyme/lNw5i/src/Enzyme.jl:557 [22] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:96 [inlined] [23] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [24] test_forward(f::typeof(f_kwargs_fwd), ret_activity::Type, args::Tuple{Vector{Float64}, UnionAll}; rng::TaskLocalRNG, fdm::FiniteDifferences.AdaptedFiniteDifferenceMethod{5, 1, FiniteDifferences.UnadaptedFiniteDifferenceMethod{7, 5}}, fkwargs::@NamedTuple{a::Float64}, rtol::Float64, atol::Float64, testset_name::Nothing, runtime_activity::Bool) @ EnzymeTestUtils ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:73 [25] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [27] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:255 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [29] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:255 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [31] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:263 [inlined] [32] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [33] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/runtests.jl:8 [34] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [35] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/runtests.jl:13 [inlined] [36] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [37] top-level scope @ none:6 [38] eval(m::Module, e::Any) @ Core ./boot.jl:489 [39] exec_options(opts::Base.JLOptions) @ Base ./client.jl:283 [40] _start() @ Base ./client.jl:550 Tret = Duplicated, Tx = Const: Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:265 Test threw exception Expression: fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:266 =# test_forward(f_kwargs_fwd, Tret, (x, Tx); fkwargs) end Error occurred during `fails` Stacktrace: [1] error(s::String) @ Base ./error.jl:44 [2] fails(f::Function) @ MetaTesting ~/.julia/packages/MetaTesting/nvOMS/src/MetaTesting.jl:103 [3] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:255 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:255 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:265 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:677 [inlined] [11] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:265 [inlined] Tret = Duplicated, Tx = Duplicated: Test Failed at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:265 Expression: fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:266 =# test_forward(f_kwargs_fwd, Tret, (x, Tx); fkwargs) end Stacktrace: [1] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [2] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [3] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:255 [inlined] [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:255 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:265 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:680 [inlined] test_forward: f_kwargs_fwd with return activity BatchDuplicated on (::Vector{Float64}, Const): Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:71 Got exception outside of a @test EnzymeRuntimeActivityError: Detected potential need for runtime activity. Constant memory is stored (or returned) to a differentiable variable and correctness cannot be guaranteed with static activity analysis. This might be due to the use of a constant variable as temporary storage for active memory (https://enzyme.mit.edu/julia/stable/faq/#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 performance, slower to setup), 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: var"#f_kwargs_fwd#56"(::Float64, ::Base.Pairs{Symbol, Union{}, Nothing, @NamedTuple{}}, ::typeof(f_kwargs_fwd), ::Vector{Float64}) @ Main ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:15 Hint: catch this exception as `err` and call `code_typed(err)` to inspect the surrounding code. Mismatched activity for: %nodecayed..pre-phi176 = phi ptr addrspace(10) [ %"new::Array107", %L94 ], [ %"x::Array", %L38 ], !dbg !145 const val: ptr addrspace(10) %"x::Array" Julia value causing error: Unknown object of type Vector{Float64} LLVM view of erring value: ptr addrspace(10) %"x::Array" Stacktrace: [1] size @ ./array.jl:194 [2] axes @ ./abstractarray.jl:98 [3] newindexer @ ./broadcast.jl:605 [4] extrude @ ./broadcast.jl:666 [5] preprocess @ ./broadcast.jl:975 [6] preprocess_args (repeats 2 times) @ ./broadcast.jl:977 [7] preprocess @ ./broadcast.jl:974 [8] preprocess_args @ ./broadcast.jl:978 [9] preprocess_args @ ./broadcast.jl:977 [10] preprocess @ ./broadcast.jl:974 [11] copyto! @ ./broadcast.jl:991 [12] copyto! @ ./broadcast.jl:947 [13] copy @ ./broadcast.jl:919 [14] materialize @ ./broadcast.jl:894 [15] #f_kwargs_fwd#56 @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:15 Stacktrace: [1] unalias @ ./abstractarray.jl:1530 [inlined] [2] broadcast_unalias @ ./broadcast.jl:968 [inlined] [3] preprocess @ ./broadcast.jl:975 [inlined] [4] preprocess_args (repeats 2 times) @ ./broadcast.jl:977 [inlined] [5] preprocess @ ./broadcast.jl:974 [inlined] [6] preprocess_args @ ./broadcast.jl:978 [inlined] [7] preprocess_args @ ./broadcast.jl:977 [inlined] [8] preprocess @ ./broadcast.jl:974 [inlined] [9] copyto! @ ./broadcast.jl:991 [inlined] [10] copyto! @ ./broadcast.jl:947 [inlined] [11] copy @ ./broadcast.jl:919 [inlined] [12] materialize @ ./broadcast.jl:894 [inlined] [13] f_kwargs_fwd @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:15 [inlined] [14] CallWithKWargs @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:7 [inlined] [15] CallWithKWargs @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:0 [inlined] [16] fwddiffejulia_CallWithKWargs_138265_inner_1wrap @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:0 [17] macro expansion @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6883 [inlined] [18] enzyme_call @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6353 [inlined] [19] ForwardModeThunk @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6253 [inlined] [20] autodiff @ ~/.julia/packages/Enzyme/lNw5i/src/Enzyme.jl:688 [inlined] [21] autodiff(::ForwardMode{true, FFIABI, false, false, false}, ::EnzymeTestUtils.CallWithKWargs{@NamedTuple{a::Float64}}, ::Type{BatchDuplicated}, ::Const{typeof(f_kwargs_fwd)}, ::Const{Vector{Float64}}) @ Enzyme ~/.julia/packages/Enzyme/lNw5i/src/Enzyme.jl:557 [22] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:96 [inlined] [23] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [24] test_forward(f::typeof(f_kwargs_fwd), ret_activity::Type, args::Tuple{Vector{Float64}, UnionAll}; rng::TaskLocalRNG, fdm::FiniteDifferences.AdaptedFiniteDifferenceMethod{5, 1, FiniteDifferences.UnadaptedFiniteDifferenceMethod{7, 5}}, fkwargs::@NamedTuple{a::Float64}, rtol::Float64, atol::Float64, testset_name::Nothing, runtime_activity::Bool) @ EnzymeTestUtils ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:73 [25] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [27] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:255 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [29] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:255 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [31] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:263 [inlined] [32] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [33] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/runtests.jl:8 [34] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [35] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/runtests.jl:13 [inlined] [36] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [37] top-level scope @ none:6 [38] eval(m::Module, e::Any) @ Core ./boot.jl:489 [39] exec_options(opts::Base.JLOptions) @ Base ./client.jl:283 [40] _start() @ Base ./client.jl:550 Tret = BatchDuplicated, Tx = Const: Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:265 Test threw exception Expression: fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:266 =# test_forward(f_kwargs_fwd, Tret, (x, Tx); fkwargs) end Error occurred during `fails` Stacktrace: [1] error(s::String) @ Base ./error.jl:44 [2] fails(f::Function) @ MetaTesting ~/.julia/packages/MetaTesting/nvOMS/src/MetaTesting.jl:103 [3] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:255 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:255 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:265 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:677 [inlined] [11] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:265 [inlined] Tret = BatchDuplicated, Tx = BatchDuplicated: Test Failed at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:265 Expression: fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:266 =# test_forward(f_kwargs_fwd, Tret, (x, Tx); fkwargs) end Stacktrace: [1] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [2] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [3] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:255 [inlined] [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:255 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:265 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:680 [inlined] test_forward: f_kwargs_fwd with return activity Duplicated on (::Vector{Float64}, Const): Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:71 Got exception outside of a @test EnzymeRuntimeActivityError: Detected potential need for runtime activity. Constant memory is stored (or returned) to a differentiable variable and correctness cannot be guaranteed with static activity analysis. This might be due to the use of a constant variable as temporary storage for active memory (https://enzyme.mit.edu/julia/stable/faq/#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 performance, slower to setup), 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: var"#f_kwargs_fwd#56"(::Float64, ::Base.Pairs{Symbol, Union{}, Nothing, @NamedTuple{}}, ::typeof(f_kwargs_fwd), ::Vector{Float64}) @ Main ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:15 Hint: catch this exception as `err` and call `code_typed(err)` to inspect the surrounding code. Mismatched activity for: %nodecayed..pre-phi176 = phi ptr addrspace(10) [ %"new::Array107", %L94 ], [ %"x::Array", %L38 ], !dbg !145 const val: ptr addrspace(10) %"x::Array" Julia value causing error: Unknown object of type Vector{Float64} LLVM view of erring value: ptr addrspace(10) %"x::Array" Stacktrace: [1] size @ ./array.jl:194 [2] axes @ ./abstractarray.jl:98 [3] newindexer @ ./broadcast.jl:605 [4] extrude @ ./broadcast.jl:666 [5] preprocess @ ./broadcast.jl:975 [6] preprocess_args (repeats 2 times) @ ./broadcast.jl:977 [7] preprocess @ ./broadcast.jl:974 [8] preprocess_args @ ./broadcast.jl:978 [9] preprocess_args @ ./broadcast.jl:977 [10] preprocess @ ./broadcast.jl:974 [11] copyto! @ ./broadcast.jl:991 [12] copyto! @ ./broadcast.jl:947 [13] copy @ ./broadcast.jl:919 [14] materialize @ ./broadcast.jl:894 [15] #f_kwargs_fwd#56 @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:15 Stacktrace: [1] unalias @ ./abstractarray.jl:1530 [inlined] [2] broadcast_unalias @ ./broadcast.jl:968 [inlined] [3] preprocess @ ./broadcast.jl:975 [inlined] [4] preprocess_args (repeats 2 times) @ ./broadcast.jl:977 [inlined] [5] preprocess @ ./broadcast.jl:974 [inlined] [6] preprocess_args @ ./broadcast.jl:978 [inlined] [7] preprocess_args @ ./broadcast.jl:977 [inlined] [8] preprocess @ ./broadcast.jl:974 [inlined] [9] copyto! @ ./broadcast.jl:991 [inlined] [10] copyto! @ ./broadcast.jl:947 [inlined] [11] copy @ ./broadcast.jl:919 [inlined] [12] materialize @ ./broadcast.jl:894 [inlined] [13] f_kwargs_fwd @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:15 [inlined] [14] CallWithKWargs @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:7 [inlined] [15] CallWithKWargs @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:0 [inlined] [16] fwddiffejulia_CallWithKWargs_137658_inner_1wrap @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:0 [17] macro expansion @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6883 [inlined] [18] enzyme_call @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6353 [inlined] [19] ForwardModeThunk @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6253 [inlined] [20] autodiff @ ~/.julia/packages/Enzyme/lNw5i/src/Enzyme.jl:688 [inlined] [21] autodiff(::ForwardMode{true, FFIABI, false, false, false}, ::EnzymeTestUtils.CallWithKWargs{@NamedTuple{a::Float64}}, ::Type{Duplicated}, ::Const{typeof(f_kwargs_fwd)}, ::Const{Vector{Float64}}) @ Enzyme ~/.julia/packages/Enzyme/lNw5i/src/Enzyme.jl:557 [22] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:96 [inlined] [23] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [24] test_forward(f::typeof(f_kwargs_fwd), ret_activity::Type, args::Tuple{Vector{Float64}, UnionAll}; rng::TaskLocalRNG, fdm::FiniteDifferences.AdaptedFiniteDifferenceMethod{5, 1, FiniteDifferences.UnadaptedFiniteDifferenceMethod{7, 5}}, fkwargs::@NamedTuple{a::Float64}, rtol::Float64, atol::Float64, testset_name::Nothing, runtime_activity::Bool) @ EnzymeTestUtils ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:73 [25] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [27] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:272 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [29] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:272 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [31] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:276 [inlined] [32] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [33] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/runtests.jl:8 [34] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [35] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/runtests.jl:13 [inlined] [36] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [37] top-level scope @ none:6 [38] eval(m::Module, e::Any) @ Core ./boot.jl:489 [39] exec_options(opts::Base.JLOptions) @ Base ./client.jl:283 [40] _start() @ Base ./client.jl:550 Tret = Duplicated, Tx = Const: Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:278 Test threw exception Expression: fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:279 =# test_forward(f_kwargs_fwd, Tret, (x, Tx); fkwargs) end Error occurred during `fails` Stacktrace: [1] error(s::String) @ Base ./error.jl:44 [2] fails(f::Function) @ MetaTesting ~/.julia/packages/MetaTesting/nvOMS/src/MetaTesting.jl:103 [3] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:272 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:272 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:278 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:677 [inlined] [11] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:278 [inlined] Tret = Duplicated, Tx = Duplicated: Test Failed at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:278 Expression: fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:279 =# test_forward(f_kwargs_fwd, Tret, (x, Tx); fkwargs) end Stacktrace: [1] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [2] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [3] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:272 [inlined] [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:272 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:278 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:680 [inlined] test_forward: f_kwargs_fwd with return activity DuplicatedNoNeed on (::Vector{Float64}, Const): Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:71 Got exception outside of a @test EnzymeRuntimeActivityError: Detected potential need for runtime activity. Constant memory is stored (or returned) to a differentiable variable and correctness cannot be guaranteed with static activity analysis. This might be due to the use of a constant variable as temporary storage for active memory (https://enzyme.mit.edu/julia/stable/faq/#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 performance, slower to setup), 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: var"#f_kwargs_fwd#56"(::Float64, ::Base.Pairs{Symbol, Union{}, Nothing, @NamedTuple{}}, ::typeof(f_kwargs_fwd), ::Vector{Float64}) @ Main ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:15 Hint: catch this exception as `err` and call `code_typed(err)` to inspect the surrounding code. Mismatched activity for: %nodecayed..pre-phi176 = phi ptr addrspace(10) [ %"new::Array107", %L94 ], [ %"x::Array", %L38 ], !dbg !145 const val: ptr addrspace(10) %"x::Array" Julia value causing error: Unknown object of type Vector{Float64} LLVM view of erring value: ptr addrspace(10) %"x::Array" Stacktrace: [1] size @ ./array.jl:194 [2] axes @ ./abstractarray.jl:98 [3] newindexer @ ./broadcast.jl:605 [4] extrude @ ./broadcast.jl:666 [5] preprocess @ ./broadcast.jl:975 [6] preprocess_args (repeats 2 times) @ ./broadcast.jl:977 [7] preprocess @ ./broadcast.jl:974 [8] preprocess_args @ ./broadcast.jl:978 [9] preprocess_args @ ./broadcast.jl:977 [10] preprocess @ ./broadcast.jl:974 [11] copyto! @ ./broadcast.jl:991 [12] copyto! @ ./broadcast.jl:947 [13] copy @ ./broadcast.jl:919 [14] materialize @ ./broadcast.jl:894 [15] #f_kwargs_fwd#56 @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:15 Stacktrace: [1] unalias @ ./abstractarray.jl:1530 [inlined] [2] broadcast_unalias @ ./broadcast.jl:968 [inlined] [3] preprocess @ ./broadcast.jl:975 [inlined] [4] preprocess_args (repeats 2 times) @ ./broadcast.jl:977 [inlined] [5] preprocess @ ./broadcast.jl:974 [inlined] [6] preprocess_args @ ./broadcast.jl:978 [inlined] [7] preprocess_args @ ./broadcast.jl:977 [inlined] [8] preprocess @ ./broadcast.jl:974 [inlined] [9] copyto! @ ./broadcast.jl:991 [inlined] [10] copyto! @ ./broadcast.jl:947 [inlined] [11] copy @ ./broadcast.jl:919 [inlined] [12] materialize @ ./broadcast.jl:894 [inlined] [13] f_kwargs_fwd @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:15 [inlined] [14] CallWithKWargs @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:7 [inlined] [15] CallWithKWargs @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:0 [inlined] [16] fwddiffejulia_CallWithKWargs_140145_inner_1wrap @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:0 [17] macro expansion @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6883 [inlined] [18] enzyme_call @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6353 [inlined] [19] ForwardModeThunk @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6253 [inlined] [20] autodiff @ ~/.julia/packages/Enzyme/lNw5i/src/Enzyme.jl:688 [inlined] [21] autodiff(::ForwardMode{false, FFIABI, false, false, false}, ::EnzymeTestUtils.CallWithKWargs{@NamedTuple{a::Float64}}, ::Type{Duplicated}, ::Const{typeof(f_kwargs_fwd)}, ::Const{Vector{Float64}}) @ Enzyme ~/.julia/packages/Enzyme/lNw5i/src/Enzyme.jl:557 [22] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:96 [inlined] [23] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [24] test_forward(f::typeof(f_kwargs_fwd), ret_activity::Type, args::Tuple{Vector{Float64}, UnionAll}; rng::TaskLocalRNG, fdm::FiniteDifferences.AdaptedFiniteDifferenceMethod{5, 1, FiniteDifferences.UnadaptedFiniteDifferenceMethod{7, 5}}, fkwargs::@NamedTuple{a::Float64}, rtol::Float64, atol::Float64, testset_name::Nothing, runtime_activity::Bool) @ EnzymeTestUtils ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:73 [25] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [27] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:272 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [29] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:272 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [31] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:276 [inlined] [32] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [33] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/runtests.jl:8 [34] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [35] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/runtests.jl:13 [inlined] [36] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [37] top-level scope @ none:6 [38] eval(m::Module, e::Any) @ Core ./boot.jl:489 [39] exec_options(opts::Base.JLOptions) @ Base ./client.jl:283 [40] _start() @ Base ./client.jl:550 Tret = DuplicatedNoNeed, Tx = Const: Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:278 Test threw exception Expression: fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:279 =# test_forward(f_kwargs_fwd, Tret, (x, Tx); fkwargs) end Error occurred during `fails` Stacktrace: [1] error(s::String) @ Base ./error.jl:44 [2] fails(f::Function) @ MetaTesting ~/.julia/packages/MetaTesting/nvOMS/src/MetaTesting.jl:103 [3] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:272 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:272 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:278 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:677 [inlined] [11] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:278 [inlined] Tret = DuplicatedNoNeed, Tx = Duplicated: Test Failed at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:278 Expression: fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:279 =# test_forward(f_kwargs_fwd, Tret, (x, Tx); fkwargs) end Stacktrace: [1] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [2] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [3] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:272 [inlined] [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:272 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:278 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:680 [inlined] test_forward: f_kwargs_fwd with return activity BatchDuplicated on (::Vector{Float64}, Const): Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:71 Got exception outside of a @test EnzymeRuntimeActivityError: Detected potential need for runtime activity. Constant memory is stored (or returned) to a differentiable variable and correctness cannot be guaranteed with static activity analysis. This might be due to the use of a constant variable as temporary storage for active memory (https://enzyme.mit.edu/julia/stable/faq/#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 performance, slower to setup), 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: var"#f_kwargs_fwd#56"(::Float64, ::Base.Pairs{Symbol, Union{}, Nothing, @NamedTuple{}}, ::typeof(f_kwargs_fwd), ::Vector{Float64}) @ Main ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:15 Hint: catch this exception as `err` and call `code_typed(err)` to inspect the surrounding code. Mismatched activity for: %nodecayed..pre-phi176 = phi ptr addrspace(10) [ %"new::Array107", %L94 ], [ %"x::Array", %L38 ], !dbg !145 const val: ptr addrspace(10) %"x::Array" Julia value causing error: Unknown object of type Vector{Float64} LLVM view of erring value: ptr addrspace(10) %"x::Array" Stacktrace: [1] size @ ./array.jl:194 [2] axes @ ./abstractarray.jl:98 [3] newindexer @ ./broadcast.jl:605 [4] extrude @ ./broadcast.jl:666 [5] preprocess @ ./broadcast.jl:975 [6] preprocess_args (repeats 2 times) @ ./broadcast.jl:977 [7] preprocess @ ./broadcast.jl:974 [8] preprocess_args @ ./broadcast.jl:978 [9] preprocess_args @ ./broadcast.jl:977 [10] preprocess @ ./broadcast.jl:974 [11] copyto! @ ./broadcast.jl:991 [12] copyto! @ ./broadcast.jl:947 [13] copy @ ./broadcast.jl:919 [14] materialize @ ./broadcast.jl:894 [15] #f_kwargs_fwd#56 @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:15 Stacktrace: [1] unalias @ ./abstractarray.jl:1530 [inlined] [2] broadcast_unalias @ ./broadcast.jl:968 [inlined] [3] preprocess @ ./broadcast.jl:975 [inlined] [4] preprocess_args (repeats 2 times) @ ./broadcast.jl:977 [inlined] [5] preprocess @ ./broadcast.jl:974 [inlined] [6] preprocess_args @ ./broadcast.jl:978 [inlined] [7] preprocess_args @ ./broadcast.jl:977 [inlined] [8] preprocess @ ./broadcast.jl:974 [inlined] [9] copyto! @ ./broadcast.jl:991 [inlined] [10] copyto! @ ./broadcast.jl:947 [inlined] [11] copy @ ./broadcast.jl:919 [inlined] [12] materialize @ ./broadcast.jl:894 [inlined] [13] f_kwargs_fwd @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:15 [inlined] [14] CallWithKWargs @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:7 [inlined] [15] CallWithKWargs @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:0 [inlined] [16] fwddiffejulia_CallWithKWargs_138265_inner_1wrap @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:0 [17] macro expansion @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6883 [inlined] [18] enzyme_call @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6353 [inlined] [19] ForwardModeThunk @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6253 [inlined] [20] autodiff @ ~/.julia/packages/Enzyme/lNw5i/src/Enzyme.jl:688 [inlined] [21] autodiff(::ForwardMode{true, FFIABI, false, false, false}, ::EnzymeTestUtils.CallWithKWargs{@NamedTuple{a::Float64}}, ::Type{BatchDuplicated}, ::Const{typeof(f_kwargs_fwd)}, ::Const{Vector{Float64}}) @ Enzyme ~/.julia/packages/Enzyme/lNw5i/src/Enzyme.jl:557 [22] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:96 [inlined] [23] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [24] test_forward(f::typeof(f_kwargs_fwd), ret_activity::Type, args::Tuple{Vector{Float64}, UnionAll}; rng::TaskLocalRNG, fdm::FiniteDifferences.AdaptedFiniteDifferenceMethod{5, 1, FiniteDifferences.UnadaptedFiniteDifferenceMethod{7, 5}}, fkwargs::@NamedTuple{a::Float64}, rtol::Float64, atol::Float64, testset_name::Nothing, runtime_activity::Bool) @ EnzymeTestUtils ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:73 [25] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [27] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:285 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [29] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:285 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [31] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:291 [inlined] [32] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [33] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/runtests.jl:8 [34] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [35] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/runtests.jl:13 [inlined] [36] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [37] top-level scope @ none:6 [38] eval(m::Module, e::Any) @ Core ./boot.jl:489 [39] exec_options(opts::Base.JLOptions) @ Base ./client.jl:283 [40] _start() @ Base ./client.jl:550 Tret = BatchDuplicated, Tx = Const: Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:293 Test threw exception Expression: fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:294 =# test_forward(f_kwargs_fwd, Tret, (x, Tx); fkwargs) end Error occurred during `fails` Stacktrace: [1] error(s::String) @ Base ./error.jl:44 [2] fails(f::Function) @ MetaTesting ~/.julia/packages/MetaTesting/nvOMS/src/MetaTesting.jl:103 [3] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:285 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:285 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:293 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:677 [inlined] [11] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:293 [inlined] Tret = BatchDuplicated, Tx = BatchDuplicated: Test Failed at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:293 Expression: fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:294 =# test_forward(f_kwargs_fwd, Tret, (x, Tx); fkwargs) end Stacktrace: [1] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [2] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [3] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:285 [inlined] [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:285 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:293 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:680 [inlined] test_forward: f_kwargs_fwd with return activity BatchDuplicatedNoNeed on (::Vector{Float64}, Const): Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:71 Got exception outside of a @test EnzymeRuntimeActivityError: Detected potential need for runtime activity. Constant memory is stored (or returned) to a differentiable variable and correctness cannot be guaranteed with static activity analysis. This might be due to the use of a constant variable as temporary storage for active memory (https://enzyme.mit.edu/julia/stable/faq/#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 performance, slower to setup), 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: var"#f_kwargs_fwd#56"(::Float64, ::Base.Pairs{Symbol, Union{}, Nothing, @NamedTuple{}}, ::typeof(f_kwargs_fwd), ::Vector{Float64}) @ Main ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:15 Hint: catch this exception as `err` and call `code_typed(err)` to inspect the surrounding code. Mismatched activity for: %nodecayed..pre-phi176 = phi ptr addrspace(10) [ %"new::Array107", %L94 ], [ %"x::Array", %L38 ], !dbg !145 const val: ptr addrspace(10) %"x::Array" Julia value causing error: Unknown object of type Vector{Float64} LLVM view of erring value: ptr addrspace(10) %"x::Array" Stacktrace: [1] size @ ./array.jl:194 [2] axes @ ./abstractarray.jl:98 [3] newindexer @ ./broadcast.jl:605 [4] extrude @ ./broadcast.jl:666 [5] preprocess @ ./broadcast.jl:975 [6] preprocess_args (repeats 2 times) @ ./broadcast.jl:977 [7] preprocess @ ./broadcast.jl:974 [8] preprocess_args @ ./broadcast.jl:978 [9] preprocess_args @ ./broadcast.jl:977 [10] preprocess @ ./broadcast.jl:974 [11] copyto! @ ./broadcast.jl:991 [12] copyto! @ ./broadcast.jl:947 [13] copy @ ./broadcast.jl:919 [14] materialize @ ./broadcast.jl:894 [15] #f_kwargs_fwd#56 @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:15 Stacktrace: [1] unalias @ ./abstractarray.jl:1530 [inlined] [2] broadcast_unalias @ ./broadcast.jl:968 [inlined] [3] preprocess @ ./broadcast.jl:975 [inlined] [4] preprocess_args (repeats 2 times) @ ./broadcast.jl:977 [inlined] [5] preprocess @ ./broadcast.jl:974 [inlined] [6] preprocess_args @ ./broadcast.jl:978 [inlined] [7] preprocess_args @ ./broadcast.jl:977 [inlined] [8] preprocess @ ./broadcast.jl:974 [inlined] [9] copyto! @ ./broadcast.jl:991 [inlined] [10] copyto! @ ./broadcast.jl:947 [inlined] [11] copy @ ./broadcast.jl:919 [inlined] [12] materialize @ ./broadcast.jl:894 [inlined] [13] f_kwargs_fwd @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:15 [inlined] [14] CallWithKWargs @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:7 [inlined] [15] CallWithKWargs @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:0 [inlined] [16] fwddiffejulia_CallWithKWargs_141054_inner_1wrap @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_utils.jl:0 [17] macro expansion @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6883 [inlined] [18] enzyme_call @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6353 [inlined] [19] ForwardModeThunk @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6253 [inlined] [20] autodiff @ ~/.julia/packages/Enzyme/lNw5i/src/Enzyme.jl:688 [inlined] [21] autodiff(::ForwardMode{false, FFIABI, false, false, false}, ::EnzymeTestUtils.CallWithKWargs{@NamedTuple{a::Float64}}, ::Type{BatchDuplicated}, ::Const{typeof(f_kwargs_fwd)}, ::Const{Vector{Float64}}) @ Enzyme ~/.julia/packages/Enzyme/lNw5i/src/Enzyme.jl:557 [22] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:96 [inlined] [23] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [24] test_forward(f::typeof(f_kwargs_fwd), ret_activity::Type, args::Tuple{Vector{Float64}, UnionAll}; rng::TaskLocalRNG, fdm::FiniteDifferences.AdaptedFiniteDifferenceMethod{5, 1, FiniteDifferences.UnadaptedFiniteDifferenceMethod{7, 5}}, fkwargs::@NamedTuple{a::Float64}, rtol::Float64, atol::Float64, testset_name::Nothing, runtime_activity::Bool) @ EnzymeTestUtils ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_forward.jl:73 [25] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [27] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:285 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [29] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:285 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [31] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:291 [inlined] [32] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [33] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/runtests.jl:8 [34] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [35] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/runtests.jl:13 [inlined] [36] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [37] top-level scope @ none:6 [38] eval(m::Module, e::Any) @ Core ./boot.jl:489 [39] exec_options(opts::Base.JLOptions) @ Base ./client.jl:283 [40] _start() @ Base ./client.jl:550 Tret = BatchDuplicatedNoNeed, Tx = Const: Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:293 Test threw exception Expression: fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:294 =# test_forward(f_kwargs_fwd, Tret, (x, Tx); fkwargs) end Error occurred during `fails` Stacktrace: [1] error(s::String) @ Base ./error.jl:44 [2] fails(f::Function) @ MetaTesting ~/.julia/packages/MetaTesting/nvOMS/src/MetaTesting.jl:103 [3] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:285 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:285 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:293 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:677 [inlined] [11] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:293 [inlined] Tret = BatchDuplicatedNoNeed, Tx = BatchDuplicated: Test Failed at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:293 Expression: fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:294 =# test_forward(f_kwargs_fwd, Tret, (x, Tx); fkwargs) end Stacktrace: [1] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:58 [2] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [3] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:285 [inlined] [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:285 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_forward.jl:293 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:680 [inlined] Tret = Const, Tx = Const, Ta = Const, T = Float32: Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:88 Test threw exception Expression: !(fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:89 =# test_reverse(f_multiarg, Tret, (x, Tx), (a, Ta); atol, rtol) end) Error occurred during `fails` Stacktrace: [1] error(s::String) @ Base ./error.jl:44 [2] fails(f::Function) @ MetaTesting ~/.julia/packages/MetaTesting/nvOMS/src/MetaTesting.jl:103 [3] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:59 [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:60 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:80 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:80 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [11] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:88 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:677 [inlined] [13] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:88 [inlined] Tret = Const, Tx = Const, Ta = Const, T = Float64: Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:88 Test threw exception Expression: !(fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:89 =# test_reverse(f_multiarg, Tret, (x, Tx), (a, Ta); atol, rtol) end) Error occurred during `fails` Stacktrace: [1] error(s::String) @ Base ./error.jl:44 [2] fails(f::Function) @ MetaTesting ~/.julia/packages/MetaTesting/nvOMS/src/MetaTesting.jl:103 [3] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:59 [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:60 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:80 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:80 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [11] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:88 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:677 [inlined] [13] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:88 [inlined] Tret = Const, Tx = Const, Ta = Const, T = ComplexF32: Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:88 Test threw exception Expression: !(fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:89 =# test_reverse(f_multiarg, Tret, (x, Tx), (a, Ta); atol, rtol) end) Error occurred during `fails` Stacktrace: [1] error(s::String) @ Base ./error.jl:44 [2] fails(f::Function) @ MetaTesting ~/.julia/packages/MetaTesting/nvOMS/src/MetaTesting.jl:103 [3] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:59 [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:60 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:80 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:80 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [11] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:88 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:677 [inlined] [13] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:88 [inlined] Tret = Const, Tx = Const, Ta = Const, T = ComplexF64: Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:88 Test threw exception Expression: !(fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:89 =# test_reverse(f_multiarg, Tret, (x, Tx), (a, Ta); atol, rtol) end) Error occurred during `fails` Stacktrace: [1] error(s::String) @ Base ./error.jl:44 [2] fails(f::Function) @ MetaTesting ~/.julia/packages/MetaTesting/nvOMS/src/MetaTesting.jl:103 [3] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:59 [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:60 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:80 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:80 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [11] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:88 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:677 [inlined] [13] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:88 [inlined] Tret = Const, Tx = Const, Ta = Active, T = Float32: Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:88 Test threw exception Expression: !(fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:89 =# test_reverse(f_multiarg, Tret, (x, Tx), (a, Ta); atol, rtol) end) Error occurred during `fails` Stacktrace: [1] error(s::String) @ Base ./error.jl:44 [2] fails(f::Function) @ MetaTesting ~/.julia/packages/MetaTesting/nvOMS/src/MetaTesting.jl:103 [3] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:59 [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:60 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:80 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:80 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [11] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:88 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:677 [inlined] [13] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:88 [inlined] Tret = Const, Tx = Const, Ta = Active, T = Float64: Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:88 Test threw exception Expression: !(fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:89 =# test_reverse(f_multiarg, Tret, (x, Tx), (a, Ta); atol, rtol) end) Error occurred during `fails` Stacktrace: [1] error(s::String) @ Base ./error.jl:44 [2] fails(f::Function) @ MetaTesting ~/.julia/packages/MetaTesting/nvOMS/src/MetaTesting.jl:103 [3] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:59 [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:60 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:80 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:80 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [11] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:88 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:677 [inlined] [13] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:88 [inlined] Tret = Const, Tx = Const, Ta = Active, T = ComplexF32: Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:88 Test threw exception Expression: !(fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:89 =# test_reverse(f_multiarg, Tret, (x, Tx), (a, Ta); atol, rtol) end) Error occurred during `fails` Stacktrace: [1] error(s::String) @ Base ./error.jl:44 [2] fails(f::Function) @ MetaTesting ~/.julia/packages/MetaTesting/nvOMS/src/MetaTesting.jl:103 [3] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:59 [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:60 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:80 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:80 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [11] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:88 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:677 [inlined] [13] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:88 [inlined] Tret = Const, Tx = Const, Ta = Active, T = ComplexF64: Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:88 Test threw exception Expression: !(fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:89 =# test_reverse(f_multiarg, Tret, (x, Tx), (a, Ta); atol, rtol) end) Error occurred during `fails` Stacktrace: [1] error(s::String) @ Base ./error.jl:44 [2] fails(f::Function) @ MetaTesting ~/.julia/packages/MetaTesting/nvOMS/src/MetaTesting.jl:103 [3] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:59 [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:60 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:80 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:80 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [11] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:88 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:677 [inlined] [13] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:88 [inlined] Tret = Duplicated, Tx = Const, Ta = Const, T = Float32: Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:88 Test threw exception Expression: !(fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:89 =# test_reverse(f_multiarg, Tret, (x, Tx), (a, Ta); atol, rtol) end) Error occurred during `fails` Stacktrace: [1] error(s::String) @ Base ./error.jl:44 [2] fails(f::Function) @ MetaTesting ~/.julia/packages/MetaTesting/nvOMS/src/MetaTesting.jl:103 [3] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:59 [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:60 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:80 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:80 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [11] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:88 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:677 [inlined] [13] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:88 [inlined] Tret = Duplicated, Tx = Const, Ta = Const, T = Float64: Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:88 Test threw exception Expression: !(fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:89 =# test_reverse(f_multiarg, Tret, (x, Tx), (a, Ta); atol, rtol) end) Error occurred during `fails` Stacktrace: [1] error(s::String) @ Base ./error.jl:44 [2] fails(f::Function) @ MetaTesting ~/.julia/packages/MetaTesting/nvOMS/src/MetaTesting.jl:103 [3] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:59 [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:60 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:80 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:80 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [11] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:88 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:677 [inlined] [13] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:88 [inlined] Tret = Duplicated, Tx = Const, Ta = Const, T = ComplexF32: Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:88 Test threw exception Expression: !(fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:89 =# test_reverse(f_multiarg, Tret, (x, Tx), (a, Ta); atol, rtol) end) Error occurred during `fails` Stacktrace: [1] error(s::String) @ Base ./error.jl:44 [2] fails(f::Function) @ MetaTesting ~/.julia/packages/MetaTesting/nvOMS/src/MetaTesting.jl:103 [3] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:59 [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:60 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:80 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:80 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [11] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:88 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:677 [inlined] [13] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:88 [inlined] Tret = Duplicated, Tx = Const, Ta = Const, T = ComplexF64: Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:88 Test threw exception Expression: !(fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:89 =# test_reverse(f_multiarg, Tret, (x, Tx), (a, Ta); atol, rtol) end) Error occurred during `fails` Stacktrace: [1] error(s::String) @ Base ./error.jl:44 [2] fails(f::Function) @ MetaTesting ~/.julia/packages/MetaTesting/nvOMS/src/MetaTesting.jl:103 [3] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:59 [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:60 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:80 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:80 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [11] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:88 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:677 [inlined] [13] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:88 [inlined] Tret = Duplicated, Tx = Const, Ta = Active, T = Float32: Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:88 Test threw exception Expression: !(fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:89 =# test_reverse(f_multiarg, Tret, (x, Tx), (a, Ta); atol, rtol) end) Error occurred during `fails` Stacktrace: [1] error(s::String) @ Base ./error.jl:44 [2] fails(f::Function) @ MetaTesting ~/.julia/packages/MetaTesting/nvOMS/src/MetaTesting.jl:103 [3] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:59 [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:60 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:80 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:80 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [11] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:88 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:677 [inlined] [13] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:88 [inlined] Tret = Duplicated, Tx = Const, Ta = Active, T = Float64: Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:88 Test threw exception Expression: !(fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:89 =# test_reverse(f_multiarg, Tret, (x, Tx), (a, Ta); atol, rtol) end) Error occurred during `fails` Stacktrace: [1] error(s::String) @ Base ./error.jl:44 [2] fails(f::Function) @ MetaTesting ~/.julia/packages/MetaTesting/nvOMS/src/MetaTesting.jl:103 [3] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:59 [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:60 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:80 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:80 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [11] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:88 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:677 [inlined] [13] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:88 [inlined] Tret = Duplicated, Tx = Const, Ta = Active, T = ComplexF32: Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:88 Test threw exception Expression: !(fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:89 =# test_reverse(f_multiarg, Tret, (x, Tx), (a, Ta); atol, rtol) end) Error occurred during `fails` Stacktrace: [1] error(s::String) @ Base ./error.jl:44 [2] fails(f::Function) @ MetaTesting ~/.julia/packages/MetaTesting/nvOMS/src/MetaTesting.jl:103 [3] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:59 [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:60 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:80 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:80 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [11] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:88 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:677 [inlined] [13] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:88 [inlined] Tret = Duplicated, Tx = Const, Ta = Active, T = ComplexF64: Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:88 Test threw exception Expression: !(fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:89 =# test_reverse(f_multiarg, Tret, (x, Tx), (a, Ta); atol, rtol) end) Error occurred during `fails` Stacktrace: [1] error(s::String) @ Base ./error.jl:44 [2] fails(f::Function) @ MetaTesting ~/.julia/packages/MetaTesting/nvOMS/src/MetaTesting.jl:103 [3] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:59 [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:60 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:80 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:80 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [11] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:88 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:677 [inlined] [13] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:88 [inlined] test_reverse: f with return activity Duplicated on (::Matrix{Float64}, Const): Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/src/test_reverse.jl:84 Got exception outside of a @test EnzymeRuntimeActivityError: Detected potential need for runtime activity. Constant memory is stored (or returned) to a differentiable variable and correctness cannot be guaranteed with static activity analysis. This might be due to the use of a constant variable as temporary storage for active memory (https://enzyme.mit.edu/julia/stable/faq/#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 performance, slower to setup), 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: *(::Matrix{Float64}, ::Int64) @ Base arraymath.jl:24 Hint: catch this exception as `err` and call `code_typed(err)` to inspect the surrounding code. Mismatched activity for: %nodecayed..pre-phi205 = phi ptr addrspace(10) [ %"new::Array133", %L133 ], [ %"A::Array", %L71 ], [ %"A::Array", %retval ], !dbg !158 const val: ptr addrspace(10) %"A::Array" Julia value causing error: Unknown object of type Matrix{Float64} LLVM view of erring value: ptr addrspace(10) %"A::Array" Stacktrace: [1] size @ ./array.jl:194 [2] axes @ ./abstractarray.jl:98 [3] newindexer @ ./broadcast.jl:605 [4] extrude @ ./broadcast.jl:666 [5] preprocess @ ./broadcast.jl:975 [6] preprocess_args @ ./broadcast.jl:977 [7] preprocess @ ./broadcast.jl:974 [8] copyto! @ ./broadcast.jl:991 [9] copyto! @ ./broadcast.jl:947 [10] copy @ ./broadcast.jl:919 [11] materialize @ ./broadcast.jl:894 [12] broadcast_preserving_zero_d @ ./broadcast.jl:883 [13] * @ ./arraymath.jl:24 Stacktrace: [1] mightalias @ ./abstractarray.jl:1567 [inlined] [2] unalias @ ./abstractarray.jl:1530 [inlined] [3] broadcast_unalias @ ./broadcast.jl:968 [inlined] [4] preprocess @ ./broadcast.jl:975 [inlined] [5] preprocess_args @ ./broadcast.jl:977 [inlined] [6] preprocess @ ./broadcast.jl:974 [inlined] [7] copyto! @ ./broadcast.jl:991 [inlined] [8] copyto! @ ./broadcast.jl:947 [inlined] [9] copy @ ./broadcast.jl:919 [inlined] [10] materialize @ ./broadcast.jl:894 [inlined] [11] broadcast_preserving_zero_d @ ./broadcast.jl:883 [inlined] [12] * @ ./arraymath.jl:24 [13] f @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:125 [inlined] [14] call_with_kwargs @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_reverse.jl:10 [inlined] [15] call_with_kwargs @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_reverse.jl:0 [inlined] [16] augmented_julia_call_with_kwargs_180616_inner_1wrap @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_reverse.jl:0 [17] macro expansion @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6883 [inlined] [18] enzyme_call(::Val{false}, ::Ptr{Nothing}, ::Type{Enzyme.Compiler.AugmentedForwardThunk{Ptr{Nothing}, Const{typeof(EnzymeTestUtils.call_with_kwargs)}, Duplicated{Tuple{Matrix{Float64}, Matrix{Float64}}}, Tuple{Const{@NamedTuple{}}, Const{var"#f#f##1"}, Const{Matrix{Float64}}}, 1, true, @NamedTuple{var"1"::@NamedTuple{var"1"::Core.LLVMPtr{Nothing, 0}, var"2", var"3", var"4", var"5", var"6", var"7", var"8", var"9", var"10"::UInt64, var"11"::UInt64, var"12", var"13"::Bool, var"14"::Core.LLVMPtr{Nothing, 0}, var"15"::UInt64, var"16"::Bool}, var"2"}}}, ::Val{1}, ::Val{true}, ::Type{Tuple{Const{@NamedTuple{}}, Const{var"#f#f##1"}, Const{Matrix{Float64}}}}, ::Type{Duplicated{Tuple{Matrix{Float64}, Matrix{Float64}}}}, ::Const{typeof(EnzymeTestUtils.call_with_kwargs)}, ::Type{@NamedTuple{var"1"::@NamedTuple{var"1"::Core.LLVMPtr{Nothing, 0}, var"2", var"3", var"4", var"5", var"6", var"7", var"8", var"9", var"10"::UInt64, var"11"::UInt64, var"12", var"13"::Bool, var"14"::Core.LLVMPtr{Nothing, 0}, var"15"::UInt64, var"16"::Bool}, var"2"}}, ::Const{@NamedTuple{}}, ::Const{var"#f#f##1"}, ::Const{Matrix{Float64}}) @ Enzyme.Compiler ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6353 [19] (::Enzyme.Compiler.AugmentedForwardThunk{Ptr{Nothing}, Const{typeof(EnzymeTestUtils.call_with_kwargs)}, Duplicated{Tuple{Matrix{Float64}, Matrix{Float64}}}, Tuple{Const{@NamedTuple{}}, Const{var"#f#f##1"}, Const{Matrix{Float64}}}, 1, true, @NamedTuple{var"1"::@NamedTuple{var"1"::Core.LLVMPtr{Nothing, 0}, var"2", var"3", var"4", var"5", var"6", var"7", var"8", var"9", var"10"::UInt64, var"11"::UInt64, var"12", var"13"::Bool, var"14"::Core.LLVMPtr{Nothing, 0}, var"15"::UInt64, var"16"::Bool}, var"2"}})(::Const{typeof(EnzymeTestUtils.call_with_kwargs)}, ::Const{@NamedTuple{}}, ::Vararg{Any}) @ Enzyme.Compiler ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6301 [20] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_reverse.jl:110 [inlined] [21] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [22] test_reverse(f::var"#f#f##1", ret_activity::Type, args::Tuple{Matrix{Float64}, UnionAll}; rng::TaskLocalRNG, fdm::FiniteDifferences.AdaptedFiniteDifferenceMethod{5, 1, FiniteDifferences.UnadaptedFiniteDifferenceMethod{7, 5}}, fkwargs::@NamedTuple{}, rtol::Float64, atol::Float64, testset_name::Nothing, runtime_activity::Bool, output_tangent::Nothing) @ EnzymeTestUtils ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_reverse.jl:86 [23] test_reverse(f::Function, ret_activity::Type, args::Tuple{Matrix{Float64}, UnionAll}) @ EnzymeTestUtils ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_reverse.jl:68 [24] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:59 [25] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [26] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:60 [inlined] [27] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [28] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:124 [inlined] [29] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [30] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:130 [inlined] [31] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [32] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:134 [inlined] [33] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [34] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/runtests.jl:8 [35] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [36] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/runtests.jl:14 [inlined] [37] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [38] top-level scope @ none:6 [39] eval(m::Module, e::Any) @ Core ./boot.jl:489 [40] exec_options(opts::Base.JLOptions) @ Base ./client.jl:283 [41] _start() @ Base ./client.jl:550 test_reverse: f with return activity BatchDuplicated on (::Matrix{Float64}, Const): Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/src/test_reverse.jl:84 Got exception outside of a @test EnzymeRuntimeActivityError: Detected potential need for runtime activity. Constant memory is stored (or returned) to a differentiable variable and correctness cannot be guaranteed with static activity analysis. This might be due to the use of a constant variable as temporary storage for active memory (https://enzyme.mit.edu/julia/stable/faq/#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 performance, slower to setup), 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: *(::Matrix{Float64}, ::Int64) @ Base arraymath.jl:24 Hint: catch this exception as `err` and call `code_typed(err)` to inspect the surrounding code. Mismatched activity for: %nodecayed..pre-phi205 = phi ptr addrspace(10) [ %"new::Array133", %L133 ], [ %"A::Array", %L71 ], [ %"A::Array", %retval ], !dbg !158 const val: ptr addrspace(10) %"A::Array" Julia value causing error: Unknown object of type Matrix{Float64} LLVM view of erring value: ptr addrspace(10) %"A::Array" Stacktrace: [1] size @ ./array.jl:194 [2] axes @ ./abstractarray.jl:98 [3] newindexer @ ./broadcast.jl:605 [4] extrude @ ./broadcast.jl:666 [5] preprocess @ ./broadcast.jl:975 [6] preprocess_args @ ./broadcast.jl:977 [7] preprocess @ ./broadcast.jl:974 [8] copyto! @ ./broadcast.jl:991 [9] copyto! @ ./broadcast.jl:947 [10] copy @ ./broadcast.jl:919 [11] materialize @ ./broadcast.jl:894 [12] broadcast_preserving_zero_d @ ./broadcast.jl:883 [13] * @ ./arraymath.jl:24 Stacktrace: [1] mightalias @ ./abstractarray.jl:1567 [inlined] [2] unalias @ ./abstractarray.jl:1530 [inlined] [3] broadcast_unalias @ ./broadcast.jl:968 [inlined] [4] preprocess @ ./broadcast.jl:975 [inlined] [5] preprocess_args @ ./broadcast.jl:977 [inlined] [6] preprocess @ ./broadcast.jl:974 [inlined] [7] copyto! @ ./broadcast.jl:991 [inlined] [8] copyto! @ ./broadcast.jl:947 [inlined] [9] copy @ ./broadcast.jl:919 [inlined] [10] materialize @ ./broadcast.jl:894 [inlined] [11] broadcast_preserving_zero_d @ ./broadcast.jl:883 [inlined] [12] * @ ./arraymath.jl:24 [13] f @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:125 [inlined] [14] call_with_kwargs @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_reverse.jl:10 [inlined] [15] call_with_kwargs @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_reverse.jl:0 [inlined] [16] augmented_julia_call_with_kwargs_180886_inner_1wrap @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_reverse.jl:0 [17] macro expansion @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6883 [inlined] [18] enzyme_call(::Val{false}, ::Ptr{Nothing}, ::Type{Enzyme.Compiler.AugmentedForwardThunk{Ptr{Nothing}, Const{typeof(EnzymeTestUtils.call_with_kwargs)}, BatchDuplicated{Tuple{Matrix{Float64}, Matrix{Float64}}, Tuple{Matrix{Float64}, Matrix{Float64}}}, Tuple{Const{@NamedTuple{}}, Const{var"#f#f##1"}, Const{Matrix{Float64}}}, 1, true, @NamedTuple{var"1"::@NamedTuple{var"1"::Core.LLVMPtr{Nothing, 0}, var"2", var"3", var"4", var"5", var"6", var"7", var"8", var"9", var"10"::UInt64, var"11"::UInt64, var"12", var"13"::Bool, var"14"::Core.LLVMPtr{Nothing, 0}, var"15"::UInt64, var"16"::Bool}, var"2"}}}, ::Val{1}, ::Val{true}, ::Type{Tuple{Const{@NamedTuple{}}, Const{var"#f#f##1"}, Const{Matrix{Float64}}}}, ::Type{BatchDuplicated{Tuple{Matrix{Float64}, Matrix{Float64}}, Tuple{Matrix{Float64}, Matrix{Float64}}}}, ::Const{typeof(EnzymeTestUtils.call_with_kwargs)}, ::Type{@NamedTuple{var"1"::@NamedTuple{var"1"::Core.LLVMPtr{Nothing, 0}, var"2", var"3", var"4", var"5", var"6", var"7", var"8", var"9", var"10"::UInt64, var"11"::UInt64, var"12", var"13"::Bool, var"14"::Core.LLVMPtr{Nothing, 0}, var"15"::UInt64, var"16"::Bool}, var"2"}}, ::Const{@NamedTuple{}}, ::Const{var"#f#f##1"}, ::Const{Matrix{Float64}}) @ Enzyme.Compiler ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6353 [19] (::Enzyme.Compiler.AugmentedForwardThunk{Ptr{Nothing}, Const{typeof(EnzymeTestUtils.call_with_kwargs)}, BatchDuplicated{Tuple{Matrix{Float64}, Matrix{Float64}}, Tuple{Matrix{Float64}, Matrix{Float64}}}, Tuple{Const{@NamedTuple{}}, Const{var"#f#f##1"}, Const{Matrix{Float64}}}, 1, true, @NamedTuple{var"1"::@NamedTuple{var"1"::Core.LLVMPtr{Nothing, 0}, var"2", var"3", var"4", var"5", var"6", var"7", var"8", var"9", var"10"::UInt64, var"11"::UInt64, var"12", var"13"::Bool, var"14"::Core.LLVMPtr{Nothing, 0}, var"15"::UInt64, var"16"::Bool}, var"2"}})(::Const{typeof(EnzymeTestUtils.call_with_kwargs)}, ::Const{@NamedTuple{}}, ::Vararg{Any}) @ Enzyme.Compiler ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6301 [20] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_reverse.jl:110 [inlined] [21] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [22] test_reverse(f::var"#f#f##1", ret_activity::Type, args::Tuple{Matrix{Float64}, UnionAll}; rng::TaskLocalRNG, fdm::FiniteDifferences.AdaptedFiniteDifferenceMethod{5, 1, FiniteDifferences.UnadaptedFiniteDifferenceMethod{7, 5}}, fkwargs::@NamedTuple{}, rtol::Float64, atol::Float64, testset_name::Nothing, runtime_activity::Bool, output_tangent::Nothing) @ EnzymeTestUtils ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_reverse.jl:86 [23] test_reverse(f::Function, ret_activity::Type, args::Tuple{Matrix{Float64}, UnionAll}) @ EnzymeTestUtils ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_reverse.jl:68 [24] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:59 [25] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [26] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:60 [inlined] [27] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [28] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:124 [inlined] [29] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [30] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:130 [inlined] [31] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [32] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:134 [inlined] [33] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [34] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/runtests.jl:8 [35] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [36] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/runtests.jl:14 [inlined] [37] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [38] top-level scope @ none:6 [39] eval(m::Module, e::Any) @ Core ./boot.jl:489 [40] exec_options(opts::Base.JLOptions) @ Base ./client.jl:283 [41] _start() @ Base ./client.jl:550 test_reverse: #104 with return activity Duplicated on (::Matrix{Float64}, Const): Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/src/test_reverse.jl:84 Got exception outside of a @test EnzymeRuntimeActivityError: Detected potential need for runtime activity. Constant memory is stored (or returned) to a differentiable variable and correctness cannot be guaranteed with static activity analysis. This might be due to the use of a constant variable as temporary storage for active memory (https://enzyme.mit.edu/julia/stable/faq/#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 performance, slower to setup), 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: *(::Matrix{Float64}, ::Int64) @ Base arraymath.jl:24 Hint: catch this exception as `err` and call `code_typed(err)` to inspect the surrounding code. Mismatched activity for: %nodecayed..pre-phi205 = phi ptr addrspace(10) [ %"new::Array133", %L133 ], [ %"A::Array", %L71 ], [ %"A::Array", %retval ], !dbg !159 const val: ptr addrspace(10) %"A::Array" Julia value causing error: Unknown object of type Matrix{Float64} LLVM view of erring value: ptr addrspace(10) %"A::Array" Stacktrace: [1] size @ ./array.jl:194 [2] axes @ ./abstractarray.jl:98 [3] newindexer @ ./broadcast.jl:605 [4] extrude @ ./broadcast.jl:666 [5] preprocess @ ./broadcast.jl:975 [6] preprocess_args @ ./broadcast.jl:977 [7] preprocess @ ./broadcast.jl:974 [8] copyto! @ ./broadcast.jl:991 [9] copyto! @ ./broadcast.jl:947 [10] copy @ ./broadcast.jl:919 [11] materialize @ ./broadcast.jl:894 [12] broadcast_preserving_zero_d @ ./broadcast.jl:883 [13] * @ ./arraymath.jl:24 Stacktrace: [1] mightalias @ ./abstractarray.jl:1567 [inlined] [2] unalias @ ./abstractarray.jl:1530 [inlined] [3] broadcast_unalias @ ./broadcast.jl:968 [inlined] [4] preprocess @ ./broadcast.jl:975 [inlined] [5] preprocess_args @ ./broadcast.jl:977 [inlined] [6] preprocess @ ./broadcast.jl:974 [inlined] [7] copyto! @ ./broadcast.jl:991 [inlined] [8] copyto! @ ./broadcast.jl:947 [inlined] [9] copy @ ./broadcast.jl:919 [inlined] [10] materialize @ ./broadcast.jl:894 [inlined] [11] broadcast_preserving_zero_d @ ./broadcast.jl:883 [inlined] [12] * @ ./arraymath.jl:24 [13] #104 @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:140 [inlined] [14] call_with_kwargs @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_reverse.jl:10 [inlined] [15] call_with_kwargs @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_reverse.jl:0 [inlined] [16] augmented_julia_call_with_kwargs_182492_inner_2wrap @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_reverse.jl:0 [17] macro expansion @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6883 [inlined] [18] enzyme_call(::Val{false}, ::Ptr{Nothing}, ::Type{Enzyme.Compiler.AugmentedForwardThunk{Ptr{Nothing}, Const{typeof(EnzymeTestUtils.call_with_kwargs)}, Duplicated{Tuple{Matrix{Float64}, Vector{Float64}}}, Tuple{Const{@NamedTuple{}}, Const{var"#104#105"}, Const{Matrix{Float64}}}, 1, true, @NamedTuple{var"1", var"2"::@NamedTuple{var"1"::Core.LLVMPtr{Nothing, 0}, var"2", var"3", var"4", var"5", var"6", var"7", var"8", var"9", var"10"::UInt64, var"11"::UInt64, var"12", var"13"::Bool, var"14"::Core.LLVMPtr{Nothing, 0}, var"15"::UInt64, var"16"::Bool}, var"3"}}}, ::Val{1}, ::Val{true}, ::Type{Tuple{Const{@NamedTuple{}}, Const{var"#104#105"}, Const{Matrix{Float64}}}}, ::Type{Duplicated{Tuple{Matrix{Float64}, Vector{Float64}}}}, ::Const{typeof(EnzymeTestUtils.call_with_kwargs)}, ::Type{@NamedTuple{var"1", var"2"::@NamedTuple{var"1"::Core.LLVMPtr{Nothing, 0}, var"2", var"3", var"4", var"5", var"6", var"7", var"8", var"9", var"10"::UInt64, var"11"::UInt64, var"12", var"13"::Bool, var"14"::Core.LLVMPtr{Nothing, 0}, var"15"::UInt64, var"16"::Bool}, var"3"}}, ::Const{@NamedTuple{}}, ::Const{var"#104#105"}, ::Const{Matrix{Float64}}) @ Enzyme.Compiler ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6353 [19] (::Enzyme.Compiler.AugmentedForwardThunk{Ptr{Nothing}, Const{typeof(EnzymeTestUtils.call_with_kwargs)}, Duplicated{Tuple{Matrix{Float64}, Vector{Float64}}}, Tuple{Const{@NamedTuple{}}, Const{var"#104#105"}, Const{Matrix{Float64}}}, 1, true, @NamedTuple{var"1", var"2"::@NamedTuple{var"1"::Core.LLVMPtr{Nothing, 0}, var"2", var"3", var"4", var"5", var"6", var"7", var"8", var"9", var"10"::UInt64, var"11"::UInt64, var"12", var"13"::Bool, var"14"::Core.LLVMPtr{Nothing, 0}, var"15"::UInt64, var"16"::Bool}, var"3"}})(::Const{typeof(EnzymeTestUtils.call_with_kwargs)}, ::Const{@NamedTuple{}}, ::Vararg{Any}) @ Enzyme.Compiler ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6301 [20] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_reverse.jl:110 [inlined] [21] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [22] test_reverse(f::var"#104#105", ret_activity::Type, args::Tuple{Matrix{Float64}, UnionAll}; rng::TaskLocalRNG, fdm::FiniteDifferences.AdaptedFiniteDifferenceMethod{5, 1, FiniteDifferences.UnadaptedFiniteDifferenceMethod{7, 5}}, fkwargs::@NamedTuple{}, rtol::Float64, atol::Float64, testset_name::Nothing, runtime_activity::Bool, output_tangent::Nothing) @ EnzymeTestUtils ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_reverse.jl:86 [23] test_reverse(f::Function, ret_activity::Type, args::Tuple{Matrix{Float64}, UnionAll}) @ EnzymeTestUtils ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_reverse.jl:68 [24] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:59 [25] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [26] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:60 [inlined] [27] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [28] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:139 [inlined] [29] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [30] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:144 [inlined] [31] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [32] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:148 [inlined] [33] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [34] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/runtests.jl:8 [35] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [36] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/runtests.jl:14 [inlined] [37] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [38] top-level scope @ none:6 [39] eval(m::Module, e::Any) @ Core ./boot.jl:489 [40] exec_options(opts::Base.JLOptions) @ Base ./client.jl:283 [41] _start() @ Base ./client.jl:550 test_reverse: #104 with return activity BatchDuplicated on (::Matrix{Float64}, Const): Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/src/test_reverse.jl:84 Got exception outside of a @test EnzymeRuntimeActivityError: Detected potential need for runtime activity. Constant memory is stored (or returned) to a differentiable variable and correctness cannot be guaranteed with static activity analysis. This might be due to the use of a constant variable as temporary storage for active memory (https://enzyme.mit.edu/julia/stable/faq/#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 performance, slower to setup), 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: *(::Matrix{Float64}, ::Int64) @ Base arraymath.jl:24 Hint: catch this exception as `err` and call `code_typed(err)` to inspect the surrounding code. Mismatched activity for: %nodecayed..pre-phi205 = phi ptr addrspace(10) [ %"new::Array133", %L133 ], [ %"A::Array", %L71 ], [ %"A::Array", %retval ], !dbg !159 const val: ptr addrspace(10) %"A::Array" Julia value causing error: Unknown object of type Matrix{Float64} LLVM view of erring value: ptr addrspace(10) %"A::Array" Stacktrace: [1] size @ ./array.jl:194 [2] axes @ ./abstractarray.jl:98 [3] newindexer @ ./broadcast.jl:605 [4] extrude @ ./broadcast.jl:666 [5] preprocess @ ./broadcast.jl:975 [6] preprocess_args @ ./broadcast.jl:977 [7] preprocess @ ./broadcast.jl:974 [8] copyto! @ ./broadcast.jl:991 [9] copyto! @ ./broadcast.jl:947 [10] copy @ ./broadcast.jl:919 [11] materialize @ ./broadcast.jl:894 [12] broadcast_preserving_zero_d @ ./broadcast.jl:883 [13] * @ ./arraymath.jl:24 Stacktrace: [1] mightalias @ ./abstractarray.jl:1567 [inlined] [2] unalias @ ./abstractarray.jl:1530 [inlined] [3] broadcast_unalias @ ./broadcast.jl:968 [inlined] [4] preprocess @ ./broadcast.jl:975 [inlined] [5] preprocess_args @ ./broadcast.jl:977 [inlined] [6] preprocess @ ./broadcast.jl:974 [inlined] [7] copyto! @ ./broadcast.jl:991 [inlined] [8] copyto! @ ./broadcast.jl:947 [inlined] [9] copy @ ./broadcast.jl:919 [inlined] [10] materialize @ ./broadcast.jl:894 [inlined] [11] broadcast_preserving_zero_d @ ./broadcast.jl:883 [inlined] [12] * @ ./arraymath.jl:24 [13] #104 @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:140 [inlined] [14] call_with_kwargs @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_reverse.jl:10 [inlined] [15] call_with_kwargs @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_reverse.jl:0 [inlined] [16] augmented_julia_call_with_kwargs_182751_inner_2wrap @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_reverse.jl:0 [17] macro expansion @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6883 [inlined] [18] enzyme_call(::Val{false}, ::Ptr{Nothing}, ::Type{Enzyme.Compiler.AugmentedForwardThunk{Ptr{Nothing}, Const{typeof(EnzymeTestUtils.call_with_kwargs)}, BatchDuplicated{Tuple{Matrix{Float64}, Vector{Float64}}, Tuple{Matrix{Float64}, Vector{Float64}}}, Tuple{Const{@NamedTuple{}}, Const{var"#104#105"}, Const{Matrix{Float64}}}, 1, true, @NamedTuple{var"1", var"2"::@NamedTuple{var"1"::Core.LLVMPtr{Nothing, 0}, var"2", var"3", var"4", var"5", var"6", var"7", var"8", var"9", var"10"::UInt64, var"11"::UInt64, var"12", var"13"::Bool, var"14"::Core.LLVMPtr{Nothing, 0}, var"15"::UInt64, var"16"::Bool}, var"3"}}}, ::Val{1}, ::Val{true}, ::Type{Tuple{Const{@NamedTuple{}}, Const{var"#104#105"}, Const{Matrix{Float64}}}}, ::Type{BatchDuplicated{Tuple{Matrix{Float64}, Vector{Float64}}, Tuple{Matrix{Float64}, Vector{Float64}}}}, ::Const{typeof(EnzymeTestUtils.call_with_kwargs)}, ::Type{@NamedTuple{var"1", var"2"::@NamedTuple{var"1"::Core.LLVMPtr{Nothing, 0}, var"2", var"3", var"4", var"5", var"6", var"7", var"8", var"9", var"10"::UInt64, var"11"::UInt64, var"12", var"13"::Bool, var"14"::Core.LLVMPtr{Nothing, 0}, var"15"::UInt64, var"16"::Bool}, var"3"}}, ::Const{@NamedTuple{}}, ::Const{var"#104#105"}, ::Const{Matrix{Float64}}) @ Enzyme.Compiler ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6353 [19] (::Enzyme.Compiler.AugmentedForwardThunk{Ptr{Nothing}, Const{typeof(EnzymeTestUtils.call_with_kwargs)}, BatchDuplicated{Tuple{Matrix{Float64}, Vector{Float64}}, Tuple{Matrix{Float64}, Vector{Float64}}}, Tuple{Const{@NamedTuple{}}, Const{var"#104#105"}, Const{Matrix{Float64}}}, 1, true, @NamedTuple{var"1", var"2"::@NamedTuple{var"1"::Core.LLVMPtr{Nothing, 0}, var"2", var"3", var"4", var"5", var"6", var"7", var"8", var"9", var"10"::UInt64, var"11"::UInt64, var"12", var"13"::Bool, var"14"::Core.LLVMPtr{Nothing, 0}, var"15"::UInt64, var"16"::Bool}, var"3"}})(::Const{typeof(EnzymeTestUtils.call_with_kwargs)}, ::Const{@NamedTuple{}}, ::Vararg{Any}) @ Enzyme.Compiler ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6301 [20] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_reverse.jl:110 [inlined] [21] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [22] test_reverse(f::var"#104#105", ret_activity::Type, args::Tuple{Matrix{Float64}, UnionAll}; rng::TaskLocalRNG, fdm::FiniteDifferences.AdaptedFiniteDifferenceMethod{5, 1, FiniteDifferences.UnadaptedFiniteDifferenceMethod{7, 5}}, fkwargs::@NamedTuple{}, rtol::Float64, atol::Float64, testset_name::Nothing, runtime_activity::Bool, output_tangent::Nothing) @ EnzymeTestUtils ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_reverse.jl:86 [23] test_reverse(f::Function, ret_activity::Type, args::Tuple{Matrix{Float64}, UnionAll}) @ EnzymeTestUtils ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_reverse.jl:68 [24] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:59 [25] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [26] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:60 [inlined] [27] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [28] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:139 [inlined] [29] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [30] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:144 [inlined] [31] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [32] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:148 [inlined] [33] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [34] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/runtests.jl:8 [35] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [36] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/runtests.jl:14 [inlined] [37] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [38] top-level scope @ none:6 [39] eval(m::Module, e::Any) @ Core ./boot.jl:489 [40] exec_options(opts::Base.JLOptions) @ Base ./client.jl:283 [41] _start() @ Base ./client.jl:550 ┌ Warning: Using fallback BLAS replacements for (["cblas_zdotc_sub64_"]), performance may be degraded └ @ Enzyme.Compiler ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:5478 ┌ Warning: Using fallback BLAS replacements for (["cblas_zdotc_sub64_"]), performance may be degraded └ @ Enzyme.Compiler ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:5478 ┌ Warning: Using fallback BLAS replacements for (["cblas_zdotc_sub64_"]), performance may be degraded └ @ Enzyme.Compiler ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:5478 ┌ Warning: Using fallback BLAS replacements for (["cblas_zdotc_sub64_"]), performance may be degraded └ @ Enzyme.Compiler ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:5478 ┌ Warning: Using fallback BLAS replacements for (["cblas_zdotc_sub64_"]), performance may be degraded └ @ Enzyme.Compiler ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:5478 ┌ Warning: Using fallback BLAS replacements for (["cblas_zdotc_sub64_"]), performance may be degraded └ @ Enzyme.Compiler ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:5478 ┌ Warning: Using fallback BLAS replacements for (["cblas_zdotc_sub64_"]), performance may be degraded └ @ Enzyme.Compiler ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:5478 ┌ Warning: Using fallback BLAS replacements for (["cblas_zdotc_sub64_"]), performance may be degraded └ @ Enzyme.Compiler ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:5478 Tx = Const: Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:204 Test threw exception Expression: fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:205 =# test_reverse(f_kwargs_rev, Duplicated, (x, Tx)) end Error occurred during `fails` Stacktrace: [1] error(s::String) @ Base ./error.jl:44 [2] fails(f::Function) @ MetaTesting ~/.julia/packages/MetaTesting/nvOMS/src/MetaTesting.jl:103 [3] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:59 [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:200 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:200 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:204 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:677 [inlined] [11] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:204 [inlined] test_reverse: f_kwargs_rev with return activity Duplicated on (::Vector{Float64}, Const): Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/src/test_reverse.jl:84 Got exception outside of a @test EnzymeRuntimeActivityError: Detected potential need for runtime activity. Constant memory is stored (or returned) to a differentiable variable and correctness cannot be guaranteed with static activity analysis. This might be due to the use of a constant variable as temporary storage for active memory (https://enzyme.mit.edu/julia/stable/faq/#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 performance, slower to setup), 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: var"#f_kwargs_rev#89"(::Float64, ::Base.Pairs{Symbol, Union{}, Nothing, @NamedTuple{}}, ::typeof(f_kwargs_rev), ::Vector{Float64}) @ Main ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:12 Hint: catch this exception as `err` and call `code_typed(err)` to inspect the surrounding code. Mismatched activity for: %nodecayed..pre-phi176 = phi ptr addrspace(10) [ %"new::Array107", %L94 ], [ %"x::Array", %L38 ], !dbg !146 const val: ptr addrspace(10) %"x::Array" Julia value causing error: Unknown object of type Vector{Float64} LLVM view of erring value: ptr addrspace(10) %"x::Array" Stacktrace: [1] size @ ./array.jl:194 [2] axes @ ./abstractarray.jl:98 [3] newindexer @ ./broadcast.jl:605 [4] extrude @ ./broadcast.jl:666 [5] preprocess @ ./broadcast.jl:975 [6] preprocess_args (repeats 2 times) @ ./broadcast.jl:977 [7] preprocess @ ./broadcast.jl:974 [8] preprocess_args @ ./broadcast.jl:978 [9] preprocess_args @ ./broadcast.jl:977 [10] preprocess @ ./broadcast.jl:974 [11] copyto! @ ./broadcast.jl:991 [12] copyto! @ ./broadcast.jl:947 [13] copy @ ./broadcast.jl:919 [14] materialize @ ./broadcast.jl:894 [15] #f_kwargs_rev#89 @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:12 Stacktrace: [1] unalias @ ./abstractarray.jl:1530 [inlined] [2] broadcast_unalias @ ./broadcast.jl:968 [inlined] [3] preprocess @ ./broadcast.jl:975 [inlined] [4] preprocess_args (repeats 2 times) @ ./broadcast.jl:977 [inlined] [5] preprocess @ ./broadcast.jl:974 [inlined] [6] preprocess_args @ ./broadcast.jl:978 [inlined] [7] preprocess_args @ ./broadcast.jl:977 [inlined] [8] preprocess @ ./broadcast.jl:974 [inlined] [9] copyto! @ ./broadcast.jl:991 [inlined] [10] copyto! @ ./broadcast.jl:947 [inlined] [11] copy @ ./broadcast.jl:919 [inlined] [12] materialize @ ./broadcast.jl:894 [inlined] [13] f_kwargs_rev @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:12 [inlined] [14] call_with_kwargs @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_reverse.jl:10 [inlined] [15] call_with_kwargs @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_reverse.jl:0 [inlined] [16] augmented_julia_call_with_kwargs_205612_inner_1wrap @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_reverse.jl:0 [17] macro expansion @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6883 [inlined] [18] enzyme_call(::Val{false}, ::Ptr{Nothing}, ::Type{Enzyme.Compiler.AugmentedForwardThunk{Ptr{Nothing}, Const{typeof(EnzymeTestUtils.call_with_kwargs)}, Duplicated{Vector{Float64}}, Tuple{Const{@NamedTuple{a::Float64}}, Const{typeof(f_kwargs_rev)}, Const{Vector{Float64}}}, 1, true, @NamedTuple{var"1"::@NamedTuple{var"1"::Core.LLVMPtr{Nothing, 0}, var"2", var"3", var"4", var"5", var"6", var"7", var"8"::UInt64, var"9", var"10"::Bool, var"11"::Core.LLVMPtr{Nothing, 0}, var"12"::Core.LLVMPtr{Nothing, 0}}, var"2"}}}, ::Val{1}, ::Val{true}, ::Type{Tuple{Const{@NamedTuple{a::Float64}}, Const{typeof(f_kwargs_rev)}, Const{Vector{Float64}}}}, ::Type{Duplicated{Vector{Float64}}}, ::Const{typeof(EnzymeTestUtils.call_with_kwargs)}, ::Type{@NamedTuple{var"1"::@NamedTuple{var"1"::Core.LLVMPtr{Nothing, 0}, var"2", var"3", var"4", var"5", var"6", var"7", var"8"::UInt64, var"9", var"10"::Bool, var"11"::Core.LLVMPtr{Nothing, 0}, var"12"::Core.LLVMPtr{Nothing, 0}}, var"2"}}, ::Const{@NamedTuple{a::Float64}}, ::Const{typeof(f_kwargs_rev)}, ::Const{Vector{Float64}}) @ Enzyme.Compiler ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6353 [19] (::Enzyme.Compiler.AugmentedForwardThunk{Ptr{Nothing}, Const{typeof(EnzymeTestUtils.call_with_kwargs)}, Duplicated{Vector{Float64}}, Tuple{Const{@NamedTuple{a::Float64}}, Const{typeof(f_kwargs_rev)}, Const{Vector{Float64}}}, 1, true, @NamedTuple{var"1"::@NamedTuple{var"1"::Core.LLVMPtr{Nothing, 0}, var"2", var"3", var"4", var"5", var"6", var"7", var"8"::UInt64, var"9", var"10"::Bool, var"11"::Core.LLVMPtr{Nothing, 0}, var"12"::Core.LLVMPtr{Nothing, 0}}, var"2"}})(::Const{typeof(EnzymeTestUtils.call_with_kwargs)}, ::Const{@NamedTuple{a::Float64}}, ::Vararg{Any}) @ Enzyme.Compiler ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6301 [20] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_reverse.jl:110 [inlined] [21] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [22] test_reverse(f::typeof(f_kwargs_rev), ret_activity::Type, args::Tuple{Vector{Float64}, UnionAll}; rng::TaskLocalRNG, fdm::FiniteDifferences.AdaptedFiniteDifferenceMethod{5, 1, FiniteDifferences.UnadaptedFiniteDifferenceMethod{7, 5}}, fkwargs::@NamedTuple{a::Float64}, rtol::Float64, atol::Float64, testset_name::Nothing, runtime_activity::Bool, output_tangent::Nothing) @ EnzymeTestUtils ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_reverse.jl:86 [23] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:59 [24] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [25] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:200 [inlined] [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [27] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:200 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [29] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:207 [inlined] [30] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [31] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/runtests.jl:8 [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [33] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/runtests.jl:14 [inlined] [34] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [35] top-level scope @ none:6 [36] eval(m::Module, e::Any) @ Core ./boot.jl:489 [37] exec_options(opts::Base.JLOptions) @ Base ./client.jl:283 [38] _start() @ Base ./client.jl:550 Tx = Duplicated: Test Failed at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:204 Expression: fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:205 =# test_reverse(f_kwargs_rev, Duplicated, (x, Tx)) end Stacktrace: [1] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:59 [2] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [3] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:200 [inlined] [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:200 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:204 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:680 [inlined] test_reverse: f_kwargs_rev with return activity Duplicated on (::Vector{Float64}, Const): Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/src/test_reverse.jl:84 Got exception outside of a @test EnzymeRuntimeActivityError: Detected potential need for runtime activity. Constant memory is stored (or returned) to a differentiable variable and correctness cannot be guaranteed with static activity analysis. This might be due to the use of a constant variable as temporary storage for active memory (https://enzyme.mit.edu/julia/stable/faq/#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 performance, slower to setup), 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: var"#f_kwargs_rev#89"(::Float64, ::Base.Pairs{Symbol, Union{}, Nothing, @NamedTuple{}}, ::typeof(f_kwargs_rev), ::Vector{Float64}) @ Main ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:12 Hint: catch this exception as `err` and call `code_typed(err)` to inspect the surrounding code. Mismatched activity for: %nodecayed..pre-phi176 = phi ptr addrspace(10) [ %"new::Array107", %L94 ], [ %"x::Array", %L38 ], !dbg !146 const val: ptr addrspace(10) %"x::Array" Julia value causing error: Unknown object of type Vector{Float64} LLVM view of erring value: ptr addrspace(10) %"x::Array" Stacktrace: [1] size @ ./array.jl:194 [2] axes @ ./abstractarray.jl:98 [3] newindexer @ ./broadcast.jl:605 [4] extrude @ ./broadcast.jl:666 [5] preprocess @ ./broadcast.jl:975 [6] preprocess_args (repeats 2 times) @ ./broadcast.jl:977 [7] preprocess @ ./broadcast.jl:974 [8] preprocess_args @ ./broadcast.jl:978 [9] preprocess_args @ ./broadcast.jl:977 [10] preprocess @ ./broadcast.jl:974 [11] copyto! @ ./broadcast.jl:991 [12] copyto! @ ./broadcast.jl:947 [13] copy @ ./broadcast.jl:919 [14] materialize @ ./broadcast.jl:894 [15] #f_kwargs_rev#89 @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:12 Stacktrace: [1] unalias @ ./abstractarray.jl:1530 [inlined] [2] broadcast_unalias @ ./broadcast.jl:968 [inlined] [3] preprocess @ ./broadcast.jl:975 [inlined] [4] preprocess_args (repeats 2 times) @ ./broadcast.jl:977 [inlined] [5] preprocess @ ./broadcast.jl:974 [inlined] [6] preprocess_args @ ./broadcast.jl:978 [inlined] [7] preprocess_args @ ./broadcast.jl:977 [inlined] [8] preprocess @ ./broadcast.jl:974 [inlined] [9] copyto! @ ./broadcast.jl:991 [inlined] [10] copyto! @ ./broadcast.jl:947 [inlined] [11] copy @ ./broadcast.jl:919 [inlined] [12] materialize @ ./broadcast.jl:894 [inlined] [13] f_kwargs_rev @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:12 [inlined] [14] call_with_kwargs @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_reverse.jl:10 [inlined] [15] call_with_kwargs @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_reverse.jl:0 [inlined] [16] augmented_julia_call_with_kwargs_205612_inner_1wrap @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_reverse.jl:0 [17] macro expansion @ ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6883 [inlined] [18] enzyme_call(::Val{false}, ::Ptr{Nothing}, ::Type{Enzyme.Compiler.AugmentedForwardThunk{Ptr{Nothing}, Const{typeof(EnzymeTestUtils.call_with_kwargs)}, Duplicated{Vector{Float64}}, Tuple{Const{@NamedTuple{a::Float64}}, Const{typeof(f_kwargs_rev)}, Const{Vector{Float64}}}, 1, true, @NamedTuple{var"1"::@NamedTuple{var"1"::Core.LLVMPtr{Nothing, 0}, var"2", var"3", var"4", var"5", var"6", var"7", var"8"::UInt64, var"9", var"10"::Bool, var"11"::Core.LLVMPtr{Nothing, 0}, var"12"::Core.LLVMPtr{Nothing, 0}}, var"2"}}}, ::Val{1}, ::Val{true}, ::Type{Tuple{Const{@NamedTuple{a::Float64}}, Const{typeof(f_kwargs_rev)}, Const{Vector{Float64}}}}, ::Type{Duplicated{Vector{Float64}}}, ::Const{typeof(EnzymeTestUtils.call_with_kwargs)}, ::Type{@NamedTuple{var"1"::@NamedTuple{var"1"::Core.LLVMPtr{Nothing, 0}, var"2", var"3", var"4", var"5", var"6", var"7", var"8"::UInt64, var"9", var"10"::Bool, var"11"::Core.LLVMPtr{Nothing, 0}, var"12"::Core.LLVMPtr{Nothing, 0}}, var"2"}}, ::Const{@NamedTuple{a::Float64}}, ::Const{typeof(f_kwargs_rev)}, ::Const{Vector{Float64}}) @ Enzyme.Compiler ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6353 [19] (::Enzyme.Compiler.AugmentedForwardThunk{Ptr{Nothing}, Const{typeof(EnzymeTestUtils.call_with_kwargs)}, Duplicated{Vector{Float64}}, Tuple{Const{@NamedTuple{a::Float64}}, Const{typeof(f_kwargs_rev)}, Const{Vector{Float64}}}, 1, true, @NamedTuple{var"1"::@NamedTuple{var"1"::Core.LLVMPtr{Nothing, 0}, var"2", var"3", var"4", var"5", var"6", var"7", var"8"::UInt64, var"9", var"10"::Bool, var"11"::Core.LLVMPtr{Nothing, 0}, var"12"::Core.LLVMPtr{Nothing, 0}}, var"2"}})(::Const{typeof(EnzymeTestUtils.call_with_kwargs)}, ::Const{@NamedTuple{a::Float64}}, ::Vararg{Any}) @ Enzyme.Compiler ~/.julia/packages/Enzyme/lNw5i/src/compiler.jl:6301 [20] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_reverse.jl:110 [inlined] [21] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [22] test_reverse(f::typeof(f_kwargs_rev), ret_activity::Type, args::Tuple{Vector{Float64}, UnionAll}; rng::TaskLocalRNG, fdm::FiniteDifferences.AdaptedFiniteDifferenceMethod{5, 1, FiniteDifferences.UnadaptedFiniteDifferenceMethod{7, 5}}, fkwargs::@NamedTuple{a::Float64}, rtol::Float64, atol::Float64, testset_name::Nothing, runtime_activity::Bool, output_tangent::Nothing) @ EnzymeTestUtils ~/.julia/packages/EnzymeTestUtils/fNmYk/src/test_reverse.jl:86 [23] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:59 [24] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [25] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:212 [inlined] [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [27] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:212 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [29] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:216 [inlined] [30] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [31] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/runtests.jl:8 [32] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [33] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/runtests.jl:14 [inlined] [34] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [35] top-level scope @ none:6 [36] eval(m::Module, e::Any) @ Core ./boot.jl:489 [37] exec_options(opts::Base.JLOptions) @ Base ./client.jl:283 [38] _start() @ Base ./client.jl:550 Tx = Const: Error During Test at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:218 Test threw exception Expression: fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:219 =# test_reverse(f_kwargs_rev, Duplicated, (x, Tx); fkwargs) end Error occurred during `fails` Stacktrace: [1] error(s::String) @ Base ./error.jl:44 [2] fails(f::Function) @ MetaTesting ~/.julia/packages/MetaTesting/nvOMS/src/MetaTesting.jl:103 [3] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:59 [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:212 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:212 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [9] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:218 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:677 [inlined] [11] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:218 [inlined] Tx = Duplicated: Test Failed at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:218 Expression: fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:219 =# test_reverse(f_kwargs_rev, Duplicated, (x, Tx); fkwargs) end Stacktrace: [1] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:59 [2] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [3] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:212 [inlined] [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:212 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:218 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:680 [inlined] Tx = Const: Test Failed at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:231 Expression: fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:232 =# test_reverse(f_kwargs_rev!, Const, (x, Tx); fkwargs) end Stacktrace: [1] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:59 [2] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [3] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:225 [inlined] [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:225 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:231 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:680 [inlined] Tx = Duplicated: Test Failed at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:231 Expression: fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:232 =# test_reverse(f_kwargs_rev!, Const, (x, Tx); fkwargs) end Stacktrace: [1] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:59 [2] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [3] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:225 [inlined] [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:225 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:231 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:680 [inlined] Tx = Duplicated: Test Failed at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:244 Expression: fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:245 =# test_reverse(f_kwargs_rev, Duplicated, (x, Tx); fkwargs) end Stacktrace: [1] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:59 [2] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [3] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:238 [inlined] [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:238 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:244 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:680 [inlined] Tx = Duplicated: Test Failed at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:263 Expression: fails() do #= /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:264 =# test_reverse(f_kwargs_rev_overwrite, Duplicated, (x, Tx); fkwargs) end Stacktrace: [1] top-level scope @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:59 [2] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [3] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:251 [inlined] [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [5] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:251 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1866 [inlined] [7] macro expansion @ ~/.julia/packages/EnzymeTestUtils/fNmYk/test/test_reverse.jl:263 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:680 [inlined] Test Summary: | Pass Fail Error Total Time EnzymeTestUtils.jl | 4554 16 96 4666 29m07.4s test_approx | 283 283 17.6s are_activities_compatible | 89 89 0.3s to_vec | 365 365 50.9s tangent generation | 81 81 7.7s test_forward | 1954 10 72 2036 16m15.1s tests pass for functions with no rules | 1900 2 56 1958 15m35.7s unary function tests | 1455 12 1467 7m57.0s vector arguments | 195 195 4m50.7s matrix arguments | 195 195 31.6s multidimensional array arguments | 195 195 32.2s tuple argument and return | 312 312 26.3s namedtuple argument and return | 345 345 24.7s struct argument and return | 213 12 225 1m11.1s Tret = Const, Tx = Const, T = Float32 | 7 7 14.7s Tret = Const, Tx = Const, T = Float64 | 7 7 3.2s Tret = Const, Tx = Const, T = ComplexF64 | 7 7 3.0s Tret = Const, Tx = Duplicated, T = Float32 | 7 7 3.1s Tret = Const, Tx = Duplicated, T = Float64 | 7 7 1.1s Tret = Const, Tx = Duplicated, T = ComplexF64 | 7 7 1.2s Tret = Const, Tx = BatchDuplicated, T = Float32 | 7 7 0.9s Tret = Const, Tx = BatchDuplicated, T = Float64 | 7 7 0.8s Tret = Const, Tx = BatchDuplicated, T = ComplexF64 | 7 7 0.7s Tret = Duplicated, Tx = Const, T = Float32 | 1 1 11.2s test_forward: f_struct with return activity Duplicated on (::TestStruct{Vector{Float32}, Float32}, Const) | 1 1 11.2s Tret = Duplicated, Tx = Const, T = Float64 | 1 1 2.0s test_forward: f_struct with return activity Duplicated on (::TestStruct{Vector{Float64}, Float64}, Const) | 1 1 2.0s Tret = Duplicated, Tx = Const, T = ComplexF64 | 1 1 1.9s test_forward: f_struct with return activity Duplicated on (::TestStruct{Vector{ComplexF64}, ComplexF64}, Const) | 1 1 1.9s Tret = Duplicated, Tx = Duplicated, T = Float32 | 12 12 3.1s Tret = Duplicated, Tx = Duplicated, T = Float64 | 12 12 3.2s Tret = Duplicated, Tx = Duplicated, T = ComplexF64 | 12 12 3.2s Tret = Duplicated, Tx = BatchDuplicated, T = Float32 | 0 0.0s Tret = Duplicated, Tx = BatchDuplicated, T = Float64 | 0 0.0s Tret = Duplicated, Tx = BatchDuplicated, T = ComplexF64 | 0 0.0s Tret = DuplicatedNoNeed, Tx = Const, T = Float32 | 1 1 0.5s test_forward: f_struct with return activity DuplicatedNoNeed on (::TestStruct{Vector{Float32}, Float32}, Const) | 1 1 0.5s Tret = DuplicatedNoNeed, Tx = Const, T = Float64 | 1 1 0.6s test_forward: f_struct with return activity DuplicatedNoNeed on (::TestStruct{Vector{Float64}, Float64}, Const) | 1 1 0.6s Tret = DuplicatedNoNeed, Tx = Const, T = ComplexF64 | 1 1 0.6s test_forward: f_struct with return activity DuplicatedNoNeed on (::TestStruct{Vector{ComplexF64}, ComplexF64}, Const) | 1 1 0.6s Tret = DuplicatedNoNeed, Tx = Duplicated, T = Float32 | 9 9 0.6s Tret = DuplicatedNoNeed, Tx = Duplicated, T = Float64 | 9 9 0.7s Tret = DuplicatedNoNeed, Tx = Duplicated, T = ComplexF64 | 9 9 0.6s Tret = DuplicatedNoNeed, Tx = BatchDuplicated, T = Float32 | 0 0.0s Tret = DuplicatedNoNeed, Tx = BatchDuplicated, T = Float64 | 0 0.0s Tret = DuplicatedNoNeed, Tx = BatchDuplicated, T = ComplexF64 | 0 0.0s Tret = BatchDuplicated, Tx = Const, T = Float32 | 1 1 1.1s test_forward: f_struct with return activity BatchDuplicated on (::TestStruct{Vector{Float32}, Float32}, Const) | 1 1 1.1s Tret = BatchDuplicated, Tx = Const, T = Float64 | 1 1 0.6s test_forward: f_struct with return activity BatchDuplicated on (::TestStruct{Vector{Float64}, Float64}, Const) | 1 1 0.6s Tret = BatchDuplicated, Tx = Const, T = ComplexF64 | 1 1 0.6s test_forward: f_struct with return activity BatchDuplicated on (::TestStruct{Vector{ComplexF64}, ComplexF64}, Const) | 1 1 0.6s Tret = BatchDuplicated, Tx = Duplicated, T = Float32 | 0 0.0s Tret = BatchDuplicated, Tx = Duplicated, T = Float64 | 0 0.0s Tret = BatchDuplicated, Tx = Duplicated, T = ComplexF64 | 0 0.0s Tret = BatchDuplicated, Tx = BatchDuplicated, T = Float32 | 16 16 3.1s Tret = BatchDuplicated, Tx = BatchDuplicated, T = Float64 | 16 16 2.4s Tret = BatchDuplicated, Tx = BatchDuplicated, T = ComplexF64 | 16 16 2.5s Tret = BatchDuplicatedNoNeed, Tx = Const, T = Float32 | 1 1 0.5s test_forward: f_struct with return activity BatchDuplicatedNoNeed on (::TestStruct{Vector{Float32}, Float32}, Const) | 1 1 0.5s Tret = BatchDuplicatedNoNeed, Tx = Const, T = Float64 | 1 1 0.6s test_forward: f_struct with return activity BatchDuplicatedNoNeed on (::TestStruct{Vector{Float64}, Float64}, Const) | 1 1 0.6s Tret = BatchDuplicatedNoNeed, Tx = Const, T = ComplexF64 | 1 1 0.6s test_forward: f_struct with return activity BatchDuplicatedNoNeed on (::TestStruct{Vector{ComplexF64}, ComplexF64}, Const) | 1 1 0.6s Tret = BatchDuplicatedNoNeed, Tx = Duplicated, T = Float32 | 0 0.0s Tret = BatchDuplicatedNoNeed, Tx = Duplicated, T = Float64 | 0 0.0s Tret = BatchDuplicatedNoNeed, Tx = Duplicated, T = ComplexF64 | 0 0.0s Tret = BatchDuplicatedNoNeed, Tx = BatchDuplicated, T = Float32 | 13 13 0.6s Tret = BatchDuplicatedNoNeed, Tx = BatchDuplicated, T = Float64 | 13 13 0.7s Tret = BatchDuplicatedNoNeed, Tx = BatchDuplicated, T = ComplexF64 | 13 13 0.7s multi-argument function | 52 40 92 1m54.3s Tret = Const, Tx = Const, Ta = Const, T = Float32 | 1 1 3.5s Tret = Const, Tx = Const, Ta = Const, T = Float64 | 1 1 2.2s Tret = Const, Tx = Const, Ta = Const, T = ComplexF32 | 1 1 3.5s Tret = Const, Tx = Const, Ta = Const, T = ComplexF64 | 1 1 2.1s Tret = Const, Tx = Const, Ta = Duplicated, T = Float32 | 1 1 1.1s Tret = Const, Tx = Const, Ta = Duplicated, T = Float64 | 1 1 0.5s Tret = Const, Tx = Const, Ta = Duplicated, T = ComplexF32 | 1 1 0.6s Tret = Const, Tx = Const, Ta = Duplicated, T = ComplexF64 | 1 1 0.6s Tret = Const, Tx = Const, Ta = BatchDuplicated, T = Float32 | 1 1 0.6s Tret = Const, Tx = Const, Ta = BatchDuplicated, T = Float64 | 1 1 0.6s Tret = Const, Tx = Const, Ta = BatchDuplicated, T = ComplexF32 | 1 1 0.6s Tret = Const, Tx = Const, Ta = BatchDuplicated, T = ComplexF64 | 1 1 0.6s Tret = Const, Tx = Duplicated, Ta = Const, T = Float32 | 1 1 0.7s Tret = Const, Tx = Duplicated, Ta = Const, T = Float64 | 1 1 0.7s Tret = Const, Tx = Duplicated, Ta = Const, T = ComplexF32 | 1 1 0.7s Tret = Const, Tx = Duplicated, Ta = Const, T = ComplexF64 | 1 1 0.7s Tret = Const, Tx = Duplicated, Ta = Duplicated, T = Float32 | 1 1 0.6s Tret = Const, Tx = Duplicated, Ta = Duplicated, T = Float64 | 1 1 0.6s Tret = Const, Tx = Duplicated, Ta = Duplicated, T = ComplexF32 | 1 1 0.7s Tret = Const, Tx = Duplicated, Ta = Duplicated, T = ComplexF64 | 1 1 0.7s Tret = Const, Tx = Duplicated, Ta = BatchDuplicated, T = Float32 | 0 0.0s Tret = Const, Tx = Duplicated, Ta = BatchDuplicated, T = Float64 | 0 0.0s Tret = Const, Tx = Duplicated, Ta = BatchDuplicated, T = ComplexF32 | 0 0.0s Tret = Const, Tx = Duplicated, Ta = BatchDuplicated, T = ComplexF64 | 0 0.0s Tret = Const, Tx = BatchDuplicated, Ta = Const, T = Float32 | 1 1 0.7s Tret = Const, Tx = BatchDuplicated, Ta = Const, T = Float64 | 1 1 0.7s Tret = Const, Tx = BatchDuplicated, Ta = Const, T = ComplexF32 | 1 1 0.8s Tret = Const, Tx = BatchDuplicated, Ta = Const, T = ComplexF64 | 1 1 0.7s Tret = Const, Tx = BatchDuplicated, Ta = Duplicated, T = Float32 | 0 0.0s Tret = Const, Tx = BatchDuplicated, Ta = Duplicated, T = Float64 | 0 0.0s Tret = Const, Tx = BatchDuplicated, Ta = Duplicated, T = ComplexF32 | 0 0.0s Tret = Const, Tx = BatchDuplicated, Ta = Duplicated, T = ComplexF64 | 0 0.0s Tret = Const, Tx = BatchDuplicated, Ta = BatchDuplicated, T = Float32 | 1 1 0.7s Tret = Const, Tx = BatchDuplicated, Ta = BatchDuplicated, T = Float64 | 1 1 0.7s Tret = Const, Tx = BatchDuplicated, Ta = BatchDuplicated, T = ComplexF32 | 1 1 0.7s Tret = Const, Tx = BatchDuplicated, Ta = BatchDuplicated, T = ComplexF64 | 1 1 0.7s Tret = Duplicated, Tx = Const, Ta = Const, T = Float32 | 1 1 2.2s Tret = Duplicated, Tx = Const, Ta = Const, T = Float64 | 1 1 1.8s Tret = Duplicated, Tx = Const, Ta = Const, T = ComplexF32 | 1 1 1.8s Tret = Duplicated, Tx = Const, Ta = Const, T = ComplexF64 | 1 1 1.9s Tret = Duplicated, Tx = Const, Ta = Duplicated, T = Float32 | 1 1 2.8s Tret = Duplicated, Tx = Const, Ta = Duplicated, T = Float64 | 1 1 2.8s Tret = Duplicated, Tx = Const, Ta = Duplicated, T = ComplexF32 | 1 1 3.0s Tret = Duplicated, Tx = Const, Ta = Duplicated, T = ComplexF64 | 1 1 2.9s Tret = Duplicated, Tx = Const, Ta = BatchDuplicated, T = Float32 | 0 0.0s Tret = Duplicated, Tx = Const, Ta = BatchDuplicated, T = Float64 | 0 0.0s Tret = Duplicated, Tx = Const, Ta = BatchDuplicated, T = ComplexF32 | 0 0.0s Tret = Duplicated, Tx = Const, Ta = BatchDuplicated, T = ComplexF64 | 0 0.0s Tret = Duplicated, Tx = Duplicated, Ta = Const, T = Float32 | 1 1 2.5s Tret = Duplicated, Tx = Duplicated, Ta = Const, T = Float64 | 1 1 2.5s Tret = Duplicated, Tx = Duplicated, Ta = Const, T = ComplexF32 | 1 1 2.7s Tret = Duplicated, Tx = Duplicated, Ta = Const, T = ComplexF64 | 1 1 2.3s Tret = Duplicated, Tx = Duplicated, Ta = Duplicated, T = Float32 | 1 1 2.7s Tret = Duplicated, Tx = Duplicated, Ta = Duplicated, T = Float64 | 1 1 2.9s Tret = Duplicated, Tx = Duplicated, Ta = Duplicated, T = ComplexF32 | 1 1 2.8s Tret = Duplicated, Tx = Duplicated, Ta = Duplicated, T = ComplexF64 | 1 1 2.9s Tret = Duplicated, Tx = Duplicated, Ta = BatchDuplicated, T = Float32 | 0 0.0s Tret = Duplicated, Tx = Duplicated, Ta = BatchDuplicated, T = Float64 | 0 0.0s Tret = Duplicated, Tx = Duplicated, Ta = BatchDuplicated, T = ComplexF32 | 0 0.0s Tret = Duplicated, Tx = Duplicated, Ta = BatchDuplicated, T = ComplexF64 | 0 0.0s Tret = Duplicated, Tx = BatchDuplicated, Ta = Const, T = Float32 | 0 0.0s Tret = Duplicated, Tx = BatchDuplicated, Ta = Const, T = Float64 | 0 0.0s Tret = Duplicated, Tx = BatchDuplicated, Ta = Const, T = ComplexF32 | 0 0.0s Tret = Duplicated, Tx = BatchDuplicated, Ta = Const, T = ComplexF64 | 0 0.0s Tret = Duplicated, Tx = BatchDuplicated, Ta = Duplicated, T = Float32 | 0 0.0s Tret = Duplicated, Tx = BatchDuplicated, Ta = Duplicated, T = Float64 | 0 0.0s Tret = Duplicated, Tx = BatchDuplicated, Ta = Duplicated, T = ComplexF32 | 0 0.0s Tret = Duplicated, Tx = BatchDuplicated, Ta = Duplicated, T = ComplexF64 | 0 0.0s Tret = Duplicated, Tx = BatchDuplicated, Ta = BatchDuplicated, T = Float32 | 0 0.0s Tret = Duplicated, Tx = BatchDuplicated, Ta = BatchDuplicated, T = Float64 | 0 0.0s Tret = Duplicated, Tx = BatchDuplicated, Ta = BatchDuplicated, T = ComplexF32 | 0 0.0s Tret = Duplicated, Tx = BatchDuplicated, Ta = BatchDuplicated, T = ComplexF64 | 0 0.0s Tret = DuplicatedNoNeed, Tx = Const, Ta = Const, T = Float32 | 1 1 0.6s Tret = DuplicatedNoNeed, Tx = Const, Ta = Const, T = Float64 | 1 1 0.7s Tret = DuplicatedNoNeed, Tx = Const, Ta = Const, T = ComplexF32 | 1 1 0.6s Tret = DuplicatedNoNeed, Tx = Const, Ta = Const, T = ComplexF64 | 1 1 0.6s Tret = DuplicatedNoNeed, Tx = Const, Ta = Duplicated, T = Float32 | 1 1 0.5s Tret = DuplicatedNoNeed, Tx = Const, Ta = Duplicated, T = Float64 | 1 1 0.4s Tret = DuplicatedNoNeed, Tx = Const, Ta = Duplicated, T = ComplexF32 | 1 1 0.6s Tret = DuplicatedNoNeed, Tx = Const, Ta = Duplicated, T = ComplexF64 | 1 1 0.5s Tret = DuplicatedNoNeed, Tx = Const, Ta = BatchDuplicated, T = Float32 | 0 0.0s Tret = DuplicatedNoNeed, Tx = Const, Ta = BatchDuplicated, T = Float64 | 0 0.0s Tret = DuplicatedNoNeed, Tx = Const, Ta = BatchDuplicated, T = ComplexF32 | 0 0.0s Tret = DuplicatedNoNeed, Tx = Const, Ta = BatchDuplicated, T = ComplexF64 | 0 0.0s Tret = DuplicatedNoNeed, Tx = Duplicated, Ta = Const, T = Float32 | 1 1 0.5s Tret = DuplicatedNoNeed, Tx = Duplicated, Ta = Const, T = Float64 | 1 1 0.4s Tret = DuplicatedNoNeed, Tx = Duplicated, Ta = Const, T = ComplexF32 | 1 1 0.5s Tret = DuplicatedNoNeed, Tx = Duplicated, Ta = Const, T = ComplexF64 | 1 1 0.5s Tret = DuplicatedNoNeed, Tx = Duplicated, Ta = Duplicated, T = Float32 | 1 1 0.4s Tret = DuplicatedNoNeed, Tx = Duplicated, Ta = Duplicated, T = Float64 | 1 1 0.5s Tret = DuplicatedNoNeed, Tx = Duplicated, Ta = Duplicated, T = ComplexF32 | 1 1 0.5s Tret = DuplicatedNoNeed, Tx = Duplicated, Ta = Duplicated, T = ComplexF64 | 1 1 1.3s Tret = DuplicatedNoNeed, Tx = Duplicated, Ta = BatchDuplicated, T = Float32 | 0 0.0s Tret = DuplicatedNoNeed, Tx = Duplicated, Ta = BatchDuplicated, T = Float64 | 0 0.0s Tret = DuplicatedNoNeed, Tx = Duplicated, Ta = BatchDuplicated, T = ComplexF32 | 0 0.0s Tret = DuplicatedNoNeed, Tx = Duplicated, Ta = BatchDuplicated, T = ComplexF64 | 0 0.0s Tret = DuplicatedNoNeed, Tx = BatchDuplicated, Ta = Const, T = Float32 | 0 0.0s Tret = DuplicatedNoNeed, Tx = BatchDuplicated, Ta = Const, T = Float64 | 0 0.0s Tret = DuplicatedNoNeed, Tx = BatchDuplicated, Ta = Const, T = ComplexF32 | 0 0.0s Tret = DuplicatedNoNeed, Tx = BatchDuplicated, Ta = Const, T = ComplexF64 | 0 0.0s Tret = DuplicatedNoNeed, Tx = BatchDuplicated, Ta = Duplicated, T = Float32 | 0 0.0s Tret = DuplicatedNoNeed, Tx = BatchDuplicated, Ta = Duplicated, T = Float64 | 0 0.0s Tret = DuplicatedNoNeed, Tx = BatchDuplicated, Ta = Duplicated, T = ComplexF32 | 0 0.0s Tret = DuplicatedNoNeed, Tx = BatchDuplicated, Ta = Duplicated, T = ComplexF64 | 0 0.0s Tret = DuplicatedNoNeed, Tx = BatchDuplicated, Ta = BatchDuplicated, T = Float32 | 0 0.0s Tret = DuplicatedNoNeed, Tx = BatchDuplicated, Ta = BatchDuplicated, T = Float64 | 0 0.0s Tret = DuplicatedNoNeed, Tx = BatchDuplicated, Ta = BatchDuplicated, T = ComplexF32 | 0 0.0s Tret = DuplicatedNoNeed, Tx = BatchDuplicated, Ta = BatchDuplicated, T = ComplexF64 | 0 0.0s Tret = BatchDuplicated, Tx = Const, Ta = Const, T = Float32 | 1 1 0.7s Tret = BatchDuplicated, Tx = Const, Ta = Const, T = Float64 | 1 1 0.6s Tret = BatchDuplicated, Tx = Const, Ta = Const, T = ComplexF32 | 1 1 0.7s Tret = BatchDuplicated, Tx = Const, Ta = Const, T = ComplexF64 | 1 1 0.7s Tret = BatchDuplicated, Tx = Const, Ta = Duplicated, T = Float32 | 0 0.0s Tret = BatchDuplicated, Tx = Const, Ta = Duplicated, T = Float64 | 0 0.0s Tret = BatchDuplicated, Tx = Const, Ta = Duplicated, T = ComplexF32 | 0 0.0s Tret = BatchDuplicated, Tx = Const, Ta = Duplicated, T = ComplexF64 | 0 0.0s Tret = BatchDuplicated, Tx = Const, Ta = BatchDuplicated, T = Float32 | 1 1 1.9s Tret = BatchDuplicated, Tx = Const, Ta = BatchDuplicated, T = Float64 | 1 1 1.8s Tret = BatchDuplicated, Tx = Const, Ta = BatchDuplicated, T = ComplexF32 | 1 1 2.1s Tret = BatchDuplicated, Tx = Const, Ta = BatchDuplicated, T = ComplexF64 | 1 1 1.9s Tret = BatchDuplicated, Tx = Duplicated, Ta = Const, T = Float32 | 0 0.0s Tret = BatchDuplicated, Tx = Duplicated, Ta = Const, T = Float64 | 0 0.0s Tret = BatchDuplicated, Tx = Duplicated, Ta = Const, T = ComplexF32 | 0 0.0s Tret = BatchDuplicated, Tx = Duplicated, Ta = Const, T = ComplexF64 | 0 0.0s Tret = BatchDuplicated, Tx = Duplicated, Ta = Duplicated, T = Float32 | 0 0.0s Tret = BatchDuplicated, Tx = Duplicated, Ta = Duplicated, T = Float64 | 0 0.0s Tret = BatchDuplicated, Tx = Duplicated, Ta = Duplicated, T = ComplexF32 | 0 0.0s Tret = BatchDuplicated, Tx = Duplicated, Ta = Duplicated, T = ComplexF64 | 0 0.0s Tret = BatchDuplicated, Tx = Duplicated, Ta = BatchDuplicated, T = Float32 | 0 0.0s Tret = BatchDuplicated, Tx = Duplicated, Ta = BatchDuplicated, T = Float64 | 0 0.0s Tret = BatchDuplicated, Tx = Duplicated, Ta = BatchDuplicated, T = ComplexF32 | 0 0.0s Tret = BatchDuplicated, Tx = Duplicated, Ta = BatchDuplicated, T = ComplexF64 | 0 0.0s Tret = BatchDuplicated, Tx = BatchDuplicated, Ta = Const, T = Float32 | 1 1 2.0s Tret = BatchDuplicated, Tx = BatchDuplicated, Ta = Const, T = Float64 | 1 1 2.5s Tret = BatchDuplicated, Tx = BatchDuplicated, Ta = Const, T = ComplexF32 | 1 1 2.1s Tret = BatchDuplicated, Tx = BatchDuplicated, Ta = Const, T = ComplexF64 | 1 1 2.4s Tret = BatchDuplicated, Tx = BatchDuplicated, Ta = Duplicated, T = Float32 | 0 0.0s Tret = BatchDuplicated, Tx = BatchDuplicated, Ta = Duplicated, T = Float64 | 0 0.0s Tret = BatchDuplicated, Tx = BatchDuplicated, Ta = Duplicated, T = ComplexF32 | 0 0.0s Tret = BatchDuplicated, Tx = BatchDuplicated, Ta = Duplicated, T = ComplexF64 | 0 0.0s Tret = BatchDuplicated, Tx = BatchDuplicated, Ta = BatchDuplicated, T = Float32 | 1 1 2.0s Tret = BatchDuplicated, Tx = BatchDuplicated, Ta = BatchDuplicated, T = Float64 | 1 1 2.1s Tret = BatchDuplicated, Tx = BatchDuplicated, Ta = BatchDuplicated, T = ComplexF32 | 1 1 2.0s Tret = BatchDuplicated, Tx = BatchDuplicated, Ta = BatchDuplicated, T = ComplexF64 | 1 1 2.1s Tret = BatchDuplicatedNoNeed, Tx = Const, Ta = Const, T = Float32 | 1 1 0.7s Tret = BatchDuplicatedNoNeed, Tx = Const, Ta = Const, T = Float64 | 1 1 0.7s Tret = BatchDuplicatedNoNeed, Tx = Const, Ta = Const, T = ComplexF32 | 1 1 0.7s Tret = BatchDuplicatedNoNeed, Tx = Const, Ta = Const, T = ComplexF64 | 1 1 0.7s Tret = BatchDuplicatedNoNeed, Tx = Const, Ta = Duplicated, T = Float32 | 0 0.0s Tret = BatchDuplicatedNoNeed, Tx = Const, Ta = Duplicated, T = Float64 | 0 0.0s Tret = BatchDuplicatedNoNeed, Tx = Const, Ta = Duplicated, T = ComplexF32 | 0 0.0s Tret = BatchDuplicatedNoNeed, Tx = Const, Ta = Duplicated, T = ComplexF64 | 0 0.0s Tret = BatchDuplicatedNoNeed, Tx = Const, Ta = BatchDuplicated, T = Float32 | 1 1 0.5s Tret = BatchDuplicatedNoNeed, Tx = Const, Ta = BatchDuplicated, T = Float64 | 1 1 0.5s Tret = BatchDuplicatedNoNeed, Tx = Const, Ta = BatchDuplicated, T = ComplexF32 | 1 1 0.7s Tret = BatchDuplicatedNoNeed, Tx = Const, Ta = BatchDuplicated, T = ComplexF64 | 1 1 0.6s Tret = BatchDuplicatedNoNeed, Tx = Duplicated, Ta = Const, T = Float32 | 0 0.0s Tret = BatchDuplicatedNoNeed, Tx = Duplicated, Ta = Const, T = Float64 | 0 0.0s Tret = BatchDuplicatedNoNeed, Tx = Duplicated, Ta = Const, T = ComplexF32 | 0 0.0s Tret = BatchDuplicatedNoNeed, Tx = Duplicated, Ta = Const, T = ComplexF64 | 0 0.0s Tret = BatchDuplicatedNoNeed, Tx = Duplicated, Ta = Duplicated, T = Float32 | 0 0.0s Tret = BatchDuplicatedNoNeed, Tx = Duplicated, Ta = Duplicated, T = Float64 | 0 0.0s Tret = BatchDuplicatedNoNeed, Tx = Duplicated, Ta = Duplicated, T = ComplexF32 | 0 0.0s Tret = BatchDuplicatedNoNeed, Tx = Duplicated, Ta = Duplicated, T = ComplexF64 | 0 0.0s Tret = BatchDuplicatedNoNeed, Tx = Duplicated, Ta = BatchDuplicated, T = Float32 | 0 0.0s Tret = BatchDuplicatedNoNeed, Tx = Duplicated, Ta = BatchDuplicated, T = Float64 | 0 0.0s Tret = BatchDuplicatedNoNeed, Tx = Duplicated, Ta = BatchDuplicated, T = ComplexF32 | 0 0.0s Tret = BatchDuplicatedNoNeed, Tx = Duplicated, Ta = BatchDuplicated, T = ComplexF64 | 0 0.0s Tret = BatchDuplicatedNoNeed, Tx = BatchDuplicated, Ta = Const, T = Float32 | 1 1 0.5s Tret = BatchDuplicatedNoNeed, Tx = BatchDuplicated, Ta = Const, T = Float64 | 1 1 0.5s Tret = BatchDuplicatedNoNeed, Tx = BatchDuplicated, Ta = Const, T = ComplexF32 | 1 1 0.6s Tret = BatchDuplicatedNoNeed, Tx = BatchDuplicated, Ta = Const, T = ComplexF64 | 1 1 0.6s Tret = BatchDuplicatedNoNeed, Tx = BatchDuplicated, Ta = Duplicated, T = Float32 | 0 0.0s Tret = BatchDuplicatedNoNeed, Tx = BatchDuplicated, Ta = Duplicated, T = Float64 | 0 0.0s Tret = BatchDuplicatedNoNeed, Tx = BatchDuplicated, Ta = Duplicated, T = ComplexF32 | 0 0.0s Tret = BatchDuplicatedNoNeed, Tx = BatchDuplicated, Ta = Duplicated, T = ComplexF64 | 0 0.0s Tret = BatchDuplicatedNoNeed, Tx = BatchDuplicated, Ta = BatchDuplicated, T = Float32 | 1 1 0.5s Tret = BatchDuplicatedNoNeed, Tx = BatchDuplicated, Ta = BatchDuplicated, T = Float64 | 1 1 0.5s Tret = BatchDuplicatedNoNeed, Tx = BatchDuplicated, Ta = BatchDuplicated, T = ComplexF32 | 1 1 0.6s Tret = BatchDuplicatedNoNeed, Tx = BatchDuplicated, Ta = BatchDuplicated, T = ComplexF64 | 1 1 0.6s structured NaN array inputs/outputs | 42 42 13.1s structured array inputs/outputs | 168 168 2m07.5s equivalent arrays in output | 34 2 36 12.1s Tret = Const, Tx = Const | 4 4 2.2s Tret = Const, Tx = Duplicated | 4 4 0.5s Tret = Const, Tx = BatchDuplicated | 4 4 0.6s Tret = Duplicated, Tx = Const | 1 1 2.3s test_forward: f with return activity Duplicated on (::Matrix{Float64}, Const) | 1 1 2.3s Tret = Duplicated, Tx = Duplicated | 9 9 3.2s Tret = Duplicated, Tx = BatchDuplicated | 0 0.0s Tret = BatchDuplicated, Tx = Const | 1 1 0.5s test_forward: f with return activity BatchDuplicated on (::Matrix{Float64}, Const) | 1 1 0.5s Tret = BatchDuplicated, Tx = Duplicated | 0 0.0s Tret = BatchDuplicated, Tx = BatchDuplicated | 13 13 2.8s arrays sharing memory in output | 34 2 36 10.4s Tret = Const, Tx = Const | 4 4 1.2s Tret = Const, Tx = Duplicated | 4 4 0.5s Tret = Const, Tx = BatchDuplicated | 4 4 0.6s Tret = Duplicated, Tx = Const | 1 1 2.1s test_forward: #72 with return activity Duplicated on (::Matrix{Float64}, Const) | 1 1 2.1s Tret = Duplicated, Tx = Duplicated | 9 9 2.9s Tret = Duplicated, Tx = BatchDuplicated | 0 0.0s Tret = BatchDuplicated, Tx = Const | 1 1 0.5s test_forward: #72 with return activity BatchDuplicated on (::Matrix{Float64}, Const) | 1 1 0.5s Tret = BatchDuplicated, Tx = Duplicated | 0 0.0s Tret = BatchDuplicated, Tx = BatchDuplicated | 13 13 2.6s mutating function | 60 60 1m41.8s incorrect mutated argument detected | 10 2 12 11.1s Tx = Const | 5 1 6 9.9s test_forward: f_kwargs_fwd! with return activity Const on (::Vector{Float64}, Const) | 5 5 2.0s Tx = Duplicated | 5 1 6 1.2s test_forward: f_kwargs_fwd! with return activity Const on (::Vector{Float64}, Duplicated) | 5 5 0.5s mutated callable | 45 45 1m08.4s kwargs correctly forwarded | 14 2 4 20 15.4s Tret = Duplicated, Tx = Const | 2 2 4.9s test_forward: f_kwargs_fwd with return activity Duplicated on (::Vector{Float64}, Const) | 1 1 1.7s Tret = Duplicated, Tx = Duplicated | 6 1 7 4.9s test_forward: f_kwargs_fwd with return activity Duplicated on (::Vector{Float64}, Duplicated) | 6 6 2.4s Tret = Duplicated, Tx = BatchDuplicated | 0 0.0s Tret = BatchDuplicated, Tx = Const | 2 2 1.2s test_forward: f_kwargs_fwd with return activity BatchDuplicated on (::Vector{Float64}, Const) | 1 1 0.4s Tret = BatchDuplicated, Tx = Duplicated | 0 0.0s Tret = BatchDuplicated, Tx = BatchDuplicated | 8 1 9 4.3s test_forward: f_kwargs_fwd with return activity BatchDuplicated on (::Vector{Float64}, BatchDuplicated) | 8 8 2.1s incorrect primal detected | 14 2 4 20 8.1s Tret = Duplicated, Tx = Const | 2 2 2.5s test_forward: f_kwargs_fwd with return activity Duplicated on (::Vector{Float64}, Const) | 1 1 0.0s Tret = Duplicated, Tx = Duplicated | 6 1 7 2.7s test_forward: f_kwargs_fwd with return activity Duplicated on (::Vector{Float64}, Duplicated) | 6 6 0.0s Tret = Duplicated, Tx = BatchDuplicated | 0 0.0s Tret = BatchDuplicated, Tx = Const | 2 2 0.7s test_forward: f_kwargs_fwd with return activity BatchDuplicated on (::Vector{Float64}, Const) | 1 1 0.0s Tret = BatchDuplicated, Tx = Duplicated | 0 0.0s Tret = BatchDuplicated, Tx = BatchDuplicated | 8 1 9 2.2s test_forward: f_kwargs_fwd with return activity BatchDuplicated on (::Vector{Float64}, BatchDuplicated) | 8 8 0.0s incorrect tangent detected | 11 2 4 17 7.8s Tret = Duplicated, Tx = Const | 2 2 3.1s test_forward: f_kwargs_fwd with return activity Duplicated on (::Vector{Float64}, Const) | 1 1 0.0s Tret = Duplicated, Tx = Duplicated | 6 1 7 2.6s test_forward: f_kwargs_fwd with return activity Duplicated on (::Vector{Float64}, Duplicated) | 6 6 0.0s Tret = DuplicatedNoNeed, Tx = Const | 2 2 1.1s test_forward: f_kwargs_fwd with return activity DuplicatedNoNeed on (::Vector{Float64}, Const) | 1 1 0.4s Tret = DuplicatedNoNeed, Tx = Duplicated | 5 1 6 1.0s test_forward: f_kwargs_fwd with return activity DuplicatedNoNeed on (::Vector{Float64}, Duplicated) | 5 5 0.4s incorrect batch tangent detected | 15 2 4 21 8.1s Tret = BatchDuplicated, Tx = Const | 2 2 2.9s test_forward: f_kwargs_fwd with return activity BatchDuplicated on (::Vector{Float64}, Const) | 1 1 0.0s Tret = BatchDuplicated, Tx = BatchDuplicated | 8 1 9 3.1s test_forward: f_kwargs_fwd with return activity BatchDuplicated on (::Vector{Float64}, BatchDuplicated) | 8 8 0.0s Tret = BatchDuplicatedNoNeed, Tx = Const | 2 2 1.1s test_forward: f_kwargs_fwd with return activity BatchDuplicatedNoNeed on (::Vector{Float64}, Const) | 1 1 0.5s Tret = BatchDuplicatedNoNeed, Tx = BatchDuplicated | 7 1 8 0.9s test_forward: f_kwargs_fwd with return activity BatchDuplicatedNoNeed on (::Vector{Float64}, BatchDuplicated) | 7 7 0.4s test_reverse | 1779 6 24 1809 11m26.0s tests pass for functions with no rules | 1729 20 1749 10m44.9s unary function tests | 576 576 2m11.2s multi-argument function | 16 16 32 1m08.5s Tret = Const, Tx = Const, Ta = Const, T = Float32 | 1 1 4.4s Tret = Const, Tx = Const, Ta = Const, T = Float64 | 1 1 1.7s Tret = Const, Tx = Const, Ta = Const, T = ComplexF32 | 1 1 2.6s Tret = Const, Tx = Const, Ta = Const, T = ComplexF64 | 1 1 1.8s Tret = Const, Tx = Const, Ta = Active, T = Float32 | 1 1 3.8s Tret = Const, Tx = Const, Ta = Active, T = Float64 | 1 1 3.5s Tret = Const, Tx = Const, Ta = Active, T = ComplexF32 | 1 1 3.9s Tret = Const, Tx = Const, Ta = Active, T = ComplexF64 | 1 1 3.9s Tret = Const, Tx = Duplicated, Ta = Const, T = Float32 | 1 1 3.6s Tret = Const, Tx = Duplicated, Ta = Const, T = Float64 | 1 1 3.3s Tret = Const, Tx = Duplicated, Ta = Const, T = ComplexF32 | 1 1 3.6s Tret = Const, Tx = Duplicated, Ta = Const, T = ComplexF64 | 1 1 3.8s Tret = Const, Tx = Duplicated, Ta = Active, T = Float32 | 1 1 3.5s Tret = Const, Tx = Duplicated, Ta = Active, T = Float64 | 1 1 3.5s Tret = Const, Tx = Duplicated, Ta = Active, T = ComplexF32 | 1 1 3.3s Tret = Const, Tx = Duplicated, Ta = Active, T = ComplexF64 | 1 1 4.1s Tret = Duplicated, Tx = Const, Ta = Const, T = Float32 | 1 1 0.9s Tret = Duplicated, Tx = Const, Ta = Const, T = Float64 | 1 1 0.9s Tret = Duplicated, Tx = Const, Ta = Const, T = ComplexF32 | 1 1 1.1s Tret = Duplicated, Tx = Const, Ta = Const, T = ComplexF64 | 1 1 1.0s Tret = Duplicated, Tx = Const, Ta = Active, T = Float32 | 1 1 1.0s Tret = Duplicated, Tx = Const, Ta = Active, T = Float64 | 1 1 1.1s Tret = Duplicated, Tx = Const, Ta = Active, T = ComplexF32 | 1 1 0.8s Tret = Duplicated, Tx = Const, Ta = Active, T = ComplexF64 | 1 1 0.8s Tret = Duplicated, Tx = Duplicated, Ta = Const, T = Float32 | 1 1 0.9s Tret = Duplicated, Tx = Duplicated, Ta = Const, T = Float64 | 1 1 0.8s Tret = Duplicated, Tx = Duplicated, Ta = Const, T = ComplexF32 | 1 1 1.0s Tret = Duplicated, Tx = Duplicated, Ta = Const, T = ComplexF64 | 1 1 0.8s Tret = Duplicated, Tx = Duplicated, Ta = Active, T = Float32 | 1 1 0.7s Tret = Duplicated, Tx = Duplicated, Ta = Active, T = Float64 | 1 1 0.7s Tret = Duplicated, Tx = Duplicated, Ta = Active, T = ComplexF32 | 1 1 0.8s Tret = Duplicated, Tx = Duplicated, Ta = Active, T = ComplexF64 | 1 1 0.8s structured NaN array inputs/outputs | 55 55 12.3s structured array inputs/outputs | 220 220 3m11.6s equivalent arrays in output | 51 2 53 26.8s Tret = Const, Tx = Const | 9 9 2.1s Tret = Const, Tx = Duplicated | 10 10 4.2s Tret = Const, Tx = BatchDuplicated | 11 11 15.9s Tret = Duplicated, Tx = Const | 1 1 1.0s test_reverse: f with return activity Duplicated on (::Matrix{Float64}, Const) | 1 1 1.0s Tret = Duplicated, Tx = Duplicated | 10 10 1.2s Tret = Duplicated, Tx = BatchDuplicated | 0 0.0s Tret = BatchDuplicated, Tx = Const | 1 1 1.1s test_reverse: f with return activity BatchDuplicated on (::Matrix{Float64}, Const) | 1 1 1.1s Tret = BatchDuplicated, Tx = Duplicated | 0 0.0s Tret = BatchDuplicated, Tx = BatchDuplicated | 11 11 1.4s arrays sharing memory in output | 51 2 53 27.3s Tret = Const, Tx = Const | 9 9 2.6s Tret = Const, Tx = Duplicated | 10 10 4.1s Tret = Const, Tx = BatchDuplicated | 11 11 16.0s Tret = Duplicated, Tx = Const | 1 1 1.1s test_reverse: #104 with return activity Duplicated on (::Matrix{Float64}, Const) | 1 1 1.1s Tret = Duplicated, Tx = Duplicated | 10 10 1.1s Tret = Duplicated, Tx = BatchDuplicated | 0 0.0s Tret = BatchDuplicated, Tx = Const | 1 1 1.0s test_reverse: #104 with return activity BatchDuplicated on (::Matrix{Float64}, Const) | 1 1 1.0s Tret = BatchDuplicated, Tx = Duplicated | 0 0.0s Tret = BatchDuplicated, Tx = BatchDuplicated | 11 11 1.4s mutating function | 736 736 2m17.7s mutated callable | 24 24 49.6s kwargs correctly forwarded | 8 1 2 11 10.7s Tx = Const | 2 2 4.4s test_reverse: f_kwargs_rev with return activity Duplicated on (::Vector{Float64}, Const) | 1 1 0.8s Tx = Duplicated | 8 1 9 6.3s test_reverse: f_kwargs_rev with return activity Duplicated on (::Vector{Float64}, Duplicated) | 8 8 2.6s incorrect primal detected | 8 1 2 11 5.3s Tx = Const | 2 2 2.4s test_reverse: f_kwargs_rev with return activity Duplicated on (::Vector{Float64}, Const) | 1 1 0.1s Tx = Duplicated | 8 1 9 2.9s test_reverse: f_kwargs_rev with return activity Duplicated on (::Vector{Float64}, Duplicated) | 8 8 0.0s incorrect mutated argument detected | 17 2 19 11.5s Tx = Const | 8 1 9 4.1s test_reverse: f_kwargs_rev! with return activity Const on (::Vector{Float64}, Const) | 8 8 1.4s Tx = Duplicated | 9 1 10 7.4s test_reverse: f_kwargs_rev! with return activity Const on (::Vector{Float64}, Duplicated) | 9 9 4.4s incorrect tangent detected | 8 1 9 4.2s Tx = Duplicated | 8 1 9 4.2s test_reverse: f_kwargs_rev with return activity Duplicated on (::Vector{Float64}, Duplicated) | 8 8 0.0s incorrect tape detected | 9 1 10 9.3s Tx = Duplicated | 9 1 10 9.3s test_reverse: f_kwargs_rev_overwrite with return activity Duplicated on (::Vector{Float64}, Duplicated) | 9 9 3.9s j′vp with empty inputs | 3 3 1.5s RNG of the outermost testset: Xoshiro(0xdb2fa90498613fdf, 0x48d73dc42d195740, 0x8c49bc52dc8a77ea, 0x1911b814c02405e8, 0x22a21880af5dc689) ERROR: LoadError: Some tests did not pass: 4554 passed, 16 failed, 96 errored, 0 broken. in expression starting at /home/pkgeval/.julia/packages/EnzymeTestUtils/fNmYk/test/runtests.jl:7 Testing failed after 1794.95s ERROR: LoadError: Package EnzymeTestUtils errored during testing Stacktrace: [1] pkgerror(msg::String) @ Pkg.Types /opt/julia/share/julia/stdlib/v1.12/Pkg/src/Types.jl:68 [2] test(ctx::Pkg.Types.Context, pkgs::Vector{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.12/Pkg/src/Operations.jl:2538 [3] test @ /opt/julia/share/julia/stdlib/v1.12/Pkg/src/Operations.jl:2387 [inlined] [4] test(ctx::Pkg.Types.Context, pkgs::Vector{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.12/Pkg/src/API.jl:552 [5] test(pkgs::Vector{PackageSpec}; io::IOContext{IO}, kwargs::@Kwargs{julia_args::Cmd}) @ Pkg.API /opt/julia/share/julia/stdlib/v1.12/Pkg/src/API.jl:169 [6] test(pkgs::Vector{String}; kwargs::@Kwargs{julia_args::Cmd}) @ Pkg.API /opt/julia/share/julia/stdlib/v1.12/Pkg/src/API.jl:157 [7] test @ /opt/julia/share/julia/stdlib/v1.12/Pkg/src/API.jl:157 [inlined] [8] #test#81 @ /opt/julia/share/julia/stdlib/v1.12/Pkg/src/API.jl:156 [inlined] [9] top-level scope @ /PkgEval.jl/scripts/evaluate.jl:223 [10] include(mod::Module, _path::String) @ Base ./Base.jl:306 [11] exec_options(opts::Base.JLOptions) @ Base ./client.jl:317 [12] _start() @ Base ./client.jl:550 in expression starting at /PkgEval.jl/scripts/evaluate.jl:214 PkgEval failed after 2268.84s: package tests unexpectedly errored