Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement graph structure #254

Merged
merged 1 commit into from
Nov 16, 2023
Merged

Conversation

abelsiqueira
Copy link
Member

@abelsiqueira abelsiqueira commented Nov 14, 2023

Pull request details

Describe the changes made in this pull request

Creates structures for assets and flows in the graph.
Creates a MetaGraph using those structures.
Stores the basic data from assets and flows in this graph.
The margin was changed from the default (92) to 100 to allow the ternary operators (x ? y : z). Otherwise the formatter will split into an if-else and make the coverage decrease.

List of related issues or pull requests

Closes #106, closes #105, closes #118

Collaboration confirmation

As a contributor I confirm

  • I read and followed the instructions in README.dev.md
  • The documentation is up to date with the changes introduced in this Pull Request (or NA)
  • Tests are passing
  • Lint is passing

@abelsiqueira
Copy link
Member Author

/run-benchmark

Copy link
Contributor

  Judge result
  ≡≡≡≡≡≡≡≡≡≡≡≡≡≡

  Benchmark Report for
 /home/runner/work/TulipaEnergyModel.jl/TulipaEnergyModel.jl
  ≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡

  Job Properties
  ================

    •  Time of benchmarks:
       • Target: 14 Nov 2023 - 14:17
       • Baseline: 14 Nov 2023 - 14:19

    •  Package commits:
       • Target: e51488
       • Baseline: e51488

    •  Julia commits:
       • Target: bed2cd
       • Baseline: bed2cd

    •  Julia command flags:
       • Target: None
       • Baseline: None

    •  Environment variables:
       • Target: None
       • Baseline: None

  Results
  =========

  A ratio greater than 1.0 denotes a possible regression (marked with :x:),
  while a ratio less than 1.0 denotes a possible improvement (marked with
  :whitecheckmark:). Only significant results - results that indicate possible
  regressions or improvements - are shown below (thus, an empty table means
  that all benchmark results remained invariant between builds).

  | ID | time ratio | memory ratio | |––––––––––––––-|––––––|–––––––|

  Benchmark Group List
  ======================

  Here's a list of all the benchmark groups executed by this job:

    •  ["io"]

    •  ["model"]

  Julia versioninfo
  ===================

  Target
  ––––––––

  Julia Version 1.9.3
  Commit bed2cd540a1 (2023-08-24 14:43 UTC)
  Build Info:
    Official https://julialang.org/ release
  Platform Info:
    OS: Linux (x86_64-linux-gnu)
        Ubuntu 22.04.3 LTS
    uname: Linux 6.2.0-1015-azure #15~22.04.1-Ubuntu SMP Fri Oct  6 13:20:44 UTC 2023 x86_64 x86_64
    CPU: Intel(R) Xeon(R) CPU E5-2673 v4 @ 2.30GHz: 
                speed         user         nice          sys         idle          irq
         #1  2294 MHz       3974 s          0 s        244 s       5043 s          0 s
         #2  2294 MHz       3208 s          0 s        264 s       5794 s          0 s
    Memory: 6.759746551513672 GB (4964.16015625 MB free)
    Uptime: 938.69 sec
    Load Avg:  1.03  1.16  0.71
    WORD_SIZE: 64
    LIBM: libopenlibm
    LLVM: libLLVM-14.0.6 (ORCJIT, broadwell)
    Threads: 1 on 2 virtual cores

  Baseline
  ––––––––––

  Julia Version 1.9.3
  Commit bed2cd540a1 (2023-08-24 14:43 UTC)
  Build Info:
    Official https://julialang.org/ release
  Platform Info:
    OS: Linux (x86_64-linux-gnu)
        Ubuntu 22.04.3 LTS
    uname: Linux 6.2.0-1015-azure #15~22.04.1-Ubuntu SMP Fri Oct  6 13:20:44 UTC 2023 x86_64 x86_64
    CPU: Intel(R) Xeon(R) CPU E5-2673 v4 @ 2.30GHz: 
                speed         user         nice          sys         idle          irq
         #1  2294 MHz       4112 s          0 s        268 s       6022 s          0 s
         #2  2294 MHz       4196 s          0 s        281 s       5942 s          0 s
    Memory: 6.759746551513672 GB (5035.3046875 MB free)
    Uptime: 1054.89 sec
    Load Avg:  1.0  1.11  0.75
    WORD_SIZE: 64
    LIBM: libopenlibm
    LLVM: libLLVM-14.0.6 (ORCJIT, broadwell)
    Threads: 1 on 2 virtual cores

  ────────────────────────────────────────────────────────────────────────────

  Target result
  ≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡

  Benchmark Report for
 /home/runner/work/TulipaEnergyModel.jl/TulipaEnergyModel.jl
  ≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡

  Job Properties
  ================

    •  Time of benchmark: 14 Nov 2023 - 14:17

    •  Package commit: e51488

    •  Julia commit: bed2cd

    •  Julia command flags: None

    •  Environment variables: None

  Results
  =========

  Below is a table of this job's results, obtained by running the benchmarks.
  The values listed in the ID column have the structure [parent_group,
  child_group, ..., key], and can be used to index into the BaseBenchmarks
  suite to retrieve the corresponding benchmarks. The percentages accompanying
  time and memory values in the below table are noise tolerances. The "true"
  time/memory value for a given benchmark is expected to fall within this
  percentage of the reported value. An empty cell means that the value was
  zero.

                         ID            time   GC time          memory allocations
  ––––––––––––––––––––––––– ––––––––––––––– ––––––––– ––––––––––––––– –––––––––––
            ["io", "graph"]   2.862 ms (5%)           175.84 KiB (1%)        4830
            ["io", "input"]  37.509 ms (5%)             1.50 MiB (1%)       32146
           ["io", "output"] 113.500 μs (5%)             4.01 MiB (1%)         118
  ["model", "create_model"] 956.625 ms (5%) 75.643 ms 172.94 MiB (1%)     2358206
   ["model", "solve_model"]   14.693 s (5%)             1.87 MiB (1%)       61043

  Benchmark Group List
  ======================

  Here's a list of all the benchmark groups executed by this job:

    •  ["io"]

    •  ["model"]

  Julia versioninfo
  ===================

  Julia Version 1.9.3
  Commit bed2cd540a1 (2023-08-24 14:43 UTC)
  Build Info:
    Official https://julialang.org/ release
  Platform Info:
    OS: Linux (x86_64-linux-gnu)
        Ubuntu 22.04.3 LTS
    uname: Linux 6.2.0-1015-azure #15~22.04.1-Ubuntu SMP Fri Oct  6 13:20:44 UTC 2023 x86_64 x86_64
    CPU: Intel(R) Xeon(R) CPU E5-2673 v4 @ 2.30GHz: 
                speed         user         nice          sys         idle          irq
         #1  2294 MHz       3974 s          0 s        244 s       5043 s          0 s
         #2  2294 MHz       3208 s          0 s        264 s       5794 s          0 s
    Memory: 6.759746551513672 GB (4964.16015625 MB free)
    Uptime: 938.69 sec
    Load Avg:  1.03  1.16  0.71
    WORD_SIZE: 64
    LIBM: libopenlibm
    LLVM: libLLVM-14.0.6 (ORCJIT, broadwell)
    Threads: 1 on 2 virtual cores

  ────────────────────────────────────────────────────────────────────────────

  Baseline result
  ≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡

  Benchmark Report for
 /home/runner/work/TulipaEnergyModel.jl/TulipaEnergyModel.jl
  ≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡

  Job Properties
  ================

    •  Time of benchmark: 14 Nov 2023 - 14:19

    •  Package commit: e51488

    •  Julia commit: bed2cd

    •  Julia command flags: None

    •  Environment variables: None

  Results
  =========

  Below is a table of this job's results, obtained by running the benchmarks.
  The values listed in the ID column have the structure [parent_group,
  child_group, ..., key], and can be used to index into the BaseBenchmarks
  suite to retrieve the corresponding benchmarks. The percentages accompanying
  time and memory values in the below table are noise tolerances. The "true"
  time/memory value for a given benchmark is expected to fall within this
  percentage of the reported value. An empty cell means that the value was
  zero.

                         ID            time    GC time          memory allocations
  ––––––––––––––––––––––––– ––––––––––––––– –––––––––– ––––––––––––––– –––––––––––
            ["io", "graph"]   2.814 ms (5%)            175.84 KiB (1%)        4830
            ["io", "input"]  35.757 ms (5%)              1.50 MiB (1%)       32146
           ["io", "output"] 112.899 μs (5%)              4.01 MiB (1%)         118
  ["model", "create_model"] 979.081 ms (5%) 103.994 ms 172.94 MiB (1%)     2358206
   ["model", "solve_model"]   14.109 s (5%)              1.87 MiB (1%)       61043

  Benchmark Group List
  ======================

  Here's a list of all the benchmark groups executed by this job:

    •  ["io"]

    •  ["model"]

  Julia versioninfo
  ===================

  Julia Version 1.9.3
  Commit bed2cd540a1 (2023-08-24 14:43 UTC)
  Build Info:
    Official https://julialang.org/ release
  Platform Info:
    OS: Linux (x86_64-linux-gnu)
        Ubuntu 22.04.3 LTS
    uname: Linux 6.2.0-1015-azure #15~22.04.1-Ubuntu SMP Fri Oct  6 13:20:44 UTC 2023 x86_64 x86_64
    CPU: Intel(R) Xeon(R) CPU E5-2673 v4 @ 2.30GHz: 
                speed         user         nice          sys         idle          irq
         #1  2294 MHz       4112 s          0 s        268 s       6022 s          0 s
         #2  2294 MHz       4196 s          0 s        281 s       5942 s          0 s
    Memory: 6.759746551513672 GB (5035.3046875 MB free)
    Uptime: 1054.89 sec
    Load Avg:  1.0  1.11  0.75
    WORD_SIZE: 64
    LIBM: libopenlibm
    LLVM: libLLVM-14.0.6 (ORCJIT, broadwell)
    Threads: 1 on 2 virtual cores

  ────────────────────────────────────────────────────────────────────────────

  Runtime information
  ≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡

  Runtime Info       
  ––––––––––––––– –––
  BLAS #threads   1  
  BLAS.vendor()   lbt
  Sys.CPU_THREADS 2  

  lscpu output:

  Architecture:                       x86_64
  CPU op-mode(s):                     32-bit, 64-bit
  Address sizes:                      46 bits physical, 48 bits virtual
  Byte Order:                         Little Endian
  CPU(s):                             2
  On-line CPU(s) list:                0,1
  Vendor ID:                          GenuineIntel
  Model name:                         Intel(R) Xeon(R) CPU E5-2673 v4 @ 2.30GHz
  CPU family:                         6
  Model:                              79
  Thread(s) per core:                 1
  Core(s) per socket:                 2
  Socket(s):                          1
  Stepping:                           1
  BogoMIPS:                           4589.37
  Flags:                              fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology cpuid pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single pti fsgsbase bmi1 hle avx2 smep bmi2 erms invpcid rtm rdseed adx smap xsaveopt md_clear
  Hypervisor vendor:                  Microsoft
  Virtualization type:                full
  L1d cache:                          64 KiB (2 instances)
  L1i cache:                          64 KiB (2 instances)
  L2 cache:                           512 KiB (2 instances)
  L3 cache:                           50 MiB (1 instance)
  NUMA node(s):                       1
  NUMA node0 CPU(s):                  0,1
  Vulnerability Gather data sampling: Not affected
  Vulnerability Itlb multihit:        KVM: Mitigation: VMX unsupported
  Vulnerability L1tf:                 Mitigation; PTE Inversion
  Vulnerability Mds:                  Mitigation; Clear CPU buffers; SMT Host state unknown
  Vulnerability Meltdown:             Mitigation; PTI
  Vulnerability Mmio stale data:      Vulnerable: Clear CPU buffers attempted, no microcode; SMT Host state unknown
  Vulnerability Retbleed:             Not affected
  Vulnerability Spec rstack overflow: Not affected
  Vulnerability Spec store bypass:    Vulnerable
  Vulnerability Spectre v1:           Mitigation; usercopy/swapgs barriers and __user pointer sanitization
  Vulnerability Spectre v2:           Mitigation; Retpolines, STIBP disabled, RSB filling, PBRSB-eIBRS Not affected
  Vulnerability Srbds:                Not affected
  Vulnerability Tsx async abort:      Mitigation; Clear CPU buffers; SMT Host state unknown

  Cpu Property       Value                                                  
  –––––––––––––––––– –––––––––––––––––––––––––––––––––––––––––––––––––––––––
  Brand              Intel(R) Xeon(R) CPU E5-2673 v4 @ 2.30GHz              
  Vendor             :Intel                                                 
  Architecture       :Broadwell                                             
  Model              Family: 0x06, Model: 0x4f, Stepping: 0x01, Type: 0x00  
  Cores              2 physical cores, 2 logical cores (on executing CPU)   
                     No Hyperthreading hardware capability detected         
  Clock Frequencies  Not supported by CPU                                   
  Data Cache         Level 1:3 : (32, 256, 51200) kbytes                    
                     64 byte cache line size                                
  Address Size       48 bits virtual, 46 bits physical                      
  SIMD               256 bit = 32 byte max. SIMD vector size                
  Time Stamp Counter TSC is accessible via rdtsc                            
                     TSC increased at every clock cycle (non-invariant TSC) 
  Perf. Monitoring   Performance Monitoring Counters (PMC) are not supported
  Hypervisor         Yes, Microsoft                                         


@abelsiqueira abelsiqueira force-pushed the graph-structure branch 2 times, most recently from 9b118a8 to 3352749 Compare November 15, 2023 15:58
@abelsiqueira abelsiqueira marked this pull request as ready for review November 15, 2023 16:03
Copy link

codecov bot commented Nov 15, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (a8b83ae) 100.00% compared to head (1e3e405) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #254   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            5         7    +2     
  Lines          236       201   -35     
=========================================
- Hits           236       201   -35     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@abelsiqueira
Copy link
Member Author

/run-benchmark

Copy link
Contributor

  Judge result
  ≡≡≡≡≡≡≡≡≡≡≡≡≡≡

  Benchmark Report for
 /home/runner/work/TulipaEnergyModel.jl/TulipaEnergyModel.jl
  ≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡

  Job Properties
  ================

    •  Time of benchmarks:
       • Target: 16 Nov 2023 - 11:52
       • Baseline: 16 Nov 2023 - 11:53

    •  Package commits:
       • Target: 56cc58
       • Baseline: 56cc58

    •  Julia commits:
       • Target: 8e5136
       • Baseline: 8e5136

    •  Julia command flags:
       • Target: None
       • Baseline: None

    •  Environment variables:
       • Target: None
       • Baseline: None

  Results
  =========

  A ratio greater than 1.0 denotes a possible regression (marked with :x:),
  while a ratio less than 1.0 denotes a possible improvement (marked with
  :whitecheckmark:). Only significant results - results that indicate possible
  regressions or improvements - are shown below (thus, an empty table means
  that all benchmark results remained invariant between builds).

                ID                 time ratio memory ratio
  –––––––––––––––– –––––––––––––––––––––––––– ––––––––––––
  ["io", "output"] 0.83 (5%) :whitecheckmark:    1.00 (1%)

  Benchmark Group List
  ======================

  Here's a list of all the benchmark groups executed by this job:

    •  ["io"]

    •  ["model"]

  Julia versioninfo
  ===================

  Target
  ––––––––

  Julia Version 1.9.4
  Commit 8e5136fa297 (2023-11-14 08:46 UTC)
  Build Info:
    Official https://julialang.org/ release
  Platform Info:
    OS: Linux (x86_64-linux-gnu)
        Ubuntu 22.04.3 LTS
    uname: Linux 6.2.0-1015-azure #15~22.04.1-Ubuntu SMP Fri Oct  6 13:20:44 UTC 2023 x86_64 x86_64
    CPU: AMD EPYC 7763 64-Core Processor: 
                speed         user         nice          sys         idle          irq
         #1  2590 MHz        993 s          0 s        117 s       3759 s          0 s
         #2  2445 MHz       2117 s          0 s         99 s       2656 s          0 s
         #3  2746 MHz       1070 s          0 s        112 s       3682 s          0 s
         #4  3243 MHz       1032 s          0 s        117 s       3724 s          0 s
    Memory: 15.606914520263672 GB (13873.7265625 MB free)
    Uptime: 490.75 sec
    Load Avg:  1.25  1.04  0.52
    WORD_SIZE: 64
    LIBM: libopenlibm
    LLVM: libLLVM-14.0.6 (ORCJIT, znver3)
    Threads: 1 on 4 virtual cores

  Baseline
  ––––––––––

  Julia Version 1.9.4
  Commit 8e5136fa297 (2023-11-14 08:46 UTC)
  Build Info:
    Official https://julialang.org/ release
  Platform Info:
    OS: Linux (x86_64-linux-gnu)
        Ubuntu 22.04.3 LTS
    uname: Linux 6.2.0-1015-azure #15~22.04.1-Ubuntu SMP Fri Oct  6 13:20:44 UTC 2023 x86_64 x86_64
    CPU: AMD EPYC 7763 64-Core Processor: 
                speed         user         nice          sys         idle          irq
         #1  2540 MHz       1186 s          0 s        123 s       4364 s          0 s
         #2  3047 MHz       2558 s          0 s        106 s       3011 s          0 s
         #3  3243 MHz       1225 s          0 s        122 s       4317 s          0 s
         #4  2445 MHz       1050 s          0 s        126 s       4500 s          0 s
    Memory: 15.606914520263672 GB (13904.55078125 MB free)
    Uptime: 571.44 sec
    Load Avg:  1.06  1.03  0.56
    WORD_SIZE: 64
    LIBM: libopenlibm
    LLVM: libLLVM-14.0.6 (ORCJIT, znver3)
    Threads: 1 on 4 virtual cores

  ────────────────────────────────────────────────────────────────────────────

  Target result
  ≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡

  Benchmark Report for
 /home/runner/work/TulipaEnergyModel.jl/TulipaEnergyModel.jl
  ≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡

  Job Properties
  ================

    •  Time of benchmark: 16 Nov 2023 - 11:52

    •  Package commit: 56cc58

    •  Julia commit: 8e5136

    •  Julia command flags: None

    •  Environment variables: None

  Results
  =========

  Below is a table of this job's results, obtained by running the benchmarks.
  The values listed in the ID column have the structure [parent_group,
  child_group, ..., key], and can be used to index into the BaseBenchmarks
  suite to retrieve the corresponding benchmarks. The percentages accompanying
  time and memory values in the below table are noise tolerances. The "true"
  time/memory value for a given benchmark is expected to fall within this
  percentage of the reported value. An empty cell means that the value was
  zero.

                         ID            time   GC time          memory allocations
  ––––––––––––––––––––––––– ––––––––––––––– ––––––––– ––––––––––––––– –––––––––––
            ["io", "graph"]   1.986 ms (5%)           175.74 KiB (1%)        4828
            ["io", "input"]  23.486 ms (5%)             1.49 MiB (1%)       32058
           ["io", "output"]  92.051 μs (5%)             4.01 MiB (1%)         118
  ["model", "create_model"] 622.919 ms (5%) 59.413 ms 172.94 MiB (1%)     2358206
   ["model", "solve_model"]    9.951 s (5%)             1.87 MiB (1%)       61043

  Benchmark Group List
  ======================

  Here's a list of all the benchmark groups executed by this job:

    •  ["io"]

    •  ["model"]

  Julia versioninfo
  ===================

  Julia Version 1.9.4
  Commit 8e5136fa297 (2023-11-14 08:46 UTC)
  Build Info:
    Official https://julialang.org/ release
  Platform Info:
    OS: Linux (x86_64-linux-gnu)
        Ubuntu 22.04.3 LTS
    uname: Linux 6.2.0-1015-azure #15~22.04.1-Ubuntu SMP Fri Oct  6 13:20:44 UTC 2023 x86_64 x86_64
    CPU: AMD EPYC 7763 64-Core Processor: 
                speed         user         nice          sys         idle          irq
         #1  2590 MHz        993 s          0 s        117 s       3759 s          0 s
         #2  2445 MHz       2117 s          0 s         99 s       2656 s          0 s
         #3  2746 MHz       1070 s          0 s        112 s       3682 s          0 s
         #4  3243 MHz       1032 s          0 s        117 s       3724 s          0 s
    Memory: 15.606914520263672 GB (13873.7265625 MB free)
    Uptime: 490.75 sec
    Load Avg:  1.25  1.04  0.52
    WORD_SIZE: 64
    LIBM: libopenlibm
    LLVM: libLLVM-14.0.6 (ORCJIT, znver3)
    Threads: 1 on 4 virtual cores

  ────────────────────────────────────────────────────────────────────────────

  Baseline result
  ≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡

  Benchmark Report for
 /home/runner/work/TulipaEnergyModel.jl/TulipaEnergyModel.jl
  ≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡

  Job Properties
  ================

    •  Time of benchmark: 16 Nov 2023 - 11:53

    •  Package commit: 56cc58

    •  Julia commit: 8e5136

    •  Julia command flags: None

    •  Environment variables: None

  Results
  =========

  Below is a table of this job's results, obtained by running the benchmarks.
  The values listed in the ID column have the structure [parent_group,
  child_group, ..., key], and can be used to index into the BaseBenchmarks
  suite to retrieve the corresponding benchmarks. The percentages accompanying
  time and memory values in the below table are noise tolerances. The "true"
  time/memory value for a given benchmark is expected to fall within this
  percentage of the reported value. An empty cell means that the value was
  zero.

                         ID            time   GC time          memory allocations
  ––––––––––––––––––––––––– ––––––––––––––– ––––––––– ––––––––––––––– –––––––––––
            ["io", "graph"]   1.978 ms (5%)           175.74 KiB (1%)        4828
            ["io", "input"]  23.590 ms (5%)             1.49 MiB (1%)       32058
           ["io", "output"] 110.966 μs (5%)             4.01 MiB (1%)         118
  ["model", "create_model"] 617.337 ms (5%) 59.928 ms 172.94 MiB (1%)     2358206
   ["model", "solve_model"]    9.945 s (5%)             1.87 MiB (1%)       61043

  Benchmark Group List
  ======================

  Here's a list of all the benchmark groups executed by this job:

    •  ["io"]

    •  ["model"]

  Julia versioninfo
  ===================

  Julia Version 1.9.4
  Commit 8e5136fa297 (2023-11-14 08:46 UTC)
  Build Info:
    Official https://julialang.org/ release
  Platform Info:
    OS: Linux (x86_64-linux-gnu)
        Ubuntu 22.04.3 LTS
    uname: Linux 6.2.0-1015-azure #15~22.04.1-Ubuntu SMP Fri Oct  6 13:20:44 UTC 2023 x86_64 x86_64
    CPU: AMD EPYC 7763 64-Core Processor: 
                speed         user         nice          sys         idle          irq
         #1  2540 MHz       1186 s          0 s        123 s       4364 s          0 s
         #2  3047 MHz       2558 s          0 s        106 s       3011 s          0 s
         #3  3243 MHz       1225 s          0 s        122 s       4317 s          0 s
         #4  2445 MHz       1050 s          0 s        126 s       4500 s          0 s
    Memory: 15.606914520263672 GB (13904.55078125 MB free)
    Uptime: 571.44 sec
    Load Avg:  1.06  1.03  0.56
    WORD_SIZE: 64
    LIBM: libopenlibm
    LLVM: libLLVM-14.0.6 (ORCJIT, znver3)
    Threads: 1 on 4 virtual cores

  ────────────────────────────────────────────────────────────────────────────

  Runtime information
  ≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡

  Runtime Info       
  ––––––––––––––– –––
  BLAS #threads   2  
  BLAS.vendor()   lbt
  Sys.CPU_THREADS 4  

  lscpu output:

  Architecture:                       x86_64
  CPU op-mode(s):                     32-bit, 64-bit
  Address sizes:                      48 bits physical, 48 bits virtual
  Byte Order:                         Little Endian
  CPU(s):                             4
  On-line CPU(s) list:                0-3
  Vendor ID:                          AuthenticAMD
  Model name:                         AMD EPYC 7763 64-Core Processor
  CPU family:                         25
  Model:                              1
  Thread(s) per core:                 2
  Core(s) per socket:                 2
  Socket(s):                          1
  Stepping:                           1
  BogoMIPS:                           4890.85
  Flags:                              fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl tsc_reliable nonstop_tsc cpuid extd_apicid aperfmperf pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm cmp_legacy svm cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw topoext invpcid_single vmmcall fsgsbase bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves clzero xsaveerptr rdpru arat npt nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold v_vmsave_vmload umip vaes vpclmulqdq rdpid fsrm
  Virtualization:                     AMD-V
  Hypervisor vendor:                  Microsoft
  Virtualization type:                full
  L1d cache:                          64 KiB (2 instances)
  L1i cache:                          64 KiB (2 instances)
  L2 cache:                           1 MiB (2 instances)
  L3 cache:                           32 MiB (1 instance)
  NUMA node(s):                       1
  NUMA node0 CPU(s):                  0-3
  Vulnerability Gather data sampling: Not affected
  Vulnerability Itlb multihit:        Not affected
  Vulnerability L1tf:                 Not affected
  Vulnerability Mds:                  Not affected
  Vulnerability Meltdown:             Not affected
  Vulnerability Mmio stale data:      Not affected
  Vulnerability Retbleed:             Not affected
  Vulnerability Spec rstack overflow: Mitigation; safe RET, no microcode
  Vulnerability Spec store bypass:    Vulnerable
  Vulnerability Spectre v1:           Mitigation; usercopy/swapgs barriers and __user pointer sanitization
  Vulnerability Spectre v2:           Mitigation; Retpolines, STIBP disabled, RSB filling, PBRSB-eIBRS Not affected
  Vulnerability Srbds:                Not affected
  Vulnerability Tsx async abort:      Not affected

  Cpu Property       Value                                                     
  –––––––––––––––––– ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
  Brand              AMD EPYC 7763 64-Core Processor                           
  Vendor             :AMD                                                      
  Architecture       :Unknown                                                  
  Model              Family: 0xaf, Model: 0x01, Stepping: 0x01, Type: 0x00     
  Cores              16 physical cores, 16 logical cores (on executing CPU)    
                     No Hyperthreading hardware capability detected            
  Clock Frequencies  Not supported by CPU                                      
  Data Cache         Level 1:3 : (32, 512, 32768) kbytes                       
                     64 byte cache line size                                   
  Address Size       48 bits virtual, 48 bits physical                         
  SIMD               256 bit = 32 byte max. SIMD vector size                   
  Time Stamp Counter TSC is accessible via rdtsc                               
                     TSC runs at constant rate (invariant from clock frequency)
  Perf. Monitoring   Performance Monitoring Counters (PMC) are not supported   
  Hypervisor         Yes, Microsoft                                            


Copy link
Member

@datejada datejada left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One general question is if you are going to include changes for the representatives in this PR or if you are going to create a new one. Maybe we don't need changes in the rp i/o for the moment. I just wanted to ask since you mentioned it yesterday during the meeting.

src/io.jl Outdated
@@ -53,111 +79,33 @@ function create_parameters_and_sets_from_file(input_folder::AbstractString)

# Parameter for profile of assets
assets_profile = Dict(
(assets[row.id], row.rep_period_id, row.time_step) => row.value for
(asset_data[row.id][1], row.rep_period_id, row.time_step) => row.value for
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to write explicitly that we are accessing the asset's name?

I mean, instead of asset_data[row.id][1] something like asset_data[row.id][name]

That will help with the readability of the code.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this is easy but I missed it. Using label_for(graph, row.id) will work.

src/io.jl Show resolved Hide resolved
@abelsiqueira
Copy link
Member Author

abelsiqueira commented Nov 16, 2023

Hi @datejada, thanks for the review. I plan to create separate PRs.
Wrt to this PR, I made changes to the margin in the JuliaFormatter that affects other files. Do you want me to create a separate PR for that to simplify checking this one? I would prefer, but let me know otherwise. I created #260

Copy link
Member

@datejada datejada left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the changes. LFTM

@datejada datejada merged commit 27924f9 into TulipaEnergy:main Nov 16, 2023
6 checks passed
@abelsiqueira abelsiqueira deleted the graph-structure branch November 17, 2023 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants