Package evaluation to test EnergyModelsBase on Julia 1.14.0-DEV.2802 (918269a29b*) started at 2026-07-29T08:53:34.431 ################################################################################ # Set-up # Installing PkgEval dependencies (TestEnv)... Activating project at `~/.julia/environments/v1.14` Set-up completed after 12.52s ################################################################################ # Installation # Installing EnergyModelsBase... Resolving package versions... Updating `~/.julia/environments/v1.14/Project.toml` [5d7e687e] + EnergyModelsBase v0.10.5 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 [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 6.11s ################################################################################ # Precompilation # Precompiling PkgEval dependencies... Precompiling package dependencies... Precompiling project... 23.2 s ✓ EnergyModelsInvestments 21.6 s ✓ EnergyModelsBase 19.3 s ✓ EnergyModelsBase → EMIExt 3 dependencies successfully precompiled in 65 seconds. 77 already precompiled. Precompilation completed after 95.97s ################################################################################ # Testing # Testing EnergyModelsBase Status `/tmp/jl_58fcq8/Project.toml` [5d7e687e] EnergyModelsBase v0.10.5 [fca3f8eb] EnergyModelsInvestments v0.9.2 [87dc4568] HiGHS v1.24.1 [4076af6c] JuMP v1.31.1 [f9ed5ce0] TimeStruct v0.9.12 [56ddb016] Logging v1.11.0 [44cfe95a] Pkg v1.14.0 [8dfed614] Test v1.11.0 Status `/tmp/jl_58fcq8/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 [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... General tests: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsBase/hrdwP/test/test_general.jl:79 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] run_model(case::Case, model::OperationalModel, optimizer::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [4] run_model(case::Case, model::OperationalModel, optimizer::Type) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [5] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_general.jl:80 [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [7] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_general.jl:81 [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] run_model(case::Case, model::OperationalModel, optimizer::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [9] run_model(case::Case, model::OperationalModel, optimizer::Type) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [10] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_general.jl:80 [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [12] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_general.jl:81 [inlined] Variable creation: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsBase/hrdwP/test/test_data.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] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_data.jl:3 [5] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [6] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_data.jl:130 [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/EnergyModelsBase/hrdwP/test/test_data.jl:3 [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [11] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_data.jl:130 [inlined] Resource - implementation: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsBase/hrdwP/test/test_resource.jl:61 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] run_model(case::Case, model::OperationalModel, optimizer::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [4] run_model(case::Case, model::OperationalModel, optimizer::Type) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [5] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_resource.jl:62 [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [7] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_resource.jl:210 [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] run_model(case::Case, model::OperationalModel, optimizer::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [9] run_model(case::Case, model::OperationalModel, optimizer::Type) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [10] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_resource.jl:62 [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [12] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_resource.jl:210 [inlined] Variable declaration: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:138 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/EnergyModelsBase/hrdwP/test/test_nodes.jl:3 [5] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [6] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:139 [inlined] [7] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [8] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:140 [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/EnergyModelsBase/hrdwP/test/test_nodes.jl:3 [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [11] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:139 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [13] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:140 [inlined] General tests - RefSource: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:181 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] run_model(case::Case, model::OperationalModel, optimizer::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [4] run_model(case::Case, model::OperationalModel, optimizer::Core.TypeEgal{HiGHS.Optimizer}) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [inlined] [5] (::var"#simple_graph#simple_graph##2"{ResourceEmit{Float64}, ResourceCarrier{Float64}})(source::RefSource, sink::RefSink) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:178 [6] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:160 [7] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [8] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:182 [inlined] [9] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [10] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:196 [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] run_model(case::Case, model::OperationalModel, optimizer::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [9] run_model(case::Case, model::OperationalModel, optimizer::Core.TypeEgal{HiGHS.Optimizer}) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [inlined] [10] (::var"#simple_graph#simple_graph##2"{ResourceEmit{Float64}, ResourceCarrier{Float64}})(source::RefSource, sink::RefSink) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:178 [11] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:160 [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [13] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:182 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [15] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:196 [inlined] General tests - RefSink: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:240 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] run_model(case::Case, model::OperationalModel, optimizer::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [4] run_model(case::Case, model::OperationalModel, optimizer::Core.TypeEgal{HiGHS.Optimizer}) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [inlined] [5] (::var"#simple_graph#simple_graph##2"{ResourceEmit{Float64}, ResourceCarrier{Float64}})(source::RefSource, sink::RefSink) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:178 [6] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:160 [7] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [8] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:243 [inlined] [9] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [10] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:257 [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] run_model(case::Case, model::OperationalModel, optimizer::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [9] run_model(case::Case, model::OperationalModel, optimizer::Core.TypeEgal{HiGHS.Optimizer}) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [inlined] [10] (::var"#simple_graph#simple_graph##2"{ResourceEmit{Float64}, ResourceCarrier{Float64}})(source::RefSource, sink::RefSink) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:178 [11] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:160 [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [13] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:243 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [15] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:257 [inlined] Process emissions - RefSink and RefSource: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:318 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] run_model(case::Case, model::OperationalModel, optimizer::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [4] run_model(case::Case, model::OperationalModel, optimizer::Core.TypeEgal{HiGHS.Optimizer}) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [inlined] [5] (::var"#simple_graph#simple_graph##2"{ResourceEmit{Float64}, ResourceCarrier{Float64}})(source::RefSource, sink::RefSink) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:178 [6] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:160 [7] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [8] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:322 [inlined] [9] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [10] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:335 [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] run_model(case::Case, model::OperationalModel, optimizer::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [9] run_model(case::Case, model::OperationalModel, optimizer::Core.TypeEgal{HiGHS.Optimizer}) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [inlined] [10] (::var"#simple_graph#simple_graph##2"{ResourceEmit{Float64}, ResourceCarrier{Float64}})(source::RefSource, sink::RefSink) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:178 [11] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:160 [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [13] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:322 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [15] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:335 [inlined] Emissions tests - wo Emissions: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:459 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] run_model(case::Case, model::OperationalModel, optimizer::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [4] run_model(case::Case, model::OperationalModel, optimizer::Core.TypeEgal{HiGHS.Optimizer}) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [inlined] [5] (::var"#simple_graph#simple_graph##3"{var"#simple_graph#302#337"{ResourceEmit{Float64}, ResourceCarrier{Float64}, ResourceEmit{Float64}}})(; data_em::Nothing) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:456 [6] (::var"#simple_graph#simple_graph##3"{var"#simple_graph#302#337"{ResourceEmit{Float64}, ResourceCarrier{Float64}, ResourceEmit{Float64}}})() @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:387 [7] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:382 [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [9] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:464 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [11] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:464 [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] run_model(case::Case, model::OperationalModel, optimizer::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [9] run_model(case::Case, model::OperationalModel, optimizer::Core.TypeEgal{HiGHS.Optimizer}) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [inlined] [10] (::var"#simple_graph#simple_graph##3"{var"#simple_graph#302#337"{ResourceEmit{Float64}, ResourceCarrier{Float64}, ResourceEmit{Float64}}})(; data_em::Nothing) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:456 [11] (::var"#simple_graph#simple_graph##3"{var"#simple_graph#302#337"{ResourceEmit{Float64}, ResourceCarrier{Float64}, ResourceEmit{Float64}}})() @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:387 [12] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:382 [13] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [14] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:464 [inlined] [15] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [16] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:464 [inlined] Emissions tests - with energy emissions: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:491 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] run_model(case::Case, model::OperationalModel, optimizer::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [4] run_model(case::Case, model::OperationalModel, optimizer::Core.TypeEgal{HiGHS.Optimizer}) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [inlined] [5] (::var"#simple_graph#simple_graph##3"{var"#simple_graph#302#337"{ResourceEmit{Float64}, ResourceCarrier{Float64}, ResourceEmit{Float64}}})(; data_em::EmissionsEnergy{Float64}) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:456 [6] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:382 [7] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [8] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:496 [inlined] [9] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [10] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:497 [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] run_model(case::Case, model::OperationalModel, optimizer::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [9] run_model(case::Case, model::OperationalModel, optimizer::Core.TypeEgal{HiGHS.Optimizer}) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [inlined] [10] (::var"#simple_graph#simple_graph##3"{var"#simple_graph#302#337"{ResourceEmit{Float64}, ResourceCarrier{Float64}, ResourceEmit{Float64}}})(; data_em::EmissionsEnergy{Float64}) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:456 [11] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:382 [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [13] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:496 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [15] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:497 [inlined] Emissions tests - with energy and process emissions: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:522 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] run_model(case::Case, model::OperationalModel, optimizer::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [4] run_model(case::Case, model::OperationalModel, optimizer::Core.TypeEgal{HiGHS.Optimizer}) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [inlined] [5] (::var"#simple_graph#simple_graph##3"{var"#simple_graph#302#337"{ResourceEmit{Float64}, ResourceCarrier{Float64}, ResourceEmit{Float64}}})(; data_em::EmissionsProcess{Float64}) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:456 [6] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:382 [7] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [8] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:527 [inlined] [9] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [10] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:528 [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] run_model(case::Case, model::OperationalModel, optimizer::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [9] run_model(case::Case, model::OperationalModel, optimizer::Core.TypeEgal{HiGHS.Optimizer}) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [inlined] [10] (::var"#simple_graph#simple_graph##3"{var"#simple_graph#302#337"{ResourceEmit{Float64}, ResourceCarrier{Float64}, ResourceEmit{Float64}}})(; data_em::EmissionsProcess{Float64}) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:456 [11] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:382 [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [13] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:527 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [15] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:528 [inlined] Emissions tests - with energy and process emissions as TimeProfile: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:561 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] run_model(case::Case, model::OperationalModel, optimizer::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [4] run_model(case::Case, model::OperationalModel, optimizer::Core.TypeEgal{HiGHS.Optimizer}) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [inlined] [5] (::var"#simple_graph#simple_graph##3"{var"#simple_graph#302#337"{ResourceEmit{Float64}, ResourceCarrier{Float64}, ResourceEmit{Float64}}})(; data_em::EmissionsProcess{FixedProfile{Float64}}) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:456 [6] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:382 [7] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [8] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:566 [inlined] [9] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [10] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:567 [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] run_model(case::Case, model::OperationalModel, optimizer::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [9] run_model(case::Case, model::OperationalModel, optimizer::Core.TypeEgal{HiGHS.Optimizer}) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [inlined] [10] (::var"#simple_graph#simple_graph##3"{var"#simple_graph#302#337"{ResourceEmit{Float64}, ResourceCarrier{Float64}, ResourceEmit{Float64}}})(; data_em::EmissionsProcess{FixedProfile{Float64}}) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:456 [11] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:382 [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [13] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:566 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [15] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:567 [inlined] Emissions tests - with capture on energy emissions: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:600 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] run_model(case::Case, model::OperationalModel, optimizer::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [4] run_model(case::Case, model::OperationalModel, optimizer::Core.TypeEgal{HiGHS.Optimizer}) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [inlined] [5] (::var"#simple_graph#simple_graph##3"{var"#simple_graph#302#337"{ResourceEmit{Float64}, ResourceCarrier{Float64}, ResourceEmit{Float64}}})(; data_em::CaptureEnergyEmissions{Float64}) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:456 [6] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:382 [7] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [8] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:605 [inlined] [9] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [10] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:606 [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] run_model(case::Case, model::OperationalModel, optimizer::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [9] run_model(case::Case, model::OperationalModel, optimizer::Core.TypeEgal{HiGHS.Optimizer}) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [inlined] [10] (::var"#simple_graph#simple_graph##3"{var"#simple_graph#302#337"{ResourceEmit{Float64}, ResourceCarrier{Float64}, ResourceEmit{Float64}}})(; data_em::CaptureEnergyEmissions{Float64}) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:456 [11] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:382 [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [13] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:605 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [15] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:606 [inlined] Emissions tests - with capture on process emissions: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:648 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] run_model(case::Case, model::OperationalModel, optimizer::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [4] run_model(case::Case, model::OperationalModel, optimizer::Core.TypeEgal{HiGHS.Optimizer}) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [inlined] [5] (::var"#simple_graph#simple_graph##3"{var"#simple_graph#302#337"{ResourceEmit{Float64}, ResourceCarrier{Float64}, ResourceEmit{Float64}}})(; data_em::CaptureProcessEmissions{Float64}) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:456 [6] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:382 [7] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [8] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:653 [inlined] [9] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [10] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:654 [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] run_model(case::Case, model::OperationalModel, optimizer::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [9] run_model(case::Case, model::OperationalModel, optimizer::Core.TypeEgal{HiGHS.Optimizer}) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [inlined] [10] (::var"#simple_graph#simple_graph##3"{var"#simple_graph#302#337"{ResourceEmit{Float64}, ResourceCarrier{Float64}, ResourceEmit{Float64}}})(; data_em::CaptureProcessEmissions{Float64}) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:456 [11] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:382 [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [13] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:653 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [15] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:654 [inlined] Emissions tests - with capture on process emissions: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:697 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] run_model(case::Case, model::OperationalModel, optimizer::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [4] run_model(case::Case, model::OperationalModel, optimizer::Core.TypeEgal{HiGHS.Optimizer}) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [inlined] [5] (::var"#simple_graph#simple_graph##3"{var"#simple_graph#302#337"{ResourceEmit{Float64}, ResourceCarrier{Float64}, ResourceEmit{Float64}}})(; data_em::CaptureProcessEnergyEmissions{Float64}) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:456 [6] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:382 [7] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [8] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:702 [inlined] [9] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [10] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.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] run_model(case::Case, model::OperationalModel, optimizer::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [9] run_model(case::Case, model::OperationalModel, optimizer::Core.TypeEgal{HiGHS.Optimizer}) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [inlined] [10] (::var"#simple_graph#simple_graph##3"{var"#simple_graph#302#337"{ResourceEmit{Float64}, ResourceCarrier{Float64}, ResourceEmit{Float64}}})(; data_em::CaptureProcessEnergyEmissions{Float64}) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:456 [11] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:382 [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [13] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:702 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [15] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:703 [inlined] SimpleTimes without storage: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:866 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] run_model(case::Case, model::OperationalModel, optimizer::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [4] run_model(case::Case, model::OperationalModel, optimizer::Core.TypeEgal{HiGHS.Optimizer}) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [inlined] [5] (::var"#simple_graph#simple_graph##4"{var"#simple_graph#406#444"{ResourceEmit{Float64}, ResourceCarrier{Float64}, ResourceCarrier{Float64}}})(; ops::SimpleTimes{Int64}, op_per_strat::Int64, demand::FixedProfile{Int64}) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:808 [6] (::var"#simple_graph#simple_graph##4"{var"#simple_graph#406#444"{ResourceEmit{Float64}, ResourceCarrier{Float64}, ResourceCarrier{Float64}}})() @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:755 [7] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:750 [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [9] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:868 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [11] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:868 [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] run_model(case::Case, model::OperationalModel, optimizer::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [9] run_model(case::Case, model::OperationalModel, optimizer::Core.TypeEgal{HiGHS.Optimizer}) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [inlined] [10] (::var"#simple_graph#simple_graph##4"{var"#simple_graph#406#444"{ResourceEmit{Float64}, ResourceCarrier{Float64}, ResourceCarrier{Float64}}})(; ops::SimpleTimes{Int64}, op_per_strat::Int64, demand::FixedProfile{Int64}) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:808 [11] (::var"#simple_graph#simple_graph##4"{var"#simple_graph#406#444"{ResourceEmit{Float64}, ResourceCarrier{Float64}, ResourceCarrier{Float64}}})() @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:755 [12] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:750 [13] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [14] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:868 [inlined] [15] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [16] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:868 [inlined] SimpleTimes with storage: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:916 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] run_model(case::Case, model::OperationalModel, optimizer::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [4] run_model(case::Case, model::OperationalModel, optimizer::Core.TypeEgal{HiGHS.Optimizer}) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [inlined] [5] (::var"#simple_graph#simple_graph##4"{var"#simple_graph#406#444"{ResourceEmit{Float64}, ResourceCarrier{Float64}, ResourceCarrier{Float64}}})(; ops::SimpleTimes{Int64}, op_per_strat::Int64, demand::OperationalProfile{Int64}) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:808 [6] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:750 [7] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [8] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:918 [inlined] [9] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [10] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:918 [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] run_model(case::Case, model::OperationalModel, optimizer::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [9] run_model(case::Case, model::OperationalModel, optimizer::Core.TypeEgal{HiGHS.Optimizer}) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [inlined] [10] (::var"#simple_graph#simple_graph##4"{var"#simple_graph#406#444"{ResourceEmit{Float64}, ResourceCarrier{Float64}, ResourceCarrier{Float64}}})(; ops::SimpleTimes{Int64}, op_per_strat::Int64, demand::OperationalProfile{Int64}) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:808 [11] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:750 [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [13] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:918 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [15] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:918 [inlined] OperationalScenarios with storage: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:962 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, OperationalScenarios{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::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [4] run_model(case::Case, model::OperationalModel, optimizer::Core.TypeEgal{HiGHS.Optimizer}) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [inlined] [5] (::var"#simple_graph#simple_graph##4"{var"#simple_graph#406#444"{ResourceEmit{Float64}, ResourceCarrier{Float64}, ResourceCarrier{Float64}}})(; ops::OperationalScenarios{Int64, SimpleTimes{Int64}}, op_per_strat::Int64, demand::ScenarioProfile{Int64, OperationalProfile{Int64}}) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:808 [6] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:750 [7] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [8] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:964 [inlined] [9] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [10] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:973 [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, OperationalScenarios{Int64, SimpleTimes{Int64}}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:555 [5] variables_element(m::Model, 𝒩ˢᵘᵇ::Vector{RefSink}, 𝒯::TwoLevel{Int64, Int64, OperationalScenarios{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, OperationalScenarios{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::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [9] run_model(case::Case, model::OperationalModel, optimizer::Core.TypeEgal{HiGHS.Optimizer}) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [inlined] [10] (::var"#simple_graph#simple_graph##4"{var"#simple_graph#406#444"{ResourceEmit{Float64}, ResourceCarrier{Float64}, ResourceCarrier{Float64}}})(; ops::OperationalScenarios{Int64, SimpleTimes{Int64}}, op_per_strat::Int64, demand::ScenarioProfile{Int64, OperationalProfile{Int64}}) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:808 [11] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:750 [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [13] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:964 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [15] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:973 [inlined] RepresentativePeriods with storage: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1029 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, RepresentativePeriods{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::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [4] run_model(case::Case, model::OperationalModel, optimizer::Core.TypeEgal{HiGHS.Optimizer}) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [inlined] [5] (::var"#simple_graph#simple_graph##4"{var"#simple_graph#406#444"{ResourceEmit{Float64}, ResourceCarrier{Float64}, ResourceCarrier{Float64}}})(; ops::RepresentativePeriods{Int64, Int64, SimpleTimes{Int64}}, op_per_strat::Int64, demand::RepresentativeProfile{Int64, FixedProfile{Int64}}) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:808 [6] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:750 [7] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [8] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1031 [inlined] [9] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [10] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1040 [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, RepresentativePeriods{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, RepresentativePeriods{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, RepresentativePeriods{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::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [9] run_model(case::Case, model::OperationalModel, optimizer::Core.TypeEgal{HiGHS.Optimizer}) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [inlined] [10] (::var"#simple_graph#simple_graph##4"{var"#simple_graph#406#444"{ResourceEmit{Float64}, ResourceCarrier{Float64}, ResourceCarrier{Float64}}})(; ops::RepresentativePeriods{Int64, Int64, SimpleTimes{Int64}}, op_per_strat::Int64, demand::RepresentativeProfile{Int64, FixedProfile{Int64}}) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:808 [11] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:750 [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [13] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1031 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [15] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1040 [inlined] OperationalScenarios and RepresentativePeriods with storage: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1120 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, RepresentativePeriods{Int64, Int64, OperationalScenarios{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::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [4] run_model(case::Case, model::OperationalModel, optimizer::Core.TypeEgal{HiGHS.Optimizer}) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [inlined] [5] (::var"#simple_graph#simple_graph##4"{var"#simple_graph#406#444"{ResourceEmit{Float64}, ResourceCarrier{Float64}, ResourceCarrier{Float64}}})(; ops::RepresentativePeriods{Int64, Int64, OperationalScenarios{Int64, SimpleTimes{Int64}}}, op_per_strat::Int64, demand::RepresentativeProfile{Int64, ScenarioProfile{Int64, OperationalProfile{Int64}}}) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:808 [6] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:750 [7] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [8] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1122 [inlined] [9] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [10] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1134 [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, RepresentativePeriods{Int64, Int64, OperationalScenarios{Int64, SimpleTimes{Int64}}}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:555 [5] variables_element(m::Model, 𝒩ˢᵘᵇ::Vector{RefSink}, 𝒯::TwoLevel{Int64, Int64, RepresentativePeriods{Int64, Int64, OperationalScenarios{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, RepresentativePeriods{Int64, Int64, OperationalScenarios{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::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [9] run_model(case::Case, model::OperationalModel, optimizer::Core.TypeEgal{HiGHS.Optimizer}) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [inlined] [10] (::var"#simple_graph#simple_graph##4"{var"#simple_graph#406#444"{ResourceEmit{Float64}, ResourceCarrier{Float64}, ResourceCarrier{Float64}}})(; ops::RepresentativePeriods{Int64, Int64, OperationalScenarios{Int64, SimpleTimes{Int64}}}, op_per_strat::Int64, demand::RepresentativeProfile{Int64, ScenarioProfile{Int64, OperationalProfile{Int64}}}) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:808 [11] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:750 [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [13] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1122 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [15] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1134 [inlined] SimpleTimes without storage: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1331 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] run_model(case::Case, model::OperationalModel, optimizer::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [4] run_model(case::Case, model::OperationalModel, optimizer::Core.TypeEgal{HiGHS.Optimizer}) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [inlined] [5] (::var"#simple_graph#simple_graph##5"{var"#simple_graph#501#542"{ResourceEmit{Float64}, ResourceCarrier{Float64}, ResourceCarrier{Float64}}})(; ops::SimpleTimes{Int64}, op_per_strat::Int64, demand::FixedProfile{Int64}) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1272 [6] (::var"#simple_graph#simple_graph##5"{var"#simple_graph#501#542"{ResourceEmit{Float64}, ResourceCarrier{Float64}, ResourceCarrier{Float64}}})() @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1219 [7] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1214 [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [9] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1333 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [11] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1333 [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] run_model(case::Case, model::OperationalModel, optimizer::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [9] run_model(case::Case, model::OperationalModel, optimizer::Core.TypeEgal{HiGHS.Optimizer}) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [inlined] [10] (::var"#simple_graph#simple_graph##5"{var"#simple_graph#501#542"{ResourceEmit{Float64}, ResourceCarrier{Float64}, ResourceCarrier{Float64}}})(; ops::SimpleTimes{Int64}, op_per_strat::Int64, demand::FixedProfile{Int64}) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1272 [11] (::var"#simple_graph#simple_graph##5"{var"#simple_graph#501#542"{ResourceEmit{Float64}, ResourceCarrier{Float64}, ResourceCarrier{Float64}}})() @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1219 [12] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1214 [13] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [14] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1333 [inlined] [15] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [16] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1333 [inlined] SimpleTimes with storage: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1382 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] run_model(case::Case, model::OperationalModel, optimizer::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [4] run_model(case::Case, model::OperationalModel, optimizer::Core.TypeEgal{HiGHS.Optimizer}) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [inlined] [5] (::var"#simple_graph#simple_graph##5"{var"#simple_graph#501#542"{ResourceEmit{Float64}, ResourceCarrier{Float64}, ResourceCarrier{Float64}}})(; ops::SimpleTimes{Int64}, op_per_strat::Int64, demand::OperationalProfile{Int64}) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1272 [6] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1214 [7] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [8] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1384 [inlined] [9] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [10] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1384 [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] run_model(case::Case, model::OperationalModel, optimizer::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [9] run_model(case::Case, model::OperationalModel, optimizer::Core.TypeEgal{HiGHS.Optimizer}) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [inlined] [10] (::var"#simple_graph#simple_graph##5"{var"#simple_graph#501#542"{ResourceEmit{Float64}, ResourceCarrier{Float64}, ResourceCarrier{Float64}}})(; ops::SimpleTimes{Int64}, op_per_strat::Int64, demand::OperationalProfile{Int64}) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1272 [11] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1214 [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [13] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1384 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [15] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1384 [inlined] OperationalScenarios with storage: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1429 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, OperationalScenarios{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::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [4] run_model(case::Case, model::OperationalModel, optimizer::Core.TypeEgal{HiGHS.Optimizer}) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [inlined] [5] (::var"#simple_graph#simple_graph##5"{var"#simple_graph#501#542"{ResourceEmit{Float64}, ResourceCarrier{Float64}, ResourceCarrier{Float64}}})(; ops::OperationalScenarios{Int64, SimpleTimes{Int64}}, op_per_strat::Int64, demand::ScenarioProfile{Int64, OperationalProfile{Int64}}) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1272 [6] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1214 [7] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [8] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1431 [inlined] [9] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [10] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1440 [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, OperationalScenarios{Int64, SimpleTimes{Int64}}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:555 [5] variables_element(m::Model, 𝒩ˢᵘᵇ::Vector{RefSink}, 𝒯::TwoLevel{Int64, Int64, OperationalScenarios{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, OperationalScenarios{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::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [9] run_model(case::Case, model::OperationalModel, optimizer::Core.TypeEgal{HiGHS.Optimizer}) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [inlined] [10] (::var"#simple_graph#simple_graph##5"{var"#simple_graph#501#542"{ResourceEmit{Float64}, ResourceCarrier{Float64}, ResourceCarrier{Float64}}})(; ops::OperationalScenarios{Int64, SimpleTimes{Int64}}, op_per_strat::Int64, demand::ScenarioProfile{Int64, OperationalProfile{Int64}}) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1272 [11] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1214 [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [13] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1431 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [15] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1440 [inlined] RepresentativePeriods with storage: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1496 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, RepresentativePeriods{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::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [4] run_model(case::Case, model::OperationalModel, optimizer::Core.TypeEgal{HiGHS.Optimizer}) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [inlined] [5] (::var"#simple_graph#simple_graph##5"{var"#simple_graph#501#542"{ResourceEmit{Float64}, ResourceCarrier{Float64}, ResourceCarrier{Float64}}})(; ops::RepresentativePeriods{Int64, Int64, SimpleTimes{Int64}}, op_per_strat::Int64, demand::RepresentativeProfile{Int64, OperationalProfile{Int64}}) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1272 [6] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1214 [7] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [8] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1498 [inlined] [9] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [10] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1507 [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, RepresentativePeriods{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, RepresentativePeriods{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, RepresentativePeriods{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::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [9] run_model(case::Case, model::OperationalModel, optimizer::Core.TypeEgal{HiGHS.Optimizer}) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [inlined] [10] (::var"#simple_graph#simple_graph##5"{var"#simple_graph#501#542"{ResourceEmit{Float64}, ResourceCarrier{Float64}, ResourceCarrier{Float64}}})(; ops::RepresentativePeriods{Int64, Int64, SimpleTimes{Int64}}, op_per_strat::Int64, demand::RepresentativeProfile{Int64, OperationalProfile{Int64}}) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1272 [11] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1214 [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [13] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1498 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [15] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1507 [inlined] OperationalScenarios and RepresentativePeriods with storage: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1572 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, RepresentativePeriods{Int64, Int64, OperationalScenarios{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::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [4] run_model(case::Case, model::OperationalModel, optimizer::Core.TypeEgal{HiGHS.Optimizer}) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [inlined] [5] (::var"#simple_graph#simple_graph##5"{var"#simple_graph#501#542"{ResourceEmit{Float64}, ResourceCarrier{Float64}, ResourceCarrier{Float64}}})(; ops::RepresentativePeriods{Int64, Int64, OperationalScenarios{Int64, SimpleTimes{Int64}}}, op_per_strat::Int64, demand::RepresentativeProfile{Int64, ScenarioProfile{Int64, OperationalProfile{Int64}}}) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1272 [6] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1214 [7] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [8] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1574 [inlined] [9] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [10] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1586 [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, RepresentativePeriods{Int64, Int64, OperationalScenarios{Int64, SimpleTimes{Int64}}}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:555 [5] variables_element(m::Model, 𝒩ˢᵘᵇ::Vector{RefSink}, 𝒯::TwoLevel{Int64, Int64, RepresentativePeriods{Int64, Int64, OperationalScenarios{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, RepresentativePeriods{Int64, Int64, OperationalScenarios{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::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [9] run_model(case::Case, model::OperationalModel, optimizer::Core.TypeEgal{HiGHS.Optimizer}) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [inlined] [10] (::var"#simple_graph#simple_graph##5"{var"#simple_graph#501#542"{ResourceEmit{Float64}, ResourceCarrier{Float64}, ResourceCarrier{Float64}}})(; ops::RepresentativePeriods{Int64, Int64, OperationalScenarios{Int64, SimpleTimes{Int64}}}, op_per_strat::Int64, demand::RepresentativeProfile{Int64, ScenarioProfile{Int64, OperationalProfile{Int64}}}) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1272 [11] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1214 [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [13] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1574 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [15] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1586 [inlined] SimpleTimes without storage: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1773 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] run_model(case::Case, model::OperationalModel, optimizer::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [4] run_model(case::Case, model::OperationalModel, optimizer::Core.TypeEgal{HiGHS.Optimizer}) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [inlined] [5] (::var"#simple_graph#simple_graph##6"{var"#simple_graph#605#628"{ResourceEmit{Float64}, ResourceCarrier{Float64}, ResourceEmit{Float64}}})(; ops::SimpleTimes{Int64}, op_per_strat::Int64, em_limit::Vector{Int64}, stor_cap::Int64) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1725 [6] (::var"#simple_graph#simple_graph##6"{var"#simple_graph#605#628"{ResourceEmit{Float64}, ResourceCarrier{Float64}, ResourceEmit{Float64}}})() @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1668 [7] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1663 [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [9] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1779 [inlined] [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [11] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1779 [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] run_model(case::Case, model::OperationalModel, optimizer::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [9] run_model(case::Case, model::OperationalModel, optimizer::Core.TypeEgal{HiGHS.Optimizer}) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [inlined] [10] (::var"#simple_graph#simple_graph##6"{var"#simple_graph#605#628"{ResourceEmit{Float64}, ResourceCarrier{Float64}, ResourceEmit{Float64}}})(; ops::SimpleTimes{Int64}, op_per_strat::Int64, em_limit::Vector{Int64}, stor_cap::Int64) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1725 [11] (::var"#simple_graph#simple_graph##6"{var"#simple_graph#605#628"{ResourceEmit{Float64}, ResourceCarrier{Float64}, ResourceEmit{Float64}}})() @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1668 [12] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1663 [13] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [14] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1779 [inlined] [15] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [16] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1779 [inlined] SimpleTimes with storage: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1827 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] run_model(case::Case, model::OperationalModel, optimizer::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [4] run_model(case::Case, model::OperationalModel, optimizer::Core.TypeEgal{HiGHS.Optimizer}) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [inlined] [5] (::var"#simple_graph#simple_graph##6"{var"#simple_graph#605#628"{ResourceEmit{Float64}, ResourceCarrier{Float64}, ResourceEmit{Float64}}})(; ops::SimpleTimes{Int64}, op_per_strat::Int64, em_limit::Vector{Int64}, stor_cap::Int64) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1725 [6] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1663 [7] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [8] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1829 [inlined] [9] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [10] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1829 [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] run_model(case::Case, model::OperationalModel, optimizer::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [9] run_model(case::Case, model::OperationalModel, optimizer::Core.TypeEgal{HiGHS.Optimizer}) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [inlined] [10] (::var"#simple_graph#simple_graph##6"{var"#simple_graph#605#628"{ResourceEmit{Float64}, ResourceCarrier{Float64}, ResourceEmit{Float64}}})(; ops::SimpleTimes{Int64}, op_per_strat::Int64, em_limit::Vector{Int64}, stor_cap::Int64) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1725 [11] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1663 [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [13] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1829 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [15] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1829 [inlined] RepresentativePeriods with storage: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1886 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, RepresentativePeriods{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::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [4] run_model(case::Case, model::OperationalModel, optimizer::Core.TypeEgal{HiGHS.Optimizer}) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [inlined] [5] (::var"#simple_graph#simple_graph##6"{var"#simple_graph#605#628"{ResourceEmit{Float64}, ResourceCarrier{Float64}, ResourceEmit{Float64}}})(; ops::RepresentativePeriods{Int64, Int64, SimpleTimes{Int64}}, op_per_strat::Int64, em_limit::Vector{Int64}, stor_cap::Float64) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1725 [6] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1663 [7] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [8] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1888 [inlined] [9] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [10] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1892 [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, RepresentativePeriods{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, RepresentativePeriods{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, RepresentativePeriods{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::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [9] run_model(case::Case, model::OperationalModel, optimizer::Core.TypeEgal{HiGHS.Optimizer}) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [inlined] [10] (::var"#simple_graph#simple_graph##6"{var"#simple_graph#605#628"{ResourceEmit{Float64}, ResourceCarrier{Float64}, ResourceEmit{Float64}}})(; ops::RepresentativePeriods{Int64, Int64, SimpleTimes{Int64}}, op_per_strat::Int64, em_limit::Vector{Int64}, stor_cap::Float64) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1725 [11] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1663 [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [13] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1888 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [15] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_nodes.jl:1892 [inlined] Variable declaration: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsBase/hrdwP/test/test_links.jl:82 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/EnergyModelsBase/hrdwP/test/test_links.jl:4 [5] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [6] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_links.jl:83 [inlined] [7] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [8] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_links.jl:84 [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/EnergyModelsBase/hrdwP/test/test_links.jl:4 [10] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [11] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_links.jl:83 [inlined] [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [13] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_links.jl:84 [inlined] Link - different resources: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsBase/hrdwP/test/test_links.jl:144 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] run_model(case::Case, model::OperationalModel, optimizer::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [4] run_model(case::Case, model::OperationalModel, optimizer::Core.TypeEgal{HiGHS.Optimizer}) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [inlined] [5] link_graph(LinkType::Vector{DataType}; res_in::ResourceCarrier{Float64}, res_out::ResourceEmit{Float64}) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_links.jl:141 [6] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_links.jl:146 [7] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [8] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_links.jl:163 [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] run_model(case::Case, model::OperationalModel, optimizer::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [9] run_model(case::Case, model::OperationalModel, optimizer::Core.TypeEgal{HiGHS.Optimizer}) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [inlined] [10] link_graph(LinkType::Vector{DataType}; res_in::ResourceCarrier{Float64}, res_out::ResourceEmit{Float64}) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_links.jl:141 [11] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_links.jl:146 [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [13] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_links.jl:163 [inlined] Link - emissions: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsBase/hrdwP/test/test_links.jl:175 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] run_model(case::Case, model::OperationalModel, optimizer::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [4] run_model(case::Case, model::OperationalModel, optimizer::Core.TypeEgal{HiGHS.Optimizer}) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [inlined] [5] link_graph(LinkType::Vector{DataType}; res_in::ResourceCarrier{Float64}, res_out::ResourceCarrier{Float64}) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_links.jl:141 [6] link_graph(LinkType::Vector{DataType}) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_links.jl:112 [7] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_links.jl:177 [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [9] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_links.jl:198 [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] run_model(case::Case, model::OperationalModel, optimizer::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [9] run_model(case::Case, model::OperationalModel, optimizer::Core.TypeEgal{HiGHS.Optimizer}) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [inlined] [10] link_graph(LinkType::Vector{DataType}; res_in::ResourceCarrier{Float64}, res_out::ResourceCarrier{Float64}) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_links.jl:141 [11] link_graph(LinkType::Vector{DataType}) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_links.jl:112 [12] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_links.jl:177 [13] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [14] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_links.jl:198 [inlined] Link - OPEX: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsBase/hrdwP/test/test_links.jl:214 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] run_model(case::Case, model::OperationalModel, optimizer::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [4] run_model(case::Case, model::OperationalModel, optimizer::Core.TypeEgal{HiGHS.Optimizer}) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [inlined] [5] link_graph(LinkType::Vector{DataType}; res_in::ResourceCarrier{Float64}, res_out::ResourceCarrier{Float64}) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_links.jl:141 [6] link_graph(LinkType::Vector{DataType}) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_links.jl:112 [7] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_links.jl:216 [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [9] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_links.jl:237 [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] run_model(case::Case, model::OperationalModel, optimizer::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [9] run_model(case::Case, model::OperationalModel, optimizer::Core.TypeEgal{HiGHS.Optimizer}) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [inlined] [10] link_graph(LinkType::Vector{DataType}; res_in::ResourceCarrier{Float64}, res_out::ResourceCarrier{Float64}) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_links.jl:141 [11] link_graph(LinkType::Vector{DataType}) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_links.jl:112 [12] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_links.jl:216 [13] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [14] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_links.jl:237 [inlined] Link - capacity: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsBase/hrdwP/test/test_links.jl:254 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] run_model(case::Case, model::OperationalModel, optimizer::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [4] run_model(case::Case, model::OperationalModel, optimizer::Core.TypeEgal{HiGHS.Optimizer}) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [inlined] [5] link_graph(LinkType::Vector{DataType}; res_in::ResourceCarrier{Float64}, res_out::ResourceCarrier{Float64}) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_links.jl:141 [6] link_graph(LinkType::Vector{DataType}) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_links.jl:112 [7] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_links.jl:256 [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [9] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_links.jl:279 [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] run_model(case::Case, model::OperationalModel, optimizer::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [9] run_model(case::Case, model::OperationalModel, optimizer::Core.TypeEgal{HiGHS.Optimizer}) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [inlined] [10] link_graph(LinkType::Vector{DataType}; res_in::ResourceCarrier{Float64}, res_out::ResourceCarrier{Float64}) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_links.jl:141 [11] link_graph(LinkType::Vector{DataType}) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_links.jl:112 [12] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_links.jl:256 [13] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [14] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_links.jl:279 [inlined] Link - variable creation: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsBase/hrdwP/test/test_links.jl:299 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] run_model(case::Case, model::OperationalModel, optimizer::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [4] run_model(case::Case, model::OperationalModel, optimizer::Core.TypeEgal{HiGHS.Optimizer}) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [inlined] [5] link_graph(LinkType::Vector{DataType}; res_in::ResourceCarrier{Float64}, res_out::ResourceCarrier{Float64}) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_links.jl:141 [6] link_graph(LinkType::Vector{DataType}) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_links.jl:112 [7] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_links.jl:301 [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [9] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_links.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::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::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [9] run_model(case::Case, model::OperationalModel, optimizer::Core.TypeEgal{HiGHS.Optimizer}) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [inlined] [10] link_graph(LinkType::Vector{DataType}; res_in::ResourceCarrier{Float64}, res_out::ResourceCarrier{Float64}) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_links.jl:141 [11] link_graph(LinkType::Vector{DataType}) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_links.jl:112 [12] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_links.jl:301 [13] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [14] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_links.jl:333 [inlined] Emission cap: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsBase/hrdwP/test/test_modeltype.jl:48 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] run_model(case::Case, model::OperationalModel, optimizer::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [4] run_model(case::Case, model::OperationalModel, optimizer::Core.TypeEgal{HiGHS.Optimizer}) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [inlined] [5] (::var"#simple_graph#simple_graph##8"{ResourceEmit{Float64}, ResourceCarrier{Float64}})(em_data::EmissionsProcess{Float64}, em_cap::FixedProfile{Float64}, em_price::FixedProfile{Int64}) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_modeltype.jl:32 [6] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_modeltype.jl:4 [7] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [8] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_modeltype.jl:50 [inlined] [9] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [10] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_modeltype.jl:56 [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] run_model(case::Case, model::OperationalModel, optimizer::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [9] run_model(case::Case, model::OperationalModel, optimizer::Core.TypeEgal{HiGHS.Optimizer}) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [inlined] [10] (::var"#simple_graph#simple_graph##8"{ResourceEmit{Float64}, ResourceCarrier{Float64}})(em_data::EmissionsProcess{Float64}, em_cap::FixedProfile{Float64}, em_price::FixedProfile{Int64}) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_modeltype.jl:32 [11] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_modeltype.jl:4 [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [13] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_modeltype.jl:50 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [15] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_modeltype.jl:56 [inlined] Emission price: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsBase/hrdwP/test/test_modeltype.jl:77 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] run_model(case::Case, model::OperationalModel, optimizer::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [4] run_model(case::Case, model::OperationalModel, optimizer::Core.TypeEgal{HiGHS.Optimizer}) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [inlined] [5] (::var"#simple_graph#simple_graph##8"{ResourceEmit{Float64}, ResourceCarrier{Float64}})(em_data::EmissionsProcess{Float64}, em_cap::FixedProfile{Float64}, em_price::FixedProfile{Float64}) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_modeltype.jl:32 [6] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_modeltype.jl:4 [7] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [8] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_modeltype.jl:79 [inlined] [9] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [10] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_modeltype.jl:85 [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] run_model(case::Case, model::OperationalModel, optimizer::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [9] run_model(case::Case, model::OperationalModel, optimizer::Core.TypeEgal{HiGHS.Optimizer}) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [inlined] [10] (::var"#simple_graph#simple_graph##8"{ResourceEmit{Float64}, ResourceCarrier{Float64}})(em_data::EmissionsProcess{Float64}, em_cap::FixedProfile{Float64}, em_price::FixedProfile{Float64}) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_modeltype.jl:32 [11] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_modeltype.jl:4 [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [13] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_modeltype.jl:79 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [15] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_modeltype.jl:85 [inlined] Variable creation: Test Failed at /home/pkgeval/.julia/packages/EnergyModelsBase/hrdwP/test/test_utils.jl:25 Expression: occursin(pre2, e.msg) Evaluated: occursin("is already attached to this model.", "An object of name `:same_name` is already registered in this model.\n\nConsider 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.\n\nAlternatively, use `unregister(model, :same_name)` 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[:same_name]`.\n") Stacktrace: [1] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_utils.jl:2 [2] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [3] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_utils.jl:25 [inlined] [4] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:784 [inlined] ┌ Warning: Using `ScenarioProfile` with `SimpleTimes` is dangerous, as it may lead to unexpected behaviour. In this case, only the first profile is used in the model and tested. └ @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/checks.jl:548 ┌ Warning: Using `RepresentativeProfile` with `SimpleTimes` is dangerous, as it may lead to unexpected behaviour. In this case, only the first profile is used in the model and tested. └ @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/checks.jl:591 Checks - emission data: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsBase/hrdwP/test/test_checks.jl:230 Test threw exception Expression: create_model(case, model; check_timeprofiles = false) 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] (::var"#769#770")() @ Main none:-1 [4] with_logstate(f::var"#769#770", logstate::Base.CoreLogging.LogState) @ Base.CoreLogging logging/logging.jl:542 [5] with_logger(f::Function, logger::TestLogger) @ Base.CoreLogging logging/logging.jl:653 [6] collect_test_logs(f::Function; kwargs::@Kwargs{}) @ Test /opt/julia/share/julia/stdlib/v1.14/Test/src/logging.jl:126 [inlined] [7] collect_test_logs(f::Function) @ Test /opt/julia/share/julia/stdlib/v1.14/Test/src/logging.jl:124 [inlined] [8] match_logs(f::Function, patterns::Tuple{Symbol, String}; match_mode::Symbol, kwargs::@Kwargs{}) @ Test /opt/julia/share/julia/stdlib/v1.14/Test/src/logging.jl:307 [9] match_logs(f::Function, patterns::Tuple{Symbol, String}) @ Test /opt/julia/share/julia/stdlib/v1.14/Test/src/logging.jl:306 [10] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_checks.jl:160 [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [12] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_checks.jl:230 [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] (::var"#769#770")() @ Main none:-1 [9] with_logstate(f::var"#769#770", logstate::Base.CoreLogging.LogState) @ Base.CoreLogging logging/logging.jl:542 [10] with_logger(f::Function, logger::TestLogger) @ Base.CoreLogging logging/logging.jl:653 [11] collect_test_logs(f::Function; kwargs::@Kwargs{}) @ Test /opt/julia/share/julia/stdlib/v1.14/Test/src/logging.jl:126 [inlined] [12] collect_test_logs(f::Function) @ Test /opt/julia/share/julia/stdlib/v1.14/Test/src/logging.jl:124 [inlined] [13] match_logs(f::Function, patterns::Tuple{Symbol, String}; match_mode::Symbol, kwargs::@Kwargs{}) @ Test /opt/julia/share/julia/stdlib/v1.14/Test/src/logging.jl:307 [14] match_logs(f::Function, patterns::Tuple{Symbol, String}) @ Test /opt/julia/share/julia/stdlib/v1.14/Test/src/logging.jl:306 [15] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_checks.jl:160 [16] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [17] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_checks.jl:230 [inlined] Checks - emission data: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsBase/hrdwP/test/test_checks.jl:231 Test threw exception Expression: for k = [1, 2] create_model(case, model; check_timeprofiles = false) end 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] (::var"#771#772")() @ Main none:-1 [4] with_logstate(f::var"#771#772", logstate::Base.CoreLogging.LogState) @ Base.CoreLogging logging/logging.jl:542 [5] with_logger(f::Function, logger::TestLogger) @ Base.CoreLogging logging/logging.jl:653 [6] collect_test_logs(f::Function; kwargs::@Kwargs{}) @ Test /opt/julia/share/julia/stdlib/v1.14/Test/src/logging.jl:126 [inlined] [7] collect_test_logs(f::Function) @ Test /opt/julia/share/julia/stdlib/v1.14/Test/src/logging.jl:124 [inlined] [8] match_logs(f::Function, patterns::Tuple{Symbol, String}; match_mode::Symbol, kwargs::@Kwargs{}) @ Test /opt/julia/share/julia/stdlib/v1.14/Test/src/logging.jl:307 [9] match_logs(f::Function, patterns::Tuple{Symbol, String}) @ Test /opt/julia/share/julia/stdlib/v1.14/Test/src/logging.jl:306 [10] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_checks.jl:160 [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [12] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_checks.jl:231 [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] (::var"#771#772")() @ Main none:-1 [9] with_logstate(f::var"#771#772", logstate::Base.CoreLogging.LogState) @ Base.CoreLogging logging/logging.jl:542 [10] with_logger(f::Function, logger::TestLogger) @ Base.CoreLogging logging/logging.jl:653 [11] collect_test_logs(f::Function; kwargs::@Kwargs{}) @ Test /opt/julia/share/julia/stdlib/v1.14/Test/src/logging.jl:126 [inlined] [12] collect_test_logs(f::Function) @ Test /opt/julia/share/julia/stdlib/v1.14/Test/src/logging.jl:124 [inlined] [13] match_logs(f::Function, patterns::Tuple{Symbol, String}; match_mode::Symbol, kwargs::@Kwargs{}) @ Test /opt/julia/share/julia/stdlib/v1.14/Test/src/logging.jl:307 [14] match_logs(f::Function, patterns::Tuple{Symbol, String}) @ Test /opt/julia/share/julia/stdlib/v1.14/Test/src/logging.jl:306 [15] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_checks.jl:160 [16] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [17] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_checks.jl:231 [inlined] Checks - timeprofiles: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsBase/hrdwP/test/test_checks.jl:309 Test threw exception Expression: create_simple_graph(ts, profiles_ssc) 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] (::var"#create_simple_graph#create_simple_graph##1"{var"#simple_graph#simple_graph##11"{ResourceEmit{Float64}, ResourceCarrier{Float64}}})(T::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, tp::StrategicStochasticProfile{Float64, OperationalProfile{Float64}}) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_checks.jl:274 [5] (::var"#778#779"{var"#create_simple_graph#create_simple_graph##1"{var"#simple_graph#simple_graph##11"{ResourceEmit{Float64}, ResourceCarrier{Float64}}}})() @ Main none:-1 [6] with_logstate(f::var"#778#779"{var"#create_simple_graph#create_simple_graph##1"{var"#simple_graph#simple_graph##11"{ResourceEmit{Float64}, ResourceCarrier{Float64}}}}, logstate::Base.CoreLogging.LogState) @ Base.CoreLogging logging/logging.jl:542 [7] with_logger(f::Function, logger::TestLogger) @ Base.CoreLogging logging/logging.jl:653 [8] collect_test_logs(f::Function; kwargs::@Kwargs{}) @ Test /opt/julia/share/julia/stdlib/v1.14/Test/src/logging.jl:126 [inlined] [9] collect_test_logs(f::Function) @ Test /opt/julia/share/julia/stdlib/v1.14/Test/src/logging.jl:124 [inlined] [10] match_logs(f::Function, patterns::Tuple{Symbol, String}; match_mode::Symbol, kwargs::@Kwargs{}) @ Test /opt/julia/share/julia/stdlib/v1.14/Test/src/logging.jl:307 [11] match_logs(f::Function, patterns::Tuple{Symbol, String}) @ Test /opt/julia/share/julia/stdlib/v1.14/Test/src/logging.jl:306 [12] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_checks.jl:239 [13] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [14] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_checks.jl:309 [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] (::var"#create_simple_graph#create_simple_graph##1"{var"#simple_graph#simple_graph##11"{ResourceEmit{Float64}, ResourceCarrier{Float64}}})(T::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, tp::StrategicStochasticProfile{Float64, OperationalProfile{Float64}}) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_checks.jl:274 [10] (::var"#778#779"{var"#create_simple_graph#create_simple_graph##1"{var"#simple_graph#simple_graph##11"{ResourceEmit{Float64}, ResourceCarrier{Float64}}}})() @ Main none:-1 [11] with_logstate(f::var"#778#779"{var"#create_simple_graph#create_simple_graph##1"{var"#simple_graph#simple_graph##11"{ResourceEmit{Float64}, ResourceCarrier{Float64}}}}, logstate::Base.CoreLogging.LogState) @ Base.CoreLogging logging/logging.jl:542 [12] with_logger(f::Function, logger::TestLogger) @ Base.CoreLogging logging/logging.jl:653 [13] collect_test_logs(f::Function; kwargs::@Kwargs{}) @ Test /opt/julia/share/julia/stdlib/v1.14/Test/src/logging.jl:126 [inlined] [14] collect_test_logs(f::Function) @ Test /opt/julia/share/julia/stdlib/v1.14/Test/src/logging.jl:124 [inlined] [15] match_logs(f::Function, patterns::Tuple{Symbol, String}; match_mode::Symbol, kwargs::@Kwargs{}) @ Test /opt/julia/share/julia/stdlib/v1.14/Test/src/logging.jl:307 [16] match_logs(f::Function, patterns::Tuple{Symbol, String}) @ Test /opt/julia/share/julia/stdlib/v1.14/Test/src/logging.jl:306 [17] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_checks.jl:239 [18] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [19] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_checks.jl:309 [inlined] ┌ Warning: Using `StrategicStochasticProfile` with `TwoLevel` is dangerous, as it may lead to unexpected behaviour. In this case, only the profiles of the first scenario are used in the model and tested. └ @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/checks.jl:397 Checks - timeprofiles: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsBase/hrdwP/test/test_checks.jl:403 Test threw exception Expression: create_simple_graph(ts, profiles[1]) 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] (::var"#create_simple_graph#create_simple_graph##1"{var"#simple_graph#simple_graph##11"{ResourceEmit{Float64}, ResourceCarrier{Float64}}})(T::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, tp::ScenarioProfile{Int64, FixedProfile{Int64}}) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_checks.jl:274 [5] (::var"#780#781"{var"#create_simple_graph#create_simple_graph##1"{var"#simple_graph#simple_graph##11"{ResourceEmit{Float64}, ResourceCarrier{Float64}}}})() @ Main none:-1 [6] with_logstate(f::var"#780#781"{var"#create_simple_graph#create_simple_graph##1"{var"#simple_graph#simple_graph##11"{ResourceEmit{Float64}, ResourceCarrier{Float64}}}}, logstate::Base.CoreLogging.LogState) @ Base.CoreLogging logging/logging.jl:542 [7] with_logger(f::Function, logger::TestLogger) @ Base.CoreLogging logging/logging.jl:653 [8] collect_test_logs(f::Function; kwargs::@Kwargs{}) @ Test /opt/julia/share/julia/stdlib/v1.14/Test/src/logging.jl:126 [inlined] [9] collect_test_logs(f::Function) @ Test /opt/julia/share/julia/stdlib/v1.14/Test/src/logging.jl:124 [inlined] [10] match_logs(f::Function, patterns::Tuple{Symbol, String}; match_mode::Symbol, kwargs::@Kwargs{}) @ Test /opt/julia/share/julia/stdlib/v1.14/Test/src/logging.jl:307 [11] match_logs(f::Function, patterns::Tuple{Symbol, String}) @ Test /opt/julia/share/julia/stdlib/v1.14/Test/src/logging.jl:306 [12] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_checks.jl:239 [13] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [14] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_checks.jl:403 [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] (::var"#create_simple_graph#create_simple_graph##1"{var"#simple_graph#simple_graph##11"{ResourceEmit{Float64}, ResourceCarrier{Float64}}})(T::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, tp::ScenarioProfile{Int64, FixedProfile{Int64}}) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_checks.jl:274 [10] (::var"#780#781"{var"#create_simple_graph#create_simple_graph##1"{var"#simple_graph#simple_graph##11"{ResourceEmit{Float64}, ResourceCarrier{Float64}}}})() @ Main none:-1 [11] with_logstate(f::var"#780#781"{var"#create_simple_graph#create_simple_graph##1"{var"#simple_graph#simple_graph##11"{ResourceEmit{Float64}, ResourceCarrier{Float64}}}}, logstate::Base.CoreLogging.LogState) @ Base.CoreLogging logging/logging.jl:542 [12] with_logger(f::Function, logger::TestLogger) @ Base.CoreLogging logging/logging.jl:653 [13] collect_test_logs(f::Function; kwargs::@Kwargs{}) @ Test /opt/julia/share/julia/stdlib/v1.14/Test/src/logging.jl:126 [inlined] [14] collect_test_logs(f::Function) @ Test /opt/julia/share/julia/stdlib/v1.14/Test/src/logging.jl:124 [inlined] [15] match_logs(f::Function, patterns::Tuple{Symbol, String}; match_mode::Symbol, kwargs::@Kwargs{}) @ Test /opt/julia/share/julia/stdlib/v1.14/Test/src/logging.jl:307 [16] match_logs(f::Function, patterns::Tuple{Symbol, String}) @ Test /opt/julia/share/julia/stdlib/v1.14/Test/src/logging.jl:306 [17] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_checks.jl:239 [18] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [19] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_checks.jl:403 [inlined] Checks - timeprofiles: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsBase/hrdwP/test/test_checks.jl:428 Test threw exception Expression: create_simple_graph(ts, tp) 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] (::var"#create_simple_graph#create_simple_graph##1"{var"#simple_graph#simple_graph##11"{ResourceEmit{Float64}, ResourceCarrier{Float64}}})(T::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, tp::RepresentativeProfile{Int64, FixedProfile{Int64}}) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_checks.jl:274 [5] (::var"#782#783"{RepresentativeProfile{Int64, FixedProfile{Int64}}, var"#create_simple_graph#create_simple_graph##1"{var"#simple_graph#simple_graph##11"{ResourceEmit{Float64}, ResourceCarrier{Float64}}}})() @ Main none:-1 [6] with_logstate(f::var"#782#783"{RepresentativeProfile{Int64, FixedProfile{Int64}}, var"#create_simple_graph#create_simple_graph##1"{var"#simple_graph#simple_graph##11"{ResourceEmit{Float64}, ResourceCarrier{Float64}}}}, logstate::Base.CoreLogging.LogState) @ Base.CoreLogging logging/logging.jl:542 [7] with_logger(f::Function, logger::TestLogger) @ Base.CoreLogging logging/logging.jl:653 [8] collect_test_logs(f::Function; kwargs::@Kwargs{}) @ Test /opt/julia/share/julia/stdlib/v1.14/Test/src/logging.jl:126 [inlined] [9] collect_test_logs(f::Function) @ Test /opt/julia/share/julia/stdlib/v1.14/Test/src/logging.jl:124 [inlined] [10] match_logs(f::Function, patterns::Tuple{Symbol, String}; match_mode::Symbol, kwargs::@Kwargs{}) @ Test /opt/julia/share/julia/stdlib/v1.14/Test/src/logging.jl:307 [11] match_logs(f::Function, patterns::Tuple{Symbol, String}) @ Test /opt/julia/share/julia/stdlib/v1.14/Test/src/logging.jl:306 [12] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_checks.jl:239 [13] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [14] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_checks.jl:428 [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] (::var"#create_simple_graph#create_simple_graph##1"{var"#simple_graph#simple_graph##11"{ResourceEmit{Float64}, ResourceCarrier{Float64}}})(T::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, tp::RepresentativeProfile{Int64, FixedProfile{Int64}}) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_checks.jl:274 [10] (::var"#782#783"{RepresentativeProfile{Int64, FixedProfile{Int64}}, var"#create_simple_graph#create_simple_graph##1"{var"#simple_graph#simple_graph##11"{ResourceEmit{Float64}, ResourceCarrier{Float64}}}})() @ Main none:-1 [11] with_logstate(f::var"#782#783"{RepresentativeProfile{Int64, FixedProfile{Int64}}, var"#create_simple_graph#create_simple_graph##1"{var"#simple_graph#simple_graph##11"{ResourceEmit{Float64}, ResourceCarrier{Float64}}}}, logstate::Base.CoreLogging.LogState) @ Base.CoreLogging logging/logging.jl:542 [12] with_logger(f::Function, logger::TestLogger) @ Base.CoreLogging logging/logging.jl:653 [13] collect_test_logs(f::Function; kwargs::@Kwargs{}) @ Test /opt/julia/share/julia/stdlib/v1.14/Test/src/logging.jl:126 [inlined] [14] collect_test_logs(f::Function) @ Test /opt/julia/share/julia/stdlib/v1.14/Test/src/logging.jl:124 [inlined] [15] match_logs(f::Function, patterns::Tuple{Symbol, String}; match_mode::Symbol, kwargs::@Kwargs{}) @ Test /opt/julia/share/julia/stdlib/v1.14/Test/src/logging.jl:307 [16] match_logs(f::Function, patterns::Tuple{Symbol, String}) @ Test /opt/julia/share/julia/stdlib/v1.14/Test/src/logging.jl:306 [17] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_checks.jl:239 [18] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [19] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_checks.jl:428 [inlined] Checks - timeprofiles: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsBase/hrdwP/test/test_checks.jl:435 Test threw exception Expression: create_simple_graph(ts, tp) 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, OperationalScenarios{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] (::var"#create_simple_graph#create_simple_graph##1"{var"#simple_graph#simple_graph##11"{ResourceEmit{Float64}, ResourceCarrier{Float64}}})(T::TwoLevel{Int64, Int64, OperationalScenarios{Int64, SimpleTimes{Int64}}}, tp::RepresentativeProfile{Int64, FixedProfile{Int64}}) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_checks.jl:274 [5] (::var"#784#785"{RepresentativeProfile{Int64, FixedProfile{Int64}}, var"#create_simple_graph#create_simple_graph##1"{var"#simple_graph#simple_graph##11"{ResourceEmit{Float64}, ResourceCarrier{Float64}}}})() @ Main none:-1 [6] with_logstate(f::var"#784#785"{RepresentativeProfile{Int64, FixedProfile{Int64}}, var"#create_simple_graph#create_simple_graph##1"{var"#simple_graph#simple_graph##11"{ResourceEmit{Float64}, ResourceCarrier{Float64}}}}, logstate::Base.CoreLogging.LogState) @ Base.CoreLogging logging/logging.jl:542 [7] with_logger(f::Function, logger::TestLogger) @ Base.CoreLogging logging/logging.jl:653 [8] collect_test_logs(f::Function; kwargs::@Kwargs{}) @ Test /opt/julia/share/julia/stdlib/v1.14/Test/src/logging.jl:126 [inlined] [9] collect_test_logs(f::Function) @ Test /opt/julia/share/julia/stdlib/v1.14/Test/src/logging.jl:124 [inlined] [10] match_logs(f::Function, patterns::Tuple{Symbol, String}; match_mode::Symbol, kwargs::@Kwargs{}) @ Test /opt/julia/share/julia/stdlib/v1.14/Test/src/logging.jl:307 [11] match_logs(f::Function, patterns::Tuple{Symbol, String}) @ Test /opt/julia/share/julia/stdlib/v1.14/Test/src/logging.jl:306 [12] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_checks.jl:239 [13] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [14] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_checks.jl:435 [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, OperationalScenarios{Int64, SimpleTimes{Int64}}}, modeltype::OperationalModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:555 [5] variables_element(m::Model, 𝒩ˢᵘᵇ::Vector{RefSink}, 𝒯::TwoLevel{Int64, Int64, OperationalScenarios{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, OperationalScenarios{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] (::var"#create_simple_graph#create_simple_graph##1"{var"#simple_graph#simple_graph##11"{ResourceEmit{Float64}, ResourceCarrier{Float64}}})(T::TwoLevel{Int64, Int64, OperationalScenarios{Int64, SimpleTimes{Int64}}}, tp::RepresentativeProfile{Int64, FixedProfile{Int64}}) @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_checks.jl:274 [10] (::var"#784#785"{RepresentativeProfile{Int64, FixedProfile{Int64}}, var"#create_simple_graph#create_simple_graph##1"{var"#simple_graph#simple_graph##11"{ResourceEmit{Float64}, ResourceCarrier{Float64}}}})() @ Main none:-1 [11] with_logstate(f::var"#784#785"{RepresentativeProfile{Int64, FixedProfile{Int64}}, var"#create_simple_graph#create_simple_graph##1"{var"#simple_graph#simple_graph##11"{ResourceEmit{Float64}, ResourceCarrier{Float64}}}}, logstate::Base.CoreLogging.LogState) @ Base.CoreLogging logging/logging.jl:542 [12] with_logger(f::Function, logger::TestLogger) @ Base.CoreLogging logging/logging.jl:653 [13] collect_test_logs(f::Function; kwargs::@Kwargs{}) @ Test /opt/julia/share/julia/stdlib/v1.14/Test/src/logging.jl:126 [inlined] [14] collect_test_logs(f::Function) @ Test /opt/julia/share/julia/stdlib/v1.14/Test/src/logging.jl:124 [inlined] [15] match_logs(f::Function, patterns::Tuple{Symbol, String}; match_mode::Symbol, kwargs::@Kwargs{}) @ Test /opt/julia/share/julia/stdlib/v1.14/Test/src/logging.jl:307 [16] match_logs(f::Function, patterns::Tuple{Symbol, String}) @ Test /opt/julia/share/julia/stdlib/v1.14/Test/src/logging.jl:306 [17] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_checks.jl:239 [18] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [19] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_checks.jl:435 [inlined] Checks - timeprofiles: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsBase/hrdwP/test/test_checks.jl:459 Test threw exception Expression: create_model(case, model; check_timeprofiles = false) 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, RepresentativePeriods{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] (::var"#786#787")() @ Main none:-1 [4] with_logstate(f::var"#786#787", logstate::Base.CoreLogging.LogState) @ Base.CoreLogging logging/logging.jl:542 [5] with_logger(f::Function, logger::TestLogger) @ Base.CoreLogging logging/logging.jl:653 [6] collect_test_logs(f::Function; kwargs::@Kwargs{}) @ Test /opt/julia/share/julia/stdlib/v1.14/Test/src/logging.jl:126 [inlined] [7] collect_test_logs(f::Function) @ Test /opt/julia/share/julia/stdlib/v1.14/Test/src/logging.jl:124 [inlined] [8] match_logs(f::Function, patterns::Tuple{Symbol, String}; match_mode::Symbol, kwargs::@Kwargs{}) @ Test /opt/julia/share/julia/stdlib/v1.14/Test/src/logging.jl:307 [9] match_logs(f::Function, patterns::Tuple{Symbol, String}) @ Test /opt/julia/share/julia/stdlib/v1.14/Test/src/logging.jl:306 [10] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_checks.jl:239 [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [12] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_checks.jl:459 [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, RepresentativePeriods{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, RepresentativePeriods{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, RepresentativePeriods{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] (::var"#786#787")() @ Main none:-1 [9] with_logstate(f::var"#786#787", logstate::Base.CoreLogging.LogState) @ Base.CoreLogging logging/logging.jl:542 [10] with_logger(f::Function, logger::TestLogger) @ Base.CoreLogging logging/logging.jl:653 [11] collect_test_logs(f::Function; kwargs::@Kwargs{}) @ Test /opt/julia/share/julia/stdlib/v1.14/Test/src/logging.jl:126 [inlined] [12] collect_test_logs(f::Function) @ Test /opt/julia/share/julia/stdlib/v1.14/Test/src/logging.jl:124 [inlined] [13] match_logs(f::Function, patterns::Tuple{Symbol, String}; match_mode::Symbol, kwargs::@Kwargs{}) @ Test /opt/julia/share/julia/stdlib/v1.14/Test/src/logging.jl:307 [14] match_logs(f::Function, patterns::Tuple{Symbol, String}) @ Test /opt/julia/share/julia/stdlib/v1.14/Test/src/logging.jl:306 [15] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_checks.jl:239 [16] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [17] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_checks.jl:459 [inlined] WARNING: Method definition (::Main.var"#simple_graph#simple_graph##12"{var"#simple_graph#789", NG, aux, Power})() in module Main at /home/pkgeval/.julia/packages/EnergyModelsBase/hrdwP/test/test_checks.jl:708 overwritten at /home/pkgeval/.julia/packages/EnergyModelsBase/hrdwP/test/test_checks.jl:781. WARNING: Method definition kwcall(NamedTuple{names, T} where T<:Tuple where names, Main.var"#simple_graph#simple_graph##12"{var"#simple_graph#789", NG, aux, Power} where Power where aux where NG where var"#simple_graph#789") in module Main at /home/pkgeval/.julia/packages/EnergyModelsBase/hrdwP/test/test_checks.jl:708 overwritten at /home/pkgeval/.julia/packages/EnergyModelsBase/hrdwP/test/test_checks.jl:781. create_model: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsBase/hrdwP/test/test_deprecation.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] run_model(case::Case, model::OperationalModel, optimizer::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [4] run_model(case::Case, model::OperationalModel, optimizer::Type) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [5] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_deprecation.jl:2 [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [7] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_deprecation.jl:48 [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] run_model(case::Case, model::OperationalModel, optimizer::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [9] run_model(case::Case, model::OperationalModel, optimizer::Type) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [10] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_deprecation.jl:2 [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [12] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_deprecation.jl:48 [inlined] Simple network: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsBase/hrdwP/test/test_investments.jl:3 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] run_model(case::Case, model::EMIExt.InvestmentModel, optimizer::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [4] run_model(case::Case, model::EMIExt.InvestmentModel, optimizer::Type) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [5] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_investments.jl:5 [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [7] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_investments.jl:219 [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] run_model(case::Case, model::EMIExt.InvestmentModel, optimizer::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [9] run_model(case::Case, model::EMIExt.InvestmentModel, optimizer::Type) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [10] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_investments.jl:5 [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [12] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_investments.jl:219 [inlined] Link - OPEX and investments: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsBase/hrdwP/test/test_investments.jl:259 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] run_model(case::Case, model::EMIExt.InvestmentModel, optimizer::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [4] run_model(case::Case, model::EMIExt.InvestmentModel, optimizer::Core.TypeEgal{HiGHS.Optimizer}) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [inlined] [5] (::var"#link_inv_graph#link_inv_graph##0"{ResourceEmit{Float64}, ResourceCarrier{Float64}})() @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_investments.jl:337 [6] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_investments.jl:261 [7] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [8] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_investments.jl:340 [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] run_model(case::Case, model::EMIExt.InvestmentModel, optimizer::Type; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [9] run_model(case::Case, model::EMIExt.InvestmentModel, optimizer::Core.TypeEgal{HiGHS.Optimizer}) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [inlined] [10] (::var"#link_inv_graph#link_inv_graph##0"{ResourceEmit{Float64}, ResourceCarrier{Float64}})() @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_investments.jl:337 [11] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_investments.jl:261 [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [13] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_investments.jl:340 [inlined] Activating project at `~/.julia/packages/EnergyModelsBase/hrdwP/examples` Resolving package versions... Example network.jl: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsBase/hrdwP/test/test_examples.jl:11 Got exception outside of a @test LoadError: SystemError: opening file "/home/pkgeval/.julia/packages/EnergyModelsBase/hrdwP/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/EnergyModelsBase/hrdwP/examples/network.jl:5 [22] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:330 [23] (::var"#838#839"{String, String})() @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_examples.jl:13 [inlined] [24] redirect_stdio(f::var"#838#839"{String, String}; stdin::Nothing, stderr::Nothing, stdout::Base.DevNull) @ Base stream.jl:1470 [25] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_examples.jl:3 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [27] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_examples.jl:12 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [29] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_examples.jl:12 [inlined] in expression starting at /home/pkgeval/.julia/packages/EnergyModelsBase/hrdwP/examples/network.jl:5 Activating project at `~/.julia/packages/EnergyModelsBase/hrdwP/examples` Resolving package versions... Example network_invest.jl: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsBase/hrdwP/test/test_examples.jl:11 Got exception outside of a @test LoadError: SystemError: opening file "/home/pkgeval/.julia/packages/EnergyModelsBase/hrdwP/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/EnergyModelsBase/hrdwP/examples/network_invest.jl:5 [22] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:330 [23] (::var"#838#839"{String, String})() @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_examples.jl:13 [inlined] [24] redirect_stdio(f::var"#838#839"{String, String}; stdin::Nothing, stderr::Nothing, stdout::Base.DevNull) @ Base stream.jl:1470 [25] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_examples.jl:3 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [27] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_examples.jl:12 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [29] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_examples.jl:12 [inlined] in expression starting at /home/pkgeval/.julia/packages/EnergyModelsBase/hrdwP/examples/network_invest.jl:5 Activating project at `~/.julia/packages/EnergyModelsBase/hrdwP/examples` Resolving package versions... Example sink_source.jl: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsBase/hrdwP/test/test_examples.jl:11 Got exception outside of a @test LoadError: SystemError: opening file "/home/pkgeval/.julia/packages/EnergyModelsBase/hrdwP/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/EnergyModelsBase/hrdwP/examples/sink_source.jl:5 [22] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:330 [23] (::var"#838#839"{String, String})() @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_examples.jl:13 [inlined] [24] redirect_stdio(f::var"#838#839"{String, String}; stdin::Nothing, stderr::Nothing, stdout::Base.DevNull) @ Base stream.jl:1470 [25] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_examples.jl:3 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [27] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_examples.jl:12 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [29] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_examples.jl:12 [inlined] in expression starting at /home/pkgeval/.julia/packages/EnergyModelsBase/hrdwP/examples/sink_source.jl:5 Activating project at `~/.julia/packages/EnergyModelsBase/hrdwP/examples` Resolving package versions... Example sink_source_invest.jl: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsBase/hrdwP/test/test_examples.jl:11 Got exception outside of a @test LoadError: SystemError: opening file "/home/pkgeval/.julia/packages/EnergyModelsBase/hrdwP/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/EnergyModelsBase/hrdwP/examples/sink_source_invest.jl:5 [22] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:330 [23] (::var"#838#839"{String, String})() @ Main ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_examples.jl:13 [inlined] [24] redirect_stdio(f::var"#838#839"{String, String}; stdin::Nothing, stderr::Nothing, stdout::Base.DevNull) @ Base stream.jl:1470 [25] top-level scope @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_examples.jl:3 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [27] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_examples.jl:12 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [29] macro expansion @ ~/.julia/packages/EnergyModelsBase/hrdwP/test/test_examples.jl:12 [inlined] in expression starting at /home/pkgeval/.julia/packages/EnergyModelsBase/hrdwP/examples/sink_source_invest.jl:5 Activating project at `~/.julia/packages/EnergyModelsBase/hrdwP/test` Test Summary: | Pass Fail Error Total Time Base | 266 1 49 316 7m39.3s Base | General | 1 1 1m13.4s General tests | 1 1 1m11.1s Base | ExtensionData | 1 1 23.2s Variable creation | 1 1 3.5s Base | Resource | 13 1 14 23.4s Resource - utilities | 13 13 3.0s Resource - implementation | 1 1 19.9s Base | Node | 15 24 39 2m10.0s Node utilities | 15 1 16 2.0s Identification functions | 9 9 1.6s Access functions | 6 6 0.4s Variable declaration | 1 1 0.1s Test RefSource and RefSink | 3 3 3.8s General tests - RefSource | 1 1 3.7s General tests - RefSink | 1 1 0.1s Process emissions - RefSink and RefSource | 1 1 0.0s Test RefNetworkNode with various EmissionData | 7 7 11.2s Emissions tests - wo Emissions | 1 1 3.2s Emissions tests - with energy emissions | 1 1 1.3s Emissions tests - with energy and process emissions | 1 1 0.6s Emissions tests - with energy and process emissions as TimeProfile | 1 1 1.3s Emissions tests - with capture on energy emissions | 1 1 2.4s Emissions tests - with capture on process emissions | 1 1 1.1s Emissions tests - with capture on process emissions | 1 1 1.2s Test RefStorage{CyclicStrategic} | 5 5 1m20.3s SimpleTimes without storage | 1 1 7.1s SimpleTimes with storage | 1 1 0.4s OperationalScenarios with storage | 1 1 21.5s RepresentativePeriods with storage | 1 1 22.9s OperationalScenarios and RepresentativePeriods with storage | 1 1 28.4s Test RefStorage{CyclicRepresentative} | 5 5 15.4s SimpleTimes without storage | 1 1 3.9s SimpleTimes with storage | 1 1 0.4s OperationalScenarios with storage | 1 1 3.5s RepresentativePeriods with storage | 1 1 3.9s OperationalScenarios and RepresentativePeriods with storage | 1 1 3.6s Test RefStorage{AccumulatingEmissions} | 3 3 14.5s SimpleTimes without storage | 1 1 2.9s SimpleTimes with storage | 1 1 0.1s RepresentativePeriods with storage | 1 1 11.5s Base | Link | 6 6 12 7.2s Link - utilities | 6 1 7 0.6s Identification functions | 3 3 0.5s Access functions | 3 3 0.1s Variable declaration | 1 1 0.0s Link - different resources | 1 1 2.7s Link - emissions | 1 1 0.8s Link - OPEX | 1 1 0.7s Link - capacity | 1 1 0.4s Link - variable creation | 1 1 1.1s Base | Modeltype | 2 2 0.6s Test OperationalModel | 2 2 0.5s Emission cap | 1 1 0.3s Emission price | 1 1 0.2s Base | Utilities | 31 1 32 20.9s Variable creation | 2 1 3 16.0s Collect and sort types | 29 29 4.8s Base | Checks | 167 7 174 59.7s Checks - case type | 4 4 1.9s Checks - modeltype | 11 11 7.7s Checks - emission data | 4 2 6 2.4s Checks - timeprofiles | 116 5 121 37.8s Checks - Nodes | 25 25 6.1s Checks - Links | 7 7 2.2s Base | Deprecation | 1 1 2.2s create_model | 1 1 1.3s Base | Investments | 34 2 36 27.5s Simple network | 1 1 12.1s Link - OPEX and investments | 1 1 2.4s Test checks - InvestmentData | 34 34 12.7s Base | examples | 4 4 1m31.1s Run examples | 4 4 1m30.9s Example network.jl | 1 1 1m17.9s Example network_invest.jl | 1 1 4.1s Example sink_source.jl | 1 1 4.4s Example sink_source_invest.jl | 1 1 4.3s RNG of the outermost testset: Random.Xoshiro(0x0aedd8f6c04ecbf8, 0xf560e8bad750213e, 0xe698de428c04a479, 0x846c3e881d5351f9, 0x0b02a02ccf9da3de) ERROR: LoadError: Some tests did not pass: 266 passed, 1 failed, 49 errored, 0 broken. in expression starting at /home/pkgeval/.julia/packages/EnergyModelsBase/hrdwP/test/runtests.jl:15 Testing failed after 485.88s ERROR: LoadError: Package EnergyModelsBase 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 638.04s: package tests unexpectedly errored