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

Simplify network not working #1308

Closed
2 tasks done
GbotemiB opened this issue Jan 20, 2025 · 15 comments
Closed
2 tasks done

Simplify network not working #1308

GbotemiB opened this issue Jan 20, 2025 · 15 comments
Labels
bug Something isn't working

Comments

@GbotemiB
Copy link
Collaborator

Checklist

  • I am using the current main branch or the latest release. Please indicate.
  • I am running on an up-to-date pypsa-earth environment. Update via conda env update -f envs/environment.yaml.

Describe the Bug

Simiplify network is running into an issue. I encountered this issue while running the model for US.

Please provide a description of what the bug is and add a minimal example/command for reproducing the bug.

Error Message

If applicable, paste any terminal output to help illustrating your problem.
In some cases it may also be useful to share your list of installed packages: conda list.

CondaError: Run 'conda init' before 'conda activate'

Config file submodules/pypsa-earth/config.default.yaml is extended by additional config specified via the command line.
Config file submodules/pypsa-earth/configs/bundle_config.yaml is extended by additional config specified via the command line.
Config file configs/config.main.yaml is extended by additional config specified via the command line.
The flag 'temp' used in rule build_powerplants is only valid for outputs, not inputs.
The flag 'temp' used in rule build_demand_profiles is only valid for outputs, not inputs.
localrules directive specifies rules that are not present in the Snakefile:
	all

Building DAG of jobs...
Using shell: /usr/bin/bash
Provided cores: 1 (use --cores to define parallelism)
Rules claiming more threads will be scaled down.
Job stats:
job                     count
--------------------  -------
add_extra_components        1
cluster_network             1
prepare_network             1
simplify_network            1
solve_all_networks          1
solve_network               1
total                       6

Select jobs to execute...

[Mon Jan 20 01:39:36 2025]
rule simplify_network:
    input: submodules/pypsa-earth/networks/US_2021/elec.nc, submodules/pypsa-earth/resources/US_2021/costs_2030.csv, submodules/pypsa-earth/resources/US_2021/bus_regions/regions_onshore.geojson, submodules/pypsa-earth/resources/US_2021/bus_regions/regions_offshore.geojson
    output: submodules/pypsa-earth/networks/US_2021/elec_s.nc, submodules/pypsa-earth/resources/US_2021/bus_regions/regions_onshore_elec_s.geojson, submodules/pypsa-earth/resources/US_2021/bus_regions/regions_offshore_elec_s.geojson, submodules/pypsa-earth/resources/US_2021/bus_regions/busmap_elec_s.csv, submodules/pypsa-earth/resources/US_2021/bus_regions/connection_costs_s.csv
    log: submodules/pypsa-earth/logs/US_2021/simplify_network/elec_s.log
    jobid: 5
    benchmark: submodules/pypsa-earth/benchmarks/US_2021/simplify_network/elec_s
    reason: Missing output files: submodules/pypsa-earth/resources/US_2021/bus_regions/regions_offshore_elec_s.geojson, submodules/pypsa-earth/networks/US_2021/elec_s.nc, submodules/pypsa-earth/resources/US_2021/bus_regions/regions_onshore_elec_s.geojson; Updated input files: submodules/pypsa-earth/resources/US_2021/bus_regions/regions_onshore.geojson, submodules/pypsa-earth/networks/US_2021/elec.nc, submodules/pypsa-earth/resources/US_2021/bus_regions/regions_offshore.geojson
    wildcards: simpl=
    resources: tmpdir=/tmp, mem_mb=4000, mem_mib=3815

INFO:pypsa.io:Imported network elec.nc has buses, carriers, generators, lines, links, loads, storage_units, transformers
INFO:__main__:Mapping all network lines onto a single 380kV layer
INFO:add_electricity:Overwriting marginal_cost of Index(['solar', 'onwind', 'offwind', 'hydro', 'H2', 'electrolysis',
       'fuel cell', 'battery', 'battery inverter'],
      dtype='object') to [0.01  0.015 0.015 0.    0.    0.    0.    0.    0.   ]
INFO:__main__:Simplifying connected link components
INFO:__main__:Joining the links and DC lines convert_8018_12732, 15777, 15875, 7267, convert_7473_11994 connecting the buses 12731, 12732, 15538, 11992, 11994, 11993 to simple link 7267+4
INFO:__main__:Joining the links and DC lines convert_7309_11743, 6573, 7652, convert_443_1027 connecting the buses 11742, 11743, 25957, 1027, 1026 to simple link 7652+3
INFO:__main__:Joining the links and DC lines convert_7646_12214, 36873 connecting the buses 12213, 12214, 27880 to simple link 36873+1
INFO:__main__:Joining the links and DC lines convert_996_2217, 36748, convert_417_959 connecting the buses 2218, 2217, 959, 958 to simple link 36748+2
INFO:__main__:Joining the links and DC lines convert_259_594, 7223, 15941, 32572, convert_7308_11740 connecting the buses 595, 594, 15593, 23390, 11740, 11739 to simple link 15941+4
INFO:__main__:Joining the links and DC lines convert_4464_8099, 36794, convert_58_138 connecting the buses 8100, 8099, 138, 139 to simple link 36794+2
INFO:__main__:Joining the links and DC lines convert_7635_12196, 7805 connecting the buses 12195, 12196, 5859 to simple link 7805+1
INFO:__main__:Joining the links and DC lines convert_4196_7735, 9734, 15876, 22171, convert_273_625 connecting the buses 7736, 7735, 26040, 15567, 625, 626 to simple link 9734+4
INFO:__main__:Joining the links and DC lines convert_548_1265, 36749, convert_284_655 connecting the buses 1264, 1265, 655, 654 to simple link 36749+2
INFO:__main__:Removing stubs
INFO:__main__:Displacing offwind-ac generator(s) and adding connection costs to capital_costs: 5581 Eur/MW/a for `27880 offwind-ac` 
INFO:__main__:Displacing offwind-dc generator(s) and adding connection costs to capital_costs: 4159 Eur/MW/a for `27880 offwind-dc` 
INFO:__main__:Dropped 153 buses. A resulted load discrepancy is 0.6% and 0.5% for average load and generation capacity, respectively
ERROR:_helpers:An error happened in module '/scratch/htc/ebolarinwa/conda/envs/pypsa-earth-linopy/lib/python3.10/site-packages/pypsa/clustering/spatial.py', function 'consense': In Line cluster tag_type, the values of attribute tag_type do not agree:
Line
6612      line
36842    cable
36854    cable
Name: tag_type, dtype: object
Traceback (most recent call last):
  File "/scratch/htc/ebolarinwa/efuels-supply-potentials/.snakemake/scripts/tmpqa40qh2d.simplify_network.py", line 1147, in <module>
    n, merged_nodes_map = merge_isolated_nodes(
  File "/scratch/htc/ebolarinwa/efuels-supply-potentials/.snakemake/scripts/tmpqa40qh2d.simplify_network.py", line 955, in merge_isolated_nodes
    clustering = get_clustering_from_busmap(
  File "/scratch/htc/ebolarinwa/conda/envs/pypsa-earth-linopy/lib/python3.10/site-packages/pypsa/clustering/spatial.py", line 473, in get_clustering_from_busmap
    lines, lines_t, linemap = aggregatelines(
  File "/scratch/htc/ebolarinwa/conda/envs/pypsa-earth-linopy/lib/python3.10/site-packages/pypsa/clustering/spatial.py", line 416, in aggregatelines
    df = df.groupby(grouper).agg(static_strategies)
  File "/scratch/htc/ebolarinwa/conda/envs/pypsa-earth-linopy/lib/python3.10/site-packages/pandas/core/groupby/generic.py", line 1432, in aggregate
    result = op.agg()
  File "/scratch/htc/ebolarinwa/conda/envs/pypsa-earth-linopy/lib/python3.10/site-packages/pandas/core/apply.py", line 190, in agg
    return self.agg_dict_like()
  File "/scratch/htc/ebolarinwa/conda/envs/pypsa-earth-linopy/lib/python3.10/site-packages/pandas/core/apply.py", line 423, in agg_dict_like
    return self.agg_or_apply_dict_like(op_name="agg")
  File "/scratch/htc/ebolarinwa/conda/envs/pypsa-earth-linopy/lib/python3.10/site-packages/pandas/core/apply.py", line 1608, in agg_or_apply_dict_like
    result_index, result_data = self.compute_dict_like(
  File "/scratch/htc/ebolarinwa/conda/envs/pypsa-earth-linopy/lib/python3.10/site-packages/pandas/core/apply.py", line 496, in compute_dict_like
    results = [
  File "/scratch/htc/ebolarinwa/conda/envs/pypsa-earth-linopy/lib/python3.10/site-packages/pandas/core/apply.py", line 497, in <listcomp>
    getattr(obj._gotitem(key, ndim=1), op_name)(how, **kwargs)
  File "/scratch/htc/ebolarinwa/conda/envs/pypsa-earth-linopy/lib/python3.10/site-packages/pandas/core/groupby/generic.py", line 294, in aggregate
    return self._python_agg_general(func, *args, **kwargs)
  File "/scratch/htc/ebolarinwa/conda/envs/pypsa-earth-linopy/lib/python3.10/site-packages/pandas/core/groupby/generic.py", line 327, in _python_agg_general
    result = self._grouper.agg_series(obj, f)
  File "/scratch/htc/ebolarinwa/conda/envs/pypsa-earth-linopy/lib/python3.10/site-packages/pandas/core/groupby/ops.py", line 864, in agg_series
    result = self._aggregate_series_pure_python(obj, func)
  File "/scratch/htc/ebolarinwa/conda/envs/pypsa-earth-linopy/lib/python3.10/site-packages/pandas/core/groupby/ops.py", line 885, in _aggregate_series_pure_python
    res = func(group)
  File "/scratch/htc/ebolarinwa/conda/envs/pypsa-earth-linopy/lib/python3.10/site-packages/pandas/core/groupby/generic.py", line 324, in <lambda>
    f = lambda x: func(x, *args, **kwargs)
  File "/scratch/htc/ebolarinwa/conda/envs/pypsa-earth-linopy/lib/python3.10/site-packages/pypsa/clustering/spatial.py", line 135, in consense
    assert (x == v).all() or x.isnull().all(), (
AssertionError: In Line cluster tag_type, the values of attribute tag_type do not agree:
Line
6612      line
36842    cable
36854    cable
Name: tag_type, dtype: object
[Mon Jan 20 01:50:55 2025]
Error in rule simplify_network:
    jobid: 5
    input: submodules/pypsa-earth/networks/US_2021/elec.nc, submodules/pypsa-earth/resources/US_2021/costs_2030.csv, submodules/pypsa-earth/resources/US_2021/bus_regions/regions_onshore.geojson, submodules/pypsa-earth/resources/US_2021/bus_regions/regions_offshore.geojson
    output: submodules/pypsa-earth/networks/US_2021/elec_s.nc, submodules/pypsa-earth/resources/US_2021/bus_regions/regions_onshore_elec_s.geojson, submodules/pypsa-earth/resources/US_2021/bus_regions/regions_offshore_elec_s.geojson, submodules/pypsa-earth/resources/US_2021/bus_regions/busmap_elec_s.csv, submodules/pypsa-earth/resources/US_2021/bus_regions/connection_costs_s.csv
    log: submodules/pypsa-earth/logs/US_2021/simplify_network/elec_s.log (check log file(s) for error details)

RuleException:
CalledProcessError in file /scratch/htc/ebolarinwa/efuels-supply-potentials/submodules/pypsa-earth/Snakefile, line 592:
Command 'set -euo pipefail;  /scratch/htc/ebolarinwa/conda/envs/pypsa-earth-linopy/bin/python3.10 /scratch/htc/ebolarinwa/efuels-supply-potentials/.snakemake/scripts/tmpqa40qh2d.simplify_network.py' returned non-zero exit status 1.
  File "/scratch/htc/ebolarinwa/efuels-supply-potentials/submodules/pypsa-earth/Snakefile", line 592, in __rule_simplify_network
  File "/scratch/htc/ebolarinwa/conda/envs/pypsa-earth-linopy/lib/python3.10/concurrent/futures/thread.py", line 58, in run
Removing output files of failed job simplify_network since they might be corrupted:
submodules/pypsa-earth/resources/US_2021/bus_regions/connection_costs_s.csv
Shutting down, this might take some time.
Exiting because a job execution failed. Look above for error message
Complete log: .snakemake/log/2025-01-20T013847.006579.snakemake.log

Here is my conda list

#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                 conda_forge    conda-forge
_openmp_mutex             4.5                       2_gnu    conda-forge
affine                    2.4.0              pyhd8ed1ab_1    conda-forge
alsa-lib                  1.2.13               hb9d3cd8_0    conda-forge
ampl-asl                  1.0.0                h5888daf_2    conda-forge
amply                     0.1.6              pyhd8ed1ab_1    conda-forge
anyio                     4.8.0              pyhd8ed1ab_0    conda-forge
appdirs                   1.4.4              pyhd8ed1ab_1    conda-forge
argon2-cffi               23.1.0             pyhd8ed1ab_1    conda-forge
argon2-cffi-bindings      21.2.0          py310ha75aee5_5    conda-forge
arrow                     1.3.0              pyhd8ed1ab_1    conda-forge
asttokens                 3.0.0              pyhd8ed1ab_1    conda-forge
async-lru                 2.0.4              pyhd8ed1ab_1    conda-forge
atk-1.0                   2.38.0               h04ea711_2    conda-forge
atlite                    0.3.0              pyhd8ed1ab_1    conda-forge
attr                      2.5.1                h166bdaf_1    conda-forge
attrs                     24.3.0             pyh71513ae_0    conda-forge
aws-c-auth                0.8.0               h205f482_16    conda-forge
aws-c-cal                 0.8.1                h1a47875_3    conda-forge
aws-c-common              0.10.6               hb9d3cd8_0    conda-forge
aws-c-compression         0.3.0                h4e1184b_5    conda-forge
aws-c-event-stream        0.5.0               h7959bf6_11    conda-forge
aws-c-http                0.9.2                hefd7a92_4    conda-forge
aws-c-io                  0.15.3               h173a860_6    conda-forge
aws-c-mqtt                0.11.0              h11f4f37_12    conda-forge
aws-c-s3                  0.7.7                hf454442_0    conda-forge
aws-c-sdkutils            0.2.2                h4e1184b_0    conda-forge
aws-checksums             0.2.2                h4e1184b_4    conda-forge
aws-crt-cpp               0.29.8               h8570fcd_1    conda-forge
aws-sdk-cpp               1.11.458             h7001638_5    conda-forge
azure-core-cpp            1.14.0               h5cfcd09_0    conda-forge
azure-identity-cpp        1.10.0               h113e628_0    conda-forge
azure-storage-blobs-cpp   12.13.0              h3cf044e_1    conda-forge
azure-storage-common-cpp  12.8.0               h736e048_1    conda-forge
azure-storage-files-datalake-cpp 12.12.0              ha633028_1    conda-forge
babel                     2.16.0             pyhd8ed1ab_1    conda-forge
beautifulsoup4            4.12.3             pyha770c72_1    conda-forge
bleach                    6.2.0              pyhd8ed1ab_3    conda-forge
bleach-with-css           6.2.0                hd8ed1ab_3    conda-forge
blosc                     1.21.6               he440d0b_1    conda-forge
bokeh                     3.6.2              pyhd8ed1ab_1    conda-forge
bottleneck                1.4.2           py310hf462985_0    conda-forge
branca                    0.8.1              pyhd8ed1ab_0    conda-forge
brotli                    1.1.0                hb9d3cd8_2    conda-forge
brotli-bin                1.1.0                hb9d3cd8_2    conda-forge
brotli-python             1.1.0           py310hf71b8c6_2    conda-forge
brotlicffi                1.1.0.0         py310hf71b8c6_2    conda-forge
bzip2                     1.0.8                h4bc722e_7    conda-forge
c-ares                    1.34.4               hb9d3cd8_0    conda-forge
c-blosc2                  2.15.2               h3122c55_1    conda-forge
ca-certificates           2024.12.14           hbcca054_0    conda-forge
cached-property           1.5.2                hd8ed1ab_1    conda-forge
cached_property           1.5.2              pyha770c72_1    conda-forge
cairo                     1.18.2               h3394656_1    conda-forge
capnproto                 1.0.2                h766bdaa_3    conda-forge
cartopy                   0.23.0          py310h5eaa309_2    conda-forge
cdsapi                    0.7.5              pyhd8ed1ab_1    conda-forge
certifi                   2024.12.14         pyhd8ed1ab_0    conda-forge
cffi                      1.17.1          py310h8deb56e_0    conda-forge
cfgv                      3.3.1              pyhd8ed1ab_1    conda-forge
cfitsio                   4.5.0                h44b4e7a_0    conda-forge
cftime                    1.6.4           py310hf462985_1    conda-forge
chaospy                   4.3.17                   pypi_0    pypi
charset-normalizer        3.4.1              pyhd8ed1ab_0    conda-forge
click                     8.1.8              pyh707e725_0    conda-forge
click-plugins             1.1.1              pyhd8ed1ab_1    conda-forge
cligj                     0.7.2              pyhd8ed1ab_2    conda-forge
cloudpickle               3.1.1              pyhd8ed1ab_0    conda-forge
coin-or-cbc               2.10.12              h8b142ea_1    conda-forge
coin-or-cgl               0.60.9               h1d3f3f2_0    conda-forge
coin-or-clp               1.17.10              h07f2a63_0    conda-forge
coin-or-osi               0.108.11             h6514dde_1    conda-forge
coin-or-utils             2.11.12              h99da652_1    conda-forge
coincbc                   2.10.12           1_metapackage    conda-forge
colorama                  0.4.6              pyhd8ed1ab_1    conda-forge
colorcet                  3.1.0              pyhd8ed1ab_1    conda-forge
comm                      0.2.2              pyhd8ed1ab_1    conda-forge
configargparse            1.7                pyhd8ed1ab_1    conda-forge
connection_pool           0.0.3              pyhd3deb0d_0    conda-forge
contextily                1.6.2              pyhd8ed1ab_1    conda-forge
contourpy                 1.3.1           py310h3788b33_0    conda-forge
country_converter         1.2                pyhd8ed1ab_0    conda-forge
cpp-expected              1.1.0                hf52228f_0    conda-forge
cppad                     20240000.7           h5888daf_1    conda-forge
cycler                    0.12.1             pyhd8ed1ab_1    conda-forge
cyrus-sasl                2.1.27               h54b06d7_7    conda-forge
cytoolz                   1.0.1           py310ha75aee5_0    conda-forge
dask                      2024.12.1          pyhd8ed1ab_0    conda-forge
dask-core                 2024.12.1          pyhd8ed1ab_0    conda-forge
dask-expr                 1.1.21             pyhd8ed1ab_0    conda-forge
datapi                    0.1.2              pyhd8ed1ab_0    conda-forge
datashader                0.16.3             pyhd8ed1ab_1    conda-forge
datrie                    0.8.2           py310ha75aee5_8    conda-forge
dbus                      1.13.6               h5008d03_3    conda-forge
debugpy                   1.8.11          py310hf71b8c6_0    conda-forge
decorator                 5.1.1              pyhd8ed1ab_1    conda-forge
defusedxml                0.7.1              pyhd8ed1ab_0    conda-forge
deprecation               2.1.0              pyh9f0ad1d_0    conda-forge
descartes                 1.1.0              pyhd8ed1ab_5    conda-forge
distlib                   0.3.9              pyhd8ed1ab_1    conda-forge
distributed               2024.12.1          pyhd8ed1ab_0    conda-forge
docutils                  0.21.2             pyhd8ed1ab_1    conda-forge
dpath                     2.2.0              pyha770c72_0    conda-forge
earth-osm                 2.3.post1          pyhd8ed1ab_0    conda-forge
entrypoints               0.4                pyhd8ed1ab_1    conda-forge
entsoe-py                 0.6.11             pyhd8ed1ab_0    conda-forge
et_xmlfile                2.0.0              pyhd8ed1ab_1    conda-forge
exceptiongroup            1.2.2              pyhd8ed1ab_1    conda-forge
executing                 2.1.0              pyhd8ed1ab_1    conda-forge
expat                     2.6.4                h5888daf_0    conda-forge
fake-useragent            2.0.3                    pypi_0    pypi
filelock                  3.16.1             pyhd8ed1ab_1    conda-forge
fiona                     1.10.1          py310hf7e30c6_1    conda-forge
fmt                       11.0.2               h434a139_0    conda-forge
folium                    0.19.4             pyhd8ed1ab_0    conda-forge
font-ttf-dejavu-sans-mono 2.37                 hab24e00_0    conda-forge
font-ttf-inconsolata      3.000                h77eed37_0    conda-forge
font-ttf-source-code-pro  2.038                h77eed37_0    conda-forge
font-ttf-ubuntu           0.83                 h77eed37_3    conda-forge
fontconfig                2.15.0               h7e30c49_1    conda-forge
fonts-conda-ecosystem     1                             0    conda-forge
fonts-conda-forge         1                             0    conda-forge
fonttools                 4.55.3          py310h89163eb_1    conda-forge
fqdn                      1.5.1              pyhd8ed1ab_1    conda-forge
freetype                  2.12.1               h267a509_2    conda-forge
freexl                    2.0.0                h9dce30a_2    conda-forge
fribidi                   1.0.10               h36c2ea0_0    conda-forge
fsspec                    2024.12.0          pyhd8ed1ab_0    conda-forge
future                    1.0.0              pyhd8ed1ab_1    conda-forge
gdal                      3.9.3           py310h79127d3_14    conda-forge
gdk-pixbuf                2.42.12              hb9ae30d_0    conda-forge
geographiclib             2.0                pyhd8ed1ab_1    conda-forge
geojson-rewind            1.1.0              pyhd8ed1ab_1    conda-forge
geopandas                 1.0.1              pyhd8ed1ab_3    conda-forge
geopandas-base            1.0.1              pyha770c72_3    conda-forge
geopy                     2.4.1              pyhd8ed1ab_2    conda-forge
geos                      3.13.0               h5888daf_0    conda-forge
geotiff                   1.7.3                h77b800c_3    conda-forge
geoviews                  1.14.0               hd8ed1ab_0    conda-forge
geoviews-core             1.14.0             pyha770c72_0    conda-forge
gettext                   0.22.5               he02047a_3    conda-forge
gettext-tools             0.22.5               he02047a_3    conda-forge
gflags                    2.2.2             h5888daf_1005    conda-forge
giflib                    5.2.2                hd590300_0    conda-forge
gitdb                     4.0.12             pyhd8ed1ab_0    conda-forge
gitpython                 3.1.44             pyhff2d567_0    conda-forge
glib                      2.82.2               h07242d1_1    conda-forge
glib-tools                2.82.2               h4833e2c_1    conda-forge
glog                      0.7.1                hbabe93e_0    conda-forge
glpk                      5.0                  h445213a_0    conda-forge
gmp                       6.3.0                hac33072_2    conda-forge
googledrivedownloader     0.4                      pypi_0    pypi
graphite2                 1.3.13            h59595ed_1003    conda-forge
graphviz                  12.0.0               hba01fac_0    conda-forge
gst-plugins-base          1.24.7               h0a52356_0    conda-forge
gstreamer                 1.24.7               hf3bb09a_0    conda-forge
gtk2                      2.24.33              h8ee276e_7    conda-forge
gts                       0.7.6                h977cf35_4    conda-forge
gurobi                    12.0.0                  py310_0    gurobi
h11                       0.14.0             pyhd8ed1ab_1    conda-forge
h2                        4.1.0              pyhd8ed1ab_1    conda-forge
harfbuzz                  10.2.0               h4bba637_0    conda-forge
hdf4                      4.2.15               h2a13503_7    conda-forge
hdf5                      1.14.3          nompi_h2d575fe_108    conda-forge
highspy                   1.9.0           np20py310h5ebf739_0    conda-forge
holoviews                 1.20.0             pyhd8ed1ab_1    conda-forge
hpack                     4.0.0              pyhd8ed1ab_1    conda-forge
httpcore                  1.0.7              pyh29332c3_1    conda-forge
httpx                     0.28.1             pyhd8ed1ab_0    conda-forge
humanfriendly             10.0               pyh707e725_8    conda-forge
hvplot                    0.11.2             pyhd8ed1ab_0    conda-forge
hyperframe                6.0.1              pyhd8ed1ab_1    conda-forge
icu                       75.1                 he02047a_0    conda-forge
identify                  2.6.5              pyhd8ed1ab_0    conda-forge
idna                      3.10               pyhd8ed1ab_1    conda-forge
importlib-metadata        8.5.0              pyha770c72_1    conda-forge
importlib_metadata        8.5.0                hd8ed1ab_1    conda-forge
importlib_resources       6.5.2              pyhd8ed1ab_0    conda-forge
inflate64                 1.0.1           py310ha75aee5_0    conda-forge
iniconfig                 2.0.0              pyhd8ed1ab_1    conda-forge
ipopt                     3.14.17              h59d4785_0    conda-forge
ipykernel                 6.29.5             pyh3099207_0    conda-forge
ipython                   8.31.0             pyh707e725_0    conda-forge
isoduration               20.11.0            pyhd8ed1ab_1    conda-forge
jedi                      0.19.2             pyhd8ed1ab_1    conda-forge
jinja2                    3.1.5              pyhd8ed1ab_0    conda-forge
joblib                    1.4.2              pyhd8ed1ab_1    conda-forge
json-c                    0.18                 h6688a6e_0    conda-forge
json5                     0.10.0             pyhd8ed1ab_1    conda-forge
jsonpointer               3.0.0           py310hff52083_1    conda-forge
jsonschema                4.23.0             pyhd8ed1ab_1    conda-forge
jsonschema-specifications 2024.10.1          pyhd8ed1ab_1    conda-forge
jsonschema-with-format-nongpl 4.23.0               hd8ed1ab_1    conda-forge
jupyter-lsp               2.2.5              pyhd8ed1ab_1    conda-forge
jupyter_client            8.6.3              pyhd8ed1ab_1    conda-forge
jupyter_core              5.7.2              pyh31011fe_1    conda-forge
jupyter_events            0.11.0             pyhd8ed1ab_0    conda-forge
jupyter_server            2.15.0             pyhd8ed1ab_0    conda-forge
jupyter_server_terminals  0.5.3              pyhd8ed1ab_1    conda-forge
jupyterlab                4.3.4              pyhd8ed1ab_0    conda-forge
jupyterlab_pygments       0.3.0              pyhd8ed1ab_2    conda-forge
jupyterlab_server         2.27.3             pyhd8ed1ab_1    conda-forge
kealib                    1.6.1                he902fbf_0    conda-forge
keyutils                  1.6.1                h166bdaf_0    conda-forge
kiwisolver                1.4.7           py310h3788b33_0    conda-forge
krb5                      1.21.3               h659f571_0    conda-forge
lame                      3.100             h166bdaf_1003    conda-forge
lcms2                     2.16                 hb7c19ff_0    conda-forge
ld_impl_linux-64          2.43                 h712a8e2_2    conda-forge
lerc                      4.0.0                h27087fc_0    conda-forge
libabseil                 20240722.0      cxx17_hbbce691_4    conda-forge
libaec                    1.1.3                h59595ed_0    conda-forge
libarchive                3.7.7                h4585015_3    conda-forge
libarrow                  19.0.0           h9d9f30d_0_cpu    conda-forge
libarrow-acero            19.0.0           hcb10f89_0_cpu    conda-forge
libarrow-dataset          19.0.0           hcb10f89_0_cpu    conda-forge
libarrow-substrait        19.0.0           h08228c5_0_cpu    conda-forge
libasprintf               0.22.5               he8f35ee_3    conda-forge
libasprintf-devel         0.22.5               he8f35ee_3    conda-forge
libblas                   3.9.0           26_linux64_openblas    conda-forge
libbrotlicommon           1.1.0                hb9d3cd8_2    conda-forge
libbrotlidec              1.1.0                hb9d3cd8_2    conda-forge
libbrotlienc              1.1.0                hb9d3cd8_2    conda-forge
libcap                    2.71                 h39aace5_0    conda-forge
libcblas                  3.9.0           26_linux64_openblas    conda-forge
libclang-cpp19.1          19.1.7          default_hb5137d0_0    conda-forge
libclang13                19.1.7          default_h9c6a7e4_0    conda-forge
libcrc32c                 1.1.2                h9c3ff4c_0    conda-forge
libcups                   2.3.3                h4637d8d_4    conda-forge
libcurl                   8.11.1               h332b0f4_0    conda-forge
libdeflate                1.23                 h4ddbbb0_0    conda-forge
libdrm                    2.4.124              hb9d3cd8_0    conda-forge
libedit                   3.1.20240808    pl5321h7949ede_0    conda-forge
libegl                    1.7.0                ha4b6fd6_2    conda-forge
libev                     4.33                 hd590300_2    conda-forge
libevent                  2.1.12               hf998b51_1    conda-forge
libexpat                  2.6.4                h5888daf_0    conda-forge
libffi                    3.4.2                h7f98852_5    conda-forge
libflac                   1.4.3                h59595ed_0    conda-forge
libgcc                    14.2.0               h77fa898_1    conda-forge
libgcc-ng                 14.2.0               h69a702a_1    conda-forge
libgcrypt-lib             1.11.0               hb9d3cd8_2    conda-forge
libgd                     2.3.3               hd3e95f3_10    conda-forge
libgdal                   3.9.3               hea5fcb0_14    conda-forge
libgdal-core              3.9.3               h7c627e3_14    conda-forge
libgdal-fits              3.9.3               h872822d_14    conda-forge
libgdal-grib              3.9.3               h724c1be_14    conda-forge
libgdal-hdf4              3.9.3               h05c48c5_14    conda-forge
libgdal-hdf5              3.9.3               hf0b1780_14    conda-forge
libgdal-jp2openjpeg       3.9.3               ha1d2769_14    conda-forge
libgdal-kea               3.9.3               h41c5bbd_14    conda-forge
libgdal-netcdf            3.9.3               ha1d9371_14    conda-forge
libgdal-pdf               3.9.3               h8221dc3_14    conda-forge
libgdal-pg                3.9.3               ha83508c_14    conda-forge
libgdal-postgisraster     3.9.3               ha83508c_14    conda-forge
libgdal-tiledb            3.9.3               h30425e6_14    conda-forge
libgdal-xls               3.9.3               h5b36e33_14    conda-forge
libgettextpo              0.22.5               he02047a_3    conda-forge
libgettextpo-devel        0.22.5               he02047a_3    conda-forge
libgfortran               14.2.0               h69a702a_1    conda-forge
libgfortran-ng            14.2.0               h69a702a_1    conda-forge
libgfortran5              14.2.0               hd5240d6_1    conda-forge
libgl                     1.7.0                ha4b6fd6_2    conda-forge
libglib                   2.82.2               h2ff4ddf_1    conda-forge
libglvnd                  1.7.0                ha4b6fd6_2    conda-forge
libglx                    1.7.0                ha4b6fd6_2    conda-forge
libgomp                   14.2.0               h77fa898_1    conda-forge
libgoogle-cloud           2.33.0               h2b5623c_1    conda-forge
libgoogle-cloud-storage   2.33.0               h0121fbd_1    conda-forge
libgpg-error              1.51                 hbd13f7d_1    conda-forge
libgrpc                   1.67.1               h25350d4_1    conda-forge
libhwloc                  2.11.2          default_h0d58e46_1001    conda-forge
libiconv                  1.17                 hd590300_2    conda-forge
libjpeg-turbo             3.0.0                hd590300_1    conda-forge
libkml                    1.3.0             hf539b9f_1021    conda-forge
liblapack                 3.9.0           26_linux64_openblas    conda-forge
liblapacke                3.9.0           26_linux64_openblas    conda-forge
libllvm14                 14.0.6               hcd5def8_4    conda-forge
libllvm19                 19.1.7               ha7bfdaf_0    conda-forge
liblzma                   5.6.3                hb9d3cd8_1    conda-forge
liblzma-devel             5.6.3                hb9d3cd8_1    conda-forge
libmamba                  2.0.5                h49b8a8d_1    conda-forge
libnetcdf                 4.9.2           nompi_h00e09a9_116    conda-forge
libnghttp2                1.64.0               h161d5f1_0    conda-forge
libnsl                    2.0.1                hd590300_0    conda-forge
libntlm                   1.8                  hb9d3cd8_0    conda-forge
libogg                    1.3.5                h4ab18f5_0    conda-forge
libopenblas               0.3.28          pthreads_h94d23a6_1    conda-forge
libopus                   1.3.1                h7f98852_1    conda-forge
libparquet                19.0.0           h081d1f1_0_cpu    conda-forge
libpciaccess              0.18                 hd590300_0    conda-forge
libpng                    1.6.45               h943b412_0    conda-forge
libpq                     17.2                 h3b95a9b_1    conda-forge
libprotobuf               5.28.3               h6128344_1    conda-forge
libre2-11                 2024.07.02           hbbce691_2    conda-forge
librsvg                   2.58.4               h49af25d_2    conda-forge
librttopo                 1.1.0               h97f6797_17    conda-forge
libscotch                 7.0.4                h2fe6a88_5    conda-forge
libsndfile                1.2.2                hc60ed4a_1    conda-forge
libsodium                 1.0.20               h4ab18f5_0    conda-forge
libsolv                   0.7.30               h3509ff9_0    conda-forge
libspatialite             5.1.0               h1b4f908_12    conda-forge
libspral                  2024.05.08           h2b245be_4    conda-forge
libsqlite                 3.48.0               hee588c1_0    conda-forge
libssh2                   1.11.1               hf672d98_0    conda-forge
libstdcxx                 14.2.0               hc0a3c3a_1    conda-forge
libstdcxx-ng              14.2.0               h4852527_1    conda-forge
libsystemd0               257.2                h3dc2cb9_0    conda-forge
libthrift                 0.21.0               h0e7cc3e_0    conda-forge
libtiff                   4.7.0                hd9ff511_3    conda-forge
libutf8proc               2.9.0                hb9d3cd8_1    conda-forge
libuuid                   2.38.1               h0b41bf4_0    conda-forge
libvorbis                 1.3.7                h9c3ff4c_0    conda-forge
libwebp-base              1.5.0                h851e524_0    conda-forge
libxcb                    1.17.0               h8a09558_0    conda-forge
libxcrypt                 4.4.36               hd590300_1    conda-forge
libxkbcommon              1.7.0                h2c5496b_1    conda-forge
libxml2                   2.13.5               h8d12d68_1    conda-forge
libxslt                   1.1.39               h76b75d6_0    conda-forge
libzip                    1.11.2               h6991a6a_0    conda-forge
libzlib                   1.3.1                hb9d3cd8_2    conda-forge
linkify-it-py             2.0.3              pyhd8ed1ab_1    conda-forge
linopy                    0.3.11             pyhd8ed1ab_0    conda-forge
llvmlite                  0.43.0          py310h1a6248f_1    conda-forge
locket                    1.0.0              pyhd8ed1ab_0    conda-forge
lxml                      5.3.0           py310h6ee67d5_2    conda-forge
lz4                       4.3.3           py310h80b8a69_2    conda-forge
lz4-c                     1.10.0               h5888daf_1    conda-forge
lzo                       2.10              hd590300_1001    conda-forge
mamba                     2.0.5                h8871ed4_1    conda-forge
mapclassify               2.8.1              pyhd8ed1ab_1    conda-forge
markdown                  3.6                pyhd8ed1ab_0    conda-forge
markdown-it-py            3.0.0              pyhd8ed1ab_1    conda-forge
markupsafe                3.0.2           py310h89163eb_1    conda-forge
matplotlib                3.5.2           py310hff52083_1    conda-forge
matplotlib-base           3.5.2           py310h5701ce4_1    conda-forge
matplotlib-inline         0.1.7              pyhd8ed1ab_1    conda-forge
mdit-py-plugins           0.4.2              pyhd8ed1ab_1    conda-forge
mdurl                     0.1.2              pyhd8ed1ab_1    conda-forge
memory_profiler           0.61.0             pyhd8ed1ab_1    conda-forge
mercantile                1.2.1              pyhd8ed1ab_1    conda-forge
metis                     5.1.0             hd0bcaf9_1007    conda-forge
minizip                   4.0.7                h05a5f5f_3    conda-forge
mistune                   3.1.0              pyhd8ed1ab_0    conda-forge
mpfr                      4.2.1                h90cbb55_3    conda-forge
mpg123                    1.32.9               hc50e24c_0    conda-forge
msgpack-python            1.1.0           py310h3788b33_0    conda-forge
multipledispatch          0.6.0              pyhd8ed1ab_1    conda-forge
multiurl                  0.3.3              pyhd8ed1ab_1    conda-forge
multivolumefile           0.2.3              pyhd8ed1ab_1    conda-forge
mumps-include             5.7.3                ha770c72_6    conda-forge
mumps-seq                 5.7.3                h27a6a8b_0    conda-forge
munkres                   1.1.4              pyh9f0ad1d_0    conda-forge
mysql-common              9.0.1                h266115a_4    conda-forge
mysql-libs                9.0.1                he0572af_4    conda-forge
nbclient                  0.10.2             pyhd8ed1ab_0    conda-forge
nbconvert-core            7.16.5             pyhd8ed1ab_1    conda-forge
nbformat                  5.10.4             pyhd8ed1ab_1    conda-forge
ncurses                   6.5                  h2d0b736_2    conda-forge
nest-asyncio              1.6.0              pyhd8ed1ab_1    conda-forge
netcdf4                   1.7.2           nompi_py310h9f0ad05_101    conda-forge
networkx                  3.4                pyhd8ed1ab_0    conda-forge
nlohmann_json             3.11.3               he02047a_1    conda-forge
nodeenv                   1.9.1              pyhd8ed1ab_1    conda-forge
nomkl                     1.0                  h5ca1d4c_0    conda-forge
notebook-shim             0.2.4              pyhd8ed1ab_1    conda-forge
nspr                      4.36                 h5888daf_0    conda-forge
nss                       3.107                hdf54f9c_0    conda-forge
numba                     0.60.0          py310h5dc88bb_0    conda-forge
numexpr                   2.10.2          py310hdb6e06b_100    conda-forge
numpoly                   1.2.14             pyhd8ed1ab_0    conda-forge
numpy                     1.26.4          py310hb13e2d6_0    conda-forge
openjpeg                  2.5.3                h5fbd93e_0    conda-forge
openldap                  2.6.9                he970967_0    conda-forge
openpyxl                  3.1.5           py310h0999ad4_1    conda-forge
openssl                   3.4.0                h7b32b05_1    conda-forge
orc                       2.0.3                h12ee42a_2    conda-forge
overrides                 7.7.0              pyhd8ed1ab_1    conda-forge
packaging                 24.2               pyhd8ed1ab_2    conda-forge
pandas                    2.2.2           py310hf9f9076_1    conda-forge
pandocfilters             1.5.0              pyhd8ed1ab_0    conda-forge
panel                     1.5.5              pyhd8ed1ab_0    conda-forge
pango                     1.56.0               h861ebed_0    conda-forge
param                     2.2.0              pyhd8ed1ab_0    conda-forge
parso                     0.8.4              pyhd8ed1ab_1    conda-forge
partd                     1.4.2              pyhd8ed1ab_0    conda-forge
patsy                     1.0.1              pyhd8ed1ab_1    conda-forge
pcre2                     10.44                hba22ea6_2    conda-forge
pexpect                   4.9.0              pyhd8ed1ab_1    conda-forge
pickleshare               0.7.5           pyhd8ed1ab_1004    conda-forge
pillow                    11.1.0          py310h7e6dc6c_0    conda-forge
pip                       24.3.1             pyh8b19718_2    conda-forge
pixman                    0.44.2               h29eaf8c_0    conda-forge
pkgutil-resolve-name      1.3.10             pyhd8ed1ab_2    conda-forge
plac                      1.4.3              pyhd8ed1ab_1    conda-forge
platformdirs              4.3.6              pyhd8ed1ab_1    conda-forge
pluggy                    1.5.0              pyhd8ed1ab_1    conda-forge
ply                       3.11               pyhd8ed1ab_3    conda-forge
polars                    1.17.1          py310hc556931_1    conda-forge
poppler                   24.12.0              hd7b24de_2    conda-forge
poppler-data              0.4.12               hd8ed1ab_0    conda-forge
postgresql                17.2                 he05f9a2_1    conda-forge
powerplantmatching        0.6.1              pyhd8ed1ab_0    conda-forge
pre-commit                4.0.1              pyha770c72_1    conda-forge
progressbar2              4.5.0              pyhd8ed1ab_1    conda-forge
proj                      9.5.1                h0054346_0    conda-forge
prometheus_client         0.21.1             pyhd8ed1ab_0    conda-forge
prompt-toolkit            3.0.48             pyha770c72_1    conda-forge
protobuf                  5.28.3          py310hf71b8c6_0    conda-forge
psutil                    6.1.1           py310ha75aee5_0    conda-forge
pthread-stubs             0.4               hb9d3cd8_1002    conda-forge
ptyprocess                0.7.0              pyhd8ed1ab_1    conda-forge
pulp                      2.7.0           py310hff52083_1    conda-forge
pulseaudio-client         17.0                 hb77b528_0    conda-forge
pure_eval                 0.2.3              pyhd8ed1ab_1    conda-forge
py-cpuinfo                9.0.0              pyhd8ed1ab_1    conda-forge
py7zr                     0.22.0             pyhd8ed1ab_1    conda-forge
pyarrow                   19.0.0          py310hff52083_0    conda-forge
pyarrow-core              19.0.0          py310hac404ae_0_cpu    conda-forge
pybcj                     1.0.3           py310ha75aee5_0    conda-forge
pycountry                 24.6.1             pyhd8ed1ab_0    conda-forge
pycparser                 2.22               pyh29332c3_1    conda-forge
pycryptodomex             3.21.0          py310ha75aee5_0    conda-forge
pyct                      0.5.0              pyhd8ed1ab_1    conda-forge
pydoe2                    1.3.0              pyhd8ed1ab_1    conda-forge
pygments                  2.19.1             pyhd8ed1ab_0    conda-forge
pyogrio                   0.10.0          py310h63d473e_0    conda-forge
pyomo                     6.6.1           py310hc6cd4ac_0    conda-forge
pyparsing                 3.2.1              pyhd8ed1ab_0    conda-forge
pyppmd                    1.1.0           py310hf71b8c6_1    conda-forge
pyproj                    3.7.0           py310h2e9f774_0    conda-forge
pypsa                     0.28.0             pyhd8ed1ab_0    conda-forge
pyqt                      5.15.9          py310h04931ad_5    conda-forge
pyqt5-sip                 12.12.2         py310hc6cd4ac_5    conda-forge
pyscipopt                 5.2.1           py310hf71b8c6_0    conda-forge
pyshp                     2.3.1              pyhd8ed1ab_1    conda-forge
pysocks                   1.7.1              pyha55dd90_7    conda-forge
pytables                  3.10.1          py310h1affd9f_4    conda-forge
pytest                    8.3.4              pyhd8ed1ab_1    conda-forge
python                    3.10.16         he725a3c_1_cpython    conda-forge
python-dateutil           2.9.0.post0        pyhff2d567_1    conda-forge
python-fastjsonschema     2.21.1             pyhd8ed1ab_0    conda-forge
python-json-logger        2.0.7              pyhd8ed1ab_0    conda-forge
python-tzdata             2024.2             pyhd8ed1ab_1    conda-forge
python-utils              3.9.1              pyhff2d567_1    conda-forge
python_abi                3.10                    5_cp310    conda-forge
pytz                      2024.2             pyhd8ed1ab_1    conda-forge
pyviz_comms               3.0.4              pyhd8ed1ab_1    conda-forge
pyyaml                    6.0.2           py310ha75aee5_1    conda-forge
pyzmq                     26.2.0          py310h71f11fc_3    conda-forge
pyzstd                    0.16.2          py310ha39cb0e_0    conda-forge
qt-main                   5.15.15              hc3cb62f_2    conda-forge
rasterio                  1.3.11          py310h6ee478c_2    conda-forge
re2                       2024.07.02           h9925aae_2    conda-forge
readline                  8.2                  h8228510_1    conda-forge
referencing               0.36.1             pyhd8ed1ab_0    conda-forge
reproc                    14.2.5.post0         hb9d3cd8_0    conda-forge
reproc-cpp                14.2.5.post0         h5888daf_0    conda-forge
requests                  2.32.3             pyhd8ed1ab_1    conda-forge
reretry                   0.11.8             pyhd8ed1ab_1    conda-forge
reverse-geocode           1.4.1              pyhd8ed1ab_0    conda-forge
rfc3339-validator         0.1.4              pyhd8ed1ab_1    conda-forge
rfc3986-validator         0.1.1              pyh9f0ad1d_0    conda-forge
rioxarray                 0.18.1             pyhd8ed1ab_0    conda-forge
rpds-py                   0.22.3          py310h505e2c1_0    conda-forge
ruamel.yaml               0.17.26         py310h2372a71_0    conda-forge
ruamel.yaml.clib          0.2.8           py310ha75aee5_1    conda-forge
s2n                       1.5.11               h072c03f_0    conda-forge
scikit-learn              1.6.1           py310h27f47ee_0    conda-forge
scip                      9.2.0                hfba8a23_1    conda-forge
scipy                     1.15.1          py310hfa6ec8c_0    conda-forge
seaborn                   0.13.2               hd8ed1ab_3    conda-forge
seaborn-base              0.13.2             pyhd8ed1ab_3    conda-forge
send2trash                1.8.3              pyh0d859eb_1    conda-forge
setuptools                75.8.0             pyhff2d567_0    conda-forge
shapely                   2.0.6           py310had3dfd6_2    conda-forge
simdjson                  3.11.6               h84d6215_0    conda-forge
sip                       6.7.12          py310hc6cd4ac_0    conda-forge
six                       1.17.0             pyhd8ed1ab_0    conda-forge
smart_open                7.1.0              pyhd8ed1ab_0    conda-forge
smmap                     5.0.0              pyhd8ed1ab_0    conda-forge
snakemake-minimal         7.32.4             pyhdfd78af_1    bioconda
snappy                    1.2.1                h8bd8927_1    conda-forge
sniffio                   1.3.1              pyhd8ed1ab_1    conda-forge
snuggs                    1.4.7              pyhd8ed1ab_2    conda-forge
sortedcontainers          2.4.0              pyhd8ed1ab_0    conda-forge
soupsieve                 2.5                pyhd8ed1ab_1    conda-forge
spdlog                    1.15.0               h10c9db5_0    conda-forge
sqlite                    3.48.0               h9eae976_0    conda-forge
stack_data                0.6.3              pyhd8ed1ab_1    conda-forge
statsmodels               0.14.4          py310hf462985_0    conda-forge
stopit                    1.1.2              pyhd8ed1ab_1    conda-forge
tabulate                  0.9.0              pyhd8ed1ab_2    conda-forge
tbb                       2022.0.0             hceb3a55_0    conda-forge
tblib                     3.0.0              pyhd8ed1ab_1    conda-forge
terminado                 0.18.1             pyh0d859eb_0    conda-forge
texttable                 1.7.0              pyhd8ed1ab_1    conda-forge
threadpoolctl             3.5.0              pyhc1e730c_0    conda-forge
throttler                 1.2.2              pyhd8ed1ab_0    conda-forge
tiledb                    2.27.0               h759be4f_4    conda-forge
tinycss2                  1.4.0              pyhd8ed1ab_0    conda-forge
tk                        8.6.13          noxft_h4845f30_101    conda-forge
toml                      0.10.2             pyhd8ed1ab_1    conda-forge
tomli                     2.2.1              pyhd8ed1ab_1    conda-forge
toolz                     1.0.0              pyhd8ed1ab_1    conda-forge
toposort                  1.10               pyhd8ed1ab_1    conda-forge
tornado                   6.4.2           py310ha75aee5_0    conda-forge
tqdm                      4.67.1             pyhd8ed1ab_1    conda-forge
traitlets                 5.14.3             pyhd8ed1ab_1    conda-forge
tsam                      2.3.6              pyhd8ed1ab_0    conda-forge
types-python-dateutil     2.9.0.20241206     pyhd8ed1ab_0    conda-forge
typing-extensions         4.12.2               hd8ed1ab_1    conda-forge
typing_extensions         4.12.2             pyha770c72_1    conda-forge
typing_utils              0.1.0              pyhd8ed1ab_1    conda-forge
tzcode                    2025a                hb9d3cd8_0    conda-forge
tzdata                    2025a                h78e105d_0    conda-forge
uc-micro-py               1.0.3              pyhd8ed1ab_1    conda-forge
ukkonen                   1.0.1           py310h3788b33_5    conda-forge
unicodedata2              16.0.0          py310ha75aee5_0    conda-forge
unidecode                 1.3.8              pyh29332c3_1    conda-forge
uri-template              1.3.0              pyhd8ed1ab_1    conda-forge
uriparser                 0.9.8                hac33072_0    conda-forge
urllib3                   2.3.0              pyhd8ed1ab_0    conda-forge
validators                0.34.0             pyhd8ed1ab_1    conda-forge
virtualenv                20.29.1            pyhd8ed1ab_0    conda-forge
wcwidth                   0.2.13             pyhd8ed1ab_1    conda-forge
webcolors                 24.11.1            pyhd8ed1ab_0    conda-forge
webencodings              0.5.1              pyhd8ed1ab_3    conda-forge
websocket-client          1.8.0              pyhd8ed1ab_1    conda-forge
wheel                     0.45.1             pyhd8ed1ab_1    conda-forge
wrapt                     1.17.2          py310ha75aee5_0    conda-forge
xarray                    2023.11.0          pyhd8ed1ab_0    conda-forge
xcb-util                  0.4.1                hb711507_2    conda-forge
xcb-util-image            0.4.0                hb711507_2    conda-forge
xcb-util-keysyms          0.4.1                hb711507_0    conda-forge
xcb-util-renderutil       0.3.10               hb711507_0    conda-forge
xcb-util-wm               0.4.2                hb711507_0    conda-forge
xerces-c                  3.2.5                h988505b_2    conda-forge
xkeyboard-config          2.43                 hb9d3cd8_0    conda-forge
xlrd                      2.0.1              pyhd8ed1ab_3    conda-forge
xorg-libice               1.1.2                hb9d3cd8_0    conda-forge
xorg-libsm                1.2.5                he73a12e_0    conda-forge
xorg-libx11               1.8.10               h4f16b4b_1    conda-forge
xorg-libxau               1.0.12               hb9d3cd8_0    conda-forge
xorg-libxdamage           1.1.6                hb9d3cd8_0    conda-forge
xorg-libxdmcp             1.1.5                hb9d3cd8_0    conda-forge
xorg-libxext              1.3.6                hb9d3cd8_0    conda-forge
xorg-libxfixes            6.0.1                hb9d3cd8_0    conda-forge
xorg-libxrender           0.9.12               hb9d3cd8_0    conda-forge
xorg-libxxf86vm           1.1.6                hb9d3cd8_0    conda-forge
xyzservices               2025.1.0           pyhd8ed1ab_0    conda-forge
xz                        5.6.3                hbcc6ac9_1    conda-forge
xz-gpl-tools              5.6.3                hbcc6ac9_1    conda-forge
xz-tools                  5.6.3                hb9d3cd8_1    conda-forge
yaml                      0.2.5                h7f98852_2    conda-forge
yaml-cpp                  0.8.0                h59595ed_0    conda-forge
yte                       1.5.5              pyha770c72_0    conda-forge
zeromq                    4.3.5                h3b0a872_7    conda-forge
zict                      3.0.0              pyhd8ed1ab_1    conda-forge
zipfile-deflate64         0.2.0           py310h2372a71_4    conda-forge
zipp                      3.21.0             pyhd8ed1ab_1    conda-forge
zlib                      1.3.1                hb9d3cd8_2    conda-forge
zlib-ng                   2.2.3                h7955e40_0    conda-forge
zstandard                 0.23.0          py310ha39cb0e_1    conda-forge
zstd                      1.5.6                ha6fb4c9_0    conda-forge
@GbotemiB GbotemiB added the bug Something isn't working label Jan 20, 2025
@davide-f
Copy link
Member

Hello @GbotemiB , this is a new error.
As the environment has been changed, I'm wondering if you have also reused past files already created with the previous model version.
I remember that the newer version of PyPSA have additional checks and constraints on the columns and this issue may relate to that, especially if past results have been reused.

In particular, the line/cable tag in simplify network is likely not relevant for the modelling, yet the check is still performed.
The hunch is that that the "tag_type" column is no longer needed and the additional checks on this column lead to issues.
Can you drop that column and test if the code works?

@GbotemiB
Copy link
Collaborator Author

@davide-f, I tried to not reuse past files. I also created a new environment. I will try out your suggestions and revert back.

@mohmJR
Copy link

mohmJR commented Jan 20, 2025

Hello, same issue is happining when running the model for Saudi Arabia.

@davide-f
Copy link
Member

davide-f commented Jan 20, 2025

Welcome @mohmJR :D great for your interest and we welcome you in the initiative, we have weekly meetings :)

@GbotemiB and @mohmJR , maybe a fix could be to drop "tag_area" from

LINES_COLUMNS = [
"line_id",
"circuits",
"tag_type",
"voltage",
"bus0",
"bus1",
"length",
"underground",
.

Maybe that solves the issue

@ekatef
Copy link
Member

ekatef commented Jan 20, 2025

Hey @GbotemiB @mohmJR, thanks a lot for sharing! Really helpful to get the model up and running, and very much appreciated.

Agree with @davide-f that a likely reason is some specifics of the power grid data, and dropping tag_type may be a good solutions as this field allows to distinguish between overhead and underground transmission lines (line and cable, respectively) which is not relevant for the network model.

Unfortunately, the error is poorly reproducible due to some specifics of the clustering algorithm we are using. @GbotemiB @mohmJR if you would have an opportunity to try this fix and report the results it would be incredibly helpful.

@ekatef
Copy link
Member

ekatef commented Jan 20, 2025

To make the whole picture even more interesting, I'm getting another error when running the model for Saudi Arabia. The workflow claims namely that frequency values do not agree for some lines (the full listing is attached bellow). That doesn't feel right, and probably there are some issues in the network model to be fixed. Not sure however if this mismatch is really meaningful for the grid model which we are using in the optimisation runs.

I also suspect that the similar issue may arise also for other countries as the updated PyPSA version in much more restrictive towards the data structure. To have a more general fix, it could be a geed idea to drop all the columns from n.lines and n.buses except those which are absolutely necessary.

Error listing

rule cluster_network:
    input: networks/SA/elec_s.nc, resources/SA/shapes/country_shapes.geojson, resources/SA/bus_regions/regions_onshore_elec_s.geojson, resources/SA/bus_regions/regions_offshore_elec_s.geojson, resources/SA/shapes/gadm_shapes.geojson, resources/SA/costs_2030.csv
    output: networks/SA/elec_s_10.nc, resources/SA/bus_regions/regions_onshore_elec_s_10.geojson, resources/SA/bus_regions/regions_offshore_elec_s_10.geojson, resources/SA/bus_regions/busmap_elec_s_10.csv, resources/SA/bus_regions/linemap_elec_s_10.csv
    log: logs/SA/cluster_network/elec_s_10.log
    jobid: 4
    benchmark: benchmarks/SA/cluster_network/elec_s_10
    reason: Missing output files: networks/SA/elec_s_10.nc; Input files updated by another job: networks/SA/elec_s.nc, resources/SA/bus_regions/regions_offshore_elec_s.geojson, resources/SA/bus_regions/regions_onshore_elec_s.geojson
    wildcards: simpl=, clusters=10
    resources: tmpdir=/var/folders/qn/vpndfm21795ckkq89np1ckp40000gn/T, mem_mb=3000, mem_mib=2862

INFO:pypsa.io:Imported network elec_s.nc has buses, carriers, generators, lines, loads
Overwriting marginal_cost of Index(['solar', 'onwind', 'offwind', 'hydro', 'H2', 'electrolysis',
       'fuel cell', 'battery', 'battery inverter'],
      dtype='object') to [0.01  0.015 0.015 0.    0.    0.    0.    0.    0.   ]
INFO:add_electricity:Overwriting marginal_cost of Index(['solar', 'onwind', 'offwind', 'hydro', 'H2', 'electrolysis',
       'fuel cell', 'battery', 'battery inverter'],
      dtype='object') to [0.01  0.015 0.015 0.    0.    0.    0.    0.    0.   ]
ERROR:_helpers:An error happened in module '~/python3.10/site-packages/pypsa/clustering/spatial.py', function 'consense': In Line cluster tag_frequency, the values of attribute tag_frequency do not agree:
Line
317    50.0
439    60.0
498    60.0
499    60.0
Name: tag_frequency, dtype: float64
Traceback (most recent call last):
  File "/pypsa-earth/.snakemake/scripts/tmp56nf9s9u.cluster_network.py", line 759, in <module>
    clustering = clustering_for_n_clusters(
  File "/pypsa-earth/.snakemake/scripts/tmp56nf9s9u.cluster_network.py", line 609, in clustering_for_n_clusters
    clustering = get_clustering_from_busmap(
  File "~/python3.10/site-packages/pypsa/clustering/spatial.py", line 473, in get_clustering_from_busmap
    lines, lines_t, linemap = aggregatelines(
  File "~/python3.10/site-packages/pypsa/clustering/spatial.py", line 416, in aggregatelines
    df = df.groupby(grouper).agg(static_strategies)
  File "~/python3.10/site-packages/pandas/core/groupby/generic.py", line 1432, in aggregate
    result = op.agg()
  File "~/python3.10/site-packages/pandas/core/apply.py", line 190, in agg
    return self.agg_dict_like()
  File "~/python3.10/site-packages/pandas/core/apply.py", line 423, in agg_dict_like
    return self.agg_or_apply_dict_like(op_name="agg")
  File "~/python3.10/site-packages/pandas/core/apply.py", line 1608, in agg_or_apply_dict_like
    result_index, result_data = self.compute_dict_like(
  File "~/python3.10/site-packages/pandas/core/apply.py", line 496, in compute_dict_like
    results = [
  File "~/python3.10/site-packages/pandas/core/apply.py", line 497, in <listcomp>
    getattr(obj._gotitem(key, ndim=1), op_name)(how, **kwargs)
  File "~/python3.10/site-packages/pandas/core/groupby/generic.py", line 294, in aggregate
    return self._python_agg_general(func, *args, **kwargs)
  File "~/python3.10/site-packages/pandas/core/groupby/generic.py", line 327, in _python_agg_general
    result = self._grouper.agg_series(obj, f)
  File "~/python3.10/site-packages/pandas/core/groupby/ops.py", line 864, in agg_series
    result = self._aggregate_series_pure_python(obj, func)
  File "~/python3.10/site-packages/pandas/core/groupby/ops.py", line 885, in _aggregate_series_pure_python
    res = func(group)
  File "~/python3.10/site-packages/pandas/core/groupby/generic.py", line 324, in <lambda>
    f = lambda x: func(x, *args, **kwargs)
  File "~/python3.10/site-packages/pypsa/clustering/spatial.py", line 135, in consense
    assert (x == v).all() or x.isnull().all(), (
AssertionError: In Line cluster tag_frequency, the values of attribute tag_frequency do not agree:
Line
317    50.0
439    60.0
498    60.0
499    60.0
Name: tag_frequency, dtype: float64

@ekatef
Copy link
Member

ekatef commented Jan 21, 2025

Have drafted a possible solution in #1315. It works for the frequency-related error, but I can't test it for tag_area error due to a low reproducibility. Any additional inputs on that would be very much welcome.

@GbotemiB
Copy link
Collaborator Author

Hi @ekatef, thank you creating a possible solution. But just like you mentioned, reproducing the issue is also an issue. I encountered the error while running on cluster, I am running into a different error locally in add_electricity.

Here is the log to have an idea of what is going on.

Building DAG of jobs...
Using shell: /bin/bash
Provided cores: 10
Rules claiming more threads will be scaled down.
Job stats:
job                     count
--------------------  -------
add_electricity             1
add_extra_components        1
cluster_network             1
prepare_network             1
simplify_network            1
solve_all_networks          1
solve_network               1
total                       7

Select jobs to execute...

[Tue Jan 21 01:09:00 2025]
rule add_electricity:
    input: submodules/pypsa-earth/resources/US_2021/renewable_profiles/profile_hydro.nc, submodules/pypsa-earth/resources/US_2021/renewable_profiles/profile_onwind.nc, submodules/pypsa-earth/resources/US_2021/renewable_profiles/profile_offwind-ac.nc, submodules/pypsa-earth/resources/US_2021/renewable_profiles/profile_offwind-dc.nc, submodules/pypsa-earth/resources/US_2021/renewable_profiles/profile_solar.nc, submodules/pypsa-earth/resources/US_2021/renewable_profiles/profile_csp.nc, submodules/pypsa-earth/networks/US_2021/base.nc, submodules/pypsa-earth/resources/US_2021/costs_2030.csv, submodules/pypsa-earth/resources/US_2021/powerplants.csv, submodules/pypsa-earth/resources/US_2021/shapes/gadm_shapes.geojson, submodules/pypsa-earth/data/hydro_capacities.csv, submodules/pypsa-earth/resources/US_2021/demand_profiles.csv
    output: submodules/pypsa-earth/networks/US_2021/elec.nc
    log: submodules/pypsa-earth/logs/US_2021/add_electricity.log
    jobid: 6
    benchmark: submodules/pypsa-earth/benchmarks/US_2021/add_electricity
    reason: Missing output files: submodules/pypsa-earth/networks/US_2021/elec.nc; Updated input files: submodules/pypsa-earth/resources/US_2021/renewable_profiles/profile_offwind-dc.nc, submodules/pypsa-earth/resources/US_2021/costs_2030.csv, submodules/pypsa-earth/resources/US_2021/renewable_profiles/profile_csp.nc, submodules/pypsa-earth/resources/US_2021/shapes/gadm_shapes.geojson, submodules/pypsa-earth/resources/US_2021/demand_profiles.csv, submodules/pypsa-earth/resources/US_2021/renewable_profiles/profile_offwind-ac.nc, submodules/pypsa-earth/resources/US_2021/renewable_profiles/profile_onwind.nc, submodules/pypsa-earth/resources/US_2021/renewable_profiles/profile_solar.nc, submodules/pypsa-earth/networks/US_2021/base.nc, submodules/pypsa-earth/resources/US_2021/powerplants.csv, submodules/pypsa-earth/resources/US_2021/renewable_profiles/profile_hydro.nc
    resources: tmpdir=/var/folders/c3/657p__892k72qxh6r8fdkqsh0000gn/T, mem_mb=3000, mem_mib=2862

INFO:pypsa.io:Imported network base.nc has buses, lines, links, transformers
Overwriting marginal_cost of Index(['solar', 'onwind', 'offwind', 'hydro', 'H2', 'electrolysis',
       'fuel cell', 'battery', 'battery inverter'],
      dtype='object') to [0.01  0.015 0.015 0.    0.    0.    0.    0.    0.   ]
INFO:__main__:Overwriting marginal_cost of Index(['solar', 'onwind', 'offwind', 'hydro', 'H2', 'electrolysis',
       'fuel cell', 'battery', 'battery inverter'],
      dtype='object') to [0.01  0.015 0.015 0.    0.    0.    0.    0.    0.   ]
No renewables found in config entry `extendable_carriers`. In future versions, these have to be explicitly listed. Falling back to all renewables.
WARNING:__main__:No renewables found in config entry `extendable_carriers`. In future versions, these have to be explicitly listed. Falling back to all renewables.
Adding 12859 generators with capacities [GW] 
carrier
CCGT          320.68
OCGT          245.70
biomass         6.91
coal          205.45
geothermal      3.97
nuclear        99.44
oil            35.53
Name: p_nom, dtype: float64
INFO:__main__:Adding 12859 generators with capacities [GW] 
carrier
CCGT          320.68
OCGT          245.70
biomass         6.91
coal          205.45
geothermal      3.97
nuclear        99.44
oil            35.53
Name: p_nom, dtype: float64
Added connection cost of 0-0 Eur/MW/a to offwind-ac
INFO:__main__:Added connection cost of 0-0 Eur/MW/a to offwind-ac
Added connection cost of 0-173034 Eur/MW/a to offwind-dc
INFO:__main__:Added connection cost of 0-173034 Eur/MW/a to offwind-dc
Assuming max_hours=6 for hydro reservoirs in the countries: US
WARNING:__main__:Assuming max_hours=6 for hydro reservoirs in the countries: US
tech_colors for carriers ['csp', 'PHS'] not defined in config.
WARNING:__main__:tech_colors for carriers ['csp', 'PHS'] not defined in config.
INFO:pypsa.io:Exported network elec.nc has buses, links, lines, generators, transformers, loads, storage_units, carriers
ERROR:_helpers:An error happened in module '/Users/gbotemi/miniconda3/envs/pypsa-earth-linopy/lib/python3.10/site-packages/netCDF4/_netCDF4.cpython-310-darwin.so', function 'netCDF4._netCDF4._ensure_nc_success': NetCDF: HDF error
Traceback (most recent call last):
  File "/Users/gbotemi/Documents/code/PYPSA/US/efuels-supply-potentials/.snakemake/scripts/tmp4_nf2jmw.add_electricity.py", line 908, in <module>
    n.export_to_netcdf(snakemake.output[0])
  File "/Users/gbotemi/miniconda3/envs/pypsa-earth-linopy/lib/python3.10/site-packages/pypsa/io.py", line 733, in export_to_netcdf
    with ExporterNetCDF(path, compression, float32) as exporter:
  File "/Users/gbotemi/miniconda3/envs/pypsa-earth-linopy/lib/python3.10/site-packages/pypsa/io.py", line 72, in __exit__
    self.finish()
  File "/Users/gbotemi/miniconda3/envs/pypsa-earth-linopy/lib/python3.10/site-packages/pypsa/io.py", line 421, in finish
    self.ds.to_netcdf(self.path)
  File "/Users/gbotemi/miniconda3/envs/pypsa-earth-linopy/lib/python3.10/site-packages/xarray/core/dataset.py", line 2280, in to_netcdf
    return to_netcdf(  # type: ignore  # mypy cannot resolve the overloads:(
  File "/Users/gbotemi/miniconda3/envs/pypsa-earth-linopy/lib/python3.10/site-packages/xarray/backends/api.py", line 1259, in to_netcdf
    dump_to_store(
  File "/Users/gbotemi/miniconda3/envs/pypsa-earth-linopy/lib/python3.10/site-packages/xarray/backends/api.py", line 1306, in dump_to_store
    store.store(variables, attrs, check_encoding, writer, unlimited_dims=unlimited_dims)
  File "/Users/gbotemi/miniconda3/envs/pypsa-earth-linopy/lib/python3.10/site-packages/xarray/backends/common.py", line 356, in store
    self.set_variables(
  File "/Users/gbotemi/miniconda3/envs/pypsa-earth-linopy/lib/python3.10/site-packages/xarray/backends/common.py", line 398, in set_variables
    writer.add(source, target)
  File "/Users/gbotemi/miniconda3/envs/pypsa-earth-linopy/lib/python3.10/site-packages/xarray/backends/common.py", line 243, in add
    target[...] = source
  File "/Users/gbotemi/miniconda3/envs/pypsa-earth-linopy/lib/python3.10/site-packages/xarray/backends/netCDF4_.py", line 79, in __setitem__
    data[key] = value
  File "src/netCDF4/_netCDF4.pyx", line 5630, in netCDF4._netCDF4.Variable.__setitem__
  File "src/netCDF4/_netCDF4.pyx", line 5917, in netCDF4._netCDF4.Variable._put
  File "src/netCDF4/_netCDF4.pyx", line 2164, in netCDF4._netCDF4._ensure_nc_success
RuntimeError: NetCDF: HDF error
[Tue Jan 21 01:10:29 2025]
Error in rule add_electricity:
    jobid: 6
    input: submodules/pypsa-earth/resources/US_2021/renewable_profiles/profile_hydro.nc, submodules/pypsa-earth/resources/US_2021/renewable_profiles/profile_onwind.nc, submodules/pypsa-earth/resources/US_2021/renewable_profiles/profile_offwind-ac.nc, submodules/pypsa-earth/resources/US_2021/renewable_profiles/profile_offwind-dc.nc, submodules/pypsa-earth/resources/US_2021/renewable_profiles/profile_solar.nc, submodules/pypsa-earth/resources/US_2021/renewable_profiles/profile_csp.nc, submodules/pypsa-earth/networks/US_2021/base.nc, submodules/pypsa-earth/resources/US_2021/costs_2030.csv, submodules/pypsa-earth/resources/US_2021/powerplants.csv, submodules/pypsa-earth/resources/US_2021/shapes/gadm_shapes.geojson, submodules/pypsa-earth/data/hydro_capacities.csv, submodules/pypsa-earth/resources/US_2021/demand_profiles.csv
    output: submodules/pypsa-earth/networks/US_2021/elec.nc
    log: submodules/pypsa-earth/logs/US_2021/add_electricity.log (check log file(s) for error details)

RuleException:
CalledProcessError in file /Users/gbotemi/Documents/code/PYPSA/US/efuels-supply-potentials/submodules/pypsa-earth/Snakefile, line 551:
Command 'set -euo pipefail;  /Users/gbotemi/miniconda3/envs/pypsa-earth-linopy/bin/python3.10 /Users/gbotemi/Documents/code/PYPSA/US/efuels-supply-potentials/.snakemake/scripts/tmp4_nf2jmw.add_electricity.py' returned non-zero exit status 1.
  File "/Users/gbotemi/Documents/code/PYPSA/US/efuels-supply-potentials/submodules/pypsa-earth/Snakefile", line 551, in __rule_add_electricity
  File "/Users/gbotemi/miniconda3/envs/pypsa-earth-linopy/lib/python3.10/concurrent/futures/thread.py", line 58, in run
Removing output files of failed job add_electricity since they might be corrupted:
submodules/pypsa-earth/networks/US_2021/elec.nc
Shutting down, this might take some time.
Exiting because a job execution failed. Look above for error message
Complete log: .snakemake/log/2025-01-21T010855.996361.snakemake.log

@davide-f
Copy link
Member

This last error is actually weird... it seems an environment issue actually.
Have you tried using the pinned environment?

@GbotemiB
Copy link
Collaborator Author

This last error is actually weird... it seems an environment issue actually. Have you tried using the pinned environment?

I will try to use pinned environment.

@mohmJR
Copy link

mohmJR commented Jan 21, 2025

Thank you all for your help! @ekatef I have tried your modified codes and it seems working but I got error with solve_network rule as following :

Set parameter Username
Set parameter LicenseID to value 2612523
Academic license - for non-commercial use only - expires 2026-01-21
/home/mohammed/miniconda3/envs/pypsa-earth/lib/python3.10/site-packages/pulp/apis/gurobi_api.py:170: UserWarning: GUROBI error: Unknown parameter '_test'.
warnings.warn("GUROBI error: {}.".format(e))
Demand data folder: data/ssp2-2.6/2050/era5_2013, load path is ['data/ssp2-2.6/2050/era5_2013/Asia.nc'].
Expected files: Asia.nc
Building DAG of jobs...
Using shell: /usr/bin/bash
Provided cores: 1 (use --cores to define parallelism)
Rules claiming more threads will be scaled down.
Provided resources: mem=41700
Select jobs to execute...
Changing to shadow directory: /home/mohammed/pypsa-earth/.snakemake/shadow/tmpjh1bo71x
INFO:pypsa.io:Imported network elec_s_20_ec_lcopt_Co2L-1H.nc has buses, carriers, generators, global_constraints, lines, links, loads, storage_units, stores
setting CHP constraints
INFO:main:setting CHP constraints
no h2 export constraint set
INFO:main:no h2 export constraint set
INFO:linopy.model: Solve problem using Gurobi solver
INFO:linopy.model:Solver logs written to logs/solve_network/elec_s_20_ec_lcopt_Co2L-1H_solver.log.
INFO:linopy.model:Solver options:

  • threads: 4
  • method: 2
  • crossover: 0
  • BarConvTol: 1e-06
  • Seed: 123
  • AggFill: 0
  • PreDual: 0
  • GURO_PAR_BARDENSETHRESH: 200
    Set parameter Username
    INFO:gurobipy:Set parameter Username
    Set parameter LicenseID to value 2612523
    INFO:gurobipy:Set parameter LicenseID to value 2612523
    Academic license - for non-commercial use only - expires 2026-01-21
    INFO:gurobipy:Academic license - for non-commercial use only - expires 2026-01-21
    INFO:linopy.io:Writing objective.
    Writing constraints.: 100%|███████████████████████████████████████████████████████████████| 32/32 [00:47<00:00, 1.50s/it]
    Writing continuous variables.: 100%|██████████████████████████████████████████████████████| 14/14 [00:07<00:00, 1.77it/s]
    INFO:linopy.io: Writing time: 60.72s
    Read LP format model from file /tmp/linopy-problem-sy8uf_yn.lp
    INFO:gurobipy:Read LP format model from file /tmp/linopy-problem-sy8uf_yn.lp
    Reading time = 19.81 seconds
    INFO:gurobipy:Reading time = 19.81 seconds
    obj: 12299492 rows, 5720626 columns, 24843798 nonzeros
    INFO:gurobipy:obj: 12299492 rows, 5720626 columns, 24843798 nonzeros
    Set parameter Threads to value 4
    INFO:gurobipy:Set parameter Threads to value 4
    Set parameter Method to value 2
    INFO:gurobipy:Set parameter Method to value 2
    Set parameter Crossover to value 0
    INFO:gurobipy:Set parameter Crossover to value 0
    Set parameter BarConvTol to value 1e-06
    INFO:gurobipy:Set parameter BarConvTol to value 1e-06
    Set parameter Seed to value 123
    INFO:gurobipy:Set parameter Seed to value 123
    Set parameter AggFill to value 0
    INFO:gurobipy:Set parameter AggFill to value 0
    Set parameter PreDual to value 0
    INFO:gurobipy:Set parameter PreDual to value 0
    Set parameter GURO_PAR_BARDENSETHRESH to value 200
    INFO:gurobipy:Set parameter GURO_PAR_BARDENSETHRESH to value 200
    Set parameter LogFile to value "logs/solve_network/elec_s_20_ec_lcopt_Co2L-1H_solver.log"
    INFO:gurobipy:Set parameter LogFile to value "logs/solve_network/elec_s_20_ec_lcopt_Co2L-1H_solver.log"
    Gurobi Optimizer version 12.0.0 build v12.0.0rc1 (linux64 - "Ubuntu 22.04.3 LTS")
    INFO:gurobipy:Gurobi Optimizer version 12.0.0 build v12.0.0rc1 (linux64 - "Ubuntu 22.04.3 LTS")

INFO:gurobipy:
CPU model: 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz, instruction set [SSE2|AVX|AVX2|AVX512]
INFO:gurobipy:CPU model: 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz, instruction set [SSE2|AVX|AVX2|AVX512]
Thread count: 4 physical cores, 8 logical processors, using up to 4 threads
INFO:gurobipy:Thread count: 4 physical cores, 8 logical processors, using up to 4 threads

INFO:gurobipy:
Non-default parameters:
INFO:gurobipy:Non-default parameters:
Method 2
INFO:gurobipy:Method 2
BarConvTol 1e-06
INFO:gurobipy:BarConvTol 1e-06
Crossover 0
INFO:gurobipy:Crossover 0
AggFill 0
INFO:gurobipy:AggFill 0
PreDual 0
INFO:gurobipy:PreDual 0
Seed 123
INFO:gurobipy:Seed 123
Threads 4
INFO:gurobipy:Threads 4
GURO_PAR_BARDENSETHRESH 200
INFO:gurobipy:GURO_PAR_BARDENSETHRESH 200

INFO:gurobipy:
Optimize a model with 12299492 rows, 5720626 columns and 24843798 nonzeros
INFO:gurobipy:Optimize a model with 12299492 rows, 5720626 columns and 24843798 nonzeros
Model fingerprint: 0x36331e98
INFO:gurobipy:Model fingerprint: 0x36331e98
Coefficient statistics:
INFO:gurobipy:Coefficient statistics:
Matrix range [1e-03, 2e+02]
INFO:gurobipy: Matrix range [1e-03, 2e+02]
Objective range [9e-03, 7e+05]
INFO:gurobipy: Objective range [9e-03, 7e+05]
Bounds range [7e+09, 7e+09]
INFO:gurobipy: Bounds range [7e+09, 7e+09]
RHS range [1e-01, 1e+09]
INFO:gurobipy: RHS range [1e-01, 1e+09]
Warning: Model contains large bounds
INFO:gurobipy:Warning: Model contains large bounds
Consider reformulating model or setting NumericFocus parameter
INFO:gurobipy: Consider reformulating model or setting NumericFocus parameter
to avoid numerical issues.
INFO:gurobipy: to avoid numerical issues.
Presolve removed 6298905 rows and 569452 columns (presolve time = 5s)...
INFO:gurobipy:Presolve removed 6298905 rows and 569452 columns (presolve time = 5s)...
Presolve removed 6824535 rows and 1095082 columns (presolve time = 11s)...
INFO:gurobipy:Presolve removed 6824535 rows and 1095082 columns (presolve time = 11s)...
Presolve removed 6824535 rows and 1095082 columns (presolve time = 15s)...
INFO:gurobipy:Presolve removed 6824535 rows and 1095082 columns (presolve time = 15s)...
Not cleaning up /home/mohammed/pypsa-earth/.snakemake/shadow/tmpjh1bo71x/.snakemake/scripts/tmpz20f_2d4.solve_network.py
[Tue Jan 21 18:08:05 2025]
Error in rule solve_network:
jobid: 0
input: /home/mohammed/pypsa-earth/data/override_component_attrs, networks/elec_s_20_ec_lcopt_Co2L-1H.nc
output: results/networks/elec_s_20_ec_lcopt_Co2L-1H.nc
log: logs/solve_network/elec_s_20_ec_lcopt_Co2L-1H_solver.log, logs/solve_network/elec_s_20_ec_lcopt_Co2L-1H_python.log (check log file(s) for error details)

RuleException:
CalledProcessError in file /home/mohammed/pypsa-earth/Snakefile, line 841:
Command 'set -euo pipefail; /home/mohammed/miniconda3/envs/pypsa-earth/bin/python3.10 /home/mohammed/pypsa-earth/.snakemake/shadow/tmpjh1bo71x/.snakemake/scripts/tmpz20f_2d4.solve_network.py' died with <Signals.SIGKILL: 9>.
File "/home/mohammed/pypsa-earth/Snakefile", line 841, in __rule_solve_network
File "/home/mohammed/miniconda3/envs/pypsa-earth/lib/python3.10/concurrent/futures/thread.py", line 58, in run
Shutting down, this might take some time.
Exiting because a job execution failed. Look above for error message
Shutting down, this might take some time.
Exiting because a job execution failed. Look above for error message
Complete log: .snakemake/log/2025-01-21T174740.805052.snakemake.log

@ekatef
Copy link
Member

ekatef commented Jan 21, 2025

Thank you all for your help! @ekatef I have tried your modified codes and it seems working but I got error with solve_network rule as following :

Set parameter Username Set parameter LicenseID to value 2612523 Academic license - for non-commercial use only - expires 2026-01-21

@mohmJR Thank you so much for updating the status. The error in solve_network is most likely caused by too high of RAM requirements of the optimisation run: Signals.SIGKILL: 9 usually means that the process has been terminated by the operation system due to lack of available memory. You can try to fix it decreasing a number of clusters or applying temporal resolution aggregation (e.g. using 24H instead of 1H).

@davide-f
Copy link
Member

davide-f commented Feb 2, 2025

This last error is actually weird... it seems an environment issue actually. Have you tried using the pinned environment?

I will try to use pinned environment.

Just to understand, is this issue still alive?

@GbotemiB
Copy link
Collaborator Author

GbotemiB commented Feb 2, 2025

The issue has been fixed somehow, as the error no longer appears after running with latest commit.

@GbotemiB GbotemiB closed this as completed Feb 2, 2025
@GbotemiB
Copy link
Collaborator Author

GbotemiB commented Feb 2, 2025

Thank you @davide-f @ekatef

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants