Package evaluation of NiLang on Julia 1.12.0-DEV.2153 (83dcbd426d*) started at 2025-03-31T10:35:52.716 ################################################################################ # Set-up # Installing PkgEval dependencies (TestEnv)... Set-up completed after 9.5s ################################################################################ # Installation # Installing NiLang... Resolving package versions... Installed Reexport ─────────── v1.2.2 Installed LogarithmicNumbers ─ v1.4.0 Installed TupleTools ───────── v1.6.0 Installed Statistics ───────── v1.11.1 Installed FixedPointNumbers ── v0.8.5 Installed MLStyle ──────────── v0.4.17 Installed NiLangCore ───────── v0.10.7 Installed NiLang ───────────── v0.9.4 Updating `~/.julia/environments/v1.12/Project.toml` [ab4ef3a6] + NiLang v0.9.4 Updating `~/.julia/environments/v1.12/Manifest.toml` [53c48c17] + FixedPointNumbers v0.8.5 [aa2f6b4e] + LogarithmicNumbers v1.4.0 [d8e11817] + MLStyle v0.4.17 [ab4ef3a6] + NiLang v0.9.4 [575d3204] + NiLangCore v0.10.7 [189a3867] + Reexport v1.2.2 [10745b16] + Statistics v1.11.1 [9d95972d] + TupleTools v1.6.0 [56f22d72] + Artifacts v1.11.0 [8f399da3] + Libdl v1.11.0 [37e2e46d] + LinearAlgebra v1.12.0 [9a3f8284] + Random v1.11.0 [ea8e919c] + SHA v0.7.0 [9e88b42a] + Serialization v1.11.0 [2f01184e] + SparseArrays v1.12.0 [e66e0078] + CompilerSupportLibraries_jll v1.3.0+1 [4536629a] + OpenBLAS_jll v0.3.29+0 [bea87d4a] + SuiteSparse_jll v7.8.3+2 [8e850b90] + libblastrampoline_jll v5.12.0+0 Installation completed after 1.39s ################################################################################ # Precompilation # Precompiling PkgEval dependencies... Precompiling packages... 6886.9 ms ✓ TestEnv 1 dependency successfully precompiled in 9 seconds. 25 already precompiled. Precompiling package dependencies... Precompilation completed after 298.4s ################################################################################ # Testing # Testing NiLang Status `/tmp/jl_Mu6I5M/Project.toml` [31c24e10] Distributions v0.25.118 [26cc04aa] FiniteDifferences v0.12.32 [53c48c17] FixedPointNumbers v0.8.5 [aa2f6b4e] LogarithmicNumbers v1.4.0 [d8e11817] MLStyle v0.4.17 [ab4ef3a6] NiLang v0.9.4 [575d3204] NiLangCore v0.10.7 [189a3867] Reexport v1.2.2 [10745b16] Statistics v1.11.1 [9d95972d] TupleTools v1.6.0 [37e2e46d] LinearAlgebra v1.12.0 [9a3f8284] Random v1.11.0 [2f01184e] SparseArrays v1.12.0 [8dfed614] Test v1.11.0 Status `/tmp/jl_Mu6I5M/Manifest.toml` [66dad0bd] AliasTables v1.1.3 [d360d2e6] ChainRulesCore v1.25.1 [34da2185] Compat v4.16.0 [9a962f9c] DataAPI v1.16.0 [864edb3b] DataStructures v0.18.22 [31c24e10] Distributions v0.25.118 [ffbed154] DocStringExtensions v0.9.4 [1a297f60] FillArrays v1.13.0 [26cc04aa] FiniteDifferences v0.12.32 [53c48c17] FixedPointNumbers v0.8.5 [34004b35] HypergeometricFunctions v0.3.28 [92d709cd] IrrationalConstants v0.2.4 [692b3bcd] JLLWrappers v1.7.0 [2ab3a3ac] LogExpFunctions v0.3.29 [aa2f6b4e] LogarithmicNumbers v1.4.0 [d8e11817] MLStyle v0.4.17 [e1d29d7a] Missings v1.2.0 [ab4ef3a6] NiLang v0.9.4 [575d3204] NiLangCore v0.10.7 [bac558e1] OrderedCollections v1.8.0 [90014a1f] PDMats v0.11.33 [aea7be01] PrecompileTools v1.3.0 [21216c6a] Preferences v1.4.3 [43287f4e] PtrArrays v1.3.0 [1fd47b50] QuadGK v2.11.2 [189a3867] Reexport v1.2.2 [708f8203] Richardson v1.4.2 [79098fc4] Rmath v0.8.0 [a2af1166] SortingAlgorithms v1.2.1 [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.3.2 [9d95972d] TupleTools v1.6.0 [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 [b77e0a4c] InteractiveUtils v1.11.0 [ac6e5ff7] JuliaSyntaxHighlighting v1.12.0 [8f399da3] Libdl v1.11.0 [37e2e46d] LinearAlgebra v1.12.0 [56ddb016] Logging v1.11.0 [d6f4376e] Markdown v1.11.0 [de0858da] Printf v1.11.0 [9a3f8284] Random v1.11.0 [ea8e919c] SHA v0.7.0 [9e88b42a] Serialization v1.11.0 [2f01184e] SparseArrays v1.12.0 [f489334b] StyledStrings v1.11.0 [4607b0f0] SuiteSparse [fa267f1f] TOML v1.0.3 [8dfed614] Test v1.11.0 [cf7118a7] UUIDs v1.11.0 [4ec0a83e] Unicode v1.11.0 [e66e0078] CompilerSupportLibraries_jll v1.3.0+1 [4536629a] OpenBLAS_jll v0.3.29+0 [05823500] OpenLibm_jll v0.8.5+0 [bea87d4a] SuiteSparse_jll v7.8.3+2 [8e850b90] libblastrampoline_jll v5.12.0+0 Testing Running tests... Test Summary: | Pass Total Time vars.jl | 2 2 1.6s Test Summary: | Pass Total Time utils.jl | 1 1 27.5s 3 + 2im.im Test Summary: | Pass Total Time wrappers.jl | 19 19 2.9s Test Summary: | Pass Total Time instructs.jl | 44 44 3.7s Test Summary: | Pass Total Time complex.jl | 17 17 3.0s Test Summary: | Pass Total Time ulog.jl | 10 10 0.7s Test Summary: | Pass Total Time macros.jl | 8 8 4.0s Test Summary: | Pass Total Time autobcast.jl | 23 23 0.9s deallocate fail `x.g → zero(x.x)` WARNING: Detected access to binding `Main.ABC` in a world prior to its definition world. Julia 1.12 has introduced more strict world age semantics for global bindings. !!! This code may malfunction under Revise. !!! This code will error in future versions of Julia. Hint: Add an appropriate `invokelatest` around the access to this binding. WARNING: Detected access to binding `Main.EFG` in a world prior to its definition world. Julia 1.12 has introduced more strict world age semantics for global bindings. !!! This code may malfunction under Revise. !!! This code will error in future versions of Julia. Hint: Add an appropriate `invokelatest` around the access to this binding. NoGrad{Float64}(0.5) ngs = [0.9999999999621422, 2.4999999999941735, -2.0000000000131024] gs = (1.0, 2.5, -2.0) ngs = [1.0000000000065512, 1.0000000000065512] gs = (1.0, 1.0) ngs = [0.9999999999621422, 2.0000000000131024, 2.0000000000131024] gs = (1.0, 2.0, 2.0) ngs = [0.9999999999621422, 0.9999999999621422, 0.9999999999621422] gs = (1.0, 1.0, 1.0) ngs = [0.9999999999954489, 1.0000000000065512, -1.0000000000065512] gs = (1.0, 1.0, -1.0) ngs = Real[0.9999999999621422, 3.9999999999373865, 0] gs = (1.0, 4.0, 0) ngs = [0.9999999999621422, 3.9999999999373865, 2.7725887222551644] gs = (1.0, 4.0, 2.772588722239781) ngs = [0.9999999999843466, -0.24999999999053554] gs = (1.0, -0.25) ngs = [1.0000000000065512, 0.35355339056408747] gs = (1.0, 0.35355339059327373) ngs = [1.0000000000065512, -0.9999999999621422] gs = (1.0, -1.0) ngs = [0.9999999999621422, -3.9999999998485687] gs = (1.0, -4.0) ngs = [0.9999999999621422, 7.389056099071921] gs = (1.0, 7.38905609893065) ngs = [1.0000000000065512, 0.5000000000032756] gs = (1.0, 0.5) ngs = [1.0000000000065512, -0.4161468365460052] gs = (1.0, -0.4161468365471424) ngs = [0.9999999999621422, 3.762195691070502] gs = (1.0, 3.7621956910836314) ngs = [1.0000000000065512, 1.0206207261775901] gs = (1.0, 1.0206207261596576) ngs = [1.0000000000065512, -0.9092974268321007] gs = (1.0, -0.9092974268256817) ngs = [0.9999999999621422, 3.6268604079126017] gs = (1.0, 3.6268604078470186) ngs = [1.0000000000065512, -1.0206207261553857] gs = (1.0, -1.0206207261596576) ngs = [0.9999999999843466, 5.774399204794277] gs = (1.0, 5.774399204041917) ngs = [0.9999999999843466, 0.07065082485713248] gs = (1.0, 0.07065082485316443) ngs = [0.9999999999954489, 0.19999999998354664] gs = (1.0, 0.2) ngs = [0.9999999999954489, 0.2399999999957991, 0.3199999999980996] gs = (1.0, 0.24, 0.32) ngs = [0.9999999974752426, 0.9999999974752426] gs = (1.0Q20f43, 1.0) ngs = [1.0000000000065512, 0.5000000000032756, -0.4999999999810711] gs = (1.0, 0.5, -0.5) ngs = [1.0000000000065512, 1.0000000000065512, 0.0] gs = (1.0, 1.0, 0.0) ngs = [1.0000000000065512, 0.0, 1.0000000000065512] gs = (1.0, 0.0, 1.0) ngs = [1.0000000000065512, 0.0, 1.0000000000065512] gs = (1.0, 0.0, 1.0) ngs = [1.0000000000065512, 1.0000000000065512, 0.0] gs = (1.0, 1.0, 0.0) ngs = [1.0000000000065512, 99999.99999999999, -99999.99999999999] gs = (1.0, 0.0, 0.0) gradient not match: [1.0000000000065512, 99999.99999999999, -99999.99999999999] v.s. (1.0, 0.0, 0.0) ngs = [0.9999999999843466, -1.0000000000065512] gs = (1.0, -1.0) ngs = [1.0000000000065512, -2.0000000000131024, -2.0000000000131024] gs = (1.0, -2.0, -2.0) ngs = [1.0000000000065512, -1.0000000000065512, -1.0000000000065512] gs = (1.0, -1.0, -1.0) ngs = [0.9999999999954489, -1.0000000000065512, 1.0000000000065512] gs = (1.0, -1.0, 1.0) ngs = Real[1.0000000000065512, -3.9999999999817955, 0] gs = (1.0, -4.0, 0) ngs = [1.0000000000065512, -3.9999999999817955, -2.7725887222551644] gs = (1.0, -4.0, -2.772588722239781) ngs = [0.9999999999954489, 0.2500000000016378] gs = (1.0, 0.25) ngs = [0.9999999999954489, -0.3535533905862919] gs = (1.0, -0.35355339059327373) ngs = [0.9999999999843466, 0.9999999999843466] gs = (1.0, 1.0) ngs = [1.0000000000065512, 3.9999999998929776] gs = (1.0, 4.0) ngs = [0.9999999999621422, -7.389056098983104] gs = (1.0, -7.38905609893065) ngs = [0.9999999999954489, -0.5000000000032756] gs = (1.0, -0.5) ngs = [0.9999999999954489, 0.4161468365460052] gs = (1.0, 0.4161468365471424) ngs = [1.0000000000065512, -3.762195691114911] gs = (1.0, -3.7621956910836314) ngs = [0.9999999999954489, -1.020620726166488] gs = (1.0, -1.0206207261596576) ngs = [0.9999999999843466, 0.9092974268209985] gs = (1.0, 0.9092974268256817) ngs = [1.0000000000065512, -3.6268604078681927] gs = (1.0, -3.6268604078470186) ngs = [0.9999999999954489, 1.0206207261775901] gs = (1.0, 1.0206207261596576) ngs = [1.0000000000065512, -5.774399204794277] gs = (1.0, -5.774399204041917) ngs = [0.9999999999954489, -0.07065082485713248] gs = (1.0, -0.07065082485316443) ngs = [1.0000000000065512, -0.19999999998354664] gs = (1.0, -0.2) ngs = [1.0000000000065512, -0.24000000000690133, -0.31999999998699735] gs = (1.0, -0.24, -0.32) ngs = [0.9999999974752426, -0.9999999974752426] gs = (1.0Q20f43, -1.0) ngs = [0.9999999999954489, -0.5000000000032756, 0.5000000000143778] gs = (1.0, -0.5, 0.5) ngs = [0.9999999999843466, -1.0000000000065512, 0.0] gs = (1.0, -1.0, 0.0) ngs = [0.9999999999843466, 0.0, -1.0000000000065512] gs = (1.0, 0.0, -1.0) ngs = [0.9999999999843466, 0.0, -1.0000000000065512] gs = (1.0, 0.0, -1.0) ngs = [0.9999999999843466, -1.0000000000065512, 0.0] gs = (1.0, -1.0, 0.0) ngs = [0.9999999999954489, -99999.99999999999, 99999.99999999999] gs = (1.0, 0.0, 0.0) gradient not match: [0.9999999999954489, -99999.99999999999, 99999.99999999999] v.s. (1.0, 0.0, 0.0) ngs = [-0.9999999999954489] gs = -1.0 ngs = [-0.11111111111183901] gs = -0.1111111111111111 ngs = [0.9999999999621422] gs = 1.0 ngs = [1.0000000000065512] gs = 1.0 ngs = [1.0000000000065512] gs = 1.0 ngs = [0.9999999999954489] gs = 1.0 ngs = [-0.4161468365460052, -0.9092974268209985, -0.07700375372898804] gs = (-0.4161468365471424, -0.9092974268256817, -0.07700375373139678) ngs = [0.9092974268209985, -0.41614683656820967, -2.2347416902324113] gs = (0.9092974268256817, -0.4161468365471424, -2.234741690198506) ngs = [-0.4161468365460052, 0.9092974268209985, -1.7415910999352133] gs = (-0.4161468365471424, 0.9092974268256817, -1.7415910999199666) ngs = [-0.9092974268209985, -0.4161468365460052, -1.4024480171404006] gs = (-0.9092974268256817, -0.4161468365471424, -1.402448017104221) ngs = [0.7071067811725839, 0.7071067811725839] gs = (0.7071067811865476, 0.7071067811865476) ngs = [0.7071067811836861, -0.7071067811836861] gs = (0.7071067811865476, -0.7071067811865476) ngs = Real[0, 0.9999999999621422, 2.0000000000131024] gs = (0, 1.0, 2.0) ngs = Real[0, 0.9999999999621422, 0.9999999999621422] gs = (0, 1.0, 1.0) ngs = Real[0, 0.9999999999954489, 1.0000000000065512] gs = (0, 1.0, 1.0) ngs = Real[0, 0.9999999999621422, 3.9999999999373865] gs = (0, 1.0, 4.0) ngs = Real[0, 0.9999999999954489, 0.2500000000016378] gs = (0, 1.0, 0.25) ngs = Real[0, 1.0000000000065512, 0.5000000000032756] gs = (0, 1.0, 0.5) ngs = Real[0, 1.0000000000065512, -2.0000000000131024] gs = (0, 1.0, -2.0) ngs = Real[0, 1.0000000000065512, -1.0000000000065512] gs = (0, 1.0, -1.0) ngs = Real[0, 0.9999999999954489, -1.0000000000065512] gs = (0, 1.0, -1.0) ngs = Real[0, 1.0000000000065512, -3.9999999999817955] gs = (0, 1.0, -4.0) ngs = Real[0, 0.9999999999843466, -0.25000000001274003] gs = (0, 1.0, -0.25) ngs = Real[0, 0.9999999999954489, -0.5000000000032756] gs = (0, 1.0, -0.5) ngs = Real[0, 0.9999999999621422, 2.0000000000131024] gs = (0, 1.0, 2.0) ngs = Real[0, 0.9999999999621422, 0.9999999999621422] gs = (0, 1.0, 1.0) ngs = Real[0, 0.9999999999954489, -1.0000000000065512] gs = (0, 1.0, -1.0) ngs = Real[0, 0.9999999999621422, 2.7725887222551644] gs = (0, 1.0, 2.772588722239781) ngs = Real[0, 1.0000000000065512, -0.24999999999053554] gs = (0, 1.0, -0.25) ngs = Real[0, 1.0000000000065512, -0.4999999999810711] gs = (0, 1.0, -0.5) ngs = Real[0, 1.0000000000065512, -2.0000000000131024] gs = (0, 1.0, -2.0) ngs = Real[0, 1.0000000000065512, -1.0000000000065512] gs = (0, 1.0, -1.0) ngs = Real[0, 0.9999999999954489, 1.0000000000065512] gs = (0, 1.0, 1.0) ngs = Real[0, 1.0000000000065512, -2.7725887222551644] gs = (0, 1.0, -2.772588722239781) ngs = Real[0, 0.9999999999843466, 0.24999999999053554] gs = (0, 1.0, 0.25) ngs = Real[0, 0.9999999999954489, 0.5000000000143778] gs = (0, 1.0, 0.5) ngs = Real[0, -0.4161468365460052, -0.9092974268209985] gs = (0, -0.4161468365471424, -0.9092974268256817) ngs = Real[0, 0.9092974268209985, -0.41614683656820967] gs = (0, 0.9092974268256817, -0.4161468365471424) ngs = Real[0, -0.4161468365460052, 0.9092974268209985] gs = (0, -0.4161468365471424, 0.9092974268256817) ngs = Real[0, -0.9092974268209985, -0.4161468365460052] gs = (0, -0.9092974268256817, -0.4161468365471424) ngs = [1.0000000000065512, 0.0, -0.4161468365460052] gs = (1.0, 0.0, -0.4161468365471424) ngs = [0.0, 1.0000000000065512, -0.9092974268209985] gs = (0.0, 1.0, -0.9092974268256817) ngs = Any[0.9999999999954489, 0.0, [0.0, 0.0, 0.0, 0.2500000000016378]] gs = (1.0, 0.0, [0.0, 0.0, 0.0, 0.25]) ULogarithmic: Error During Test at /home/pkgeval/.julia/packages/NiLang/h1Pja/test/autodiff/ulog.jl:26 Test threw exception Expression: grad(x.log) ≈ g1[1] UndefVarError: `grad` not defined in `Main` Hint: It looks like two or more modules export different bindings with this name, resulting in ambiguity. Try explicitly importing it from a particular module, or qualifying the name with the module it should come from. Hint: a global variable of this name also exists in FiniteDifferences. Stacktrace: [1] top-level scope @ ~/.julia/packages/NiLang/h1Pja/test/autodiff/ulog.jl:8 [2] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1771 [inlined] [3] macro expansion @ ~/.julia/packages/NiLang/h1Pja/test/autodiff/ulog.jl:26 [inlined] [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:676 [inlined] ULogarithmic: Error During Test at /home/pkgeval/.julia/packages/NiLang/h1Pja/test/autodiff/ulog.jl:27 Test threw exception Expression: grad(y.log) ≈ g1[2] UndefVarError: `grad` not defined in `Main` Hint: It looks like two or more modules export different bindings with this name, resulting in ambiguity. Try explicitly importing it from a particular module, or qualifying the name with the module it should come from. Hint: a global variable of this name also exists in FiniteDifferences. Stacktrace: [1] top-level scope @ ~/.julia/packages/NiLang/h1Pja/test/autodiff/ulog.jl:8 [2] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1771 [inlined] [3] macro expansion @ ~/.julia/packages/NiLang/h1Pja/test/autodiff/ulog.jl:27 [inlined] [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:676 [inlined] ULogarithmic: Error During Test at /home/pkgeval/.julia/packages/NiLang/h1Pja/test/autodiff/ulog.jl:28 Test threw exception Expression: grad(z.log) ≈ g1[3] UndefVarError: `grad` not defined in `Main` Hint: It looks like two or more modules export different bindings with this name, resulting in ambiguity. Try explicitly importing it from a particular module, or qualifying the name with the module it should come from. Hint: a global variable of this name also exists in FiniteDifferences. Stacktrace: [1] top-level scope @ ~/.julia/packages/NiLang/h1Pja/test/autodiff/ulog.jl:8 [2] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1771 [inlined] [3] macro expansion @ ~/.julia/packages/NiLang/h1Pja/test/autodiff/ulog.jl:28 [inlined] [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:676 [inlined] ULogarithmic: Error During Test at /home/pkgeval/.julia/packages/NiLang/h1Pja/test/autodiff/ulog.jl:40 Test threw exception Expression: grad(x.log) ≈ g2[1] UndefVarError: `grad` not defined in `Main` Hint: It looks like two or more modules export different bindings with this name, resulting in ambiguity. Try explicitly importing it from a particular module, or qualifying the name with the module it should come from. Hint: a global variable of this name also exists in FiniteDifferences. Stacktrace: [1] top-level scope @ ~/.julia/packages/NiLang/h1Pja/test/autodiff/ulog.jl:8 [2] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1771 [inlined] [3] macro expansion @ ~/.julia/packages/NiLang/h1Pja/test/autodiff/ulog.jl:40 [inlined] [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:676 [inlined] ULogarithmic: Error During Test at /home/pkgeval/.julia/packages/NiLang/h1Pja/test/autodiff/ulog.jl:41 Test threw exception Expression: grad(y.log) ≈ g2[2] UndefVarError: `grad` not defined in `Main` Hint: It looks like two or more modules export different bindings with this name, resulting in ambiguity. Try explicitly importing it from a particular module, or qualifying the name with the module it should come from. Hint: a global variable of this name also exists in FiniteDifferences. Stacktrace: [1] top-level scope @ ~/.julia/packages/NiLang/h1Pja/test/autodiff/ulog.jl:8 [2] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1771 [inlined] [3] macro expansion @ ~/.julia/packages/NiLang/h1Pja/test/autodiff/ulog.jl:41 [inlined] [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:676 [inlined] ULogarithmic: Error During Test at /home/pkgeval/.julia/packages/NiLang/h1Pja/test/autodiff/ulog.jl:42 Test threw exception Expression: grad(z.log) ≈ g2[3] UndefVarError: `grad` not defined in `Main` Hint: It looks like two or more modules export different bindings with this name, resulting in ambiguity. Try explicitly importing it from a particular module, or qualifying the name with the module it should come from. Hint: a global variable of this name also exists in FiniteDifferences. Stacktrace: [1] top-level scope @ ~/.julia/packages/NiLang/h1Pja/test/autodiff/ulog.jl:8 [2] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1771 [inlined] [3] macro expansion @ ~/.julia/packages/NiLang/h1Pja/test/autodiff/ulog.jl:42 [inlined] [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:676 [inlined] iexp: Error During Test at /home/pkgeval/.julia/packages/NiLang/h1Pja/test/autodiff/ulog.jl:45 Got exception outside of a @test UndefVarError: `grad` not defined in `Main` Hint: It looks like two or more modules export different bindings with this name, resulting in ambiguity. Try explicitly importing it from a particular module, or qualifying the name with the module it should come from. Hint: a global variable of this name also exists in FiniteDifferences. Stacktrace: [1] top-level scope @ ~/.julia/packages/NiLang/h1Pja/test/autodiff/ulog.jl:46 [2] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1771 [inlined] [3] macro expansion @ ~/.julia/packages/NiLang/h1Pja/test/autodiff/ulog.jl:71 [inlined] [4] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:304 [5] top-level scope @ ~/.julia/packages/NiLang/h1Pja/test/autodiff/autodiff.jl:8 [6] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:304 [7] top-level scope @ ~/.julia/packages/NiLang/h1Pja/test/runtests.jl:37 [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1771 [inlined] [9] macro expansion @ ~/.julia/packages/NiLang/h1Pja/test/runtests.jl:37 [inlined] [10] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:304 [11] top-level scope @ none:6 [12] eval(m::Module, e::Any) @ Core ./boot.jl:489 [13] exec_options(opts::Base.JLOptions) @ Base ./client.jl:294 [14] _start() @ Base ./client.jl:560 complex GVar: Error During Test at /home/pkgeval/.julia/packages/NiLang/h1Pja/test/autodiff/complex.jl:3 Got exception outside of a @test UndefVarError: `grad` not defined in `Main` Hint: It looks like two or more modules export different bindings with this name, resulting in ambiguity. Try explicitly importing it from a particular module, or qualifying the name with the module it should come from. Hint: a global variable of this name also exists in FiniteDifferences. Stacktrace: [1] top-level scope @ ~/.julia/packages/NiLang/h1Pja/test/autodiff/complex.jl:4 [2] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1771 [inlined] [3] macro expansion @ ~/.julia/packages/NiLang/h1Pja/test/autodiff/complex.jl:9 [inlined] [4] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:304 [5] top-level scope @ ~/.julia/packages/NiLang/h1Pja/test/autodiff/autodiff.jl:9 [6] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:304 [7] top-level scope @ ~/.julia/packages/NiLang/h1Pja/test/runtests.jl:37 [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1771 [inlined] [9] macro expansion @ ~/.julia/packages/NiLang/h1Pja/test/runtests.jl:37 [inlined] [10] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:304 [11] top-level scope @ none:6 [12] eval(m::Module, e::Any) @ Core ./boot.jl:489 [13] exec_options(opts::Base.JLOptions) @ Base ./client.jl:294 [14] _start() @ Base ./client.jl:560 ngs = Number[0, 1.0000000000065512, 1.0000000000065512 + 0.0im, 1.0000000000065512, 0.0] gs = (0, 1.0, 1.0 + 0.0im, 1.0, 0.0) ngs = Number[0, 0.9999999999621422, 0.0 + 0.9999999999621422im, 0.0, 0.9999999999621422] gs = (0, 1.0, 0.0 + 1.0im, 0.0, 1.0) ngs = Number[0, 1.0000000000065512, 1.0000000000065512 + 0.0im, 1.0000000000065512 + 0.0im] gs = (0, 1.0, 1.0 + 0.0im, 1.0 + 0.0im) ngs = Number[0, 0.9999999999621422, 0.0 + 0.9999999999621422im, 0.0 + 1.0000000000509601im] gs = (0, 1.0, 0.0 + 1.0im, 0.0 + 1.0im) ngs = Number[0, 0.9999999999621422, 0.9999999999621422 + 0.0im, 0.9999999999621422 + 0.0im, 0.9999999999621422 + 0.0im] gs = (0, 1.0, 1.0 + 0.0im, 1.0 + 0.0im, 1.0 + 0.0im) ngs = Number[0, 0.9999999999621422, 0.0 + 0.9999999999621422im, 0.0 + 1.0000000000509601im, 0.0 + 0.9999999999621422im] gs = (0, 1.0, 0.0 + 1.0im, 0.0 + 1.0im, 0.0 + 1.0im) ngs = Number[0, 1.0, 0.9999999999954489 + 0.0im, 1.0000000000065512 + 0.0im, -1.0000000000065512 + 0.0im] gs = (0, 1.0, 1.0 + 0.0im, 1.0 + 0.0im, -1.0 + 0.0im) ngs = Number[0, 0.9999999999621422, 0.0 + 0.9999999999621422im, 0.0 + 1.0000000000509601im, 0.0 - 0.9999999999621422im] gs = (0, 1.0, 0.0 + 1.0im, 0.0 + 1.0im, 0.0 - 1.0im) ngs = Number[0, 0.9999999999621422, 0.9999999999621422 + 0.0im, 2.9999999998864264 - 0.9999999999621422im, 2.0000000001019203 + 2.300000000055036im] gs = (0, 1.0, 1.0 + 0.0im, 3.0 - 1.0im, 2.0 + 2.3im) ngs = Number[0, 0.9999999999621422, 0.0 + 0.9999999999621422im, 0.9999999999621422 + 2.9999999998864264im, -2.2999999998774 + 1.9999999999242843im] gs = (0, 1.0, 0.0 + 1.0im, 1.0 + 3.0im, -2.3 + 2.0im) ngs = Number[0, 1.0000000000065512, 1.0000000000065512 + 0.0im, 0.29999999999752447 + 0.09999999999177332im, -0.021999999999522398 - 0.3039999999732146im] gs = (0, 1.0, 1.0 + 0.0im, 0.30000000000000004 + 0.1im, -0.021999999999999964 - 0.304im) ngs = Number[0, 0.9999999999621422, 0.0 + 0.9999999999621422im, -0.10000000001397778 + 0.3000000000419334im, 0.3040000000176235 - 0.021999999955113477im] gs = (0, 1.0, 0.0 + 1.0im, -0.1 + 0.30000000000000004im, 0.30400000000000005 - 0.02200000000000002im) ngs = Number[0, 1.0000000003174137, 1.0000000003174137 + 0.0im, -94.95999999984404 + 61.73199999750522im, -72.17855946493046] gs = (0, 1.0, 1.0 + 0.0im, -94.95999999999998 + 61.731999999999985im, -72.17855946428384) ngs = Number[0, 0.9999999999621422, 0.0 + 0.9999999999621422im, -61.73199999928158 - 94.9599999991335im, 97.40181315436301] gs = (0, 1.0, 0.0 + 1.0im, -61.732000000000006 - 94.96im, 97.40181315543059) ngs = Number[0, 1.0000000000065512, 1.0000000000065512 + 0.0im, -4.923150898683559 + 5.510057646063159im] gs = (0, 1.0, 1.0 + 0.0im, -4.923150898608931 + 5.51005764603877im) ngs = Number[0, 0.9999999999621422, 0.0 + 0.9999999999621422im, -5.510057646063159 - 4.923150898505924im] gs = (0, 1.0, 0.0 + 1.0im, -5.51005764603877 - 4.923150898608931im) ngs = Number[0, 1.0000000000065512, 1.0000000000065512 + 0.0im, 0.21528525295799736 - 0.2475780409127992im] gs = (0, 1.0, 1.0 + 0.0im, 0.21528525296017223 - 0.24757804090419805im) ngs = Number[0, 0.9999999999621422, 0.0 + 1.0000000000509601im, 0.2475780409127992 + 0.21528525300240628im] gs = (0, 1.0, 0.0 + 1.0im, 0.24757804090419808 + 0.21528525296017226im) ngs = Number[0, 1.0000000000065512, 1.0000000000065512 + 0.0im, 0.014947146187438419 + 0.10659980231864095im] gs = (0, 1.0, 1.0 + 0.0im, 0.014947146195835412 + 0.10659980232688832im) ngs = Number[0, 1.0000000000065512, 0.0 + 0.9999999999621422im, -0.10659980236304988 + 0.014947146187438419im] gs = (0, 1.0, 0.0 + 1.0im, -0.10659980232688832 + 0.014947146195835426im) (subop, args) = (PlusEq{typeof(angle)}(angle), (4.0, 2.0 - 2.3im)) ngs = Number[1.0000000000065512, 0.2475780409127992 + 0.21528525300240628im] gs = (1.0, 0.24757804090419808 + 0.21528525296017226im) (subop, args) = (PlusEq{typeof(abs)}(abs), (4.0, 2.0 - 2.3im)) ngs = Number[1.0000000000509601, 0.6561787149195197 - 0.7546055220686297im] gs = (1.0, 0.6561787149247866 - 0.7546055221635045im) (subop, args) = (PlusEq{typeof(abs)}(abs), (4.0, 0.0 + 0.0im)) ngs = Number[1.0000000000065512, 0.0 + 0.0im] gs = (1.0, 0.0 + 0.0im) (subop, args) = (PlusEq{typeof(abs2)}(abs2), (4.0, 2.0 - 2.3im)) ngs = Number[0.9999999999621422, 4.000000000026205 - 4.599999999932436im] gs = (1.0, 4.0 - 4.6im) ngs = Number[0, 1.0000000000065512, 0.9999999999843466 + 0.0im, -1.0000000000065512, 0.0] gs = (0, 1.0, 1.0 + 0.0im, -1.0, 0.0) ngs = Number[0, 1.0000000000065512, 0.0 + 1.0000000000065512im, 0.0, -1.0000000000065512] gs = (0, 1.0, 0.0 + 1.0im, 0.0, -1.0) ngs = Number[0, 1.0000000000065512, 0.9999999999843466 + 0.0im, -1.0000000000065512 + 0.0im] gs = (0, 1.0, 1.0 + 0.0im, -1.0 + 0.0im) ngs = Number[0, 1.0000000000065512, 0.0 + 0.9999999999621422im, 0.0 - 1.0000000000065512im] gs = (0, 1.0, 0.0 + 1.0im, 0.0 - 1.0im) ngs = Number[0, 0.9999999999621422, 0.9999999999621422 + 0.0im, -0.9999999999621422 + 0.0im, -0.9999999999621422 + 0.0im] gs = (0, 1.0, 1.0 + 0.0im, -1.0 + 0.0im, -1.0 + 0.0im) ngs = Number[0, 1.0000000000065512, 0.0 + 0.9999999999621422im, 0.0 - 1.0000000000065512im, 0.0 - 0.9999999999621422im] gs = (0, 1.0, 0.0 + 1.0im, 0.0 - 1.0im, 0.0 - 1.0im) ngs = Number[0, 1.0000000000065512, 1.0000000000065512 + 0.0im, -1.0000000000065512 + 0.0im, 1.0000000000065512 + 0.0im] gs = (0, 1.0, 1.0 + 0.0im, -1.0 + 0.0im, 1.0 + 0.0im) ngs = Number[0, 0.9999999999954489, 0.0 + 0.9999999999621422im, 0.0 - 1.0000000000065512im, 0.0 + 0.9999999999621422im] gs = (0, 1.0, 0.0 + 1.0im, 0.0 - 1.0im, 0.0 + 1.0im) ngs = Number[0, 0.9999999999621422, 0.9999999999621422 + 0.0im, -2.9999999998864264 + 0.9999999999621422im, -2.0000000001019203 - 2.300000000055036im] gs = (0, 1.0, 1.0 + 0.0im, -3.0 + 1.0im, -2.0 - 2.3im) ngs = Number[0, 0.9999999999954489, 0.0 + 0.9999999999621422im, -1.0000000000509601 - 2.9999999999752442im, 2.299999999966218 - 1.9999999999242843im] gs = (0, 1.0, 0.0 + 1.0im, -1.0 - 3.0im, 2.3 - 2.0im) ngs = Number[0, 0.9999999999954489, 0.9999999999954489 + 0.0im, -0.3000000000086267 - 0.10000000000287555im, 0.021999999999522398 + 0.30399999999541905im] gs = (0, 1.0, 1.0 + 0.0im, -0.30000000000000004 - 0.1im, 0.021999999999999964 + 0.304im) ngs = Number[0, 1.0000000000065512, 0.0 + 0.9999999999621422im, 0.10000000001397778 - 0.29999999999752447im, -0.3040000000176235 + 0.021999999999522398im] gs = (0, 1.0, 0.0 + 1.0im, 0.1 - 0.30000000000000004im, -0.30400000000000005 + 0.02200000000000002im) ngs = Number[0, 1.0000000003174137, 1.0000000003174137 + 0.0im, 94.95999999984404 - 61.73199999750522im, 72.17855946493046] gs = (0, 1.0, 1.0 + 0.0im, 94.95999999999998 - 61.731999999999985im, 72.17855946428384) ngs = Number[0, 0.9999999999621422, 0.0 + 0.9999999999621422im, 61.73199999928158 + 94.9599999991335im, -97.40181315436301] gs = (0, 1.0, 0.0 + 1.0im, 61.732000000000006 + 94.96im, -97.40181315543059) ngs = Number[0, 0.9999999999621422, 0.9999999999621422 + 0.0im, 4.923150898683559 - 5.510057646063159im] gs = (0, 1.0, 1.0 + 0.0im, 4.923150898608931 - 5.51005764603877im) ngs = Number[0, 1.0000000000065512, 0.0 + 0.9999999999621422im, 5.510057646063159 + 4.923150898594741im] gs = (0, 1.0, 0.0 + 1.0im, 5.51005764603877 + 4.923150898608931im) ngs = Number[0, 0.9999999999996122, 0.9999999999954489 + 0.0im, -0.21528525295799736 + 0.2475780409127992im] gs = (0, 1.0, 1.0 + 0.0im, -0.21528525296017223 + 0.24757804090419805im) ngs = Number[0, 1.0000000000065512, 0.0 + 0.9999999999621422im, -0.2475780409127992 - 0.21528525300240628im] gs = (0, 1.0, 0.0 + 1.0im, -0.24757804090419808 - 0.21528525296017226im) ngs = Number[0, 0.9999999999954489, 0.9999999999843466 + 0.0im, -0.014947146187438419 - 0.10659980232974318im] gs = (0, 1.0, 1.0 + 0.0im, -0.014947146195835412 - 0.10659980232688832im) ngs = Number[0, 0.9999999999621422, 0.0 + 0.9999999999621422im, 0.10659980231864095 - 0.014947146187438419im] gs = (0, 1.0, 0.0 + 1.0im, 0.10659980232688832 - 0.014947146195835426im) (subop, args) = (MinusEq{typeof(angle)}(angle), (4.0, 2.0 - 2.3im)) ngs = Number[1.0000000000509601, -0.2475780409127992 - 0.21528525300240628im] gs = (1.0, -0.24757804090419808 - 0.21528525296017226im) (subop, args) = (MinusEq{typeof(abs)}(abs), (4.0, 2.0 - 2.3im)) ngs = Number[1.0000000000065512, -0.6561787149195197 + 0.7546055221574476im] gs = (1.0, -0.6561787149247866 + 0.7546055221635045im) (subop, args) = (MinusEq{typeof(abs)}(abs), (4.0, 0.0 + 0.0im)) ngs = Number[1.0000000000065512, 0.0 + 0.0im] gs = (1.0, 0.0 + 0.0im) (subop, args) = (MinusEq{typeof(abs2)}(abs2), (4.0, 2.0 - 2.3im)) ngs = Number[0.9999999999621422, -3.9999999999373865 + 4.600000000021254im] gs = (1.0, -4.0 + 4.6im) ngs = Number[0, 1.0000000000065512, -0.9999999999954489 + 0.0im] gs = (0, 1.0, -1.0 - 0.0im) ngs = Number[0, 1.0000000000065512, 0.0 - 0.9999999999621422im] gs = (0, 1.0, -0.0 - 1.0im) h2 = [0.0 0.0 0.0 -2.9699774896752014; 0.0 -6.799589668737837 -0.5666324724984406 -45.38479617224311; 0.0 -0.5666324724096228 0.0 -6.363315003632407; -2.969977489897246 -45.38479617295365 -6.363315002744229 -44.80753266804526] Test Summary: | Pass Error Broken Total Time autodiff | 290 8 2 300 4m41.0s gvar | 17 17 1.2s assign | 7 7 0.2s assign tuple | 1 1 0.0s assign bcast func | 2 2 0.5s GVar over general type | 8 8 1.9s dict | 1 1 0.6s NoGrad | 14 14 2.2s loaddata | 7 7 0.2s push load | 12 12 3.0s NGrad | 1 1 0.0s instr | 9 9 4.7s i | 2 2 1.3s broadcast | 1 1 4.1s broadcast 2 | 4 4 0.7s function call function | 1 1 0.2s neg sign | 1 1 0.8s i | 3 3 0.0s gradient | 1 1 0.0s check grad | 70 2 72 15.7s partial gvar | 28 28 27.7s sincos | 2 2 1.1s AD over pop | 1 1 2.5s AD over pipe | 1 1 2.8s push, load data | 5 5 0.5s dataviews | 1 1 0.2s additive identity | 2 2 0.3s ULogarithmic | 1 6 7 46.9s iexp | 1 1 1.4s complex GVar | 2 1 3 1.0s check grad | 58 58 1m39.9s primitive grad | 2 2 0.9s bcastgrad | 7 7 0.7s jacobians | 13 13 12.0s nograd | 3 3 0.1s hessian | 2 2 5.9s RNG of the outermost testset: Xoshiro(0x34739ddcd5b15ae8, 0xf4b66be1f7ee0e9f, 0x4fd19cf6a841c33e, 0xde2201d549b2678f, 0xb49cff290aa52be4) ERROR: LoadError: Some tests did not pass: 290 passed, 0 failed, 8 errored, 2 broken. in expression starting at /home/pkgeval/.julia/packages/NiLang/h1Pja/test/runtests.jl:36 Testing failed after 345.69s ERROR: LoadError: Package NiLang 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:2365 [3] test @ /opt/julia/share/julia/stdlib/v1.12/Pkg/src/Operations.jl:2220 [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:486 [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:164 [6] test(pkgs::Vector{String}; kwargs::@Kwargs{julia_args::Cmd}) @ Pkg.API /opt/julia/share/julia/stdlib/v1.12/Pkg/src/API.jl:152 [7] test @ /opt/julia/share/julia/stdlib/v1.12/Pkg/src/API.jl:152 [inlined] [8] #test#81 @ /opt/julia/share/julia/stdlib/v1.12/Pkg/src/API.jl:151 [inlined] [9] top-level scope @ /PkgEval.jl/scripts/evaluate.jl:219 [10] include(mod::Module, _path::String) @ Base ./Base.jl:303 [11] exec_options(opts::Base.JLOptions) @ Base ./client.jl:328 [12] _start() @ Base ./client.jl:560 in expression starting at /PkgEval.jl/scripts/evaluate.jl:210 PkgEval failed after 676.05s: package tests unexpectedly errored