Package evaluation to test EnergyModelsFlex on Julia 1.14.0-DEV.2802 (918269a29b*) started at 2026-07-29T09:04:23.413 ################################################################################ # Set-up # Installing PkgEval dependencies (TestEnv)... Activating project at `~/.julia/environments/v1.14` Set-up completed after 11.5s ################################################################################ # Installation # Installing EnergyModelsFlex... Resolving package versions... Updating `~/.julia/environments/v1.14/Project.toml` [a81b9388] + EnergyModelsFlex v0.4.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 [a81b9388] + EnergyModelsFlex v0.4.0 [b007c34f] + EnergyModelsRenewableProducers v0.7.1 [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.76s ################################################################################ # Precompilation # Precompiling PkgEval dependencies... Precompiling package dependencies... Precompiling project... 24.9 s ✓ EnergyModelsRenewableProducers 18.9 s ✓ EnergyModelsFlex 2 dependencies successfully precompiled in 46 seconds. 88 already precompiled. Precompilation completed after 73.83s ################################################################################ # Testing # Testing EnergyModelsFlex Status `/tmp/jl_hKGPCj/Project.toml` [4c88cf16] Aqua v0.8.16 [5d7e687e] EnergyModelsBase v0.10.5 [a81b9388] EnergyModelsFlex v0.4.0 [b007c34f] EnergyModelsRenewableProducers v0.7.1 [87dc4568] HiGHS v1.24.1 [4076af6c] JuMP v1.31.1 [98e50ef6] JuliaFormatter v2.12.3 [89398ba2] LocalRegistry v0.5.7 [f9ed5ce0] TimeStruct v0.9.12 [56ddb016] Logging v1.11.0 [8dfed614] Test v1.11.0 Status `/tmp/jl_hKGPCj/Manifest.toml` [4c88cf16] Aqua v0.8.16 [523fee87] CodecBzip2 v0.8.5 [944b1d66] CodecZlib v0.7.8 [a80b9123] CommonMark v1.0.3 [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 [a81b9388] EnergyModelsFlex v0.4.0 [b007c34f] EnergyModelsRenewableProducers v0.7.1 [e2ba6199] ExprTools v0.1.11 [f6369f11] ForwardDiff v1.4.3 [c27321d9] Glob v1.5.0 [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 [98e50ef6] JuliaFormatter v2.12.3 [70703baa] JuliaSyntax v1.0.2 [0e77f7df] LazilyInitializedFields v1.3.0 [89398ba2] LocalRegistry v0.5.7 [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 [2792f1a3] RegistryInstances v0.1.0 [d1eb7eb1] RegistryTools v2.4.3 [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... Utility functions: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsFlex/H3tor/test/link/test_CapacityCostLink.jl:91 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] capacity_cost_link_case(; cap::FixedProfile{Int64}, capacity_price::StrategicProfile{Float64, FixedProfile{Float64}}, cap_per_dur::Int64) @ Main ~/.julia/packages/EnergyModelsFlex/H3tor/test/link/test_CapacityCostLink.jl:62 [5] capacity_cost_link_case() @ Main ~/.julia/packages/EnergyModelsFlex/H3tor/test/link/test_CapacityCostLink.jl:5 [6] top-level scope @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/link/test_CapacityCostLink.jl:93 [7] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [8] macro expansion @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/link/test_CapacityCostLink.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::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] capacity_cost_link_case(; cap::FixedProfile{Int64}, capacity_price::StrategicProfile{Float64, FixedProfile{Float64}}, cap_per_dur::Int64) @ Main ~/.julia/packages/EnergyModelsFlex/H3tor/test/link/test_CapacityCostLink.jl:62 [10] capacity_cost_link_case() @ Main ~/.julia/packages/EnergyModelsFlex/H3tor/test/link/test_CapacityCostLink.jl:5 [11] top-level scope @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/link/test_CapacityCostLink.jl:93 [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [13] macro expansion @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/link/test_CapacityCostLink.jl:93 [inlined] Constructor methods: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsFlex/H3tor/test/link/test_CapacityCostLink.jl:150 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] capacity_cost_link_case(; cap::FixedProfile{Int64}, capacity_price::StrategicProfile{Float64, FixedProfile{Float64}}, cap_per_dur::Int64) @ Main ~/.julia/packages/EnergyModelsFlex/H3tor/test/link/test_CapacityCostLink.jl:62 [5] capacity_cost_link_case() @ Main ~/.julia/packages/EnergyModelsFlex/H3tor/test/link/test_CapacityCostLink.jl:5 [6] macro expansion @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/link/test_CapacityCostLink.jl:152 [inlined] [7] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [8] top-level scope @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/link/test_CapacityCostLink.jl:152 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] capacity_cost_link_case(; cap::FixedProfile{Int64}, capacity_price::StrategicProfile{Float64, FixedProfile{Float64}}, cap_per_dur::Int64) @ Main ~/.julia/packages/EnergyModelsFlex/H3tor/test/link/test_CapacityCostLink.jl:62 [10] capacity_cost_link_case() @ Main ~/.julia/packages/EnergyModelsFlex/H3tor/test/link/test_CapacityCostLink.jl:5 [11] macro expansion @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/link/test_CapacityCostLink.jl:152 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [13] top-level scope @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/link/test_CapacityCostLink.jl:152 Constraint implementation: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsFlex/H3tor/test/link/test_CapacityCostLink.jl:216 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] capacity_cost_link_case(; cap::FixedProfile{Int64}, capacity_price::StrategicProfile{Float64, FixedProfile{Float64}}, cap_per_dur::Int64) @ Main ~/.julia/packages/EnergyModelsFlex/H3tor/test/link/test_CapacityCostLink.jl:62 [5] capacity_cost_link_case() @ Main ~/.julia/packages/EnergyModelsFlex/H3tor/test/link/test_CapacityCostLink.jl:5 [6] top-level scope @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/link/test_CapacityCostLink.jl:218 [7] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [8] macro expansion @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/link/test_CapacityCostLink.jl:266 [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] capacity_cost_link_case(; cap::FixedProfile{Int64}, capacity_price::StrategicProfile{Float64, FixedProfile{Float64}}, cap_per_dur::Int64) @ Main ~/.julia/packages/EnergyModelsFlex/H3tor/test/link/test_CapacityCostLink.jl:62 [10] capacity_cost_link_case() @ Main ~/.julia/packages/EnergyModelsFlex/H3tor/test/link/test_CapacityCostLink.jl:5 [11] top-level scope @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/link/test_CapacityCostLink.jl:218 [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [13] macro expansion @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/link/test_CapacityCostLink.jl:266 [inlined] MultipleInputSink: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsFlex/H3tor/test/runtests.jl:27 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] run_model(case::Case, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [4] run_model(case::Case, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [5] top-level scope @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/sink/test_MultipleInputSink.jl:41 [6] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:330 [7] macro expansion @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/runtests.jl:28 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [9] run_node_test(node_supertype::String, node_type::String) @ Main ~/.julia/packages/EnergyModelsFlex/H3tor/test/runtests.jl:28 in expression starting at /home/pkgeval/.julia/packages/EnergyModelsFlex/H3tor/test/sink/test_MultipleInputSink.jl:41 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{EnergyModelsFlex.AbstractMultipleInputSink}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:555 [5] variables_element(m::Model, 𝒩ˢᵘᵇ::Vector{EnergyModelsFlex.AbstractMultipleInputSink}, 𝒯::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] run_model(case::Case, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [9] run_model(case::Case, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [10] top-level scope @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/sink/test_MultipleInputSink.jl:41 [11] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:330 [12] macro expansion @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/runtests.jl:28 [inlined] [13] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [14] run_node_test(node_supertype::String, node_type::String) @ Main ~/.julia/packages/EnergyModelsFlex/H3tor/test/runtests.jl:28 BinaryMultipleInputSinkStrat: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsFlex/H3tor/test/runtests.jl:27 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] run_model(case::Case, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [4] run_model(case::Case, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [5] top-level scope @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/sink/test_BinaryMultipleInputSinkStrat.jl:58 [6] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:330 [7] macro expansion @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/runtests.jl:28 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [9] run_node_test(node_supertype::String, node_type::String) @ Main ~/.julia/packages/EnergyModelsFlex/H3tor/test/runtests.jl:28 in expression starting at /home/pkgeval/.julia/packages/EnergyModelsFlex/H3tor/test/sink/test_BinaryMultipleInputSinkStrat.jl:58 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{EnergyModelsFlex.AbstractMultipleInputSink}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:555 [5] variables_element(m::Model, 𝒩ˢᵘᵇ::Vector{EnergyModelsFlex.AbstractMultipleInputSink}, 𝒯::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] run_model(case::Case, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [9] run_model(case::Case, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [10] top-level scope @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/sink/test_BinaryMultipleInputSinkStrat.jl:58 [11] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:330 [12] macro expansion @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/runtests.jl:28 [inlined] [13] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [14] run_node_test(node_supertype::String, node_type::String) @ Main ~/.julia/packages/EnergyModelsFlex/H3tor/test/runtests.jl:28 ContinuousMultipleInputSinkStrat: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsFlex/H3tor/test/runtests.jl:27 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] run_model(case::Case, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [4] run_model(case::Dict{Symbol, Any}, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:28 [5] run_model(case::Dict{Symbol, Any}, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:24 [6] top-level scope @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/sink/test_ContinuousMultipleInputSinkStrat.jl:58 [7] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:330 [8] macro expansion @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/runtests.jl:28 [inlined] [9] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [10] run_node_test(node_supertype::String, node_type::String) @ Main ~/.julia/packages/EnergyModelsFlex/H3tor/test/runtests.jl:28 in expression starting at /home/pkgeval/.julia/packages/EnergyModelsFlex/H3tor/test/sink/test_ContinuousMultipleInputSinkStrat.jl:58 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{EnergyModelsFlex.AbstractMultipleInputSink}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:555 [5] variables_element(m::Model, 𝒩ˢᵘᵇ::Vector{EnergyModelsFlex.AbstractMultipleInputSink}, 𝒯::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] run_model(case::Case, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [9] run_model(case::Dict{Symbol, Any}, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:28 [10] run_model(case::Dict{Symbol, Any}, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:24 [11] top-level scope @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/sink/test_ContinuousMultipleInputSinkStrat.jl:58 [12] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:330 [13] macro expansion @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/runtests.jl:28 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [15] run_node_test(node_supertype::String, node_type::String) @ Main ~/.julia/packages/EnergyModelsFlex/H3tor/test/runtests.jl:28 ┌ Warning: The minimum demand through the field `period_min` is larger than the maximum demand through the field `period_max` in at least one demand period resulting in a guranteed penalty └ @ EnergyModelsFlex ~/.julia/packages/EnergyModelsFlex/H3tor/src/sink/checks.jl:217 ┌ Warning: The used implementation of a `PeriodDemandSink` will be discontinued in the near future. The new implementation uses the approach of `PeriodPartition` with a change in the field positions. │ In practice, three changes have to be incorporated: │ 1. the capacity is moved to the 2ⁿᵈ position, │ 2. `period_length` is renamed `period_duration`, moved to the 3ʳᵈ position, and can accept as well a `Vector` or `TimeProfile`s as input, and │ 3. `period_demand` is moved to the 4ᵗʰ position and requires as input a `PartitionProfile` of the previously provided `Vector`. │ See the documentation (https://energymodelsx.github.io/EnergyModelsFlex.jl/stable/how-to/update-models/03/PeriodDemandSink) on how to update your model to the latest version. └ @ EnergyModelsFlex ~/.julia/packages/EnergyModelsFlex/H3tor/src/legacy_constructors.jl:12 Constraint implementation - PeriodDemandSink: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsFlex/H3tor/test/sink/test_PeriodDemandSink.jl:516 Got exception outside of a @test An object of name `:demand_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, :demand_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[:demand_sink_surplus]`. Stacktrace: [1] variables_elements(m::Model, 𝒳::Vector{EnergyModelsBase.Node}, 𝒳ᵛᵉᶜ::Vector{Vector}, 𝒯::TwoLevel{Int64, Float64, SimpleTimes{Float64}}, 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] per_dem_snk_case(; snk::Nothing, repr::Bool, type::Core.TypeEgal{PeriodDemandSink}, 𝒯::TwoLevel{Int64, Float64, SimpleTimes{Float64}}) @ Main ~/.julia/packages/EnergyModelsFlex/H3tor/test/sink/test_PeriodDemandSink.jl:108 [5] top-level scope @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/sink/test_PeriodDemandSink.jl:519 [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [7] macro expansion @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/sink/test_PeriodDemandSink.jl:618 [inlined] caused by: An object of name `:demand_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, :demand_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[:demand_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_element(m::Model, 𝒩ˢⁱⁿᵏ::Vector{PeriodDemandSink}, 𝒯::TwoLevel{Int64, Float64, SimpleTimes{Float64}}, ::OperationalModel) @ EnergyModelsFlex ~/.julia/packages/EnergyModelsFlex/H3tor/src/sink/model.jl:22 [5] variables_elements(m::Model, 𝒳::Vector{EnergyModelsBase.Node}, 𝒳ᵛᵉᶜ::Vector{Vector}, 𝒯::TwoLevel{Int64, Float64, SimpleTimes{Float64}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:429 [6] create_model(case::Case, modeltype::OperationalModel, m::Model; check_timeprofiles::Bool, check_any_data::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:67 [7] create_model(case::Case, modeltype::OperationalModel, m::Model) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:32 [inlined] [8] per_dem_snk_case(; snk::Nothing, repr::Bool, type::Core.TypeEgal{PeriodDemandSink}, 𝒯::TwoLevel{Int64, Float64, SimpleTimes{Float64}}) @ Main ~/.julia/packages/EnergyModelsFlex/H3tor/test/sink/test_PeriodDemandSink.jl:108 [9] top-level scope @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/sink/test_PeriodDemandSink.jl:519 [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [11] macro expansion @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/sink/test_PeriodDemandSink.jl:618 [inlined] PayAsProducedPPA: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsFlex/H3tor/test/runtests.jl:27 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] run_model(case::Case, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [4] run_model(case::Case, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [5] top-level scope @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/source/test_PayAsProducedPPA.jl:43 [6] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:330 [7] macro expansion @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/runtests.jl:28 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [9] run_node_test(node_supertype::String, node_type::String) @ Main ~/.julia/packages/EnergyModelsFlex/H3tor/test/runtests.jl:28 in expression starting at /home/pkgeval/.julia/packages/EnergyModelsFlex/H3tor/test/source/test_PayAsProducedPPA.jl:43 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] run_model(case::Case, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [9] run_model(case::Case, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [10] top-level scope @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/source/test_PayAsProducedPPA.jl:43 [11] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:330 [12] macro expansion @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/runtests.jl:28 [inlined] [13] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [14] run_node_test(node_supertype::String, node_type::String) @ Main ~/.julia/packages/EnergyModelsFlex/H3tor/test/runtests.jl:28 Extraction functions: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsFlex/H3tor/test/source/test_InflexibleSource.jl:52 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] inflexible_source_case(; output::Dict{ResourceCarrier{Float64}, Int64}) @ Main ~/.julia/packages/EnergyModelsFlex/H3tor/test/source/test_InflexibleSource.jl:38 [5] inflexible_source_case() @ Main ~/.julia/packages/EnergyModelsFlex/H3tor/test/source/test_InflexibleSource.jl:6 [6] top-level scope @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/source/test_InflexibleSource.jl:54 [7] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [8] macro expansion @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/source/test_InflexibleSource.jl:54 [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] inflexible_source_case(; output::Dict{ResourceCarrier{Float64}, Int64}) @ Main ~/.julia/packages/EnergyModelsFlex/H3tor/test/source/test_InflexibleSource.jl:38 [10] inflexible_source_case() @ Main ~/.julia/packages/EnergyModelsFlex/H3tor/test/source/test_InflexibleSource.jl:6 [11] top-level scope @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/source/test_InflexibleSource.jl:54 [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [13] macro expansion @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/source/test_InflexibleSource.jl:54 [inlined] Constraint implementation: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsFlex/H3tor/test/source/test_InflexibleSource.jl:74 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] inflexible_source_case(; output::Dict{ResourceCarrier{Float64}, Int64}) @ Main ~/.julia/packages/EnergyModelsFlex/H3tor/test/source/test_InflexibleSource.jl:38 [5] inflexible_source_case() @ Main ~/.julia/packages/EnergyModelsFlex/H3tor/test/source/test_InflexibleSource.jl:6 [6] top-level scope @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/source/test_InflexibleSource.jl:76 [7] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [8] macro expansion @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/source/test_InflexibleSource.jl:76 [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] inflexible_source_case(; output::Dict{ResourceCarrier{Float64}, Int64}) @ Main ~/.julia/packages/EnergyModelsFlex/H3tor/test/source/test_InflexibleSource.jl:38 [10] inflexible_source_case() @ Main ~/.julia/packages/EnergyModelsFlex/H3tor/test/source/test_InflexibleSource.jl:6 [11] top-level scope @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/source/test_InflexibleSource.jl:76 [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [13] macro expansion @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/source/test_InflexibleSource.jl:76 [inlined] LimitedFlexibleInput: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsFlex/H3tor/test/runtests.jl:27 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] run_model(case::Case, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [4] run_model(case::Case, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [5] top-level scope @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/network/test_LimitedFlexibleInput.jl:58 [6] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:330 [7] macro expansion @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/runtests.jl:28 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [9] run_node_test(node_supertype::String, node_type::String) @ Main ~/.julia/packages/EnergyModelsFlex/H3tor/test/runtests.jl:28 in expression starting at /home/pkgeval/.julia/packages/EnergyModelsFlex/H3tor/test/network/test_LimitedFlexibleInput.jl:58 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] run_model(case::Case, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [9] run_model(case::Case, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [10] top-level scope @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/network/test_LimitedFlexibleInput.jl:58 [11] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:330 [12] macro expansion @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/runtests.jl:28 [inlined] [13] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [14] run_node_test(node_supertype::String, node_type::String) @ Main ~/.julia/packages/EnergyModelsFlex/H3tor/test/runtests.jl:28 Extraction functions: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsFlex/H3tor/test/network/test_MinUpDownTimeNode.jl:93 Got exception outside of a @test An object of name `:demand_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, :demand_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[:demand_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] test_case_minupdown(min_up::Int64, min_down::Int64; cap::FixedProfile{Int64}, tp_opex_var::FixedProfile{Int64}, tp_opex_fixed::FixedProfile{Int64}, inp_val::Int64, out_val::Int64, min_cap::Int64, max_cap::Int64) @ Main ~/.julia/packages/EnergyModelsFlex/H3tor/test/network/test_MinUpDownTimeNode.jl:68 [5] top-level scope @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/network/test_MinUpDownTimeNode.jl:95 [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [7] macro expansion @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/network/test_MinUpDownTimeNode.jl:97 [inlined] caused by: An object of name `:demand_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, :demand_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[:demand_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_element(m::Model, 𝒩ˢⁱⁿᵏ::Vector{PeriodDemandSink}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, ::OperationalModel) @ EnergyModelsFlex ~/.julia/packages/EnergyModelsFlex/H3tor/src/sink/model.jl:22 [5] 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 [6] create_model(case::Case, modeltype::OperationalModel, m::Model; check_timeprofiles::Bool, check_any_data::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:67 [7] create_model(case::Case, modeltype::OperationalModel, m::Model) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:32 [inlined] [8] test_case_minupdown(min_up::Int64, min_down::Int64; cap::FixedProfile{Int64}, tp_opex_var::FixedProfile{Int64}, tp_opex_fixed::FixedProfile{Int64}, inp_val::Int64, out_val::Int64, min_cap::Int64, max_cap::Int64) @ Main ~/.julia/packages/EnergyModelsFlex/H3tor/test/network/test_MinUpDownTimeNode.jl:68 [9] top-level scope @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/network/test_MinUpDownTimeNode.jl:95 [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [11] macro expansion @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/network/test_MinUpDownTimeNode.jl:97 [inlined] Cyclic sequence: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsFlex/H3tor/test/network/test_MinUpDownTimeNode.jl:121 Got exception outside of a @test An object of name `:demand_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, :demand_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[:demand_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] test_case_minupdown(min_up::Int64, min_down::Int64; cap::FixedProfile{Int64}, tp_opex_var::FixedProfile{Int64}, tp_opex_fixed::FixedProfile{Int64}, inp_val::Int64, out_val::Int64, min_cap::Int64, max_cap::Int64) @ Main ~/.julia/packages/EnergyModelsFlex/H3tor/test/network/test_MinUpDownTimeNode.jl:68 [5] test_case_minupdown @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/network/test_MinUpDownTimeNode.jl:6 [inlined] [6] macro expansion @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/network/test_MinUpDownTimeNode.jl:125 [inlined] [7] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [8] top-level scope @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/network/test_MinUpDownTimeNode.jl:123 caused by: An object of name `:demand_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, :demand_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[:demand_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_element(m::Model, 𝒩ˢⁱⁿᵏ::Vector{PeriodDemandSink}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, ::OperationalModel) @ EnergyModelsFlex ~/.julia/packages/EnergyModelsFlex/H3tor/src/sink/model.jl:22 [5] 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 [6] create_model(case::Case, modeltype::OperationalModel, m::Model; check_timeprofiles::Bool, check_any_data::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:67 [7] create_model(case::Case, modeltype::OperationalModel, m::Model) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:32 [inlined] [8] test_case_minupdown(min_up::Int64, min_down::Int64; cap::FixedProfile{Int64}, tp_opex_var::FixedProfile{Int64}, tp_opex_fixed::FixedProfile{Int64}, inp_val::Int64, out_val::Int64, min_cap::Int64, max_cap::Int64) @ Main ~/.julia/packages/EnergyModelsFlex/H3tor/test/network/test_MinUpDownTimeNode.jl:68 [9] test_case_minupdown @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/network/test_MinUpDownTimeNode.jl:6 [inlined] [10] macro expansion @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/network/test_MinUpDownTimeNode.jl:125 [inlined] [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [12] top-level scope @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/network/test_MinUpDownTimeNode.jl:123 Combustion: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsFlex/H3tor/test/runtests.jl:27 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] run_model(case::Case, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [4] run_model(case::Case, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [5] top-level scope @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/network/test_Combustion.jl:68 [6] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:330 [7] macro expansion @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/runtests.jl:28 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [9] run_node_test(node_supertype::String, node_type::String) @ Main ~/.julia/packages/EnergyModelsFlex/H3tor/test/runtests.jl:28 in expression starting at /home/pkgeval/.julia/packages/EnergyModelsFlex/H3tor/test/network/test_Combustion.jl:68 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] run_model(case::Case, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [9] run_model(case::Case, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [10] top-level scope @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/network/test_Combustion.jl:68 [11] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:330 [12] macro expansion @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/runtests.jl:28 [inlined] [13] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [14] run_node_test(node_supertype::String, node_type::String) @ Main ~/.julia/packages/EnergyModelsFlex/H3tor/test/runtests.jl:28 Mathematical formulation: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsFlex/H3tor/test/network/test_ActivationCostNode.jl:104 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] act_node_test_case(𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}; supply::FixedProfile{Int64}, demand::OperationalProfile{Int64}) @ Main ~/.julia/packages/EnergyModelsFlex/H3tor/test/network/test_ActivationCostNode.jl:68 [5] top-level scope @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/network/test_ActivationCostNode.jl:106 [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [7] macro expansion @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/network/test_ActivationCostNode.jl:108 [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] act_node_test_case(𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}; supply::FixedProfile{Int64}, demand::OperationalProfile{Int64}) @ Main ~/.julia/packages/EnergyModelsFlex/H3tor/test/network/test_ActivationCostNode.jl:68 [10] top-level scope @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/network/test_ActivationCostNode.jl:106 [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [12] macro expansion @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/network/test_ActivationCostNode.jl:108 [inlined] Extraction functions: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsFlex/H3tor/test/network/test_FlexibleOutput.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] flexible_factory_case(; cap::FixedProfile{Int64}) @ Main ~/.julia/packages/EnergyModelsFlex/H3tor/test/network/test_FlexibleOutput.jl:96 [5] flexible_factory_case() @ Main ~/.julia/packages/EnergyModelsFlex/H3tor/test/network/test_FlexibleOutput.jl:11 [6] top-level scope @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/network/test_FlexibleOutput.jl:114 [7] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [8] macro expansion @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/network/test_FlexibleOutput.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] flexible_factory_case(; cap::FixedProfile{Int64}) @ Main ~/.julia/packages/EnergyModelsFlex/H3tor/test/network/test_FlexibleOutput.jl:96 [10] flexible_factory_case() @ Main ~/.julia/packages/EnergyModelsFlex/H3tor/test/network/test_FlexibleOutput.jl:11 [11] top-level scope @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/network/test_FlexibleOutput.jl:114 [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [13] macro expansion @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/network/test_FlexibleOutput.jl:114 [inlined] Constraint implementation: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsFlex/H3tor/test/network/test_FlexibleOutput.jl:127 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] flexible_factory_case(; cap::FixedProfile{Int64}) @ Main ~/.julia/packages/EnergyModelsFlex/H3tor/test/network/test_FlexibleOutput.jl:96 [5] flexible_factory_case() @ Main ~/.julia/packages/EnergyModelsFlex/H3tor/test/network/test_FlexibleOutput.jl:11 [6] top-level scope @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/network/test_FlexibleOutput.jl:129 [7] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [8] macro expansion @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/network/test_FlexibleOutput.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::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] flexible_factory_case(; cap::FixedProfile{Int64}) @ Main ~/.julia/packages/EnergyModelsFlex/H3tor/test/network/test_FlexibleOutput.jl:96 [10] flexible_factory_case() @ Main ~/.julia/packages/EnergyModelsFlex/H3tor/test/network/test_FlexibleOutput.jl:11 [11] top-level scope @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/network/test_FlexibleOutput.jl:129 [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [13] macro expansion @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/network/test_FlexibleOutput.jl:129 [inlined] StorageEfficiency: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsFlex/H3tor/test/runtests.jl:27 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] run_model(case::Case, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [4] run_model(case::Case, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [5] top-level scope @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/storage/test_StorageEfficiency.jl:58 [6] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:330 [7] macro expansion @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/runtests.jl:28 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [9] run_node_test(node_supertype::String, node_type::String) @ Main ~/.julia/packages/EnergyModelsFlex/H3tor/test/runtests.jl:28 in expression starting at /home/pkgeval/.julia/packages/EnergyModelsFlex/H3tor/test/storage/test_StorageEfficiency.jl:58 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] run_model(case::Case, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [9] run_model(case::Case, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [10] top-level scope @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/storage/test_StorageEfficiency.jl:58 [11] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:330 [12] macro expansion @ ~/.julia/packages/EnergyModelsFlex/H3tor/test/runtests.jl:28 [inlined] [13] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [14] run_node_test(node_supertype::String, node_type::String) @ Main ~/.julia/packages/EnergyModelsFlex/H3tor/test/runtests.jl:28 Test Summary: | Pass Error Total Time Flex | 240 18 258 11m04.2s Aqua.jl | 11 11 2m13.9s Flex | Links | 4 3 7 59.6s CapacityCostLink | 4 3 7 59.3s Check functions | 4 4 25.4s Utility functions | 1 1 32.5s Constructor methods | 1 1 0.0s Constraint implementation | 1 1 0.0s Flex | Sink nodes | 208 4 212 6m23.5s MultipleInputSink | 1 1 5.8s BinaryMultipleInputSinkStrat | 1 1 2.8s ContinuousMultipleInputSinkStrat | 1 1 3.2s PeriodDemandSink | 206 1 207 5m32.5s Check functions | 39 39 2m06.0s Utility functions | 98 98 6.2s Constraint implementation - PeriodDemandSink | 1 1 10.0s Constraint implementation - StratartPeriodDemandSink | 69 69 3m08.3s LoadShiftingNode | 2 2 39.2s Flex | Source nodes | 1 3 4 10.4s PayAsProducedPPA | 1 1 6.4s InflexibleSource | 1 2 3 4.0s Check functions | 1 1 1.3s Extraction functions | 1 1 2.6s Constraint implementation | 1 1 0.0s Flex | Network nodes | 16 7 23 1m00.2s LimitedFlexibleInput | 1 1 10.8s MinUpDownTimeNode | 6 2 8 23.4s Check functions | 6 6 6.6s Extraction functions | 1 1 16.2s Cyclic sequence | 1 1 0.0s Combustion | 1 1 8.4s ActivationCostNode | 9 1 10 9.8s Utilities | 9 9 1.2s Mathematical formulation | 1 1 8.5s FlexibleOutput | 1 2 3 7.8s Check functions | 1 1 4.1s Extraction functions | 1 1 3.7s Constraint implementation | 1 1 0.0s Flex | Storage nodes | 1 1 12.5s StorageEfficiency | 1 1 12.5s RNG of the outermost testset: Random.Xoshiro(0x55c583b8de8b8065, 0x1b87b0ef1b8c8d49, 0x511fee57479f358d, 0xcf266845bf704800, 0xe8091822d35f2c01) ERROR: LoadError: Some tests did not pass: 240 passed, 0 failed, 18 errored, 0 broken. in expression starting at /home/pkgeval/.julia/packages/EnergyModelsFlex/H3tor/test/runtests.jl:34 Testing failed after 695.66s ERROR: LoadError: Package EnergyModelsFlex 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 826.28s: package tests unexpectedly errored