Package evaluation to test EnergyModelsGeography on Julia 1.14.0-DEV.2802 (918269a29b*) started at 2026-07-29T09:00:22.309 ################################################################################ # Set-up # Installing PkgEval dependencies (TestEnv)... Activating project at `~/.julia/environments/v1.14` Set-up completed after 13.85s ################################################################################ # Installation # Installing EnergyModelsGeography... Resolving package versions... Updating `~/.julia/environments/v1.14/Project.toml` [3f775d88] + EnergyModelsGeography v0.12.0 Updating `~/.julia/environments/v1.14/Manifest.toml` [523fee87] + CodecBzip2 v0.8.5 [944b1d66] + CodecZlib v0.7.8 [bbf7d656] + CommonSubexpressions v0.3.1 [34da2185] + Compat v4.18.1 [85a47980] + Dictionaries v0.4.6 [163ba53b] + DiffResults v1.1.0 [b552c78f] + DiffRules v1.16.0 [ffbed154] + DocStringExtensions v0.9.5 [5d7e687e] + EnergyModelsBase v0.10.5 [3f775d88] + EnergyModelsGeography v0.12.0 [e2ba6199] + ExprTools v0.1.11 [f6369f11] + ForwardDiff v1.4.3 [313cdc1a] + Indexing v1.1.1 [842dd82b] + InlineStrings v1.4.5 [92d709cd] + IrrationalConstants v0.2.6 [692b3bcd] + JLLWrappers v1.8.0 [682c06a0] + JSON v1.6.1 [4076af6c] + JuMP v1.31.1 [2ab3a3ac] + LogExpFunctions v1.0.1 [1914dd2f] + MacroTools v0.5.16 [b8f27783] + MathOptInterface v1.51.2 [78c3b35d] + Mocking v0.8.1 [d8a4904e] + MutableArithmetics v1.8.0 [77ba4419] + NaNMath v1.1.4 ⌅ [bac558e1] + OrderedCollections v1.8.2 [69de0a69] + Parsers v2.8.6 [aea7be01] + PrecompileTools v1.3.4 [21216c6a] + Preferences v1.5.2 [6c6a2e73] + Scratch v1.3.0 [2749762c] + SparseVariables v0.7.4 [276daf66] + SpecialFunctions v2.8.0 [1e83bf80] + StaticArraysCore v1.4.4 [ec057cc2] + StructUtils v2.8.2 [dc5dba14] + TZJData v1.5.0+2025b [f9ed5ce0] + TimeStruct v0.9.12 [f269a46b] + TimeZones v1.22.2 [3bb67fe8] + TranscodingStreams v0.11.3 [6e34b625] + Bzip2_jll v1.0.9+0 [efe28fd5] + OpenSpecFun_jll v0.5.6+0 [0dad84c5] + ArgTools v1.2.0 [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.13.0 [b27032c2] + LibCURL v1.0.0 [8f399da3] + Libdl v1.11.0 [37e2e46d] + LinearAlgebra v1.14.0 [56ddb016] + Logging v1.11.0 [d6f4376e] + Markdown v1.11.0 [ca575930] + NetworkOptions v1.3.0 [de0858da] + Printf v1.11.0 [9a3f8284] + Random v1.11.0 [ea8e919c] + SHA v1.13.0 [9e88b42a] + Serialization v1.11.0 [2f01184e] + SparseArrays v1.13.0 [f489334b] + StyledStrings v1.13.0 [fa267f1f] + TOML v1.0.3 [8dfed614] + Test v1.11.0 [cf7118a7] + UUIDs v1.11.0 [4ec0a83e] + Unicode v1.11.0 [e66e0078] + CompilerSupportLibraries_jll v1.5.7+0 [deac9b47] + LibCURL_jll v8.21.0+0 [29816b5a] + LibSSH2_jll v1.11.103+0 [14a3606d] + MozillaCACerts_jll v2026.7.16 [4536629a] + OpenBLAS_jll v0.3.34+0 [05823500] + OpenLibm_jll v0.8.7+0 [458c3c95] + OpenSSL_jll v3.5.7+0 [bea87d4a] + SuiteSparse_jll v7.10.1+0 [83775a58] + Zlib_jll v1.3.2+0 [3161d3a3] + Zstd_jll v1.5.7+1 [8e850b90] + libblastrampoline_jll v5.15.0+0 [8e850ede] + nghttp2_jll v1.69.0+0 [3f19e933] + p7zip_jll v17.8.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 5.45s ################################################################################ # Precompilation # Precompiling PkgEval dependencies... Precompiling package dependencies... Precompiling project... 23.2 s ✓ EnergyModelsBase 16.9 s ✓ EnergyModelsGeography 17.7 s ✓ EnergyModelsBase → EMIExt 15.2 s ✓ EnergyModelsGeography → EMIExt 4 dependencies successfully precompiled in 74 seconds. 78 already precompiled. Precompilation completed after 101.24s ################################################################################ # Testing # Testing EnergyModelsGeography Status `/tmp/jl_HgqiXv/Project.toml` [5d7e687e] EnergyModelsBase v0.10.5 [3f775d88] EnergyModelsGeography v0.12.0 [fca3f8eb] EnergyModelsInvestments v0.9.2 [87dc4568] HiGHS v1.24.1 [4076af6c] JuMP v1.31.1 [f9ed5ce0] TimeStruct v0.9.12 [44cfe95a] Pkg v1.14.0 [8dfed614] Test v1.11.0 Status `/tmp/jl_HgqiXv/Manifest.toml` [523fee87] CodecBzip2 v0.8.5 [944b1d66] CodecZlib v0.7.8 [bbf7d656] CommonSubexpressions v0.3.1 [34da2185] Compat v4.18.1 [85a47980] Dictionaries v0.4.6 [163ba53b] DiffResults v1.1.0 [b552c78f] DiffRules v1.16.0 [ffbed154] DocStringExtensions v0.9.5 [5d7e687e] EnergyModelsBase v0.10.5 [3f775d88] EnergyModelsGeography v0.12.0 [fca3f8eb] EnergyModelsInvestments v0.9.2 [e2ba6199] ExprTools v0.1.11 [f6369f11] ForwardDiff v1.4.3 [87dc4568] HiGHS v1.24.1 [313cdc1a] Indexing v1.1.1 [842dd82b] InlineStrings v1.4.5 [92d709cd] IrrationalConstants v0.2.6 [692b3bcd] JLLWrappers v1.8.0 [682c06a0] JSON v1.6.1 [4076af6c] JuMP v1.31.1 [2ab3a3ac] LogExpFunctions v1.0.1 [1914dd2f] MacroTools v0.5.16 [8c4f8055] MathOptIIS v0.2.0 [b8f27783] MathOptInterface v1.51.2 [78c3b35d] Mocking v0.8.1 [d8a4904e] MutableArithmetics v1.8.0 [77ba4419] NaNMath v1.1.4 ⌅ [bac558e1] OrderedCollections v1.8.2 [69de0a69] Parsers v2.8.6 [aea7be01] PrecompileTools v1.3.4 [21216c6a] Preferences v1.5.2 [6c6a2e73] Scratch v1.3.0 [2749762c] SparseVariables v0.7.4 [276daf66] SpecialFunctions v2.8.0 [1e83bf80] StaticArraysCore v1.4.4 [ec057cc2] StructUtils v2.8.2 [dc5dba14] TZJData v1.5.0+2025b [f9ed5ce0] TimeStruct v0.9.12 [f269a46b] TimeZones v1.22.2 [3bb67fe8] TranscodingStreams v0.11.3 [6e34b625] Bzip2_jll v1.0.9+0 [8fd58aa0] HiGHS_jll v1.15.1+1 [656ef2d0] OpenBLAS32_jll v0.3.34+0 [efe28fd5] OpenSpecFun_jll v0.5.6+0 [0dad84c5] ArgTools v1.2.0 [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.13.0 [b27032c2] LibCURL v1.0.0 [76f85450] LibGit2 v1.11.0 [8f399da3] Libdl v1.11.0 [37e2e46d] LinearAlgebra v1.14.0 [56ddb016] Logging v1.11.0 [d6f4376e] Markdown v1.11.0 [ca575930] NetworkOptions v1.3.0 [44cfe95a] Pkg v1.14.0 [de0858da] Printf v1.11.0 [9a3f8284] Random v1.11.0 [ea8e919c] SHA v1.13.0 [9e88b42a] Serialization v1.11.0 [2f01184e] SparseArrays v1.13.0 [f489334b] StyledStrings v1.13.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.5.7+0 [deac9b47] LibCURL_jll v8.21.0+0 [e37daf67] LibGit2_jll v1.9.6+0 [29816b5a] LibSSH2_jll v1.11.103+0 [14a3606d] MozillaCACerts_jll v2026.7.16 [4536629a] OpenBLAS_jll v0.3.34+0 [05823500] OpenLibm_jll v0.8.7+0 [458c3c95] OpenSSL_jll v3.5.7+0 [efcefdf7] PCRE2_jll v10.47.0+0 [bea87d4a] SuiteSparse_jll v7.10.1+0 [83775a58] Zlib_jll v1.3.2+0 [3161d3a3] Zstd_jll v1.5.7+1 [8e850b90] libblastrampoline_jll v5.15.0+0 [8e850ede] nghttp2_jll v1.69.0+0 [3f19e933] p7zip_jll v17.8.0+0 Info Packages marked with ⌅ have new versions available but compatibility constraints restrict them from upgrading. Testing Running tests... Unidirectional transmission: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsGeography/ndZPi/test/test_geo_unidirectional.jl:103 Got exception outside of a @test An object of name `:sink_surplus` is already registered in this model. Consider instead using the anonymous construction syntax, for example, `x = @variable(model, [1:N], ...)` where the name of the object does not appear inside the macro. Alternatively, use `unregister(model, :sink_surplus)` to first unregister the existing name from the model. Note that this will not delete the object from the model; it will just remove the reference at `model[:sink_surplus]`. Stacktrace: [1] variables_elements(m::Model, 𝒳::Vector{EnergyModelsBase.Node}, 𝒳ᵛᵉᶜ::Vector{Vector}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:442 [2] create_model(case::Case, modeltype::OperationalModel, m::Model; check_timeprofiles::Bool, check_any_data::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:67 [3] create_model(case::Case, modeltype::OperationalModel, m::Model) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:32 [inlined] [4] optimize(case::Case, modeltype::OperationalModel) @ Main ~/.julia/packages/EnergyModelsGeography/ndZPi/test/utils.jl:9 [5] top-level scope @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_geo_unidirectional.jl:106 [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [7] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_geo_unidirectional.jl:107 [inlined] caused by: An object of name `:sink_surplus` is already registered in this model. Consider instead using the anonymous construction syntax, for example, `x = @variable(model, [1:N], ...)` where the name of the object does not appear inside the macro. Alternatively, use `unregister(model, :sink_surplus)` to first unregister the existing name from the model. Note that this will not delete the object from the model; it will just remove the reference at `model[:sink_surplus]`. Stacktrace: [1] error(s::String) @ Base error.jl:56 [2] _error_if_cannot_register(model::Model, name::Symbol) @ JuMP ~/.julia/packages/JuMP/R9AEA/src/macros.jl:456 [inlined] [3] macro expansion @ ~/.julia/packages/JuMP/R9AEA/src/macros.jl:423 [inlined] [4] variables_node(m::Model, 𝒩ˢⁱⁿᵏ::Vector{RefSink}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:555 [5] variables_element(m::Model, 𝒩ˢᵘᵇ::Vector{RefSink}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:513 [6] variables_elements(m::Model, 𝒳::Vector{EnergyModelsBase.Node}, 𝒳ᵛᵉᶜ::Vector{Vector}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:429 [7] create_model(case::Case, modeltype::OperationalModel, m::Model; check_timeprofiles::Bool, check_any_data::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:67 [8] create_model(case::Case, modeltype::OperationalModel, m::Model) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:32 [inlined] [9] optimize(case::Case, modeltype::OperationalModel) @ Main ~/.julia/packages/EnergyModelsGeography/ndZPi/test/utils.jl:9 [10] top-level scope @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_geo_unidirectional.jl:106 [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [12] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_geo_unidirectional.jl:107 [inlined] Unidirectional pipeline transmission: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsGeography/ndZPi/test/test_geo_unidirectional.jl:120 Got exception outside of a @test An object of name `:sink_surplus` is already registered in this model. Consider instead using the anonymous construction syntax, for example, `x = @variable(model, [1:N], ...)` where the name of the object does not appear inside the macro. Alternatively, use `unregister(model, :sink_surplus)` to first unregister the existing name from the model. Note that this will not delete the object from the model; it will just remove the reference at `model[:sink_surplus]`. Stacktrace: [1] variables_elements(m::Model, 𝒳::Vector{EnergyModelsBase.Node}, 𝒳ᵛᵉᶜ::Vector{Vector}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:442 [2] create_model(case::Case, modeltype::OperationalModel, m::Model; check_timeprofiles::Bool, check_any_data::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:67 [3] create_model(case::Case, modeltype::OperationalModel, m::Model) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:32 [inlined] [4] optimize(case::Case, modeltype::OperationalModel) @ Main ~/.julia/packages/EnergyModelsGeography/ndZPi/test/utils.jl:9 [5] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_geo_unidirectional.jl:141 [inlined] [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [7] top-level scope @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_geo_unidirectional.jl:122 caused by: An object of name `:sink_surplus` is already registered in this model. Consider instead using the anonymous construction syntax, for example, `x = @variable(model, [1:N], ...)` where the name of the object does not appear inside the macro. Alternatively, use `unregister(model, :sink_surplus)` to first unregister the existing name from the model. Note that this will not delete the object from the model; it will just remove the reference at `model[:sink_surplus]`. Stacktrace: [1] error(s::String) @ Base error.jl:56 [2] _error_if_cannot_register(model::Model, name::Symbol) @ JuMP ~/.julia/packages/JuMP/R9AEA/src/macros.jl:456 [inlined] [3] macro expansion @ ~/.julia/packages/JuMP/R9AEA/src/macros.jl:423 [inlined] [4] variables_node(m::Model, 𝒩ˢⁱⁿᵏ::Vector{RefSink}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:555 [5] variables_element(m::Model, 𝒩ˢᵘᵇ::Vector{RefSink}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:513 [6] variables_elements(m::Model, 𝒳::Vector{EnergyModelsBase.Node}, 𝒳ᵛᵉᶜ::Vector{Vector}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:429 [7] create_model(case::Case, modeltype::OperationalModel, m::Model; check_timeprofiles::Bool, check_any_data::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:67 [8] create_model(case::Case, modeltype::OperationalModel, m::Model) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:32 [inlined] [9] optimize(case::Case, modeltype::OperationalModel) @ Main ~/.julia/packages/EnergyModelsGeography/ndZPi/test/utils.jl:9 [10] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_geo_unidirectional.jl:141 [inlined] [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [12] top-level scope @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_geo_unidirectional.jl:122 Geography | Reference modes: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsGeography/ndZPi/test/runtests.jl:16 Got exception outside of a @test LoadError: An object of name `:sink_surplus` is already registered in this model. Consider instead using the anonymous construction syntax, for example, `x = @variable(model, [1:N], ...)` where the name of the object does not appear inside the macro. Alternatively, use `unregister(model, :sink_surplus)` to first unregister the existing name from the model. Note that this will not delete the object from the model; it will just remove the reference at `model[:sink_surplus]`. Stacktrace: [1] variables_elements(m::Model, 𝒳::Vector{EnergyModelsBase.Node}, 𝒳ᵛᵉᶜ::Vector{Vector}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:442 [2] create_model(case::Case, modeltype::OperationalModel, m::Model; check_timeprofiles::Bool, check_any_data::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:67 [3] create_model(case::Case, modeltype::OperationalModel, m::Model) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:32 [inlined] [4] optimize(case::Case, modeltype::OperationalModel) @ Main ~/.julia/packages/EnergyModelsGeography/ndZPi/test/utils.jl:9 [5] top-level scope @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_geo_bidirectional.jl:84 [6] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:330 [7] top-level scope @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/runtests.jl:16 [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [9] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/runtests.jl:17 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [11] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/runtests.jl:18 [inlined] in expression starting at /home/pkgeval/.julia/packages/EnergyModelsGeography/ndZPi/test/test_geo_bidirectional.jl:84 caused by: An object of name `:sink_surplus` is already registered in this model. Consider instead using the anonymous construction syntax, for example, `x = @variable(model, [1:N], ...)` where the name of the object does not appear inside the macro. Alternatively, use `unregister(model, :sink_surplus)` to first unregister the existing name from the model. Note that this will not delete the object from the model; it will just remove the reference at `model[:sink_surplus]`. Stacktrace: [1] error(s::String) @ Base error.jl:56 [2] _error_if_cannot_register(model::Model, name::Symbol) @ JuMP ~/.julia/packages/JuMP/R9AEA/src/macros.jl:456 [inlined] [3] macro expansion @ ~/.julia/packages/JuMP/R9AEA/src/macros.jl:423 [inlined] [4] variables_node(m::Model, 𝒩ˢⁱⁿᵏ::Vector{RefSink}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:555 [5] variables_element(m::Model, 𝒩ˢᵘᵇ::Vector{RefSink}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:513 [6] variables_elements(m::Model, 𝒳::Vector{EnergyModelsBase.Node}, 𝒳ᵛᵉᶜ::Vector{Vector}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:429 [7] create_model(case::Case, modeltype::OperationalModel, m::Model; check_timeprofiles::Bool, check_any_data::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:67 [8] create_model(case::Case, modeltype::OperationalModel, m::Model) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:32 [inlined] [9] optimize(case::Case, modeltype::OperationalModel) @ Main ~/.julia/packages/EnergyModelsGeography/ndZPi/test/utils.jl:9 [10] top-level scope @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_geo_bidirectional.jl:84 [11] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:330 [12] top-level scope @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/runtests.jl:16 [13] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [14] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/runtests.jl:17 [inlined] [15] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [16] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/runtests.jl:18 [inlined] Calculation of OPEX: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsGeography/ndZPi/test/test_geo_opex.jl:1 Got exception outside of a @test An object of name `:sink_surplus` is already registered in this model. Consider instead using the anonymous construction syntax, for example, `x = @variable(model, [1:N], ...)` where the name of the object does not appear inside the macro. Alternatively, use `unregister(model, :sink_surplus)` to first unregister the existing name from the model. Note that this will not delete the object from the model; it will just remove the reference at `model[:sink_surplus]`. Stacktrace: [1] variables_elements(m::Model, 𝒳::Vector{EnergyModelsBase.Node}, 𝒳ᵛᵉᶜ::Vector{Vector}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:442 [2] create_model(case::Case, modeltype::OperationalModel, m::Model; check_timeprofiles::Bool, check_any_data::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:67 [3] create_model(case::Case, modeltype::OperationalModel, m::Model) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:32 [inlined] [4] optimize(case::Case, modeltype::OperationalModel) @ Main ~/.julia/packages/EnergyModelsGeography/ndZPi/test/utils.jl:9 [5] top-level scope @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_geo_opex.jl:2 [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [7] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_geo_opex.jl:42 [inlined] caused by: An object of name `:sink_surplus` is already registered in this model. Consider instead using the anonymous construction syntax, for example, `x = @variable(model, [1:N], ...)` where the name of the object does not appear inside the macro. Alternatively, use `unregister(model, :sink_surplus)` to first unregister the existing name from the model. Note that this will not delete the object from the model; it will just remove the reference at `model[:sink_surplus]`. Stacktrace: [1] error(s::String) @ Base error.jl:56 [2] _error_if_cannot_register(model::Model, name::Symbol) @ JuMP ~/.julia/packages/JuMP/R9AEA/src/macros.jl:456 [inlined] [3] macro expansion @ ~/.julia/packages/JuMP/R9AEA/src/macros.jl:423 [inlined] [4] variables_node(m::Model, 𝒩ˢⁱⁿᵏ::Vector{RefSink}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:555 [5] variables_element(m::Model, 𝒩ˢᵘᵇ::Vector{RefSink}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:513 [6] variables_elements(m::Model, 𝒳::Vector{EnergyModelsBase.Node}, 𝒳ᵛᵉᶜ::Vector{Vector}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:429 [7] create_model(case::Case, modeltype::OperationalModel, m::Model; check_timeprofiles::Bool, check_any_data::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:67 [8] create_model(case::Case, modeltype::OperationalModel, m::Model) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:32 [inlined] [9] optimize(case::Case, modeltype::OperationalModel) @ Main ~/.julia/packages/EnergyModelsGeography/ndZPi/test/utils.jl:9 [10] top-level scope @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_geo_opex.jl:2 [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [12] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_geo_opex.jl:42 [inlined] Modes without OPEX: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsGeography/ndZPi/test/test_geo_opex.jl:96 Got exception outside of a @test An object of name `:sink_surplus` is already registered in this model. Consider instead using the anonymous construction syntax, for example, `x = @variable(model, [1:N], ...)` where the name of the object does not appear inside the macro. Alternatively, use `unregister(model, :sink_surplus)` to first unregister the existing name from the model. Note that this will not delete the object from the model; it will just remove the reference at `model[:sink_surplus]`. Stacktrace: [1] variables_elements(m::Model, 𝒳::Vector{EnergyModelsBase.Node}, 𝒳ᵛᵉᶜ::Vector{Vector}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:442 [2] create_model(case::Case, modeltype::OperationalModel, m::Model; check_timeprofiles::Bool, check_any_data::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:67 [3] create_model(case::Case, modeltype::OperationalModel, m::Model) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:32 [inlined] [4] top-level scope @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_geo_opex.jl:98 [5] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [6] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_geo_opex.jl:117 [inlined] caused by: An object of name `:sink_surplus` is already registered in this model. Consider instead using the anonymous construction syntax, for example, `x = @variable(model, [1:N], ...)` where the name of the object does not appear inside the macro. Alternatively, use `unregister(model, :sink_surplus)` to first unregister the existing name from the model. Note that this will not delete the object from the model; it will just remove the reference at `model[:sink_surplus]`. Stacktrace: [1] error(s::String) @ Base error.jl:56 [2] _error_if_cannot_register(model::Model, name::Symbol) @ JuMP ~/.julia/packages/JuMP/R9AEA/src/macros.jl:456 [inlined] [3] macro expansion @ ~/.julia/packages/JuMP/R9AEA/src/macros.jl:423 [inlined] [4] variables_node(m::Model, 𝒩ˢⁱⁿᵏ::Vector{RefSink}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:555 [5] variables_element(m::Model, 𝒩ˢᵘᵇ::Vector{RefSink}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:513 [6] variables_elements(m::Model, 𝒳::Vector{EnergyModelsBase.Node}, 𝒳ᵛᵉᶜ::Vector{Vector}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:429 [7] create_model(case::Case, modeltype::OperationalModel, m::Model; check_timeprofiles::Bool, check_any_data::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:67 [8] create_model(case::Case, modeltype::OperationalModel, m::Model) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:32 [inlined] [9] top-level scope @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_geo_opex.jl:98 [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [11] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_geo_opex.jl:117 [inlined] Geography | SimplePipe: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsGeography/ndZPi/test/runtests.jl:25 Got exception outside of a @test LoadError: An object of name `:sink_surplus` is already registered in this model. Consider instead using the anonymous construction syntax, for example, `x = @variable(model, [1:N], ...)` where the name of the object does not appear inside the macro. Alternatively, use `unregister(model, :sink_surplus)` to first unregister the existing name from the model. Note that this will not delete the object from the model; it will just remove the reference at `model[:sink_surplus]`. Stacktrace: [1] variables_elements(m::Model, 𝒳::Vector{EnergyModelsBase.Node}, 𝒳ᵛᵉᶜ::Vector{Vector}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:442 [2] create_model(case::Case, modeltype::OperationalModel, m::Model; check_timeprofiles::Bool, check_any_data::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:67 [3] create_model(case::Case, modeltype::OperationalModel, m::Model) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:32 [inlined] [4] optimize(case::Case, modeltype::OperationalModel) @ Main ~/.julia/packages/EnergyModelsGeography/ndZPi/test/utils.jl:9 [5] top-level scope @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_simplepipe.jl:71 [6] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:330 [7] top-level scope @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/runtests.jl:16 [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [9] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/runtests.jl:26 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [11] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/runtests.jl:26 [inlined] in expression starting at /home/pkgeval/.julia/packages/EnergyModelsGeography/ndZPi/test/test_simplepipe.jl:71 caused by: An object of name `:sink_surplus` is already registered in this model. Consider instead using the anonymous construction syntax, for example, `x = @variable(model, [1:N], ...)` where the name of the object does not appear inside the macro. Alternatively, use `unregister(model, :sink_surplus)` to first unregister the existing name from the model. Note that this will not delete the object from the model; it will just remove the reference at `model[:sink_surplus]`. Stacktrace: [1] error(s::String) @ Base error.jl:56 [2] _error_if_cannot_register(model::Model, name::Symbol) @ JuMP ~/.julia/packages/JuMP/R9AEA/src/macros.jl:456 [inlined] [3] macro expansion @ ~/.julia/packages/JuMP/R9AEA/src/macros.jl:423 [inlined] [4] variables_node(m::Model, 𝒩ˢⁱⁿᵏ::Vector{RefSink}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:555 [5] variables_element(m::Model, 𝒩ˢᵘᵇ::Vector{RefSink}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:513 [6] variables_elements(m::Model, 𝒳::Vector{EnergyModelsBase.Node}, 𝒳ᵛᵉᶜ::Vector{Vector}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:429 [7] create_model(case::Case, modeltype::OperationalModel, m::Model; check_timeprofiles::Bool, check_any_data::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:67 [8] create_model(case::Case, modeltype::OperationalModel, m::Model) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:32 [inlined] [9] optimize(case::Case, modeltype::OperationalModel) @ Main ~/.julia/packages/EnergyModelsGeography/ndZPi/test/utils.jl:9 [10] top-level scope @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_simplepipe.jl:71 [11] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:330 [12] top-level scope @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/runtests.jl:16 [13] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [14] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/runtests.jl:26 [inlined] [15] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [16] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/runtests.jl:26 [inlined] Geography | SimpleLinePack: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsGeography/ndZPi/test/runtests.jl:29 Got exception outside of a @test LoadError: An object of name `:sink_surplus` is already registered in this model. Consider instead using the anonymous construction syntax, for example, `x = @variable(model, [1:N], ...)` where the name of the object does not appear inside the macro. Alternatively, use `unregister(model, :sink_surplus)` to first unregister the existing name from the model. Note that this will not delete the object from the model; it will just remove the reference at `model[:sink_surplus]`. Stacktrace: [1] variables_elements(m::Model, 𝒳::Vector{EnergyModelsBase.Node}, 𝒳ᵛᵉᶜ::Vector{Vector}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:442 [2] create_model(case::Case, modeltype::OperationalModel, m::Model; check_timeprofiles::Bool, check_any_data::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:67 [3] create_model(case::Case, modeltype::OperationalModel, m::Model) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:32 [inlined] [4] optimize(case::Case, modeltype::OperationalModel) @ Main ~/.julia/packages/EnergyModelsGeography/ndZPi/test/utils.jl:9 [5] top-level scope @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_simplelinepack.jl:73 [6] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:330 [7] top-level scope @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/runtests.jl:16 [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [9] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/runtests.jl:30 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [11] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/runtests.jl:30 [inlined] in expression starting at /home/pkgeval/.julia/packages/EnergyModelsGeography/ndZPi/test/test_simplelinepack.jl:73 caused by: An object of name `:sink_surplus` is already registered in this model. Consider instead using the anonymous construction syntax, for example, `x = @variable(model, [1:N], ...)` where the name of the object does not appear inside the macro. Alternatively, use `unregister(model, :sink_surplus)` to first unregister the existing name from the model. Note that this will not delete the object from the model; it will just remove the reference at `model[:sink_surplus]`. Stacktrace: [1] error(s::String) @ Base error.jl:56 [2] _error_if_cannot_register(model::Model, name::Symbol) @ JuMP ~/.julia/packages/JuMP/R9AEA/src/macros.jl:456 [inlined] [3] macro expansion @ ~/.julia/packages/JuMP/R9AEA/src/macros.jl:423 [inlined] [4] variables_node(m::Model, 𝒩ˢⁱⁿᵏ::Vector{RefSink}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:555 [5] variables_element(m::Model, 𝒩ˢᵘᵇ::Vector{RefSink}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:513 [6] variables_elements(m::Model, 𝒳::Vector{EnergyModelsBase.Node}, 𝒳ᵛᵉᶜ::Vector{Vector}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:429 [7] create_model(case::Case, modeltype::OperationalModel, m::Model; check_timeprofiles::Bool, check_any_data::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:67 [8] create_model(case::Case, modeltype::OperationalModel, m::Model) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:32 [inlined] [9] optimize(case::Case, modeltype::OperationalModel) @ Main ~/.julia/packages/EnergyModelsGeography/ndZPi/test/utils.jl:9 [10] top-level scope @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_simplelinepack.jl:73 [11] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:330 [12] top-level scope @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/runtests.jl:16 [13] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [14] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/runtests.jl:30 [inlined] [15] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [16] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/runtests.jl:30 [inlined] Emission variable generation: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsGeography/ndZPi/test/test_emissions.jl:112 Got exception outside of a @test An object of name `:sink_surplus` is already registered in this model. Consider instead using the anonymous construction syntax, for example, `x = @variable(model, [1:N], ...)` where the name of the object does not appear inside the macro. Alternatively, use `unregister(model, :sink_surplus)` to first unregister the existing name from the model. Note that this will not delete the object from the model; it will just remove the reference at `model[:sink_surplus]`. Stacktrace: [1] variables_elements(m::Model, 𝒳::Vector{EnergyModelsBase.Node}, 𝒳ᵛᵉᶜ::Vector{Vector}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:442 [2] create_model(case::Case, modeltype::OperationalModel, m::Model; check_timeprofiles::Bool, check_any_data::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:67 [3] create_model(case::Case, modeltype::OperationalModel, m::Model) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:32 [inlined] [4] top-level scope @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_emissions.jl:113 [5] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [6] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_emissions.jl:114 [inlined] caused by: An object of name `:sink_surplus` is already registered in this model. Consider instead using the anonymous construction syntax, for example, `x = @variable(model, [1:N], ...)` where the name of the object does not appear inside the macro. Alternatively, use `unregister(model, :sink_surplus)` to first unregister the existing name from the model. Note that this will not delete the object from the model; it will just remove the reference at `model[:sink_surplus]`. Stacktrace: [1] error(s::String) @ Base error.jl:56 [2] _error_if_cannot_register(model::Model, name::Symbol) @ JuMP ~/.julia/packages/JuMP/R9AEA/src/macros.jl:456 [inlined] [3] macro expansion @ ~/.julia/packages/JuMP/R9AEA/src/macros.jl:423 [inlined] [4] variables_node(m::Model, 𝒩ˢⁱⁿᵏ::Vector{RefSink}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:555 [5] variables_element(m::Model, 𝒩ˢᵘᵇ::Vector{RefSink}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:513 [6] variables_elements(m::Model, 𝒳::Vector{EnergyModelsBase.Node}, 𝒳ᵛᵉᶜ::Vector{Vector}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:429 [7] create_model(case::Case, modeltype::OperationalModel, m::Model; check_timeprofiles::Bool, check_any_data::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:67 [8] create_model(case::Case, modeltype::OperationalModel, m::Model) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:32 [inlined] [9] top-level scope @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_emissions.jl:113 [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [11] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_emissions.jl:114 [inlined] Unidirectional transport: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsGeography/ndZPi/test/test_emissions.jl:124 Got exception outside of a @test An object of name `:sink_surplus` is already registered in this model. Consider instead using the anonymous construction syntax, for example, `x = @variable(model, [1:N], ...)` where the name of the object does not appear inside the macro. Alternatively, use `unregister(model, :sink_surplus)` to first unregister the existing name from the model. Note that this will not delete the object from the model; it will just remove the reference at `model[:sink_surplus]`. Stacktrace: [1] variables_elements(m::Model, 𝒳::Vector{EnergyModelsBase.Node}, 𝒳ᵛᵉᶜ::Vector{Vector}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:442 [2] create_model(case::Case, modeltype::OperationalModel, m::Model; check_timeprofiles::Bool, check_any_data::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:67 [3] create_model(case::Case, modeltype::OperationalModel, m::Model) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:32 [inlined] [4] optimize(case::Case, modeltype::OperationalModel) @ Main ~/.julia/packages/EnergyModelsGeography/ndZPi/test/utils.jl:9 [5] top-level scope @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_emissions.jl:125 [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [7] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_emissions.jl:126 [inlined] caused by: An object of name `:sink_surplus` is already registered in this model. Consider instead using the anonymous construction syntax, for example, `x = @variable(model, [1:N], ...)` where the name of the object does not appear inside the macro. Alternatively, use `unregister(model, :sink_surplus)` to first unregister the existing name from the model. Note that this will not delete the object from the model; it will just remove the reference at `model[:sink_surplus]`. Stacktrace: [1] error(s::String) @ Base error.jl:56 [2] _error_if_cannot_register(model::Model, name::Symbol) @ JuMP ~/.julia/packages/JuMP/R9AEA/src/macros.jl:456 [inlined] [3] macro expansion @ ~/.julia/packages/JuMP/R9AEA/src/macros.jl:423 [inlined] [4] variables_node(m::Model, 𝒩ˢⁱⁿᵏ::Vector{RefSink}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:555 [5] variables_element(m::Model, 𝒩ˢᵘᵇ::Vector{RefSink}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:513 [6] variables_elements(m::Model, 𝒳::Vector{EnergyModelsBase.Node}, 𝒳ᵛᵉᶜ::Vector{Vector}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:429 [7] create_model(case::Case, modeltype::OperationalModel, m::Model; check_timeprofiles::Bool, check_any_data::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:67 [8] create_model(case::Case, modeltype::OperationalModel, m::Model) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:32 [inlined] [9] optimize(case::Case, modeltype::OperationalModel) @ Main ~/.julia/packages/EnergyModelsGeography/ndZPi/test/utils.jl:9 [10] top-level scope @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_emissions.jl:125 [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [12] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_emissions.jl:126 [inlined] Bidirectional transport: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsGeography/ndZPi/test/test_emissions.jl:151 Got exception outside of a @test An object of name `:sink_surplus` is already registered in this model. Consider instead using the anonymous construction syntax, for example, `x = @variable(model, [1:N], ...)` where the name of the object does not appear inside the macro. Alternatively, use `unregister(model, :sink_surplus)` to first unregister the existing name from the model. Note that this will not delete the object from the model; it will just remove the reference at `model[:sink_surplus]`. Stacktrace: [1] variables_elements(m::Model, 𝒳::Vector{EnergyModelsBase.Node}, 𝒳ᵛᵉᶜ::Vector{Vector}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:442 [2] create_model(case::Case, modeltype::OperationalModel, m::Model; check_timeprofiles::Bool, check_any_data::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:67 [3] create_model(case::Case, modeltype::OperationalModel, m::Model) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:32 [inlined] [4] optimize(case::Case, modeltype::OperationalModel) @ Main ~/.julia/packages/EnergyModelsGeography/ndZPi/test/utils.jl:9 [5] top-level scope @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_emissions.jl:152 [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [7] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_emissions.jl:155 [inlined] caused by: An object of name `:sink_surplus` is already registered in this model. Consider instead using the anonymous construction syntax, for example, `x = @variable(model, [1:N], ...)` where the name of the object does not appear inside the macro. Alternatively, use `unregister(model, :sink_surplus)` to first unregister the existing name from the model. Note that this will not delete the object from the model; it will just remove the reference at `model[:sink_surplus]`. Stacktrace: [1] error(s::String) @ Base error.jl:56 [2] _error_if_cannot_register(model::Model, name::Symbol) @ JuMP ~/.julia/packages/JuMP/R9AEA/src/macros.jl:456 [inlined] [3] macro expansion @ ~/.julia/packages/JuMP/R9AEA/src/macros.jl:423 [inlined] [4] variables_node(m::Model, 𝒩ˢⁱⁿᵏ::Vector{RefSink}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:555 [5] variables_element(m::Model, 𝒩ˢᵘᵇ::Vector{RefSink}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:513 [6] variables_elements(m::Model, 𝒳::Vector{EnergyModelsBase.Node}, 𝒳ᵛᵉᶜ::Vector{Vector}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:429 [7] create_model(case::Case, modeltype::OperationalModel, m::Model; check_timeprofiles::Bool, check_any_data::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:67 [8] create_model(case::Case, modeltype::OperationalModel, m::Model) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:32 [inlined] [9] optimize(case::Case, modeltype::OperationalModel) @ Main ~/.julia/packages/EnergyModelsGeography/ndZPi/test/utils.jl:9 [10] top-level scope @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_emissions.jl:152 [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [12] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_emissions.jl:155 [inlined] Unidirectional: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsGeography/ndZPi/test/test_mode.jl:333 Got exception outside of a @test An object of name `:sink_surplus` is already registered in this model. Consider instead using the anonymous construction syntax, for example, `x = @variable(model, [1:N], ...)` where the name of the object does not appear inside the macro. Alternatively, use `unregister(model, :sink_surplus)` to first unregister the existing name from the model. Note that this will not delete the object from the model; it will just remove the reference at `model[:sink_surplus]`. Stacktrace: [1] variables_elements(m::Model, 𝒳::Vector{EnergyModelsBase.Node}, 𝒳ᵛᵉᶜ::Vector{Vector}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:442 [2] create_model(case::Case, modeltype::OperationalModel, m::Model; check_timeprofiles::Bool, check_any_data::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:67 [3] create_model(case::Case, modeltype::OperationalModel, m::Model) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:32 [inlined] [4] optimize(case::Case, modeltype::OperationalModel) @ Main ~/.julia/packages/EnergyModelsGeography/ndZPi/test/utils.jl:9 [5] (::var"#uni_analysis#uni_analysis##0")(mode::RefStatic) @ Main ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_mode.jl:336 [6] top-level scope @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_mode.jl:333 [7] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [8] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_mode.jl:334 [inlined] [9] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [10] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_mode.jl:424 [inlined] caused by: An object of name `:sink_surplus` is already registered in this model. Consider instead using the anonymous construction syntax, for example, `x = @variable(model, [1:N], ...)` where the name of the object does not appear inside the macro. Alternatively, use `unregister(model, :sink_surplus)` to first unregister the existing name from the model. Note that this will not delete the object from the model; it will just remove the reference at `model[:sink_surplus]`. Stacktrace: [1] error(s::String) @ Base error.jl:56 [2] _error_if_cannot_register(model::Model, name::Symbol) @ JuMP ~/.julia/packages/JuMP/R9AEA/src/macros.jl:456 [inlined] [3] macro expansion @ ~/.julia/packages/JuMP/R9AEA/src/macros.jl:423 [inlined] [4] variables_node(m::Model, 𝒩ˢⁱⁿᵏ::Vector{RefSink}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:555 [5] variables_element(m::Model, 𝒩ˢᵘᵇ::Vector{RefSink}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:513 [6] variables_elements(m::Model, 𝒳::Vector{EnergyModelsBase.Node}, 𝒳ᵛᵉᶜ::Vector{Vector}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:429 [7] create_model(case::Case, modeltype::OperationalModel, m::Model; check_timeprofiles::Bool, check_any_data::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:67 [8] create_model(case::Case, modeltype::OperationalModel, m::Model) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:32 [inlined] [9] optimize(case::Case, modeltype::OperationalModel) @ Main ~/.julia/packages/EnergyModelsGeography/ndZPi/test/utils.jl:9 [10] (::var"#uni_analysis#uni_analysis##0")(mode::RefStatic) @ Main ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_mode.jl:336 [11] top-level scope @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_mode.jl:333 [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [13] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_mode.jl:334 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [15] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_mode.jl:424 [inlined] Bidirectional: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsGeography/ndZPi/test/test_mode.jl:439 Got exception outside of a @test An object of name `:sink_surplus` is already registered in this model. Consider instead using the anonymous construction syntax, for example, `x = @variable(model, [1:N], ...)` where the name of the object does not appear inside the macro. Alternatively, use `unregister(model, :sink_surplus)` to first unregister the existing name from the model. Note that this will not delete the object from the model; it will just remove the reference at `model[:sink_surplus]`. Stacktrace: [1] variables_elements(m::Model, 𝒳::Vector{EnergyModelsBase.Node}, 𝒳ᵛᵉᶜ::Vector{Vector}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:442 [2] create_model(case::Case, modeltype::OperationalModel, m::Model; check_timeprofiles::Bool, check_any_data::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:67 [3] create_model(case::Case, modeltype::OperationalModel, m::Model) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:32 [inlined] [4] optimize(case::Case, modeltype::OperationalModel) @ Main ~/.julia/packages/EnergyModelsGeography/ndZPi/test/utils.jl:9 [5] (::var"#bi_analysis#bi_analysis##0")(mode::RefStatic) @ Main ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_mode.jl:442 [6] top-level scope @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_mode.jl:333 [7] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [8] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_mode.jl:440 [inlined] [9] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [10] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_mode.jl:556 [inlined] caused by: An object of name `:sink_surplus` is already registered in this model. Consider instead using the anonymous construction syntax, for example, `x = @variable(model, [1:N], ...)` where the name of the object does not appear inside the macro. Alternatively, use `unregister(model, :sink_surplus)` to first unregister the existing name from the model. Note that this will not delete the object from the model; it will just remove the reference at `model[:sink_surplus]`. Stacktrace: [1] error(s::String) @ Base error.jl:56 [2] _error_if_cannot_register(model::Model, name::Symbol) @ JuMP ~/.julia/packages/JuMP/R9AEA/src/macros.jl:456 [inlined] [3] macro expansion @ ~/.julia/packages/JuMP/R9AEA/src/macros.jl:423 [inlined] [4] variables_node(m::Model, 𝒩ˢⁱⁿᵏ::Vector{RefSink}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:555 [5] variables_element(m::Model, 𝒩ˢᵘᵇ::Vector{RefSink}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:513 [6] variables_elements(m::Model, 𝒳::Vector{EnergyModelsBase.Node}, 𝒳ᵛᵉᶜ::Vector{Vector}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:429 [7] create_model(case::Case, modeltype::OperationalModel, m::Model; check_timeprofiles::Bool, check_any_data::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:67 [8] create_model(case::Case, modeltype::OperationalModel, m::Model) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:32 [inlined] [9] optimize(case::Case, modeltype::OperationalModel) @ Main ~/.julia/packages/EnergyModelsGeography/ndZPi/test/utils.jl:9 [10] (::var"#bi_analysis#bi_analysis##0")(mode::RefStatic) @ Main ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_mode.jl:442 [11] top-level scope @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_mode.jl:333 [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [13] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_mode.jl:440 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [15] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_mode.jl:556 [inlined] Reversed couplings: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsGeography/ndZPi/test/test_mode.jl:571 Got exception outside of a @test An object of name `:sink_surplus` is already registered in this model. Consider instead using the anonymous construction syntax, for example, `x = @variable(model, [1:N], ...)` where the name of the object does not appear inside the macro. Alternatively, use `unregister(model, :sink_surplus)` to first unregister the existing name from the model. Note that this will not delete the object from the model; it will just remove the reference at `model[:sink_surplus]`. Stacktrace: [1] variables_elements(m::Model, 𝒳::Vector{EnergyModelsBase.Node}, 𝒳ᵛᵉᶜ::Vector{Vector}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:442 [2] create_model(case::Case, modeltype::OperationalModel, m::Model; check_timeprofiles::Bool, check_any_data::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:67 [3] create_model(case::Case, modeltype::OperationalModel, m::Model) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:32 [inlined] [4] optimize(case::Case, modeltype::OperationalModel) @ Main ~/.julia/packages/EnergyModelsGeography/ndZPi/test/utils.jl:9 [5] top-level scope @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_mode.jl:333 [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [7] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_mode.jl:573 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [9] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_mode.jl:589 [inlined] caused by: An object of name `:sink_surplus` is already registered in this model. Consider instead using the anonymous construction syntax, for example, `x = @variable(model, [1:N], ...)` where the name of the object does not appear inside the macro. Alternatively, use `unregister(model, :sink_surplus)` to first unregister the existing name from the model. Note that this will not delete the object from the model; it will just remove the reference at `model[:sink_surplus]`. Stacktrace: [1] error(s::String) @ Base error.jl:56 [2] _error_if_cannot_register(model::Model, name::Symbol) @ JuMP ~/.julia/packages/JuMP/R9AEA/src/macros.jl:456 [inlined] [3] macro expansion @ ~/.julia/packages/JuMP/R9AEA/src/macros.jl:423 [inlined] [4] variables_node(m::Model, 𝒩ˢⁱⁿᵏ::Vector{RefSink}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:555 [5] variables_element(m::Model, 𝒩ˢᵘᵇ::Vector{RefSink}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:513 [6] variables_elements(m::Model, 𝒳::Vector{EnergyModelsBase.Node}, 𝒳ᵛᵉᶜ::Vector{Vector}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:429 [7] create_model(case::Case, modeltype::OperationalModel, m::Model; check_timeprofiles::Bool, check_any_data::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:67 [8] create_model(case::Case, modeltype::OperationalModel, m::Model) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:32 [inlined] [9] optimize(case::Case, modeltype::OperationalModel) @ Main ~/.julia/packages/EnergyModelsGeography/ndZPi/test/utils.jl:9 [10] top-level scope @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_mode.jl:333 [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [12] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_mode.jl:573 [inlined] [13] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [14] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_mode.jl:589 [inlined] PipeSimple: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsGeography/ndZPi/test/test_mode.jl:595 Got exception outside of a @test An object of name `:sink_surplus` is already registered in this model. Consider instead using the anonymous construction syntax, for example, `x = @variable(model, [1:N], ...)` where the name of the object does not appear inside the macro. Alternatively, use `unregister(model, :sink_surplus)` to first unregister the existing name from the model. Note that this will not delete the object from the model; it will just remove the reference at `model[:sink_surplus]`. Stacktrace: [1] variables_elements(m::Model, 𝒳::Vector{EnergyModelsBase.Node}, 𝒳ᵛᵉᶜ::Vector{Vector}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:442 [2] create_model(case::Case, modeltype::OperationalModel, m::Model; check_timeprofiles::Bool, check_any_data::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:67 [3] create_model(case::Case, modeltype::OperationalModel, m::Model) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:32 [inlined] [4] optimize(case::Case, modeltype::OperationalModel) @ Main ~/.julia/packages/EnergyModelsGeography/ndZPi/test/utils.jl:9 [5] top-level scope @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_mode.jl:596 [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [7] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_mode.jl:608 [inlined] caused by: An object of name `:sink_surplus` is already registered in this model. Consider instead using the anonymous construction syntax, for example, `x = @variable(model, [1:N], ...)` where the name of the object does not appear inside the macro. Alternatively, use `unregister(model, :sink_surplus)` to first unregister the existing name from the model. Note that this will not delete the object from the model; it will just remove the reference at `model[:sink_surplus]`. Stacktrace: [1] error(s::String) @ Base error.jl:56 [2] _error_if_cannot_register(model::Model, name::Symbol) @ JuMP ~/.julia/packages/JuMP/R9AEA/src/macros.jl:456 [inlined] [3] macro expansion @ ~/.julia/packages/JuMP/R9AEA/src/macros.jl:423 [inlined] [4] variables_node(m::Model, 𝒩ˢⁱⁿᵏ::Vector{RefSink}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:555 [5] variables_element(m::Model, 𝒩ˢᵘᵇ::Vector{RefSink}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:513 [6] variables_elements(m::Model, 𝒳::Vector{EnergyModelsBase.Node}, 𝒳ᵛᵉᶜ::Vector{Vector}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:429 [7] create_model(case::Case, modeltype::OperationalModel, m::Model; check_timeprofiles::Bool, check_any_data::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:67 [8] create_model(case::Case, modeltype::OperationalModel, m::Model) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:32 [inlined] [9] optimize(case::Case, modeltype::OperationalModel) @ Main ~/.julia/packages/EnergyModelsGeography/ndZPi/test/utils.jl:9 [10] top-level scope @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_mode.jl:596 [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [12] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_mode.jl:608 [inlined] PipeLinepackSimple: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsGeography/ndZPi/test/test_mode.jl:689 Got exception outside of a @test An object of name `:sink_surplus` is already registered in this model. Consider instead using the anonymous construction syntax, for example, `x = @variable(model, [1:N], ...)` where the name of the object does not appear inside the macro. Alternatively, use `unregister(model, :sink_surplus)` to first unregister the existing name from the model. Note that this will not delete the object from the model; it will just remove the reference at `model[:sink_surplus]`. Stacktrace: [1] variables_elements(m::Model, 𝒳::Vector{EnergyModelsBase.Node}, 𝒳ᵛᵉᶜ::Vector{Vector}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:442 [2] create_model(case::Case, modeltype::OperationalModel, m::Model; check_timeprofiles::Bool, check_any_data::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:67 [3] create_model(case::Case, modeltype::OperationalModel, m::Model) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:32 [inlined] [4] optimize(case::Case, modeltype::OperationalModel) @ Main ~/.julia/packages/EnergyModelsGeography/ndZPi/test/utils.jl:9 [5] top-level scope @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_mode.jl:690 [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [7] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_mode.jl:703 [inlined] caused by: An object of name `:sink_surplus` is already registered in this model. Consider instead using the anonymous construction syntax, for example, `x = @variable(model, [1:N], ...)` where the name of the object does not appear inside the macro. Alternatively, use `unregister(model, :sink_surplus)` to first unregister the existing name from the model. Note that this will not delete the object from the model; it will just remove the reference at `model[:sink_surplus]`. Stacktrace: [1] error(s::String) @ Base error.jl:56 [2] _error_if_cannot_register(model::Model, name::Symbol) @ JuMP ~/.julia/packages/JuMP/R9AEA/src/macros.jl:456 [inlined] [3] macro expansion @ ~/.julia/packages/JuMP/R9AEA/src/macros.jl:423 [inlined] [4] variables_node(m::Model, 𝒩ˢⁱⁿᵏ::Vector{RefSink}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:555 [5] variables_element(m::Model, 𝒩ˢᵘᵇ::Vector{RefSink}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:513 [6] variables_elements(m::Model, 𝒳::Vector{EnergyModelsBase.Node}, 𝒳ᵛᵉᶜ::Vector{Vector}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:429 [7] create_model(case::Case, modeltype::OperationalModel, m::Model; check_timeprofiles::Bool, check_any_data::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:67 [8] create_model(case::Case, modeltype::OperationalModel, m::Model) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:32 [inlined] [9] optimize(case::Case, modeltype::OperationalModel) @ Main ~/.julia/packages/EnergyModelsGeography/ndZPi/test/utils.jl:9 [10] top-level scope @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_mode.jl:690 [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [12] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_mode.jl:703 [inlined] RefStatic: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsGeography/ndZPi/test/test_area.jl:136 Got exception outside of a @test An object of name `:sink_surplus` is already registered in this model. Consider instead using the anonymous construction syntax, for example, `x = @variable(model, [1:N], ...)` where the name of the object does not appear inside the macro. Alternatively, use `unregister(model, :sink_surplus)` to first unregister the existing name from the model. Note that this will not delete the object from the model; it will just remove the reference at `model[:sink_surplus]`. Stacktrace: [1] variables_elements(m::Model, 𝒳::Vector{EnergyModelsBase.Node}, 𝒳ᵛᵉᶜ::Vector{Vector}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:442 [2] create_model(case::Case, modeltype::OperationalModel, m::Model; check_timeprofiles::Bool, check_any_data::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:67 [3] create_model(case::Case, modeltype::OperationalModel, m::Model) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:32 [inlined] [4] optimize(case::Case, modeltype::OperationalModel) @ Main ~/.julia/packages/EnergyModelsGeography/ndZPi/test/utils.jl:9 [5] top-level scope @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_area.jl:136 [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [7] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_area.jl:137 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [9] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_area.jl:147 [inlined] caused by: An object of name `:sink_surplus` is already registered in this model. Consider instead using the anonymous construction syntax, for example, `x = @variable(model, [1:N], ...)` where the name of the object does not appear inside the macro. Alternatively, use `unregister(model, :sink_surplus)` to first unregister the existing name from the model. Note that this will not delete the object from the model; it will just remove the reference at `model[:sink_surplus]`. Stacktrace: [1] error(s::String) @ Base error.jl:56 [2] _error_if_cannot_register(model::Model, name::Symbol) @ JuMP ~/.julia/packages/JuMP/R9AEA/src/macros.jl:456 [inlined] [3] macro expansion @ ~/.julia/packages/JuMP/R9AEA/src/macros.jl:423 [inlined] [4] variables_node(m::Model, 𝒩ˢⁱⁿᵏ::Vector{RefSink}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:555 [5] variables_element(m::Model, 𝒩ˢᵘᵇ::Vector{RefSink}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:513 [6] variables_elements(m::Model, 𝒳::Vector{EnergyModelsBase.Node}, 𝒳ᵛᵉᶜ::Vector{Vector}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:429 [7] create_model(case::Case, modeltype::OperationalModel, m::Model; check_timeprofiles::Bool, check_any_data::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:67 [8] create_model(case::Case, modeltype::OperationalModel, m::Model) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:32 [inlined] [9] optimize(case::Case, modeltype::OperationalModel) @ Main ~/.julia/packages/EnergyModelsGeography/ndZPi/test/utils.jl:9 [10] top-level scope @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_area.jl:136 [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [12] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_area.jl:137 [inlined] [13] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [14] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_area.jl:147 [inlined] PipeSimple: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsGeography/ndZPi/test/test_area.jl:195 Got exception outside of a @test An object of name `:sink_surplus` is already registered in this model. Consider instead using the anonymous construction syntax, for example, `x = @variable(model, [1:N], ...)` where the name of the object does not appear inside the macro. Alternatively, use `unregister(model, :sink_surplus)` to first unregister the existing name from the model. Note that this will not delete the object from the model; it will just remove the reference at `model[:sink_surplus]`. Stacktrace: [1] variables_elements(m::Model, 𝒳::Vector{EnergyModelsBase.Node}, 𝒳ᵛᵉᶜ::Vector{Vector}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:442 [2] create_model(case::Case, modeltype::OperationalModel, m::Model; check_timeprofiles::Bool, check_any_data::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:67 [3] create_model(case::Case, modeltype::OperationalModel, m::Model) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:32 [inlined] [4] optimize(case::Case, modeltype::OperationalModel) @ Main ~/.julia/packages/EnergyModelsGeography/ndZPi/test/utils.jl:9 [5] top-level scope @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_area.jl:136 [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [7] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_area.jl:196 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [9] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_area.jl:208 [inlined] caused by: An object of name `:sink_surplus` is already registered in this model. Consider instead using the anonymous construction syntax, for example, `x = @variable(model, [1:N], ...)` where the name of the object does not appear inside the macro. Alternatively, use `unregister(model, :sink_surplus)` to first unregister the existing name from the model. Note that this will not delete the object from the model; it will just remove the reference at `model[:sink_surplus]`. Stacktrace: [1] error(s::String) @ Base error.jl:56 [2] _error_if_cannot_register(model::Model, name::Symbol) @ JuMP ~/.julia/packages/JuMP/R9AEA/src/macros.jl:456 [inlined] [3] macro expansion @ ~/.julia/packages/JuMP/R9AEA/src/macros.jl:423 [inlined] [4] variables_node(m::Model, 𝒩ˢⁱⁿᵏ::Vector{RefSink}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:555 [5] variables_element(m::Model, 𝒩ˢᵘᵇ::Vector{RefSink}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:513 [6] variables_elements(m::Model, 𝒳::Vector{EnergyModelsBase.Node}, 𝒳ᵛᵉᶜ::Vector{Vector}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:429 [7] create_model(case::Case, modeltype::OperationalModel, m::Model; check_timeprofiles::Bool, check_any_data::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:67 [8] create_model(case::Case, modeltype::OperationalModel, m::Model) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:32 [inlined] [9] optimize(case::Case, modeltype::OperationalModel) @ Main ~/.julia/packages/EnergyModelsGeography/ndZPi/test/utils.jl:9 [10] top-level scope @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_area.jl:136 [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [12] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_area.jl:196 [inlined] [13] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [14] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_area.jl:208 [inlined] LimitedExchangeArea: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsGeography/ndZPi/test/test_area.jl:267 Got exception outside of a @test An object of name `:sink_surplus` is already registered in this model. Consider instead using the anonymous construction syntax, for example, `x = @variable(model, [1:N], ...)` where the name of the object does not appear inside the macro. Alternatively, use `unregister(model, :sink_surplus)` to first unregister the existing name from the model. Note that this will not delete the object from the model; it will just remove the reference at `model[:sink_surplus]`. Stacktrace: [1] variables_elements(m::Model, 𝒳::Vector{EnergyModelsBase.Node}, 𝒳ᵛᵉᶜ::Vector{Vector}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:442 [2] create_model(case::Case, modeltype::OperationalModel, m::Model; check_timeprofiles::Bool, check_any_data::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:67 [3] create_model(case::Case, modeltype::OperationalModel, m::Model) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:32 [inlined] [4] optimize(case::Case, modeltype::OperationalModel) @ Main ~/.julia/packages/EnergyModelsGeography/ndZPi/test/utils.jl:9 [5] top-level scope @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_area.jl:268 [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [7] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_area.jl:298 [inlined] caused by: An object of name `:sink_surplus` is already registered in this model. Consider instead using the anonymous construction syntax, for example, `x = @variable(model, [1:N], ...)` where the name of the object does not appear inside the macro. Alternatively, use `unregister(model, :sink_surplus)` to first unregister the existing name from the model. Note that this will not delete the object from the model; it will just remove the reference at `model[:sink_surplus]`. Stacktrace: [1] error(s::String) @ Base error.jl:56 [2] _error_if_cannot_register(model::Model, name::Symbol) @ JuMP ~/.julia/packages/JuMP/R9AEA/src/macros.jl:456 [inlined] [3] macro expansion @ ~/.julia/packages/JuMP/R9AEA/src/macros.jl:423 [inlined] [4] variables_node(m::Model, 𝒩ˢⁱⁿᵏ::Vector{RefSink}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:555 [5] variables_element(m::Model, 𝒩ˢᵘᵇ::Vector{RefSink}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:513 [6] variables_elements(m::Model, 𝒳::Vector{EnergyModelsBase.Node}, 𝒳ᵛᵉᶜ::Vector{Vector}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:429 [7] create_model(case::Case, modeltype::OperationalModel, m::Model; check_timeprofiles::Bool, check_any_data::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:67 [8] create_model(case::Case, modeltype::OperationalModel, m::Model) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:32 [inlined] [9] optimize(case::Case, modeltype::OperationalModel) @ Main ~/.julia/packages/EnergyModelsGeography/ndZPi/test/utils.jl:9 [10] top-level scope @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_area.jl:268 [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [12] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_area.jl:298 [inlined] Resource flow | PotentialPower: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsGeography/ndZPi/test/test_resource_flow.jl:201 Got exception outside of a @test An object of name `:sink_surplus` is already registered in this model. Consider instead using the anonymous construction syntax, for example, `x = @variable(model, [1:N], ...)` where the name of the object does not appear inside the macro. Alternatively, use `unregister(model, :sink_surplus)` to first unregister the existing name from the model. Note that this will not delete the object from the model; it will just remove the reference at `model[:sink_surplus]`. Stacktrace: [1] variables_elements(m::Model, 𝒳::Vector{EnergyModelsBase.Node}, 𝒳ᵛᵉᶜ::Vector{Vector}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:442 [2] create_model(case::Case, modeltype::OperationalModel, m::Model; check_timeprofiles::Bool, check_any_data::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:67 [3] create_model(case::Case, modeltype::OperationalModel, m::Model) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:32 [inlined] [4] optimize(case::Case, modeltype::OperationalModel) @ Main ~/.julia/packages/EnergyModelsGeography/ndZPi/test/utils.jl:9 [5] top-level scope @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_resource_flow.jl:203 [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [7] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_resource_flow.jl:204 [inlined] caused by: An object of name `:sink_surplus` is already registered in this model. Consider instead using the anonymous construction syntax, for example, `x = @variable(model, [1:N], ...)` where the name of the object does not appear inside the macro. Alternatively, use `unregister(model, :sink_surplus)` to first unregister the existing name from the model. Note that this will not delete the object from the model; it will just remove the reference at `model[:sink_surplus]`. Stacktrace: [1] error(s::String) @ Base error.jl:56 [2] _error_if_cannot_register(model::Model, name::Symbol) @ JuMP ~/.julia/packages/JuMP/R9AEA/src/macros.jl:456 [inlined] [3] macro expansion @ ~/.julia/packages/JuMP/R9AEA/src/macros.jl:423 [inlined] [4] variables_node(m::Model, 𝒩ˢⁱⁿᵏ::Vector{RefSink}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:555 [5] variables_element(m::Model, 𝒩ˢᵘᵇ::Vector{RefSink}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:513 [6] variables_elements(m::Model, 𝒳::Vector{EnergyModelsBase.Node}, 𝒳ᵛᵉᶜ::Vector{Vector}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:429 [7] create_model(case::Case, modeltype::OperationalModel, m::Model; check_timeprofiles::Bool, check_any_data::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:67 [8] create_model(case::Case, modeltype::OperationalModel, m::Model) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:32 [inlined] [9] optimize(case::Case, modeltype::OperationalModel) @ Main ~/.julia/packages/EnergyModelsGeography/ndZPi/test/utils.jl:9 [10] top-level scope @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_resource_flow.jl:203 [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [12] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_resource_flow.jl:204 [inlined] create_model: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsGeography/ndZPi/test/test_deprecation.jl:2 Got exception outside of a @test An object of name `:sink_surplus` is already registered in this model. Consider instead using the anonymous construction syntax, for example, `x = @variable(model, [1:N], ...)` where the name of the object does not appear inside the macro. Alternatively, use `unregister(model, :sink_surplus)` to first unregister the existing name from the model. Note that this will not delete the object from the model; it will just remove the reference at `model[:sink_surplus]`. Stacktrace: [1] variables_elements(m::Model, 𝒳::Vector{EnergyModelsBase.Node}, 𝒳ᵛᵉᶜ::Vector{Vector}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:442 [2] create_model(case::Case, modeltype::OperationalModel, m::Model; check_timeprofiles::Bool, check_any_data::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:67 [3] create_model(case::Case, modeltype::OperationalModel, m::Model) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:32 [inlined] [4] optimize(case::Case, modeltype::OperationalModel) @ Main ~/.julia/packages/EnergyModelsGeography/ndZPi/test/utils.jl:9 [5] top-level scope @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_deprecation.jl:3 [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [7] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_deprecation.jl:83 [inlined] caused by: An object of name `:sink_surplus` is already registered in this model. Consider instead using the anonymous construction syntax, for example, `x = @variable(model, [1:N], ...)` where the name of the object does not appear inside the macro. Alternatively, use `unregister(model, :sink_surplus)` to first unregister the existing name from the model. Note that this will not delete the object from the model; it will just remove the reference at `model[:sink_surplus]`. Stacktrace: [1] error(s::String) @ Base error.jl:56 [2] _error_if_cannot_register(model::Model, name::Symbol) @ JuMP ~/.julia/packages/JuMP/R9AEA/src/macros.jl:456 [inlined] [3] macro expansion @ ~/.julia/packages/JuMP/R9AEA/src/macros.jl:423 [inlined] [4] variables_node(m::Model, 𝒩ˢⁱⁿᵏ::Vector{RefSink}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:555 [5] variables_element(m::Model, 𝒩ˢᵘᵇ::Vector{RefSink}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:513 [6] variables_elements(m::Model, 𝒳::Vector{EnergyModelsBase.Node}, 𝒳ᵛᵉᶜ::Vector{Vector}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:429 [7] create_model(case::Case, modeltype::OperationalModel, m::Model; check_timeprofiles::Bool, check_any_data::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:67 [8] create_model(case::Case, modeltype::OperationalModel, m::Model) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:32 [inlined] [9] optimize(case::Case, modeltype::OperationalModel) @ Main ~/.julia/packages/EnergyModelsGeography/ndZPi/test/utils.jl:9 [10] top-level scope @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_deprecation.jl:3 [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [12] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_deprecation.jl:83 [inlined] Unidirectional transmission without investments: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsGeography/ndZPi/test/test_investments.jl:89 Got exception outside of a @test An object of name `:sink_surplus` is already registered in this model. Consider instead using the anonymous construction syntax, for example, `x = @variable(model, [1:N], ...)` where the name of the object does not appear inside the macro. Alternatively, use `unregister(model, :sink_surplus)` to first unregister the existing name from the model. Note that this will not delete the object from the model; it will just remove the reference at `model[:sink_surplus]`. Stacktrace: [1] variables_elements(m::Model, 𝒳::Vector{EnergyModelsBase.Node}, 𝒳ᵛᵉᶜ::Vector{Vector}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::EMIExt.InvestmentModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:442 [2] create_model(case::Case, modeltype::EMIExt.InvestmentModel, m::Model; check_timeprofiles::Bool, check_any_data::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:67 [3] create_model(case::Case, modeltype::EMIExt.InvestmentModel, m::Model) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:32 [inlined] [4] optimize(case::Case, modeltype::EMIExt.InvestmentModel) @ Main ~/.julia/packages/EnergyModelsGeography/ndZPi/test/utils.jl:9 [5] top-level scope @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_investments.jl:92 [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [7] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_investments.jl:93 [inlined] caused by: An object of name `:sink_surplus` is already registered in this model. Consider instead using the anonymous construction syntax, for example, `x = @variable(model, [1:N], ...)` where the name of the object does not appear inside the macro. Alternatively, use `unregister(model, :sink_surplus)` to first unregister the existing name from the model. Note that this will not delete the object from the model; it will just remove the reference at `model[:sink_surplus]`. Stacktrace: [1] error(s::String) @ Base error.jl:56 [2] _error_if_cannot_register(model::Model, name::Symbol) @ JuMP ~/.julia/packages/JuMP/R9AEA/src/macros.jl:456 [inlined] [3] macro expansion @ ~/.julia/packages/JuMP/R9AEA/src/macros.jl:423 [inlined] [4] variables_node(m::Model, 𝒩ˢⁱⁿᵏ::Vector{RefSink}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::EMIExt.InvestmentModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:555 [5] variables_element(m::Model, 𝒩ˢᵘᵇ::Vector{RefSink}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::EMIExt.InvestmentModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:513 [6] variables_elements(m::Model, 𝒳::Vector{EnergyModelsBase.Node}, 𝒳ᵛᵉᶜ::Vector{Vector}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::EMIExt.InvestmentModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:429 [7] create_model(case::Case, modeltype::EMIExt.InvestmentModel, m::Model; check_timeprofiles::Bool, check_any_data::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:67 [8] create_model(case::Case, modeltype::EMIExt.InvestmentModel, m::Model) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:32 [inlined] [9] optimize(case::Case, modeltype::EMIExt.InvestmentModel) @ Main ~/.julia/packages/EnergyModelsGeography/ndZPi/test/utils.jl:9 [10] top-level scope @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_investments.jl:92 [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [12] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_investments.jl:93 [inlined] Unidirectional transmission with ContinuousInvestment: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsGeography/ndZPi/test/test_investments.jl:118 Got exception outside of a @test An object of name `:sink_surplus` is already registered in this model. Consider instead using the anonymous construction syntax, for example, `x = @variable(model, [1:N], ...)` where the name of the object does not appear inside the macro. Alternatively, use `unregister(model, :sink_surplus)` to first unregister the existing name from the model. Note that this will not delete the object from the model; it will just remove the reference at `model[:sink_surplus]`. Stacktrace: [1] variables_elements(m::Model, 𝒳::Vector{EnergyModelsBase.Node}, 𝒳ᵛᵉᶜ::Vector{Vector}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::EMIExt.InvestmentModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:442 [2] create_model(case::Case, modeltype::EMIExt.InvestmentModel, m::Model; check_timeprofiles::Bool, check_any_data::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:67 [3] create_model(case::Case, modeltype::EMIExt.InvestmentModel, m::Model) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:32 [inlined] [4] optimize(case::Case, modeltype::EMIExt.InvestmentModel) @ Main ~/.julia/packages/EnergyModelsGeography/ndZPi/test/utils.jl:9 [5] top-level scope @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_investments.jl:121 [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [7] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_investments.jl:129 [inlined] caused by: An object of name `:sink_surplus` is already registered in this model. Consider instead using the anonymous construction syntax, for example, `x = @variable(model, [1:N], ...)` where the name of the object does not appear inside the macro. Alternatively, use `unregister(model, :sink_surplus)` to first unregister the existing name from the model. Note that this will not delete the object from the model; it will just remove the reference at `model[:sink_surplus]`. Stacktrace: [1] error(s::String) @ Base error.jl:56 [2] _error_if_cannot_register(model::Model, name::Symbol) @ JuMP ~/.julia/packages/JuMP/R9AEA/src/macros.jl:456 [inlined] [3] macro expansion @ ~/.julia/packages/JuMP/R9AEA/src/macros.jl:423 [inlined] [4] variables_node(m::Model, 𝒩ˢⁱⁿᵏ::Vector{RefSink}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::EMIExt.InvestmentModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:555 [5] variables_element(m::Model, 𝒩ˢᵘᵇ::Vector{RefSink}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::EMIExt.InvestmentModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:513 [6] variables_elements(m::Model, 𝒳::Vector{EnergyModelsBase.Node}, 𝒳ᵛᵉᶜ::Vector{Vector}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::EMIExt.InvestmentModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:429 [7] create_model(case::Case, modeltype::EMIExt.InvestmentModel, m::Model; check_timeprofiles::Bool, check_any_data::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:67 [8] create_model(case::Case, modeltype::EMIExt.InvestmentModel, m::Model) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:32 [inlined] [9] optimize(case::Case, modeltype::EMIExt.InvestmentModel) @ Main ~/.julia/packages/EnergyModelsGeography/ndZPi/test/utils.jl:9 [10] top-level scope @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_investments.jl:121 [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [12] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_investments.jl:129 [inlined] Unidirectional transmission with SemiContinuousInvestment: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsGeography/ndZPi/test/test_investments.jl:170 Got exception outside of a @test An object of name `:sink_surplus` is already registered in this model. Consider instead using the anonymous construction syntax, for example, `x = @variable(model, [1:N], ...)` where the name of the object does not appear inside the macro. Alternatively, use `unregister(model, :sink_surplus)` to first unregister the existing name from the model. Note that this will not delete the object from the model; it will just remove the reference at `model[:sink_surplus]`. Stacktrace: [1] variables_elements(m::Model, 𝒳::Vector{EnergyModelsBase.Node}, 𝒳ᵛᵉᶜ::Vector{Vector}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::EMIExt.InvestmentModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:442 [2] create_model(case::Case, modeltype::EMIExt.InvestmentModel, m::Model; check_timeprofiles::Bool, check_any_data::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:67 [3] create_model(case::Case, modeltype::EMIExt.InvestmentModel, m::Model) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:32 [inlined] [4] optimize(case::Case, modeltype::EMIExt.InvestmentModel) @ Main ~/.julia/packages/EnergyModelsGeography/ndZPi/test/utils.jl:9 [5] top-level scope @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_investments.jl:173 [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [7] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_investments.jl:181 [inlined] caused by: An object of name `:sink_surplus` is already registered in this model. Consider instead using the anonymous construction syntax, for example, `x = @variable(model, [1:N], ...)` where the name of the object does not appear inside the macro. Alternatively, use `unregister(model, :sink_surplus)` to first unregister the existing name from the model. Note that this will not delete the object from the model; it will just remove the reference at `model[:sink_surplus]`. Stacktrace: [1] error(s::String) @ Base error.jl:56 [2] _error_if_cannot_register(model::Model, name::Symbol) @ JuMP ~/.julia/packages/JuMP/R9AEA/src/macros.jl:456 [inlined] [3] macro expansion @ ~/.julia/packages/JuMP/R9AEA/src/macros.jl:423 [inlined] [4] variables_node(m::Model, 𝒩ˢⁱⁿᵏ::Vector{RefSink}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::EMIExt.InvestmentModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:555 [5] variables_element(m::Model, 𝒩ˢᵘᵇ::Vector{RefSink}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::EMIExt.InvestmentModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:513 [6] variables_elements(m::Model, 𝒳::Vector{EnergyModelsBase.Node}, 𝒳ᵛᵉᶜ::Vector{Vector}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::EMIExt.InvestmentModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:429 [7] create_model(case::Case, modeltype::EMIExt.InvestmentModel, m::Model; check_timeprofiles::Bool, check_any_data::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:67 [8] create_model(case::Case, modeltype::EMIExt.InvestmentModel, m::Model) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:32 [inlined] [9] optimize(case::Case, modeltype::EMIExt.InvestmentModel) @ Main ~/.julia/packages/EnergyModelsGeography/ndZPi/test/utils.jl:9 [10] top-level scope @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_investments.jl:173 [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [12] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_investments.jl:181 [inlined] Unidirectional transmission with SemiContinuousOffsetInvestment: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsGeography/ndZPi/test/test_investments.jl:241 Got exception outside of a @test An object of name `:sink_surplus` is already registered in this model. Consider instead using the anonymous construction syntax, for example, `x = @variable(model, [1:N], ...)` where the name of the object does not appear inside the macro. Alternatively, use `unregister(model, :sink_surplus)` to first unregister the existing name from the model. Note that this will not delete the object from the model; it will just remove the reference at `model[:sink_surplus]`. Stacktrace: [1] variables_elements(m::Model, 𝒳::Vector{EnergyModelsBase.Node}, 𝒳ᵛᵉᶜ::Vector{Vector}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::EMIExt.InvestmentModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:442 [2] create_model(case::Case, modeltype::EMIExt.InvestmentModel, m::Model; check_timeprofiles::Bool, check_any_data::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:67 [3] create_model(case::Case, modeltype::EMIExt.InvestmentModel, m::Model) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:32 [inlined] [4] optimize(case::Case, modeltype::EMIExt.InvestmentModel) @ Main ~/.julia/packages/EnergyModelsGeography/ndZPi/test/utils.jl:9 [5] top-level scope @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_investments.jl:244 [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [7] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_investments.jl:255 [inlined] caused by: An object of name `:sink_surplus` is already registered in this model. Consider instead using the anonymous construction syntax, for example, `x = @variable(model, [1:N], ...)` where the name of the object does not appear inside the macro. Alternatively, use `unregister(model, :sink_surplus)` to first unregister the existing name from the model. Note that this will not delete the object from the model; it will just remove the reference at `model[:sink_surplus]`. Stacktrace: [1] error(s::String) @ Base error.jl:56 [2] _error_if_cannot_register(model::Model, name::Symbol) @ JuMP ~/.julia/packages/JuMP/R9AEA/src/macros.jl:456 [inlined] [3] macro expansion @ ~/.julia/packages/JuMP/R9AEA/src/macros.jl:423 [inlined] [4] variables_node(m::Model, 𝒩ˢⁱⁿᵏ::Vector{RefSink}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::EMIExt.InvestmentModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:555 [5] variables_element(m::Model, 𝒩ˢᵘᵇ::Vector{RefSink}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::EMIExt.InvestmentModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:513 [6] variables_elements(m::Model, 𝒳::Vector{EnergyModelsBase.Node}, 𝒳ᵛᵉᶜ::Vector{Vector}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::EMIExt.InvestmentModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:429 [7] create_model(case::Case, modeltype::EMIExt.InvestmentModel, m::Model; check_timeprofiles::Bool, check_any_data::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:67 [8] create_model(case::Case, modeltype::EMIExt.InvestmentModel, m::Model) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:32 [inlined] [9] optimize(case::Case, modeltype::EMIExt.InvestmentModel) @ Main ~/.julia/packages/EnergyModelsGeography/ndZPi/test/utils.jl:9 [10] top-level scope @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_investments.jl:244 [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [12] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_investments.jl:255 [inlined] Unidirectional transmission with DiscreteInvestment: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsGeography/ndZPi/test/test_investments.jl:322 Got exception outside of a @test An object of name `:sink_surplus` is already registered in this model. Consider instead using the anonymous construction syntax, for example, `x = @variable(model, [1:N], ...)` where the name of the object does not appear inside the macro. Alternatively, use `unregister(model, :sink_surplus)` to first unregister the existing name from the model. Note that this will not delete the object from the model; it will just remove the reference at `model[:sink_surplus]`. Stacktrace: [1] variables_elements(m::Model, 𝒳::Vector{EnergyModelsBase.Node}, 𝒳ᵛᵉᶜ::Vector{Vector}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::EMIExt.InvestmentModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:442 [2] create_model(case::Case, modeltype::EMIExt.InvestmentModel, m::Model; check_timeprofiles::Bool, check_any_data::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:67 [3] create_model(case::Case, modeltype::EMIExt.InvestmentModel, m::Model) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:32 [inlined] [4] optimize(case::Case, modeltype::EMIExt.InvestmentModel) @ Main ~/.julia/packages/EnergyModelsGeography/ndZPi/test/utils.jl:9 [5] top-level scope @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_investments.jl:325 [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [7] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_investments.jl:333 [inlined] caused by: An object of name `:sink_surplus` is already registered in this model. Consider instead using the anonymous construction syntax, for example, `x = @variable(model, [1:N], ...)` where the name of the object does not appear inside the macro. Alternatively, use `unregister(model, :sink_surplus)` to first unregister the existing name from the model. Note that this will not delete the object from the model; it will just remove the reference at `model[:sink_surplus]`. Stacktrace: [1] error(s::String) @ Base error.jl:56 [2] _error_if_cannot_register(model::Model, name::Symbol) @ JuMP ~/.julia/packages/JuMP/R9AEA/src/macros.jl:456 [inlined] [3] macro expansion @ ~/.julia/packages/JuMP/R9AEA/src/macros.jl:423 [inlined] [4] variables_node(m::Model, 𝒩ˢⁱⁿᵏ::Vector{RefSink}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::EMIExt.InvestmentModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:555 [5] variables_element(m::Model, 𝒩ˢᵘᵇ::Vector{RefSink}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::EMIExt.InvestmentModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:513 [6] variables_elements(m::Model, 𝒳::Vector{EnergyModelsBase.Node}, 𝒳ᵛᵉᶜ::Vector{Vector}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::EMIExt.InvestmentModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:429 [7] create_model(case::Case, modeltype::EMIExt.InvestmentModel, m::Model; check_timeprofiles::Bool, check_any_data::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:67 [8] create_model(case::Case, modeltype::EMIExt.InvestmentModel, m::Model) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:32 [inlined] [9] optimize(case::Case, modeltype::EMIExt.InvestmentModel) @ Main ~/.julia/packages/EnergyModelsGeography/ndZPi/test/utils.jl:9 [10] top-level scope @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_investments.jl:325 [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [12] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_investments.jl:333 [inlined] Example investments.jl: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsGeography/ndZPi/test/test_examples.jl:7 Got exception outside of a @test LoadError: SystemError: opening file "/home/pkgeval/.julia/packages/EnergyModelsGeography/ndZPi/examples/Project.toml": Permission denied Stacktrace: [1] systemerror(p::String, errno::Int32; extrainfo::Nothing) @ Base error.jl:188 [2] open(fname::String; lock::Bool, read::Nothing, write::Nothing, create::Nothing, truncate::Bool, append::Nothing) @ Base iostream.jl:327 [3] open(fname::String, mode::String; lock::Bool) @ Base iostream.jl:390 [4] open(fname::String, mode::String) @ Base iostream.jl:389 [inlined] [5] open(::Base.var"#write##0#write##1"{String, Tuple{}}, ::String, ::String; kwargs::@Kwargs{}) @ Base io.jl:436 [inlined] [6] open(::Base.var"#write##0#write##1"{String, Tuple{}}, ::String, ::String) @ Base io.jl:435 [inlined] [7] write(::String, ::String) @ Base io.jl:517 [8] write_project(project::Dict{String, Any}, project_file::String) @ Pkg.Types /opt/julia/share/julia/stdlib/v1.14/Pkg/src/project.jl:356 [9] write_project(project::Pkg.Types.Project, project_file::String) @ Pkg.Types /opt/julia/share/julia/stdlib/v1.14/Pkg/src/project.jl:337 [inlined] [10] write_project(env::Pkg.Types.EnvCache, skip_readonly_check::Bool) @ Pkg.Types /opt/julia/share/julia/stdlib/v1.14/Pkg/src/project.jl:335 [inlined] [11] write_env(env::Pkg.Types.EnvCache; update_undo::Bool, skip_writing_project::Bool, skip_readonly_check::Bool) @ Pkg.Types /opt/julia/share/julia/stdlib/v1.14/Pkg/src/Types.jl:1435 [12] write_env(env::Pkg.Types.EnvCache) @ Pkg.Types /opt/julia/share/julia/stdlib/v1.14/Pkg/src/Types.jl:1394 [inlined] [13] develop(ctx::Pkg.Types.Context, pkgs::Vector{PackageSpec}, new_git::Set{Base.UUID}; preserve::PreserveLevel, platform::Base.BinaryPlatforms.Platform) @ Pkg.Operations /opt/julia/share/julia/stdlib/v1.14/Pkg/src/Operations.jl:2474 [14] develop(ctx::Pkg.Types.Context, pkgs::Vector{PackageSpec}; shared::Bool, preserve::PreserveLevel, platform::Base.BinaryPlatforms.Platform, kwargs::@Kwargs{io::IOContext{IO}}) @ Pkg.API /opt/julia/share/julia/stdlib/v1.14/Pkg/src/API.jl:317 [15] develop(pkgs::Vector{PackageSpec}; io::IOContext{IO}, kwargs::@Kwargs{}) @ Pkg.API /opt/julia/share/julia/stdlib/v1.14/Pkg/src/API.jl:172 [16] develop(pkgs::Vector{PackageSpec}) @ Pkg.API /opt/julia/share/julia/stdlib/v1.14/Pkg/src/API.jl:161 [17] __safe_setindex!(A::Vector{PackageSpec}, x::PackageSpec, i::Int64) @ Base array.jl:1072 [inlined] [18] vect(X::PackageSpec) @ Base array.jl:163 [inlined] [19] develop(pkg::PackageSpec; kwargs::@Kwargs{}) @ Pkg.API /opt/julia/share/julia/stdlib/v1.14/Pkg/src/API.jl:159 [inlined] [20] develop(; name::Nothing, uuid::Nothing, version::Nothing, url::Nothing, rev::Nothing, path::String, mode::PackageMode, subdir::Nothing, kwargs::@Kwargs{}) @ Pkg.API /opt/julia/share/julia/stdlib/v1.14/Pkg/src/API.jl:191 [21] top-level scope @ ~/.julia/packages/EnergyModelsGeography/ndZPi/examples/investments.jl:5 [22] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:330 [23] (::var"#427#428"{String, String})() @ Main ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_examples.jl:9 [inlined] [24] redirect_stdio(f::var"#427#428"{String, String}; stdin::Nothing, stderr::Base.DevNull, stdout::Base.DevNull) @ Base stream.jl:1470 [25] top-level scope @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_examples.jl:4 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [27] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_examples.jl:8 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [29] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_examples.jl:8 [inlined] in expression starting at /home/pkgeval/.julia/packages/EnergyModelsGeography/ndZPi/examples/investments.jl:5 Example network.jl: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsGeography/ndZPi/test/test_examples.jl:7 Got exception outside of a @test LoadError: SystemError: opening file "/home/pkgeval/.julia/packages/EnergyModelsGeography/ndZPi/examples/Project.toml": Permission denied Stacktrace: [1] systemerror(p::String, errno::Int32; extrainfo::Nothing) @ Base error.jl:188 [2] open(fname::String; lock::Bool, read::Nothing, write::Nothing, create::Nothing, truncate::Bool, append::Nothing) @ Base iostream.jl:327 [3] open(fname::String, mode::String; lock::Bool) @ Base iostream.jl:390 [4] open(fname::String, mode::String) @ Base iostream.jl:389 [inlined] [5] open(::Base.var"#write##0#write##1"{String, Tuple{}}, ::String, ::String; kwargs::@Kwargs{}) @ Base io.jl:436 [inlined] [6] open(::Base.var"#write##0#write##1"{String, Tuple{}}, ::String, ::String) @ Base io.jl:435 [inlined] [7] write(::String, ::String) @ Base io.jl:517 [8] write_project(project::Dict{String, Any}, project_file::String) @ Pkg.Types /opt/julia/share/julia/stdlib/v1.14/Pkg/src/project.jl:356 [9] write_project(project::Pkg.Types.Project, project_file::String) @ Pkg.Types /opt/julia/share/julia/stdlib/v1.14/Pkg/src/project.jl:337 [inlined] [10] write_project(env::Pkg.Types.EnvCache, skip_readonly_check::Bool) @ Pkg.Types /opt/julia/share/julia/stdlib/v1.14/Pkg/src/project.jl:335 [inlined] [11] write_env(env::Pkg.Types.EnvCache; update_undo::Bool, skip_writing_project::Bool, skip_readonly_check::Bool) @ Pkg.Types /opt/julia/share/julia/stdlib/v1.14/Pkg/src/Types.jl:1435 [12] write_env(env::Pkg.Types.EnvCache) @ Pkg.Types /opt/julia/share/julia/stdlib/v1.14/Pkg/src/Types.jl:1394 [inlined] [13] develop(ctx::Pkg.Types.Context, pkgs::Vector{PackageSpec}, new_git::Set{Base.UUID}; preserve::PreserveLevel, platform::Base.BinaryPlatforms.Platform) @ Pkg.Operations /opt/julia/share/julia/stdlib/v1.14/Pkg/src/Operations.jl:2474 [14] develop(ctx::Pkg.Types.Context, pkgs::Vector{PackageSpec}; shared::Bool, preserve::PreserveLevel, platform::Base.BinaryPlatforms.Platform, kwargs::@Kwargs{io::IOContext{IO}}) @ Pkg.API /opt/julia/share/julia/stdlib/v1.14/Pkg/src/API.jl:317 [15] develop(pkgs::Vector{PackageSpec}; io::IOContext{IO}, kwargs::@Kwargs{}) @ Pkg.API /opt/julia/share/julia/stdlib/v1.14/Pkg/src/API.jl:172 [16] develop(pkgs::Vector{PackageSpec}) @ Pkg.API /opt/julia/share/julia/stdlib/v1.14/Pkg/src/API.jl:161 [17] __safe_setindex!(A::Vector{PackageSpec}, x::PackageSpec, i::Int64) @ Base array.jl:1072 [inlined] [18] vect(X::PackageSpec) @ Base array.jl:163 [inlined] [19] develop(pkg::PackageSpec; kwargs::@Kwargs{}) @ Pkg.API /opt/julia/share/julia/stdlib/v1.14/Pkg/src/API.jl:159 [inlined] [20] develop(; name::Nothing, uuid::Nothing, version::Nothing, url::Nothing, rev::Nothing, path::String, mode::PackageMode, subdir::Nothing, kwargs::@Kwargs{}) @ Pkg.API /opt/julia/share/julia/stdlib/v1.14/Pkg/src/API.jl:191 [21] top-level scope @ ~/.julia/packages/EnergyModelsGeography/ndZPi/examples/network.jl:5 [22] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:330 [23] (::var"#427#428"{String, String})() @ Main ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_examples.jl:9 [inlined] [24] redirect_stdio(f::var"#427#428"{String, String}; stdin::Nothing, stderr::Base.DevNull, stdout::Base.DevNull) @ Base stream.jl:1470 [25] top-level scope @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_examples.jl:4 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [27] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_examples.jl:8 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [29] macro expansion @ ~/.julia/packages/EnergyModelsGeography/ndZPi/test/test_examples.jl:8 [inlined] in expression starting at /home/pkgeval/.julia/packages/EnergyModelsGeography/ndZPi/examples/network.jl:5 Activating project at `~/.julia/packages/EnergyModelsGeography/ndZPi/test` Test Summary: | Pass Error Total Time Geography | 163 27 190 4m06.1s Geography | Reference modes | 3 3 1m15.3s Unidirectional transmission | 1 1 1m02.2s Unidirectional pipeline transmission | 1 1 2.2s Geography | OPEX | 2 2 1.2s Calculation of OPEX | 1 1 0.3s Modes without OPEX | 1 1 0.9s Geography | SimplePipe | 1 1 7.6s Geography | SimpleLinePack | 1 1 2.1s Geography | Emissions | 3 3 1.8s Emission variable generation | 1 1 1.1s Unidirectional transport | 1 1 0.0s Bidirectional transport | 1 1 0.5s Geography | Modes | 30 5 35 14.6s Mode utilities | 30 30 5.2s RefStatic and RefDynamic | 3 3 7.1s Unidirectional | 1 1 2.9s Bidirectional | 1 1 4.0s Reversed couplings | 1 1 0.2s PipeSimple | 1 1 0.8s PipeLinepackSimple | 1 1 0.9s Geography | Transmission | 76 76 5.6s Geography | Areas | 14 3 17 8.0s Mode utilities | 14 14 2.9s RefArea | 2 2 2.1s RefStatic | 1 1 1.1s PipeSimple | 1 1 1.0s LimitedExchangeArea | 1 1 2.6s Geography | Resource flow | 1 1 28.9s Resource flow | PotentialPower | 1 1 8.9s Geography | Utilities | 24 24 12.8s Geography | Checks | 19 19 6.4s Geography | Deprecation | 1 1 2.2s create_model | 1 1 2.2s Geography | Investments | 5 5 9.4s Unidirectional transmission without investments | 1 1 7.4s Unidirectional transmission with ContinuousInvestment | 1 1 0.8s Unidirectional transmission with SemiContinuousInvestment | 1 1 0.1s Unidirectional transmission with SemiContinuousOffsetInvestment | 1 1 0.1s Unidirectional transmission with DiscreteInvestment | 1 1 0.1s Geography | examples | 2 2 1m10.2s Run examples | 2 2 1m10.1s Example investments.jl | 1 1 1m06.3s Example network.jl | 1 1 3.6s RNG of the outermost testset: Random.Xoshiro(0x57a273b656268831, 0xd6a8c6bf20c16c10, 0xe418961c8c597217, 0xfa3b809d86b6bd79, 0x27b83ad125293523) ERROR: LoadError: Some tests did not pass: 163 passed, 0 failed, 27 errored, 0 broken. in expression starting at /home/pkgeval/.julia/packages/EnergyModelsGeography/ndZPi/test/runtests.jl:14 Testing failed after 280.28s ERROR: LoadError: Package EnergyModelsGeography errored during testing Stacktrace: [1] pkgerror(msg::String) @ Pkg.Types /opt/julia/share/julia/stdlib/v1.14/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.14/Pkg/src/Operations.jl:3247 [3] 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.14/Pkg/src/API.jl:587 [4] test(pkgs::Vector{PackageSpec}; io::IOContext{IO}, kwargs::@Kwargs{julia_args::Cmd}) @ Pkg.API /opt/julia/share/julia/stdlib/v1.14/Pkg/src/API.jl:172 [5] test(pkgs::Vector{String}; kwargs::@Kwargs{julia_args::Cmd}) @ Pkg.API /opt/julia/share/julia/stdlib/v1.14/Pkg/src/API.jl:160 [6] test(pkg::String; kwargs::@Kwargs{julia_args::Cmd}) @ Pkg.API /opt/julia/share/julia/stdlib/v1.14/Pkg/src/API.jl:159 [inlined] [7] top-level scope @ /PkgEval.jl/scripts/evaluate.jl:223 in expression starting at /PkgEval.jl/scripts/evaluate.jl:214 PkgEval failed after 452.78s: package tests unexpectedly errored