Skip to content

add precompile workload v2 - #209

Draft
jd-lara wants to merge 2 commits into
mainfrom
precompile_workload
Draft

add precompile workload v2#209
jd-lara wants to merge 2 commits into
mainfrom
precompile_workload

Conversation

@jd-lara

@jd-lara jd-lara commented Jul 24, 2026

Copy link
Copy Markdown
Member

@odow take a look at this approach.

@jd-lara
jd-lara requested a review from odow July 24, 2026 13:27
@jd-lara jd-lara mentioned this pull request Jul 28, 2026
@odow

odow commented Jul 29, 2026

Copy link
Copy Markdown
Collaborator

What's a good example of an end-user script? The CATS system one? We should measure the before/after of this.

@jd-lara

jd-lara commented Jul 29, 2026

Copy link
Copy Markdown
Member Author

What's a good example of an end-user script? The CATS system one? We should measure the before/after of this.

Yes, CATS is a good one. I measured this one with the performance script but CATS is a better one.

@odow

odow commented Jul 30, 2026

Copy link
Copy Markdown
Collaborator

Any idea what's going on here? Do I need to rebuild the script? From what I can tell, the CATS stuff hasn't changed, so it must be one of the many changes in PSY etc.

julia> sys = PSY.System("test/performance/CATS_Sienna.json")
ERROR: KeyError: key "base_power" not found
Stacktrace:
 [1] getindex(h::Dict{String, Any}, key::String)
   @ Base ./dict.jl:477
 [2] from_dict(::Type{System}, raw::Dict{String, Any}; time_series_read_only::Bool, time_series_directory::Nothing, config_path::String, kwargs::@Kwargs{runchecks::Bool})
   @ PowerSystems ~/.julia/packages/PowerSystems/amEUa/src/base.jl:2360
 [3] from_dict
   @ ~/.julia/packages/PowerSystems/amEUa/src/base.jl:2330 [inlined]
 [4] deserialize(::Type{System}, filename::String; kwargs::@Kwargs{time_series_read_only::Bool, runchecks::Bool, time_series_directory::Nothing, config_path::String})
   @ PowerSystems ~/.julia/packages/PowerSystems/amEUa/src/base.jl:2327
 [5] deserialize
   @ ~/.julia/packages/PowerSystems/amEUa/src/base.jl:2306 [inlined]
 [6] System(file_path::String; assign_new_uuids::Bool, kwargs::@Kwargs{})
   @ PowerSystems ~/.julia/packages/PowerSystems/amEUa/src/base.jl:247
 [7] System(file_path::String)
   @ PowerSystems ~/.julia/packages/PowerSystems/amEUa/src/base.jl:228
 [8] top-level scope
   @ REPL[20]:1

(performance) pkg> st
Status `~/git/Sienna-Platform/PowerOperationsModels/test/performance/Project.toml`
  [336ed68f] CSV v0.10.16
  [87dc4568] HiGHS v1.24.1
  [bed98974] InfrastructureOptimizationModels v0.1.0 `https://github.com/Sienna-Platform/InfrastructureOptimizationModels.jl#main`
  [2cd47ed4] InfrastructureSystems v3.6.0 `https://github.com/Sienna-Platform/InfrastructureSystems.jl#IS4`
  [4076af6c] JuMP v1.31.1
  [bed98974] PowerNetworkMatrices v0.24.4 `https://github.com/Sienna-Platform/PowerNetworkMatrices.jl#psy6`
  [bed98974] PowerOperationsModels v0.1.0 `../..`
  [bcd98974] PowerSystems v5.10.0 `https://github.com/Sienna-Platform/PowerSystems.jl#psy6`
  [ade2ca70] Dates v1.11.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants