Package evaluation to test EnergyModelsRenewableProducers on Julia 1.14.0-DEV.2802 (918269a29b*) started at 2026-07-29T09:00:26.263 ################################################################################ # Set-up # Installing PkgEval dependencies (TestEnv)... Activating project at `~/.julia/environments/v1.14` Set-up completed after 15.29s ################################################################################ # Installation # Installing EnergyModelsRenewableProducers... Resolving package versions... Updating `~/.julia/environments/v1.14/Project.toml` [b007c34f] + EnergyModelsRenewableProducers v0.7.1 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 [b007c34f] + EnergyModelsRenewableProducers v0.7.1 [e2ba6199] + ExprTools v0.1.11 [f6369f11] + ForwardDiff v1.4.3 [313cdc1a] + Indexing v1.1.1 [842dd82b] + InlineStrings v1.4.5 [92d709cd] + IrrationalConstants v0.2.6 [692b3bcd] + JLLWrappers v1.8.0 [682c06a0] + JSON v1.6.1 [4076af6c] + JuMP v1.31.1 [2ab3a3ac] + LogExpFunctions v1.0.1 [1914dd2f] + MacroTools v0.5.16 [b8f27783] + MathOptInterface v1.51.2 [78c3b35d] + Mocking v0.8.1 [d8a4904e] + MutableArithmetics v1.8.0 [77ba4419] + NaNMath v1.1.4 ⌅ [bac558e1] + OrderedCollections v1.8.2 [69de0a69] + Parsers v2.8.6 [aea7be01] + PrecompileTools v1.3.4 [21216c6a] + Preferences v1.5.2 [6c6a2e73] + Scratch v1.3.0 [2749762c] + SparseVariables v0.7.4 [276daf66] + SpecialFunctions v2.8.0 [1e83bf80] + StaticArraysCore v1.4.4 [ec057cc2] + StructUtils v2.8.2 [dc5dba14] + TZJData v1.5.0+2025b [f9ed5ce0] + TimeStruct v0.9.12 [f269a46b] + TimeZones v1.22.2 [3bb67fe8] + TranscodingStreams v0.11.3 [6e34b625] + Bzip2_jll v1.0.9+0 [efe28fd5] + OpenSpecFun_jll v0.5.6+0 [0dad84c5] + ArgTools v1.2.0 [56f22d72] + Artifacts v1.11.0 [2a0f44e3] + Base64 v1.11.0 [ade2ca70] + Dates v1.11.0 [f43a241f] + Downloads v1.7.0 [7b1f6079] + FileWatching v1.11.0 [b77e0a4c] + InteractiveUtils v1.11.0 [ac6e5ff7] + JuliaSyntaxHighlighting v1.13.0 [b27032c2] + LibCURL v1.0.0 [8f399da3] + Libdl v1.11.0 [37e2e46d] + LinearAlgebra v1.14.0 [56ddb016] + Logging v1.11.0 [d6f4376e] + Markdown v1.11.0 [ca575930] + NetworkOptions v1.3.0 [de0858da] + Printf v1.11.0 [9a3f8284] + Random v1.11.0 [ea8e919c] + SHA v1.13.0 [9e88b42a] + Serialization v1.11.0 [2f01184e] + SparseArrays v1.13.0 [f489334b] + StyledStrings v1.13.0 [fa267f1f] + TOML v1.0.3 [8dfed614] + Test v1.11.0 [cf7118a7] + UUIDs v1.11.0 [4ec0a83e] + Unicode v1.11.0 [e66e0078] + CompilerSupportLibraries_jll v1.5.7+0 [deac9b47] + LibCURL_jll v8.21.0+0 [29816b5a] + LibSSH2_jll v1.11.103+0 [14a3606d] + MozillaCACerts_jll v2026.7.16 [4536629a] + OpenBLAS_jll v0.3.34+0 [05823500] + OpenLibm_jll v0.8.7+0 [458c3c95] + OpenSSL_jll v3.5.7+0 [bea87d4a] + SuiteSparse_jll v7.10.1+0 [83775a58] + Zlib_jll v1.3.2+0 [3161d3a3] + Zstd_jll v1.5.7+1 [8e850b90] + libblastrampoline_jll v5.15.0+0 [8e850ede] + nghttp2_jll v1.69.0+0 [3f19e933] + p7zip_jll v17.8.0+0 Info Packages marked with ⌅ have new versions available but compatibility constraints restrict them from upgrading. To see why use `status --outdated -m` Installation completed after 5.92s ################################################################################ # Precompilation # Precompiling PkgEval dependencies... Precompiling package dependencies... Precompiling project... 10.5 s ✓ TimeStruct → TimeStructDataFramesExt 24.5 s ✓ EnergyModelsBase 19.1 s ✓ EnergyModelsBase → EMIExt 19.7 s ✓ EnergyModelsRenewableProducers 30.2 s ✓ EnergyModelsRecedingHorizon 17.5 s ✓ EnergyModelsRenewableProducers → EMIExt 27.5 s ✓ EnergyModelsRenewableProducers → EMRHExt 7 dependencies successfully precompiled in 151 seconds. 142 already precompiled. Precompilation completed after 178.22s ################################################################################ # Testing # Testing EnergyModelsRenewableProducers Status `/tmp/jl_VEqJsS/Project.toml` [5d7e687e] EnergyModelsBase v0.10.5 [fca3f8eb] EnergyModelsInvestments v0.9.2 [37ec17de] EnergyModelsRecedingHorizon v0.2.2 [b007c34f] EnergyModelsRenewableProducers v0.7.1 [87dc4568] HiGHS v1.24.1 [a98d9a8b] Interpolations v0.16.3 [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_VEqJsS/Manifest.toml` [7d9f7c33] Accessors v0.1.45 [79e6a3ab] Adapt v4.7.0 [13072b0f] AxisAlgorithms v1.1.0 [336ed68f] CSV v0.10.16 [d360d2e6] ChainRulesCore v1.26.1 [523fee87] CodecBzip2 v0.8.5 [944b1d66] CodecZlib v0.7.8 [bbf7d656] CommonSubexpressions v0.3.1 [34da2185] Compat v4.18.1 [a33af91c] CompositionsBase v0.1.2 [187b0558] ConstructionBase v1.6.0 [a8cc5b0e] Crayons v4.2.0 [9a962f9c] DataAPI v1.16.0 [a93c6f00] DataFrames v1.8.2 [864edb3b] DataStructures v0.19.6 [e2d170a0] DataValueInterfaces v1.0.0 [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 [37ec17de] EnergyModelsRecedingHorizon v0.2.2 [b007c34f] EnergyModelsRenewableProducers v0.7.1 [e2ba6199] ExprTools v0.1.11 [48062228] FilePathsBase v0.9.24 [f6369f11] ForwardDiff v1.4.3 [87dc4568] HiGHS v1.24.1 [313cdc1a] Indexing v1.1.1 [842dd82b] InlineStrings v1.4.5 [a98d9a8b] Interpolations v0.16.3 [3587e190] InverseFunctions v0.1.17 [41ab1584] InvertedIndices v1.3.1 [92d709cd] IrrationalConstants v0.2.6 [82899510] IteratorInterfaceExtensions v1.0.0 [692b3bcd] JLLWrappers v1.8.0 [682c06a0] JSON v1.6.1 [4076af6c] JuMP v1.31.1 [b964fa9f] LaTeXStrings v1.4.0 [2ab3a3ac] LogExpFunctions v1.0.1 [1914dd2f] MacroTools v0.5.16 [8c4f8055] MathOptIIS v0.2.0 [b8f27783] MathOptInterface v1.51.2 [e1d29d7a] Missings v1.2.0 [78c3b35d] Mocking v0.8.1 [d8a4904e] MutableArithmetics v1.8.0 [77ba4419] NaNMath v1.1.4 [6fe1bfb0] OffsetArrays v1.17.0 ⌅ [bac558e1] OrderedCollections v1.8.2 [69de0a69] Parsers v2.8.6 [2dfb63ee] PooledArrays v1.4.3 [aea7be01] PrecompileTools v1.3.4 [21216c6a] Preferences v1.5.2 [08abe8d2] PrettyTables v3.4.2 [c84ed2f1] Ratios v0.4.5 [189a3867] Reexport v1.2.2 [ae029012] Requires v1.3.1 [6c6a2e73] Scratch v1.3.0 [91c51154] SentinelArrays v1.4.10 [a2af1166] SortingAlgorithms v1.2.3 [2749762c] SparseVariables v0.7.4 [276daf66] SpecialFunctions v2.8.0 [90137ffa] StaticArrays v1.9.18 [1e83bf80] StaticArraysCore v1.4.4 [10745b16] Statistics v1.11.1 [892a3eda] StringManipulation v0.4.6 [ec057cc2] StructUtils v2.8.2 [dc5dba14] TZJData v1.5.0+2025b [3783bdb8] TableTraits v1.0.1 [bd369af6] Tables v1.13.0 [f9ed5ce0] TimeStruct v0.9.12 [f269a46b] TimeZones v1.22.2 [3bb67fe8] TranscodingStreams v0.11.3 [ea10d353] WeakRefStrings v1.4.3 [efce3f68] WoodburyMatrices v1.1.0 [76eceee3] WorkerUtilities v1.6.1 [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 [8ba89e20] Distributed v1.11.0 [f43a241f] Downloads v1.7.0 [7b1f6079] FileWatching v1.11.0 [9fa8497b] Future 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 [a63ad114] Mmap v1.11.0 [ca575930] NetworkOptions v1.3.0 [44cfe95a] Pkg v1.14.0 [de0858da] Printf v1.11.0 [3fa0cd96] REPL v1.11.0 [9a3f8284] Random v1.11.0 [ea8e919c] SHA v1.13.0 [9e88b42a] Serialization v1.11.0 [1a1011a3] SharedArrays v1.11.0 [6462fe0b] Sockets 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... NonDisRES: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_nondisres.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::MathOptInterface.OptimizerWithAttributes; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [4] run_model(case::Case, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [5] top-level scope @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_nondisres.jl:3 [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [7] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_nondisres.jl:14 [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::MathOptInterface.OptimizerWithAttributes; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [9] run_model(case::Case, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [10] top-level scope @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_nondisres.jl:3 [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [12] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_nondisres.jl:14 [inlined] HydroStor - regulated hydro power plant: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_hydro.jl:213 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::MathOptInterface.OptimizerWithAttributes; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [4] run_model(case::Case, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [5] top-level scope @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_hydro.jl:215 [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [7] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_hydro.jl:258 [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::MathOptInterface.OptimizerWithAttributes; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [9] run_model(case::Case, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [10] top-level scope @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_hydro.jl:215 [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [12] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_hydro.jl:258 [inlined] PumpedHydroStor - regulated hydro storage with pumped storage: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_hydro.jl:370 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::MathOptInterface.OptimizerWithAttributes; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [4] run_model(case::Case, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [5] top-level scope @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_hydro.jl:372 [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [7] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_hydro.jl:425 [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::MathOptInterface.OptimizerWithAttributes; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [9] run_model(case::Case, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [10] top-level scope @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_hydro.jl:372 [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [12] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_hydro.jl:425 [inlined] Without schedule constraints: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:139 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::MathOptInterface.OptimizerWithAttributes; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [4] run_model(case::Case, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [5] top-level scope @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:78 [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [7] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:141 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [9] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:142 [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::MathOptInterface.OptimizerWithAttributes; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [9] run_model(case::Case, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [10] top-level scope @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:78 [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [12] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:141 [inlined] [13] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [14] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:142 [inlined] Hydro reservoir - Soft MinSchedule and hard MaxSchedule: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:155 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::MathOptInterface.OptimizerWithAttributes; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [4] run_model(case::Case, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [5] top-level scope @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:78 [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [7] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:157 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [9] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:176 [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::MathOptInterface.OptimizerWithAttributes; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [9] run_model(case::Case, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [10] top-level scope @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:78 [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [12] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:157 [inlined] [13] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [14] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:176 [inlined] Hydro reservoir - Hard MinSchedule and soft MaxSchedule: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:219 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::MathOptInterface.OptimizerWithAttributes; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [4] run_model(case::Case, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [5] top-level scope @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:78 [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [7] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:221 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [9] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:241 [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::MathOptInterface.OptimizerWithAttributes; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [9] run_model(case::Case, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [10] top-level scope @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:78 [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [12] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:221 [inlined] [13] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [14] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:241 [inlined] Hydro reservoir - Hard EqualSchedule: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:272 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::MathOptInterface.OptimizerWithAttributes; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [4] run_model(case::Case, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [5] top-level scope @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:78 [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [7] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:274 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [9] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:286 [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::MathOptInterface.OptimizerWithAttributes; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [9] run_model(case::Case, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [10] top-level scope @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:78 [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [12] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:274 [inlined] [13] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [14] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:286 [inlined] Hydro reservoir - Soft EqualSchedule: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:307 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::MathOptInterface.OptimizerWithAttributes; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [4] run_model(case::Case, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [5] top-level scope @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:78 [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [7] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:309 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [9] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:322 [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::MathOptInterface.OptimizerWithAttributes; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [9] run_model(case::Case, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [10] top-level scope @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:78 [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [12] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:309 [inlined] [13] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [14] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:322 [inlined] Gate - Hard EqualSchedule: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:367 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::MathOptInterface.OptimizerWithAttributes; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [4] run_model(case::Case, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [5] top-level scope @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:78 [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [7] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:369 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [9] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:382 [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::MathOptInterface.OptimizerWithAttributes; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [9] run_model(case::Case, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [10] top-level scope @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:78 [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [12] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:369 [inlined] [13] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [14] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:382 [inlined] Gate - Soft EqualSchedule, varying flags: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:402 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::MathOptInterface.OptimizerWithAttributes; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [4] run_model(case::Case, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [5] top-level scope @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:78 [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [7] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:404 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [9] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:418 [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::MathOptInterface.OptimizerWithAttributes; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [9] run_model(case::Case, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [10] top-level scope @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:78 [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [12] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:404 [inlined] [13] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [14] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:418 [inlined] Gate - Hard MinSchedule and soft MaxSchedule, varying penalty: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:451 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::MathOptInterface.OptimizerWithAttributes; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [4] run_model(case::Case, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [5] top-level scope @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:78 [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [7] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:453 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [9] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:473 [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::MathOptInterface.OptimizerWithAttributes; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [9] run_model(case::Case, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [10] top-level scope @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:78 [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [12] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:453 [inlined] [13] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [14] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:473 [inlined] Gate - Soft MinSchedule and hard MaxSchedule, varying penalty: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:501 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::MathOptInterface.OptimizerWithAttributes; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [4] run_model(case::Case, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [5] top-level scope @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:78 [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [7] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:503 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [9] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:523 [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::MathOptInterface.OptimizerWithAttributes; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [9] run_model(case::Case, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [10] top-level scope @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:78 [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [12] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:503 [inlined] [13] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [14] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:523 [inlined] Plant production and PQ relation: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:658 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::MathOptInterface.OptimizerWithAttributes; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [4] run_model(case::Case, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [5] top-level scope @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:553 [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [7] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:660 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [9] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:661 [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::MathOptInterface.OptimizerWithAttributes; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [9] run_model(case::Case, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [10] top-level scope @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:553 [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [12] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:660 [inlined] [13] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [14] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:661 [inlined] Hard EqualSchedule for power: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:720 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::MathOptInterface.OptimizerWithAttributes; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [4] run_model(case::Case, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [5] top-level scope @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:553 [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [7] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:722 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [9] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:736 [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::MathOptInterface.OptimizerWithAttributes; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [9] run_model(case::Case, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [10] top-level scope @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:553 [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [12] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:722 [inlined] [13] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [14] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:736 [inlined] Soft EqualSchedule for power: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:757 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::MathOptInterface.OptimizerWithAttributes; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [4] run_model(case::Case, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [5] top-level scope @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:553 [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [7] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:759 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [9] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:773 [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::MathOptInterface.OptimizerWithAttributes; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [9] run_model(case::Case, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [10] top-level scope @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:553 [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [12] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:759 [inlined] [13] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [14] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:773 [inlined] Soft MinSchedule for water: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:802 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::MathOptInterface.OptimizerWithAttributes; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [4] run_model(case::Case, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [5] top-level scope @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:553 [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [7] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:804 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [9] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:817 [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::MathOptInterface.OptimizerWithAttributes; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [9] run_model(case::Case, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [10] top-level scope @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:553 [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [12] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:804 [inlined] [13] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [14] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:817 [inlined] No production constraints: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:996 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::MathOptInterface.OptimizerWithAttributes; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [4] run_model(case::Case, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [5] top-level scope @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:838 [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [7] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:998 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [9] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:999 [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::MathOptInterface.OptimizerWithAttributes; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [9] run_model(case::Case, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [10] top-level scope @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:838 [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [12] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:998 [inlined] [13] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [14] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:999 [inlined] Hard MinSchedule for water: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:1064 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::MathOptInterface.OptimizerWithAttributes; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [4] run_model(case::Case, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [5] top-level scope @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:838 [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [7] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:1066 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [9] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:1083 [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::MathOptInterface.OptimizerWithAttributes; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [9] run_model(case::Case, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [10] top-level scope @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:838 [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [12] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:1066 [inlined] [13] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [14] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:1083 [inlined] Soft MinSchedule for water: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:1106 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::MathOptInterface.OptimizerWithAttributes; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [4] run_model(case::Case, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [5] top-level scope @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:838 [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [7] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:1108 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [9] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:1125 [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::MathOptInterface.OptimizerWithAttributes; check_timeprofiles::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:11 [9] run_model(case::Case, model::OperationalModel, optimizer::MathOptInterface.OptimizerWithAttributes) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/utils.jl:8 [10] top-level scope @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:838 [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [12] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:1108 [inlined] [13] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [14] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_detailed_hydro.jl:1125 [inlined] SimpleTimes - No cycle limit: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:182 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] (::var"#test_case_battery#test_case_battery##0"{var"#test_case_battery#418#438"})(supply_price::OperationalProfile{Int64}, el_demand::OperationalProfile{Int64}; ops::SimpleTimes{Int64}, bat_life::InfLife, n_sp::Int64, investment::Bool, data::Vector{ExtensionData}) @ Main ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:102 [5] (::var"#test_case_battery#test_case_battery##0"{var"#test_case_battery#418#438"})(supply_price::OperationalProfile{Int64}, el_demand::OperationalProfile{Int64}) @ Main ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:35 [6] top-level scope @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:34 [7] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [8] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:183 [inlined] [9] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [10] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:183 [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"#test_case_battery#test_case_battery##0"{var"#test_case_battery#418#438"})(supply_price::OperationalProfile{Int64}, el_demand::OperationalProfile{Int64}; ops::SimpleTimes{Int64}, bat_life::InfLife, n_sp::Int64, investment::Bool, data::Vector{ExtensionData}) @ Main ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:102 [10] (::var"#test_case_battery#test_case_battery##0"{var"#test_case_battery#418#438"})(supply_price::OperationalProfile{Int64}, el_demand::OperationalProfile{Int64}) @ Main ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:35 [11] top-level scope @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:34 [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [13] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:183 [inlined] [14] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [15] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:183 [inlined] SimpleTimes - Cycle limit: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:203 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] (::var"#test_case_battery#test_case_battery##0"{var"#test_case_battery#418#438"})(supply_price::OperationalProfile{Int64}, el_demand::OperationalProfile{Int64}; ops::SimpleTimes{Int64}, bat_life::CycleLife, n_sp::Int64, investment::Bool, data::Vector{ExtensionData}) @ Main ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:102 [5] top-level scope @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:34 [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [7] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:204 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [9] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:205 [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"#test_case_battery#test_case_battery##0"{var"#test_case_battery#418#438"})(supply_price::OperationalProfile{Int64}, el_demand::OperationalProfile{Int64}; ops::SimpleTimes{Int64}, bat_life::CycleLife, n_sp::Int64, investment::Bool, data::Vector{ExtensionData}) @ Main ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:102 [10] top-level scope @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:34 [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [12] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:204 [inlined] [13] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [14] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:205 [inlined] SimpleTimes - Cycle limit, reinvest: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:218 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] (::var"#test_case_battery#test_case_battery##0"{var"#test_case_battery#418#438"})(supply_price::OperationalProfile{Int64}, el_demand::OperationalProfile{Int64}; ops::SimpleTimes{Int64}, bat_life::CycleLife, n_sp::Int64, investment::Bool, data::Vector{ExtensionData}) @ Main ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:102 [5] top-level scope @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:34 [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [7] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:219 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [9] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:220 [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"#test_case_battery#test_case_battery##0"{var"#test_case_battery#418#438"})(supply_price::OperationalProfile{Int64}, el_demand::OperationalProfile{Int64}; ops::SimpleTimes{Int64}, bat_life::CycleLife, n_sp::Int64, investment::Bool, data::Vector{ExtensionData}) @ Main ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:102 [10] top-level scope @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:34 [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [12] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:219 [inlined] [13] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [14] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:220 [inlined] SimpleTimes - Cycle limit, investments, but not data: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:251 Got exception outside of a @test An object of name `:sink_surplus` is already registered in this model. Consider instead using the anonymous construction syntax, for example, `x = @variable(model, [1:N], ...)` where the name of the object does not appear inside the macro. Alternatively, use `unregister(model, :sink_surplus)` to first unregister the existing name from the model. Note that this will not delete the object from the model; it will just remove the reference at `model[:sink_surplus]`. Stacktrace: [1] variables_elements(m::Model, 𝒳::Vector{EnergyModelsBase.Node}, 𝒳ᵛᵉᶜ::Vector{Vector}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::EMIExt.InvestmentModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:442 [2] create_model(case::Case, modeltype::EMIExt.InvestmentModel, m::Model; check_timeprofiles::Bool, check_any_data::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:67 [3] create_model(case::Case, modeltype::EMIExt.InvestmentModel, m::Model) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:32 [inlined] [4] (::var"#test_case_battery#test_case_battery##0"{var"#test_case_battery#418#438"})(supply_price::OperationalProfile{Int64}, el_demand::OperationalProfile{Int64}; ops::SimpleTimes{Int64}, bat_life::CycleLife, n_sp::Int64, investment::Bool, data::Vector{ExtensionData}) @ Main ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:102 [5] top-level scope @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:34 [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [7] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:252 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [9] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:254 [inlined] caused by: An object of name `:sink_surplus` is already registered in this model. Consider instead using the anonymous construction syntax, for example, `x = @variable(model, [1:N], ...)` where the name of the object does not appear inside the macro. Alternatively, use `unregister(model, :sink_surplus)` to first unregister the existing name from the model. Note that this will not delete the object from the model; it will just remove the reference at `model[:sink_surplus]`. Stacktrace: [1] error(s::String) @ Base error.jl:56 [2] _error_if_cannot_register(model::Model, name::Symbol) @ JuMP ~/.julia/packages/JuMP/R9AEA/src/macros.jl:456 [inlined] [3] macro expansion @ ~/.julia/packages/JuMP/R9AEA/src/macros.jl:423 [inlined] [4] variables_node(m::Model, 𝒩ˢⁱⁿᵏ::Vector{RefSink}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::EMIExt.InvestmentModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:555 [5] variables_element(m::Model, 𝒩ˢᵘᵇ::Vector{RefSink}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::EMIExt.InvestmentModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:513 [6] variables_elements(m::Model, 𝒳::Vector{EnergyModelsBase.Node}, 𝒳ᵛᵉᶜ::Vector{Vector}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::EMIExt.InvestmentModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:429 [7] create_model(case::Case, modeltype::EMIExt.InvestmentModel, m::Model; check_timeprofiles::Bool, check_any_data::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:67 [8] create_model(case::Case, modeltype::EMIExt.InvestmentModel, m::Model) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:32 [inlined] [9] (::var"#test_case_battery#test_case_battery##0"{var"#test_case_battery#418#438"})(supply_price::OperationalProfile{Int64}, el_demand::OperationalProfile{Int64}; ops::SimpleTimes{Int64}, bat_life::CycleLife, n_sp::Int64, investment::Bool, data::Vector{ExtensionData}) @ Main ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:102 [10] top-level scope @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:34 [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [12] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:252 [inlined] [13] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [14] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:254 [inlined] SimpleTimes - Cycle limit, investments and reinvest: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:288 Got exception outside of a @test An object of name `:sink_surplus` is already registered in this model. Consider instead using the anonymous construction syntax, for example, `x = @variable(model, [1:N], ...)` where the name of the object does not appear inside the macro. Alternatively, use `unregister(model, :sink_surplus)` to first unregister the existing name from the model. Note that this will not delete the object from the model; it will just remove the reference at `model[:sink_surplus]`. Stacktrace: [1] variables_elements(m::Model, 𝒳::Vector{EnergyModelsBase.Node}, 𝒳ᵛᵉᶜ::Vector{Vector}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::EMIExt.InvestmentModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:442 [2] create_model(case::Case, modeltype::EMIExt.InvestmentModel, m::Model; check_timeprofiles::Bool, check_any_data::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:67 [3] create_model(case::Case, modeltype::EMIExt.InvestmentModel, m::Model) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:32 [inlined] [4] (::var"#test_case_battery#test_case_battery##0"{var"#test_case_battery#418#438"})(supply_price::OperationalProfile{Int64}, el_demand::OperationalProfile{Int64}; ops::SimpleTimes{Int64}, bat_life::CycleLife, n_sp::Int64, investment::Bool, data::Vector{EMIExt.StorageInvData}) @ Main ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:102 [5] top-level scope @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:34 [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [7] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:289 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [9] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:301 [inlined] caused by: An object of name `:sink_surplus` is already registered in this model. Consider instead using the anonymous construction syntax, for example, `x = @variable(model, [1:N], ...)` where the name of the object does not appear inside the macro. Alternatively, use `unregister(model, :sink_surplus)` to first unregister the existing name from the model. Note that this will not delete the object from the model; it will just remove the reference at `model[:sink_surplus]`. Stacktrace: [1] error(s::String) @ Base error.jl:56 [2] _error_if_cannot_register(model::Model, name::Symbol) @ JuMP ~/.julia/packages/JuMP/R9AEA/src/macros.jl:456 [inlined] [3] macro expansion @ ~/.julia/packages/JuMP/R9AEA/src/macros.jl:423 [inlined] [4] variables_node(m::Model, 𝒩ˢⁱⁿᵏ::Vector{RefSink}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::EMIExt.InvestmentModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:555 [5] variables_element(m::Model, 𝒩ˢᵘᵇ::Vector{RefSink}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::EMIExt.InvestmentModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:513 [6] variables_elements(m::Model, 𝒳::Vector{EnergyModelsBase.Node}, 𝒳ᵛᵉᶜ::Vector{Vector}, 𝒯::TwoLevel{Int64, Int64, SimpleTimes{Int64}}, modeltype::EMIExt.InvestmentModel) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:429 [7] create_model(case::Case, modeltype::EMIExt.InvestmentModel, m::Model; check_timeprofiles::Bool, check_any_data::Bool) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:67 [8] create_model(case::Case, modeltype::EMIExt.InvestmentModel, m::Model) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:32 [inlined] [9] (::var"#test_case_battery#test_case_battery##0"{var"#test_case_battery#418#438"})(supply_price::OperationalProfile{Int64}, el_demand::OperationalProfile{Int64}; ops::SimpleTimes{Int64}, bat_life::CycleLife, n_sp::Int64, investment::Bool, data::Vector{EMIExt.StorageInvData}) @ Main ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:102 [10] top-level scope @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:34 [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [12] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:289 [inlined] [13] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [14] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:301 [inlined] RepresentativePeriods - No cycle limit: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:352 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] create_model(case::Case, modeltype::OperationalModel, m::Model) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:32 [inlined] [4] (::var"#test_case_battery#test_case_battery##0"{var"#test_case_battery#418#438"})(supply_price::OperationalProfile{Int64}, el_demand::RepresentativeProfile{Int64, OperationalProfile{Int64}}; ops::RepresentativePeriods{Int64, Int64, SimpleTimes{Int64}}, bat_life::InfLife, n_sp::Int64, investment::Bool, data::Vector{ExtensionData}) @ Main ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:102 [5] top-level scope @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:34 [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [7] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:353 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [9] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:353 [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] create_model(case::Case, modeltype::OperationalModel, m::Model) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:32 [inlined] [9] (::var"#test_case_battery#test_case_battery##0"{var"#test_case_battery#418#438"})(supply_price::OperationalProfile{Int64}, el_demand::RepresentativeProfile{Int64, OperationalProfile{Int64}}; ops::RepresentativePeriods{Int64, Int64, SimpleTimes{Int64}}, bat_life::InfLife, n_sp::Int64, investment::Bool, data::Vector{ExtensionData}) @ Main ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:102 [10] top-level scope @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:34 [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [12] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:353 [inlined] [13] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [14] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:353 [inlined] RepresentativePeriods - Cycle limit: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:377 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] create_model(case::Case, modeltype::OperationalModel, m::Model) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:32 [inlined] [4] (::var"#test_case_battery#test_case_battery##0"{var"#test_case_battery#418#438"})(supply_price::OperationalProfile{Int64}, el_demand::RepresentativeProfile{Int64, OperationalProfile{Int64}}; ops::RepresentativePeriods{Int64, Int64, SimpleTimes{Int64}}, bat_life::CycleLife, n_sp::Int64, investment::Bool, data::Vector{ExtensionData}) @ Main ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:102 [5] top-level scope @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:34 [6] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [7] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:378 [inlined] [8] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [9] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:379 [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] create_model(case::Case, modeltype::OperationalModel, m::Model) @ EnergyModelsBase ~/.julia/packages/EnergyModelsBase/hrdwP/src/model.jl:32 [inlined] [9] (::var"#test_case_battery#test_case_battery##0"{var"#test_case_battery#418#438"})(supply_price::OperationalProfile{Int64}, el_demand::RepresentativeProfile{Int64, OperationalProfile{Int64}}; ops::RepresentativePeriods{Int64, Int64, SimpleTimes{Int64}}, bat_life::CycleLife, n_sp::Int64, investment::Bool, data::Vector{ExtensionData}) @ Main ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:102 [10] top-level scope @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:34 [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [12] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:378 [inlined] [13] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [14] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:379 [inlined] ReserveBattery: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:410 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] (::var"#test_case_resbattery#test_case_resbattery##0"{var"#test_case_resbattery#467#474"{ResourceCarrier{Float64}, ResourceCarrier{Float64}}})(supply_price::OperationalProfile{Int64}, el_demand::OperationalProfile{Int64}; res_down_demand::FixedProfile{Int64}, res_up_demand::FixedProfile{Int64}, ops::SimpleTimes{Int64}) @ Main ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:484 [5] (::var"#test_case_resbattery#test_case_resbattery##0"{var"#test_case_resbattery#467#474"{ResourceCarrier{Float64}, ResourceCarrier{Float64}}})(supply_price::OperationalProfile{Int64}, el_demand::OperationalProfile{Int64}) @ Main ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:414 [6] top-level scope @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:411 [7] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [8] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:494 [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"#test_case_resbattery#test_case_resbattery##0"{var"#test_case_resbattery#467#474"{ResourceCarrier{Float64}, ResourceCarrier{Float64}}})(supply_price::OperationalProfile{Int64}, el_demand::OperationalProfile{Int64}; res_down_demand::FixedProfile{Int64}, res_up_demand::FixedProfile{Int64}, ops::SimpleTimes{Int64}) @ Main ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:484 [10] (::var"#test_case_resbattery#test_case_resbattery##0"{var"#test_case_resbattery#467#474"{ResourceCarrier{Float64}, ResourceCarrier{Float64}}})(supply_price::OperationalProfile{Int64}, el_demand::OperationalProfile{Int64}) @ Main ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:414 [11] top-level scope @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:411 [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [13] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_battery.jl:494 [inlined] Activating project at `~/.julia/packages/EnergyModelsRenewableProducers/RInYA/examples` Resolving package versions... Example detailed_hydro_power.jl: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_examples.jl:12 Got exception outside of a @test LoadError: SystemError: opening file "/home/pkgeval/.julia/packages/EnergyModelsRenewableProducers/RInYA/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/EnergyModelsRenewableProducers/RInYA/examples/detailed_hydro_power.jl:5 [22] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:330 [23] (::var"#502#503"{String, String})() @ Main ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_examples.jl:14 [inlined] [24] redirect_stdio(f::var"#502#503"{String, String}; stdin::Nothing, stderr::Nothing, stdout::Base.DevNull) @ Base stream.jl:1470 [25] top-level scope @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_examples.jl:2 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [27] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_examples.jl:13 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [29] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_examples.jl:13 [inlined] in expression starting at /home/pkgeval/.julia/packages/EnergyModelsRenewableProducers/RInYA/examples/detailed_hydro_power.jl:5 Activating project at `~/.julia/packages/EnergyModelsRenewableProducers/RInYA/examples` Resolving package versions... Example simple_battery.jl: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_examples.jl:12 Got exception outside of a @test LoadError: SystemError: opening file "/home/pkgeval/.julia/packages/EnergyModelsRenewableProducers/RInYA/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/EnergyModelsRenewableProducers/RInYA/examples/simple_battery.jl:5 [22] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:330 [23] (::var"#502#503"{String, String})() @ Main ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_examples.jl:14 [inlined] [24] redirect_stdio(f::var"#502#503"{String, String}; stdin::Nothing, stderr::Nothing, stdout::Base.DevNull) @ Base stream.jl:1470 [25] top-level scope @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_examples.jl:2 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [27] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_examples.jl:13 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [29] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_examples.jl:13 [inlined] in expression starting at /home/pkgeval/.julia/packages/EnergyModelsRenewableProducers/RInYA/examples/simple_battery.jl:5 Activating project at `~/.julia/packages/EnergyModelsRenewableProducers/RInYA/examples` Resolving package versions... Example simple_hydro_power.jl: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_examples.jl:12 Got exception outside of a @test LoadError: SystemError: opening file "/home/pkgeval/.julia/packages/EnergyModelsRenewableProducers/RInYA/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/EnergyModelsRenewableProducers/RInYA/examples/simple_hydro_power.jl:5 [22] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:330 [23] (::var"#502#503"{String, String})() @ Main ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_examples.jl:14 [inlined] [24] redirect_stdio(f::var"#502#503"{String, String}; stdin::Nothing, stderr::Nothing, stdout::Base.DevNull) @ Base stream.jl:1470 [25] top-level scope @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_examples.jl:2 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [27] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_examples.jl:13 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [29] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_examples.jl:13 [inlined] in expression starting at /home/pkgeval/.julia/packages/EnergyModelsRenewableProducers/RInYA/examples/simple_hydro_power.jl:5 Activating project at `~/.julia/packages/EnergyModelsRenewableProducers/RInYA/examples` Resolving package versions... Example simple_nondisres.jl: Error During Test at /home/pkgeval/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_examples.jl:12 Got exception outside of a @test LoadError: SystemError: opening file "/home/pkgeval/.julia/packages/EnergyModelsRenewableProducers/RInYA/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/EnergyModelsRenewableProducers/RInYA/examples/simple_nondisres.jl:5 [22] include(mapexpr::Function, mod::Module, _path::String) @ Base Base.jl:330 [23] (::var"#502#503"{String, String})() @ Main ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_examples.jl:14 [inlined] [24] redirect_stdio(f::var"#502#503"{String, String}; stdin::Nothing, stderr::Nothing, stdout::Base.DevNull) @ Base stream.jl:1470 [25] top-level scope @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_examples.jl:2 [26] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [27] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_examples.jl:13 [inlined] [28] macro expansion @ /opt/julia/share/julia/stdlib/v1.14/Test/src/Test.jl:2246 [inlined] [29] macro expansion @ ~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/test_examples.jl:13 [inlined] in expression starting at /home/pkgeval/.julia/packages/EnergyModelsRenewableProducers/RInYA/examples/simple_nondisres.jl:5 Activating project at `~/.julia/packages/EnergyModelsRenewableProducers/RInYA/test` Test Summary: | Pass Error Total Time RenewableProducers | 269 31 300 5m36.2s RP | Non-dispatchable renewable energy source | 1 1 1m04.7s NonDisRES | 1 1 1m04.7s RP | Hydropower | 2 2 20.2s HydroStor - regulated hydro power plant | 1 1 12.5s PumpedHydroStor - regulated hydro storage with pumped storage | 1 1 6.8s RP | Detailed hydropower | 92 16 108 59.3s HydroReservoir and HydroGate | 33 9 42 21.5s Utlities | 33 33 6.9s Without schedule constraints | 1 1 10.9s Hydro reservoir - Soft MinSchedule and hard MaxSchedule | 1 1 1.8s Hydro reservoir - Hard MinSchedule and soft MaxSchedule | 1 1 0.1s Hydro reservoir - Hard EqualSchedule | 1 1 1.0s Hydro reservoir - Soft EqualSchedule | 1 1 0.0s Gate - Hard EqualSchedule | 1 1 0.2s Gate - Soft EqualSchedule, varying flags | 1 1 0.0s Gate - Hard MinSchedule and soft MaxSchedule, varying penalty | 1 1 0.5s Gate - Soft MinSchedule and hard MaxSchedule, varying penalty | 1 1 0.1s HydroGenerator | 32 4 36 20.4s Utlities | 32 32 4.3s Plant production and PQ relation | 1 1 13.9s Hard EqualSchedule for power | 1 1 0.5s Soft EqualSchedule for power | 1 1 1.6s Soft MinSchedule for water | 1 1 0.1s HydroPump | 27 3 30 13.4s Utlities | 27 27 3.1s No production constraints | 1 1 7.8s Hard MinSchedule for water | 1 1 0.9s Soft MinSchedule for water | 1 1 1.6s RP | Battery storage | 8 8 51.8s Battery | 7 7 43.8s SimpleTimes - No cycle limit | 1 1 12.1s SimpleTimes - Cycle limit | 1 1 0.6s SimpleTimes - Cycle limit, reinvest | 1 1 0.4s SimpleTimes - Cycle limit, investments, but not data | 1 1 3.3s SimpleTimes - Cycle limit, investments and reinvest | 1 1 3.5s RepresentativePeriods - No cycle limit | 1 1 22.7s RepresentativePeriods - Cycle limit | 1 1 0.5s ReserveBattery | 1 1 7.6s RP | Checks | 95 95 38.2s RP | examples | 4 4 1m27.5s Examples | 4 4 1m27.3s Example detailed_hydro_power.jl | 1 1 1m15.5s Example simple_battery.jl | 1 1 4.2s Example simple_hydro_power.jl | 1 1 3.4s Example simple_nondisres.jl | 1 1 4.0s RP | constructors | 82 82 7.5s RNG of the outermost testset: Random.Xoshiro(0xa93a2495dc41111e, 0xe5e5ecbc45b362d3, 0xc7e7a541c96f06dc, 0x7a9ba8c9aaa96e0d, 0x9cb3c29747285e3e) ERROR: LoadError: Some tests did not pass: 269 passed, 0 failed, 31 errored, 0 broken. in expression starting at /home/pkgeval/.julia/packages/EnergyModelsRenewableProducers/RInYA/test/runtests.jl:13 Testing failed after 380.95s ERROR: LoadError: Package EnergyModelsRenewableProducers 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 626.81s: package tests unexpectedly errored