Package evaluation of StochasticAD on Julia 1.11.4 (a71dd056e0*) started at 2025-04-08T14:49:49.138 ################################################################################ # Set-up # Installing PkgEval dependencies (TestEnv)... Set-up completed after 8.77s ################################################################################ # Installation # Installing StochasticAD... Resolving package versions... Updating `~/.julia/environments/v1.11/Project.toml` [e4facb34] + StochasticAD v0.1.26 Updating `~/.julia/environments/v1.11/Manifest.toml` [79e6a3ab] + Adapt v4.3.0 [66dad0bd] + AliasTables v1.1.3 [082447d4] + ChainRules v1.72.3 [d360d2e6] + ChainRulesCore v1.25.1 [f51149dc] + ChainRulesOverloadGeneration v0.1.4 [bbf7d656] + CommonSubexpressions v0.3.1 [34da2185] + Compat v4.16.0 [187b0558] + ConstructionBase v1.5.8 [9a962f9c] + DataAPI v1.16.0 [864edb3b] + DataStructures v0.18.22 [e2d170a0] + DataValueInterfaces v1.0.0 ⌅ [85a47980] + Dictionaries v0.3.29 [163ba53b] + DiffResults v1.1.0 [b552c78f] + DiffRules v1.15.1 [31c24e10] + Distributions v0.25.118 [ced4e74d] + DistributionsAD v0.6.58 [ffbed154] + DocStringExtensions v0.9.4 [e2ba6199] + ExprTools v0.1.10 [1a297f60] + FillArrays v1.13.0 ⌅ [f6369f11] + ForwardDiff v0.10.38 ⌅ [d9f16b24] + Functors v0.4.12 [46192b85] + GPUArraysCore v0.2.0 [34004b35] + HypergeometricFunctions v0.3.28 [313cdc1a] + Indexing v1.1.1 [92d709cd] + IrrationalConstants v0.2.4 [82899510] + IteratorInterfaceExtensions v1.0.0 [692b3bcd] + JLLWrappers v1.7.0 [2ab3a3ac] + LogExpFunctions v0.3.29 [1914dd2f] + MacroTools v0.5.15 [e1d29d7a] + Missings v1.2.0 [77ba4419] + NaNMath v1.1.3 [bac558e1] + OrderedCollections v1.8.0 [90014a1f] + PDMats v0.11.33 ⌅ [aea7be01] + PrecompileTools v1.2.1 [21216c6a] + Preferences v1.4.3 [43287f4e] + PtrArrays v1.3.0 [1fd47b50] + QuadGK v2.11.2 [c1ae055f] + RealDot v0.1.0 [189a3867] + Reexport v1.2.2 [ae029012] + Requires v1.3.1 [79098fc4] + Rmath v0.8.0 [a2af1166] + SortingAlgorithms v1.2.1 [dc90abb0] + SparseInverseSubset v0.1.2 [276daf66] + SpecialFunctions v2.5.0 [90137ffa] + StaticArrays v1.9.13 [1e83bf80] + StaticArraysCore v1.4.3 [10745b16] + Statistics v1.11.1 [82ae8749] + StatsAPI v1.7.0 [2913bbd2] + StatsBase v0.34.4 [4c63d2b9] + StatsFuns v1.4.0 [e4facb34] + StochasticAD v0.1.26 [09ab397b] + StructArrays v0.7.1 [3783bdb8] + TableTraits v1.0.1 [bd369af6] + Tables v1.12.0 [700de1a5] + ZygoteRules v0.2.7 [efe28fd5] + OpenSpecFun_jll v0.5.6+0 [f50d1b31] + Rmath_jll v0.5.1+0 [56f22d72] + Artifacts v1.11.0 [2a0f44e3] + Base64 v1.11.0 [ade2ca70] + Dates v1.11.0 [8ba89e20] + Distributed v1.11.0 [b77e0a4c] + InteractiveUtils v1.11.0 [8f399da3] + Libdl v1.11.0 [37e2e46d] + LinearAlgebra v1.11.0 [d6f4376e] + Markdown v1.11.0 [de0858da] + Printf v1.11.0 [9a3f8284] + Random v1.11.0 [ea8e919c] + SHA v0.7.0 [9e88b42a] + Serialization v1.11.0 [6462fe0b] + Sockets v1.11.0 [2f01184e] + SparseArrays v1.11.0 [4607b0f0] + SuiteSparse [fa267f1f] + TOML v1.0.3 [cf7118a7] + UUIDs v1.11.0 [4ec0a83e] + Unicode v1.11.0 [e66e0078] + CompilerSupportLibraries_jll v1.1.1+0 [4536629a] + OpenBLAS_jll v0.3.27+1 [05823500] + OpenLibm_jll v0.8.5+0 [bea87d4a] + SuiteSparse_jll v7.7.0+0 [8e850b90] + libblastrampoline_jll v5.11.0+0 Info Packages marked with ⌅ have new versions available but compatibility constraints restrict them from upgrading. To see why use `status --outdated -m` Installation completed after 4.38s ################################################################################ # Precompilation # Precompiling PkgEval dependencies... Precompiling package dependencies... Precompilation completed after 64.62s ################################################################################ # Testing # Testing StochasticAD Status `/tmp/jl_fmytaq/Project.toml` [d360d2e6] ChainRulesCore v1.25.1 [f51149dc] ChainRulesOverloadGeneration v0.1.4 ⌅ [85a47980] Dictionaries v0.3.29 [163ba53b] DiffResults v1.1.0 [31c24e10] Distributions v0.25.118 [ced4e74d] DistributionsAD v0.6.58 [e2ba6199] ExprTools v0.1.10 ⌅ [f6369f11] ForwardDiff v0.10.38 ⌅ [d9f16b24] Functors v0.4.12 [43dcc890] GaussianDistributions v0.5.2 [eff96d63] Measurements v2.12.0 [6fe1bfb0] OffsetArrays v1.16.0 [1bc83da4] SafeTestsets v0.1.0 [90137ffa] StaticArrays v1.9.13 [10745b16] Statistics v1.11.1 [2913bbd2] StatsBase v0.34.4 [e4facb34] StochasticAD v0.1.26 [3a884ed6] UnPack v1.0.2 [e88e6eb3] Zygote v0.7.6 [37e2e46d] LinearAlgebra v1.11.0 [44cfe95a] Pkg v1.11.0 [de0858da] Printf v1.11.0 [9a3f8284] Random v1.11.0 [8dfed614] Test v1.11.0 Status `/tmp/jl_fmytaq/Manifest.toml` [621f4979] AbstractFFTs v1.5.0 [79e6a3ab] Adapt v4.3.0 [66dad0bd] AliasTables v1.1.3 [49dc2e85] Calculus v0.5.2 [082447d4] ChainRules v1.72.3 [d360d2e6] ChainRulesCore v1.25.1 [f51149dc] ChainRulesOverloadGeneration v0.1.4 [bbf7d656] CommonSubexpressions v0.3.1 [34da2185] Compat v4.16.0 [187b0558] ConstructionBase v1.5.8 [9a962f9c] DataAPI v1.16.0 [864edb3b] DataStructures v0.18.22 [e2d170a0] DataValueInterfaces v1.0.0 ⌅ [85a47980] Dictionaries v0.3.29 [163ba53b] DiffResults v1.1.0 [b552c78f] DiffRules v1.15.1 [31c24e10] Distributions v0.25.118 [ced4e74d] DistributionsAD v0.6.58 [ffbed154] DocStringExtensions v0.9.4 [e2ba6199] ExprTools v0.1.10 [1a297f60] FillArrays v1.13.0 ⌅ [f6369f11] ForwardDiff v0.10.38 ⌅ [d9f16b24] Functors v0.4.12 [46192b85] GPUArraysCore v0.2.0 [43dcc890] GaussianDistributions v0.5.2 [34004b35] HypergeometricFunctions v0.3.28 [7869d1d1] IRTools v0.4.14 [313cdc1a] Indexing v1.1.1 [92d709cd] IrrationalConstants v0.2.4 [82899510] IteratorInterfaceExtensions v1.0.0 [692b3bcd] JLLWrappers v1.7.0 [2ab3a3ac] LogExpFunctions v0.3.29 [1914dd2f] MacroTools v0.5.15 [eff96d63] Measurements v2.12.0 [e1d29d7a] Missings v1.2.0 [77ba4419] NaNMath v1.1.3 [6fe1bfb0] OffsetArrays v1.16.0 [bac558e1] OrderedCollections v1.8.0 [90014a1f] PDMats v0.11.33 ⌅ [aea7be01] PrecompileTools v1.2.1 [21216c6a] Preferences v1.4.3 [43287f4e] PtrArrays v1.3.0 [1fd47b50] QuadGK v2.11.2 [c1ae055f] RealDot v0.1.0 [189a3867] Reexport v1.2.2 [ae029012] Requires v1.3.1 [79098fc4] Rmath v0.8.0 [1bc83da4] SafeTestsets v0.1.0 [a2af1166] SortingAlgorithms v1.2.1 [dc90abb0] SparseInverseSubset v0.1.2 [276daf66] SpecialFunctions v2.5.0 [90137ffa] StaticArrays v1.9.13 [1e83bf80] StaticArraysCore v1.4.3 [10745b16] Statistics v1.11.1 [82ae8749] StatsAPI v1.7.0 [2913bbd2] StatsBase v0.34.4 [4c63d2b9] StatsFuns v1.4.0 [e4facb34] StochasticAD v0.1.26 [09ab397b] StructArrays v0.7.1 [3783bdb8] TableTraits v1.0.1 [bd369af6] Tables v1.12.0 [3a884ed6] UnPack v1.0.2 [e88e6eb3] Zygote v0.7.6 [700de1a5] ZygoteRules v0.2.7 [efe28fd5] OpenSpecFun_jll v0.5.6+0 [f50d1b31] Rmath_jll v0.5.1+0 [0dad84c5] ArgTools v1.1.2 [56f22d72] Artifacts v1.11.0 [2a0f44e3] Base64 v1.11.0 [ade2ca70] Dates v1.11.0 [8ba89e20] Distributed v1.11.0 [f43a241f] Downloads v1.6.0 [7b1f6079] FileWatching v1.11.0 [b77e0a4c] InteractiveUtils v1.11.0 [b27032c2] LibCURL v0.6.4 [76f85450] LibGit2 v1.11.0 [8f399da3] Libdl v1.11.0 [37e2e46d] LinearAlgebra v1.11.0 [56ddb016] Logging v1.11.0 [d6f4376e] Markdown v1.11.0 [ca575930] NetworkOptions v1.2.0 [44cfe95a] Pkg v1.11.0 [de0858da] Printf v1.11.0 [9a3f8284] Random v1.11.0 [ea8e919c] SHA v0.7.0 [9e88b42a] Serialization v1.11.0 [6462fe0b] Sockets v1.11.0 [2f01184e] SparseArrays v1.11.0 [4607b0f0] SuiteSparse [fa267f1f] TOML v1.0.3 [a4e569a6] Tar v1.10.0 [8dfed614] Test v1.11.0 [cf7118a7] UUIDs v1.11.0 [4ec0a83e] Unicode v1.11.0 [e66e0078] CompilerSupportLibraries_jll v1.1.1+0 [deac9b47] LibCURL_jll v8.6.0+0 [e37daf67] LibGit2_jll v1.7.2+0 [29816b5a] LibSSH2_jll v1.11.0+1 [c8ffd9c3] MbedTLS_jll v2.28.6+0 [14a3606d] MozillaCACerts_jll v2023.12.12 [4536629a] OpenBLAS_jll v0.3.27+1 [05823500] OpenLibm_jll v0.8.5+0 [bea87d4a] SuiteSparse_jll v7.7.0+0 [83775a58] Zlib_jll v1.2.13+1 [8e850b90] libblastrampoline_jll v5.11.0+0 [8e850ede] nghttp2_jll v1.59.0+0 [3f19e933] p7zip_jll v17.4.0+2 Info Packages marked with ⌅ have new versions available but compatibility constraints restrict them from upgrading. Testing Running tests... Precompiling Zygote... 57947.3 ms ✓ Zygote 1 dependency successfully precompiled in 59 seconds. 64 already precompiled. Test Summary: | Pass Broken Total Time Triples | 1083 13 1096 15m26.7s 926.863813 seconds (1.44 G allocations: 61.721 GiB, 3.72% gc time, 59.46% compilation time: <1% of which was recompilation) Precompiling ForwardDiffStaticArraysExt... 2129.2 ms ✓ ForwardDiff → ForwardDiffStaticArraysExt 1 dependency successfully precompiled in 2 seconds. 22 already precompiled. Test Summary: | Pass Total Time Game of life | 1 1 50.6s 50.563866 seconds (703.75 M allocations: 22.134 GiB, 7.88% gc time, 12.61% compilation time: <1% of which was recompilation) Test Summary: | Pass Total Time Random walk | 1 1 18.9s 18.952973 seconds (37.86 M allocations: 1.386 GiB, 1.83% gc time, 91.07% compilation time) Precompiling GaussianDistributions... 3619.1 ms ✓ GaussianDistributions 1 dependency successfully precompiled in 5 seconds. 46 already precompiled. ┌ Warning: `ignore(f)` is deprecated, use `ChainRulesCore.ignore_derivatives(f)` instead. │ caller = resample(m::Int64, X::Vector{Vector{ForwardDiff.Dual{ForwardDiff.Tag{Main.var"##Resampling#233".ParticleFilterCore.var"#17#18"{Int64, Main.var"##Resampling#233".ParticleFilterCore.ParticleFilter{Int64, Main.var"##Resampling#233".ParticleFilterCore.StochasticModel{Int64, typeof(Main.var"##Resampling#233".start), typeof(Main.var"##Resampling#233".dyn), typeof(Main.var"##Resampling#233".obs)}, Vector{Vector{Float64}}, typeof(Main.var"##Resampling#233".ParticleFilterCore.sample_stratified)}}, Float64}, Float64, 1}}}, W::Vector{ForwardDiff.Dual{ForwardDiff.Tag{Main.var"##Resampling#233".ParticleFilterCore.var"#17#18"{Int64, Main.var"##Resampling#233".ParticleFilterCore.ParticleFilter{Int64, Main.var"##Resampling#233".ParticleFilterCore.StochasticModel{Int64, typeof(Main.var"##Resampling#233".start), typeof(Main.var"##Resampling#233".dyn), typeof(Main.var"##Resampling#233".obs)}, Vector{Vector{Float64}}, typeof(Main.var"##Resampling#233".ParticleFilterCore.sample_stratified)}}, Float64}, Float64, 1}}, ω::ForwardDiff.Dual{ForwardDiff.Tag{Main.var"##Resampling#233".ParticleFilterCore.var"#17#18"{Int64, Main.var"##Resampling#233".ParticleFilterCore.ParticleFilter{Int64, Main.var"##Resampling#233".ParticleFilterCore.StochasticModel{Int64, typeof(Main.var"##Resampling#233".start), typeof(Main.var"##Resampling#233".dyn), typeof(Main.var"##Resampling#233".obs)}, Vector{Vector{Float64}}, typeof(Main.var"##Resampling#233".ParticleFilterCore.sample_stratified)}}, Float64}, Float64, 1}, sample_strategy::typeof(Main.var"##Resampling#233".ParticleFilterCore.sample_stratified), use_new_weight::Bool) at core.jl:170 └ @ Main.var"##Resampling#233".ParticleFilterCore ~/.julia/packages/StochasticAD/YFSbJ/tutorials/particle_filter/core.jl:170 ┌ Warning: `ignore(f)` is deprecated, use `ChainRulesCore.ignore_derivatives(f)` instead. │ caller = adjoint at deprecated.jl:31 [inlined] └ @ Core ~/.julia/packages/Zygote/HdT4O/src/deprecated.jl:31 forward-mode and reverse-mode AD: single run: Error During Test at /home/pkgeval/.julia/packages/StochasticAD/YFSbJ/test/resampling.jl:50 Got exception outside of a @test MethodError: Cannot `convert` an object of type Vector{Float64} to an object of type Union{ChainRulesCore.ZeroTangent, ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#553#558"{Vector{Float64}, Matrix{Float64}}}, ChainRules.var"#552#557"{Vector{Float64}, Matrix{Float64}}}} The function `convert` exists, but no method is defined for this combination of argument types. Closest candidates are: convert(::Type{T}, !Matched::T) where T @ Base Base.jl:126 Stacktrace: [1] setindex!(A::Vector{Union{ChainRulesCore.ZeroTangent, ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#553#558"{Vector{Float64}, Matrix{Float64}}}, ChainRules.var"#552#557"{Vector{Float64}, Matrix{Float64}}}}}, x::Vector{Float64}, i::Int64) @ Base ./array.jl:987 [2] setindex! @ ./subarray.jl:372 [inlined] [3] macro expansion @ ./broadcast.jl:973 [inlined] [4] macro expansion @ ./simdloop.jl:77 [inlined] [5] copyto! @ ./broadcast.jl:972 [inlined] [6] copyto! @ ./broadcast.jl:925 [inlined] [7] materialize! @ ./broadcast.jl:883 [inlined] [8] materialize! @ ./broadcast.jl:880 [inlined] [9] ∇getindex!(dx::Vector{Union{ChainRulesCore.ZeroTangent, ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#553#558"{Vector{Float64}, Matrix{Float64}}}, ChainRules.var"#552#557"{Vector{Float64}, Matrix{Float64}}}}}, dy::Vector{ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#553#558"{Vector{Float64}, Matrix{Float64}}}, ChainRules.var"#552#557"{Vector{Float64}, Matrix{Float64}}}}, inds::Vector{Int64}) @ ChainRules ~/.julia/packages/ChainRules/Q16hj/src/rulesets/Base/indexing.jl:151 [10] ∇getindex(x::Vector{Vector{Float64}}, dy::Vector{ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#553#558"{Vector{Float64}, Matrix{Float64}}}, ChainRules.var"#552#557"{Vector{Float64}, Matrix{Float64}}}}, inds::Vector{Int64}) @ ChainRules ~/.julia/packages/ChainRules/Q16hj/src/rulesets/Base/indexing.jl:89 [11] #672 @ ~/.julia/packages/ChainRules/Q16hj/src/rulesets/Base/indexing.jl:69 [inlined] [12] unthunk @ ~/.julia/packages/ChainRulesCore/U6wNx/src/tangent_types/thunks.jl:213 [inlined] [13] unthunk @ ~/.julia/packages/ChainRulesCore/U6wNx/src/tangent_types/thunks.jl:252 [inlined] [14] accum(x::ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#672#674"{Vector{Vector{Float64}}, Vector{ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#553#558"{Vector{Float64}, Matrix{Float64}}}, ChainRules.var"#552#557"{Vector{Float64}, Matrix{Float64}}}}, Tuple{Vector{Int64}}}}, ChainRules.var"#671#673"{Vector{Vector{Float64}}, Vector{ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#553#558"{Vector{Float64}, Matrix{Float64}}}, ChainRules.var"#552#557"{Vector{Float64}, Matrix{Float64}}}}, Tuple{Vector{Int64}}}}, y::Vector{Vector{Float64}}) @ Zygote ~/.julia/packages/Zygote/HdT4O/src/lib/lib.jl:39 [15] (::Zygote.var"#back#316"{:contents, Zygote.Context{false}, Core.Box, Vector{Vector{Float64}}})(Δ::Vector{Vector{Float64}}) @ Zygote ~/.julia/packages/Zygote/HdT4O/src/lib/lib.jl:232 [16] (::Zygote.var"#2200#back#317"{Zygote.var"#back#316"{:contents, Zygote.Context{false}, Core.Box, Vector{Vector{Float64}}}})(Δ::Vector{Vector{Float64}}) @ Zygote ~/.julia/packages/ZygoteRules/CkVIK/src/adjoint.jl:72 [17] #_#5 @ ~/.julia/packages/StochasticAD/YFSbJ/tutorials/particle_filter/core.jl:209 [inlined] [18] (::Zygote.Pullback{Tuple{Main.var"##Resampling#233".ParticleFilterCore.var"##_#5", Bool, Bool, Int64, Main.var"##Resampling#233".ParticleFilterCore.ParticleFilter{Int64, Main.var"##Resampling#233".ParticleFilterCore.StochasticModel{Int64, typeof(Main.var"##Resampling#233".start), typeof(Main.var"##Resampling#233".dyn), typeof(Main.var"##Resampling#233".obs)}, Vector{Vector{Float64}}, typeof(Main.var"##Resampling#233".ParticleFilterCore.sample_stratified)}, Vector{Float64}}, Any})(Δ::Tuple{Nothing, ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Vector{Float64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}}}) @ Zygote ~/.julia/packages/Zygote/HdT4O/src/compiler/interface2.jl:0 [19] ParticleFilter @ ~/.julia/packages/StochasticAD/YFSbJ/tutorials/particle_filter/core.jl:198 [inlined] [20] (::Zygote.Pullback{Tuple{typeof(Core.kwcall), @NamedTuple{store_path::Bool, use_new_weight::Bool, s::Int64}, Main.var"##Resampling#233".ParticleFilterCore.ParticleFilter{Int64, Main.var"##Resampling#233".ParticleFilterCore.StochasticModel{Int64, typeof(Main.var"##Resampling#233".start), typeof(Main.var"##Resampling#233".dyn), typeof(Main.var"##Resampling#233".obs)}, Vector{Vector{Float64}}, typeof(Main.var"##Resampling#233".ParticleFilterCore.sample_stratified)}, Vector{Float64}}, Any})(Δ::Tuple{Nothing, ChainRulesCore.InplaceableThunk{ChainRulesCore.Thunk{ChainRules.var"#719#722"{Float64, Colon, Vector{Float64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}}}}}}, ChainRules.var"#718#721"{Float64, Colon}}}) @ Zygote ~/.julia/packages/Zygote/HdT4O/src/compiler/interface2.jl:0 [21] log_likelihood @ ~/.julia/packages/StochasticAD/YFSbJ/tutorials/particle_filter/core.jl:269 [inlined] [22] (::Zygote.Pullback{Tuple{typeof(Main.var"##Resampling#233".ParticleFilterCore.log_likelihood), Main.var"##Resampling#233".ParticleFilterCore.ParticleFilter{Int64, Main.var"##Resampling#233".ParticleFilterCore.StochasticModel{Int64, typeof(Main.var"##Resampling#233".start), typeof(Main.var"##Resampling#233".dyn), typeof(Main.var"##Resampling#233".obs)}, Vector{Vector{Float64}}, typeof(Main.var"##Resampling#233".ParticleFilterCore.sample_stratified)}, Vector{Float64}, Bool, Int64}, Tuple{Zygote.var"#back#259"{Zygote.var"#2049#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, Vector{Vector{Float64}}}}}, Zygote.var"#2049#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, Vector{Vector{Float64}}}}, Zygote.var"#back#260"{Zygote.var"#2049#back#227"{Zygote.var"#back#225"{2, 2, Zygote.Context{false}, Vector{Float64}}}}, Zygote.Pullback{Tuple{typeof(Core.kwcall), @NamedTuple{store_path::Bool, use_new_weight::Bool, s::Int64}, Main.var"##Resampling#233".ParticleFilterCore.ParticleFilter{Int64, Main.var"##Resampling#233".ParticleFilterCore.StochasticModel{Int64, typeof(Main.var"##Resampling#233".start), typeof(Main.var"##Resampling#233".dyn), typeof(Main.var"##Resampling#233".obs)}, Vector{Vector{Float64}}, typeof(Main.var"##Resampling#233".ParticleFilterCore.sample_stratified)}, Vector{Float64}}, Any}, Zygote.ZBack{ChainRules.var"#log_pullback#401"{Float64, ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}}}, Zygote.var"#2049#back#227"{Zygote.var"#back#225"{2, 2, Zygote.Context{false}, Int64}}, Zygote.var"#2049#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, Vector{Float64}}}, Zygote.Pullback{Tuple{Type{NamedTuple{(:store_path, :use_new_weight, :s)}}, Tuple{Bool, Bool, Int64}}, Tuple{Zygote.var"#2240#back#329"{Zygote.Jnew{@NamedTuple{store_path::Bool, use_new_weight::Bool, s::Int64}, Nothing, true}}}}, Zygote.var"#2033#back#218"{typeof(identity)}, Zygote.ZBack{ChainRules.var"#sum_pullback#720"{Colon, Vector{Float64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}}}}}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/HdT4O/src/compiler/interface2.jl:0 [23] #20 @ ~/.julia/packages/StochasticAD/YFSbJ/tutorials/particle_filter/core.jl:293 [inlined] [24] (::Zygote.Pullback{Tuple{Main.var"##Resampling#233".ParticleFilterCore.var"#20#21"{Int64, Main.var"##Resampling#233".ParticleFilterCore.ParticleFilter{Int64, Main.var"##Resampling#233".ParticleFilterCore.StochasticModel{Int64, typeof(Main.var"##Resampling#233".start), typeof(Main.var"##Resampling#233".dyn), typeof(Main.var"##Resampling#233".obs)}, Vector{Vector{Float64}}, typeof(Main.var"##Resampling#233".ParticleFilterCore.sample_stratified)}}, Vector{Float64}}, Tuple{Zygote.Pullback{Tuple{typeof(Main.var"##Resampling#233".ParticleFilterCore.log_likelihood), Main.var"##Resampling#233".ParticleFilterCore.ParticleFilter{Int64, Main.var"##Resampling#233".ParticleFilterCore.StochasticModel{Int64, typeof(Main.var"##Resampling#233".start), typeof(Main.var"##Resampling#233".dyn), typeof(Main.var"##Resampling#233".obs)}, Vector{Vector{Float64}}, typeof(Main.var"##Resampling#233".ParticleFilterCore.sample_stratified)}, Vector{Float64}, Bool, Int64}, Tuple{Zygote.var"#back#259"{Zygote.var"#2049#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, Vector{Vector{Float64}}}}}, Zygote.var"#2049#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, Vector{Vector{Float64}}}}, Zygote.var"#back#260"{Zygote.var"#2049#back#227"{Zygote.var"#back#225"{2, 2, Zygote.Context{false}, Vector{Float64}}}}, Zygote.Pullback{Tuple{typeof(Core.kwcall), @NamedTuple{store_path::Bool, use_new_weight::Bool, s::Int64}, Main.var"##Resampling#233".ParticleFilterCore.ParticleFilter{Int64, Main.var"##Resampling#233".ParticleFilterCore.StochasticModel{Int64, typeof(Main.var"##Resampling#233".start), typeof(Main.var"##Resampling#233".dyn), typeof(Main.var"##Resampling#233".obs)}, Vector{Vector{Float64}}, typeof(Main.var"##Resampling#233".ParticleFilterCore.sample_stratified)}, Vector{Float64}}, Any}, Zygote.ZBack{ChainRules.var"#log_pullback#401"{Float64, ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}}}, Zygote.var"#2049#back#227"{Zygote.var"#back#225"{2, 2, Zygote.Context{false}, Int64}}, Zygote.var"#2049#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, Vector{Float64}}}, Zygote.Pullback{Tuple{Type{NamedTuple{(:store_path, :use_new_weight, :s)}}, Tuple{Bool, Bool, Int64}}, Tuple{Zygote.var"#2240#back#329"{Zygote.Jnew{@NamedTuple{store_path::Bool, use_new_weight::Bool, s::Int64}, Nothing, true}}}}, Zygote.var"#2033#back#218"{typeof(identity)}, Zygote.ZBack{ChainRules.var"#sum_pullback#720"{Colon, Vector{Float64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}}}}}}}}, Zygote.var"#2200#back#317"{Zygote.var"#back#316"{:F, Zygote.Context{false}, Main.var"##Resampling#233".ParticleFilterCore.var"#20#21"{Int64, Main.var"##Resampling#233".ParticleFilterCore.ParticleFilter{Int64, Main.var"##Resampling#233".ParticleFilterCore.StochasticModel{Int64, typeof(Main.var"##Resampling#233".start), typeof(Main.var"##Resampling#233".dyn), typeof(Main.var"##Resampling#233".obs)}, Vector{Vector{Float64}}, typeof(Main.var"##Resampling#233".ParticleFilterCore.sample_stratified)}}, Main.var"##Resampling#233".ParticleFilterCore.ParticleFilter{Int64, Main.var"##Resampling#233".ParticleFilterCore.StochasticModel{Int64, typeof(Main.var"##Resampling#233".start), typeof(Main.var"##Resampling#233".dyn), typeof(Main.var"##Resampling#233".obs)}, Vector{Vector{Float64}}, typeof(Main.var"##Resampling#233".ParticleFilterCore.sample_stratified)}}}, Zygote.var"#2200#back#317"{Zygote.var"#back#316"{:s, Zygote.Context{false}, Main.var"##Resampling#233".ParticleFilterCore.var"#20#21"{Int64, Main.var"##Resampling#233".ParticleFilterCore.ParticleFilter{Int64, Main.var"##Resampling#233".ParticleFilterCore.StochasticModel{Int64, typeof(Main.var"##Resampling#233".start), typeof(Main.var"##Resampling#233".dyn), typeof(Main.var"##Resampling#233".obs)}, Vector{Vector{Float64}}, typeof(Main.var"##Resampling#233".ParticleFilterCore.sample_stratified)}}, Int64}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/HdT4O/src/compiler/interface2.jl:0 [25] (::Zygote.var"#88#89"{Zygote.Pullback{Tuple{Main.var"##Resampling#233".ParticleFilterCore.var"#20#21"{Int64, Main.var"##Resampling#233".ParticleFilterCore.ParticleFilter{Int64, Main.var"##Resampling#233".ParticleFilterCore.StochasticModel{Int64, typeof(Main.var"##Resampling#233".start), typeof(Main.var"##Resampling#233".dyn), typeof(Main.var"##Resampling#233".obs)}, Vector{Vector{Float64}}, typeof(Main.var"##Resampling#233".ParticleFilterCore.sample_stratified)}}, Vector{Float64}}, Tuple{Zygote.Pullback{Tuple{typeof(Main.var"##Resampling#233".ParticleFilterCore.log_likelihood), Main.var"##Resampling#233".ParticleFilterCore.ParticleFilter{Int64, Main.var"##Resampling#233".ParticleFilterCore.StochasticModel{Int64, typeof(Main.var"##Resampling#233".start), typeof(Main.var"##Resampling#233".dyn), typeof(Main.var"##Resampling#233".obs)}, Vector{Vector{Float64}}, typeof(Main.var"##Resampling#233".ParticleFilterCore.sample_stratified)}, Vector{Float64}, Bool, Int64}, Tuple{Zygote.var"#back#259"{Zygote.var"#2049#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, Vector{Vector{Float64}}}}}, Zygote.var"#2049#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, Vector{Vector{Float64}}}}, Zygote.var"#back#260"{Zygote.var"#2049#back#227"{Zygote.var"#back#225"{2, 2, Zygote.Context{false}, Vector{Float64}}}}, Zygote.Pullback{Tuple{typeof(Core.kwcall), @NamedTuple{store_path::Bool, use_new_weight::Bool, s::Int64}, Main.var"##Resampling#233".ParticleFilterCore.ParticleFilter{Int64, Main.var"##Resampling#233".ParticleFilterCore.StochasticModel{Int64, typeof(Main.var"##Resampling#233".start), typeof(Main.var"##Resampling#233".dyn), typeof(Main.var"##Resampling#233".obs)}, Vector{Vector{Float64}}, typeof(Main.var"##Resampling#233".ParticleFilterCore.sample_stratified)}, Vector{Float64}}, Any}, Zygote.ZBack{ChainRules.var"#log_pullback#401"{Float64, ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}}}, Zygote.var"#2049#back#227"{Zygote.var"#back#225"{2, 2, Zygote.Context{false}, Int64}}, Zygote.var"#2049#back#227"{Zygote.var"#back#225"{2, 1, Zygote.Context{false}, Vector{Float64}}}, Zygote.Pullback{Tuple{Type{NamedTuple{(:store_path, :use_new_weight, :s)}}, Tuple{Bool, Bool, Int64}}, Tuple{Zygote.var"#2240#back#329"{Zygote.Jnew{@NamedTuple{store_path::Bool, use_new_weight::Bool, s::Int64}, Nothing, true}}}}, Zygote.var"#2033#back#218"{typeof(identity)}, Zygote.ZBack{ChainRules.var"#sum_pullback#720"{Colon, Vector{Float64}, ChainRulesCore.ProjectTo{AbstractArray, @NamedTuple{element::ChainRulesCore.ProjectTo{Float64, @NamedTuple{}}, axes::Tuple{Base.OneTo{Int64}}}}}}}}, Zygote.var"#2200#back#317"{Zygote.var"#back#316"{:F, Zygote.Context{false}, Main.var"##Resampling#233".ParticleFilterCore.var"#20#21"{Int64, Main.var"##Resampling#233".ParticleFilterCore.ParticleFilter{Int64, Main.var"##Resampling#233".ParticleFilterCore.StochasticModel{Int64, typeof(Main.var"##Resampling#233".start), typeof(Main.var"##Resampling#233".dyn), typeof(Main.var"##Resampling#233".obs)}, Vector{Vector{Float64}}, typeof(Main.var"##Resampling#233".ParticleFilterCore.sample_stratified)}}, Main.var"##Resampling#233".ParticleFilterCore.ParticleFilter{Int64, Main.var"##Resampling#233".ParticleFilterCore.StochasticModel{Int64, typeof(Main.var"##Resampling#233".start), typeof(Main.var"##Resampling#233".dyn), typeof(Main.var"##Resampling#233".obs)}, Vector{Vector{Float64}}, typeof(Main.var"##Resampling#233".ParticleFilterCore.sample_stratified)}}}, Zygote.var"#2200#back#317"{Zygote.var"#back#316"{:s, Zygote.Context{false}, Main.var"##Resampling#233".ParticleFilterCore.var"#20#21"{Int64, Main.var"##Resampling#233".ParticleFilterCore.ParticleFilter{Int64, Main.var"##Resampling#233".ParticleFilterCore.StochasticModel{Int64, typeof(Main.var"##Resampling#233".start), typeof(Main.var"##Resampling#233".dyn), typeof(Main.var"##Resampling#233".obs)}, Vector{Vector{Float64}}, typeof(Main.var"##Resampling#233".ParticleFilterCore.sample_stratified)}}, Int64}}}}})(Δ::Float64) @ Zygote ~/.julia/packages/Zygote/HdT4O/src/compiler/interface.jl:97 [26] gradient(f::Function, args::Vector{Float64}) @ Zygote ~/.julia/packages/Zygote/HdT4O/src/compiler/interface.jl:154 [27] #back_grad#19 @ ~/.julia/packages/StochasticAD/YFSbJ/tutorials/particle_filter/core.jl:293 [inlined] [28] back_grad(θ::Vector{Float64}, F::Main.var"##Resampling#233".ParticleFilterCore.ParticleFilter{Int64, Main.var"##Resampling#233".ParticleFilterCore.StochasticModel{Int64, typeof(Main.var"##Resampling#233".start), typeof(Main.var"##Resampling#233".dyn), typeof(Main.var"##Resampling#233".obs)}, Vector{Vector{Float64}}, typeof(Main.var"##Resampling#233".ParticleFilterCore.sample_stratified)}) @ Main.var"##Resampling#233".ParticleFilterCore ~/.julia/packages/StochasticAD/YFSbJ/tutorials/particle_filter/core.jl:292 [29] macro expansion @ ~/.julia/packages/StochasticAD/YFSbJ/test/resampling.jl:54 [inlined] [30] macro expansion @ /opt/julia/share/julia/stdlib/v1.11/Test/src/Test.jl:1704 [inlined] [31] top-level scope @ ~/.julia/packages/StochasticAD/YFSbJ/test/resampling.jl:51 [32] include(mod::Module, _path::String) @ Base ./Base.jl:557 [33] include(x::String) @ Main.var"##Resampling#233" ~/.julia/packages/SafeTestsets/raUNr/src/SafeTestsets.jl:28 [34] macro expansion @ ~/.julia/packages/StochasticAD/YFSbJ/test/runtests.jl:22 [inlined] [35] macro expansion @ /opt/julia/share/julia/stdlib/v1.11/Test/src/Test.jl:1704 [inlined] [36] macro expansion @ ~/.julia/packages/StochasticAD/YFSbJ/test/runtests.jl:22 [inlined] [37] top-level scope @ ~/.julia/packages/SafeTestsets/raUNr/src/SafeTestsets.jl:30 [38] eval(m::Module, e::Any) @ Core ./boot.jl:430 [39] macro expansion @ ~/.julia/packages/SafeTestsets/raUNr/src/SafeTestsets.jl:28 [inlined] [40] macro expansion @ ./timing.jl:581 [inlined] [41] macro expansion @ ~/.julia/packages/StochasticAD/YFSbJ/test/runtests.jl:21 [inlined] [42] macro expansion @ ./timing.jl:581 [inlined] [43] top-level scope @ ~/.julia/packages/StochasticAD/YFSbJ/test/runtests.jl:315 [44] include(fname::String) @ Main ./sysimg.jl:38 [45] top-level scope @ none:6 [46] eval @ ./boot.jl:430 [inlined] [47] exec_options(opts::Base.JLOptions) @ Base ./client.jl:296 [48] _start() @ Base ./client.jl:531 ┌ Warning: `ignore(f)` is deprecated, use `ChainRulesCore.ignore_derivatives(f)` instead. │ caller = resample(m::Int64, X::Vector{Vector{Float64}}, W::Vector{Float64}, ω::Float64, sample_strategy::typeof(Main.var"##Resampling#233".ParticleFilterCore.sample_stratified), use_new_weight::Bool) at core.jl:170 └ @ Main.var"##Resampling#233".ParticleFilterCore ~/.julia/packages/StochasticAD/YFSbJ/tutorials/particle_filter/core.jl:170 AD and Finite Differences: Test Failed at /home/pkgeval/.julia/packages/StochasticAD/YFSbJ/test/resampling.jl:67 Expression: ≈(mean(grad_fd), mean(grad_fw), rtol = 0.05) Evaluated: -3.759166987295612 ≈ -4.02505204701486 (rtol=0.05) Stacktrace: [1] macro expansion @ /opt/julia/share/julia/stdlib/v1.11/Test/src/Test.jl:679 [inlined] [2] macro expansion @ ~/.julia/packages/StochasticAD/YFSbJ/test/resampling.jl:67 [inlined] [3] macro expansion @ /opt/julia/share/julia/stdlib/v1.11/Test/src/Test.jl:1704 [inlined] [4] top-level scope @ ~/.julia/packages/StochasticAD/YFSbJ/test/resampling.jl:59 Test Summary: | Pass Fail Error Total Time Resampling | 5 1 1 7 2m12.6s new weight | 5 5 0.3s forward-mode and reverse-mode AD: single run | 1 1 1m43.1s AD and Finite Differences | 1 1 19.5s ERROR: LoadError: Some tests did not pass: 5 passed, 1 failed, 1 errored, 0 broken. in expression starting at /home/pkgeval/.julia/packages/StochasticAD/YFSbJ/test/runtests.jl:10 Testing failed after 1139.37s ERROR: LoadError: Package StochasticAD errored during testing Stacktrace: [1] pkgerror(msg::String) @ Pkg.Types /opt/julia/share/julia/stdlib/v1.11/Pkg/src/Types.jl:68 [2] test(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; coverage::Bool, julia_args::Cmd, test_args::Cmd, test_fn::Nothing, force_latest_compatible_version::Bool, allow_earlier_backwards_compatible_versions::Bool, allow_reresolve::Bool) @ Pkg.Operations /opt/julia/share/julia/stdlib/v1.11/Pkg/src/Operations.jl:2124 [3] test @ /opt/julia/share/julia/stdlib/v1.11/Pkg/src/Operations.jl:2007 [inlined] [4] test(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; coverage::Bool, test_fn::Nothing, julia_args::Cmd, test_args::Cmd, force_latest_compatible_version::Bool, allow_earlier_backwards_compatible_versions::Bool, allow_reresolve::Bool, kwargs::@Kwargs{io::IOContext{IO}}) @ Pkg.API /opt/julia/share/julia/stdlib/v1.11/Pkg/src/API.jl:481 [5] test(pkgs::Vector{Pkg.Types.PackageSpec}; io::IOContext{IO}, kwargs::@Kwargs{julia_args::Cmd}) @ Pkg.API /opt/julia/share/julia/stdlib/v1.11/Pkg/src/API.jl:159 [6] test @ /opt/julia/share/julia/stdlib/v1.11/Pkg/src/API.jl:147 [inlined] [7] #test#74 @ /opt/julia/share/julia/stdlib/v1.11/Pkg/src/API.jl:146 [inlined] [8] top-level scope @ /PkgEval.jl/scripts/evaluate.jl:219 in expression starting at /PkgEval.jl/scripts/evaluate.jl:210 PkgEval failed after 1246.09s: package tests unexpectedly errored