Skip to content

Bug report: tests fail locally with Pyomo and Cbc #436

@elenya-grant

Description

@elenya-grant

Cbc version error with dispatch for local runs

When I run tests locally, any test that uses Pyomo fails because of a cbc error. I've followed installation instructions and am not sure what causes this issue. Tests pass on GitHub actions but fail on my machine.

How to reproduce

  1. create environment using dependency information below or follow install instructions in README.md
  2. run pytest tests/hopp/test_custom_financial.py::test_hybrid_detailed_pv_with_wind_storage_dispatch

Relevant output

   pyomo.common.errors.ApplicationError: Solver (cbc) did not exit normally

   ../../../opt/anaconda3/envs/hopp_v4/lib/python3.11/site-packages/pyomo/opt/base/solvers.py:628: ApplicationError

   pyomo.opt:solvers.py:620 Solver (cbc) returned non-zero return code (-6)

System Information

  • OS: macOS Ventura 13.7.2
  • Python version: 3.11.11
  • HOPP version: 3.0
    • Installed from source using an editable installation with developer tools: pip install -e .[develop]
    • Commit hash: 38552ed
    • develop branch

Relevant library versions

Below is the environment file for my conda environment.

name: hopp_v4
channels:
  - conda-forge
  - defaults
dependencies:
  - bzip2=1.0.8=hfdf4475_7
  - ca-certificates=2025.1.31=h8857fd0_0
  - coin-or-cbc=2.10.8=hc8a182d_0
  - coin-or-cgl=0.60.9=h5c63661_0
  - coin-or-clp=1.17.10=hf05e7e8_0
  - coin-or-osi=0.108.11=h8c189bd_1
  - coin-or-utils=2.11.12=h95c8798_1
  - glpk=5.0=h3cb5acd_0
  - gmp=6.3.0=hf036a51_2
  - libblas=3.9.0=30_h7f60823_openblas
  - libcblas=3.9.0=30_hff6cab4_openblas
  - libcxx=19.1.7=hf95d169_0
  - libexpat=2.6.4=h240833e_0
  - libffi=3.4.6=h281671d_0
  - libgfortran=5.0.0=13_2_0_h97931a8_3
  - libgfortran5=13.2.0=h2873a65_3
  - liblapack=3.9.0=30_h236ab99_openblas
  - liblapacke=3.9.0=30_h85686d2_openblas
  - liblzma=5.6.4=hd471939_0
  - libopenblas=0.3.29=openmp_hbf64a52_0
  - libsqlite=3.48.0=hdb6dae5_1
  - libzlib=1.3.1=hd23fc13_2
  - llvm-openmp=19.1.7=ha54dae1_0
  - ncurses=6.5=h0622a9a_3
  - openssl=3.4.1=hc426f3f_0
  - pip=25.0.1=pyh8b19718_0
  - python=3.11.11=h9ccd52b_1_cpython
  - readline=8.2=h9e318b2_1
  - setuptools=75.8.0=pyhff2d567_0
  - tk=8.6.13=h1abcd95_1
  - wheel=0.45.1=pyhd8ed1ab_1
  - pip:
    - accessible-pygments==0.0.5
    - alabaster==0.7.16
    - appnope==0.1.4
    - appscript==1.3.0
    - asttokens==3.0.0
    - attrs==25.1.0
    - babel==2.17.0
    - beautifulsoup4==4.13.3
    - certifi==2025.1.31
    - cffi==1.17.1
    - charset-normalizer==3.4.1
    - click==8.1.8
    - coloredlogs==15.0.1
    - comm==0.2.2
    - contourpy==1.3.1
    - cycler==0.12.1
    - cython==3.0.12
    - debugpy==1.8.12
    - decorator==5.1.1
    - dill==0.3.9
    - docutils==0.20.1
    - et-xmlfile==2.0.0
    - executing==2.2.0
    - fastjsonschema==2.21.1
    - fastkml==0.12
    - flexcache==0.3
    - flexparser==0.4
    - floris==4.2.2
    - fonttools==4.56.0
    - future==1.0.0
    - global-land-mask==1.0.0
    - greenlet==3.1.1
    - h3==4.2.1
    - h5py==3.13.0
    - h5pyd==0.18.0
    - hopp==3.1.1
    - humanfriendly==10.0
    - hybridbosse==0.9.6
    - idna==3.10
    - imagesize==1.4.1
    - importlib-metadata==8.6.1
    - importlib-resources==6.5.2
    - iniconfig==2.0.0
    - ipykernel==6.29.5
    - ipython==8.32.0
    - jedi==0.19.2
    - jinja2==3.1.5
    - joblib==1.4.2
    - jsonschema==4.23.0
    - jsonschema-specifications==2024.10.1
    - jupyter-book==1.0.3
    - jupyter-cache==1.0.1
    - jupyter-client==8.6.3
    - jupyter-core==5.7.2
    - kiwisolver==1.4.8
    - latexcodec==3.0.0
    - lcoe==0.3.2
    - linkify-it-py==2.0.3
    - lxml==5.3.1
    - markdown-it-py==3.0.0
    - markupsafe==3.0.2
    - matplotlib==3.10.0
    - matplotlib-inline==0.1.7
    - mdit-py-plugins==0.4.2
    - mdurl==0.1.2
    - multiprocess==0.70.17
    - multiprocessing-on-dill==3.5.0a4
    - myst-nb==1.2.0
    - myst-parser==2.0.0
    - narwhals==1.27.1
    - nbclient==0.10.2
    - nbformat==5.10.4
    - nest-asyncio==1.6.0
    - nrel-pysam==6.0.1
    - nrel-rex==0.2.97
    - numexpr==2.10.2
    - numpy==1.26.4
    - numpy-financial==1.0.0
    - openpyxl==3.1.5
    - packaging==24.2
    - pandas==2.2.3
    - parso==0.8.4
    - pathos==0.3.3
    - pexpect==4.9.0
    - pillow==11.1.0
    - pint==0.24.4
    - platformdirs==4.3.6
    - plotly==6.0.0
    - pluggy==1.5.0
    - ply==3.11
    - pockets==0.9.1
    - pox==0.3.5
    - ppft==1.7.6.9
    - profast==1.0.5
    - prompt-toolkit==3.0.50
    - psutil==7.0.0
    - ptyprocess==0.7.0
    - pure-eval==0.2.3
    - pvmismatch==4.1
    - pyaml==25.1.0
    - pyarrow==19.0.0
    - pybtex==0.24.0
    - pybtex-docutils==1.0.3
    - pycparser==2.22
    - pydata-sphinx-theme==0.16.1
    - pydoe2==1.3.0
    - pygeoif==0.7
    - pygments==2.19.1
    - pyjwt==2.10.1
    - pyomo==6.8.2
    - pyparsing==3.2.1
    - pyproj==3.7.1
    - pysolar==0.13
    - pytest==8.3.4
    - pytest-dependency==0.6.0
    - pytest-subtests==0.14.1
    - python-dateutil==2.9.0.post0
    - python-dotenv==1.0.1
    - python-rapidjson==1.20
    - pytz==2025.1
    - pyyaml==6.0.2
    - pyyaml-include==1.4.1
    - pyzmq==26.2.1
    - rainflow==3.2.0
    - referencing==0.36.2
    - requests==2.32.3
    - requests-unixsocket==0.3.0
    - responses==0.25.6
    - rpds-py==0.22.3
    - scikit-learn==1.6.1
    - scikit-optimize==0.10.2
    - scipy==1.15.2
    - shapely==2.0.7
    - six==1.17.0
    - snowballstemmer==2.2.0
    - soupsieve==2.6
    - sphinx==7.4.7
    - sphinx-book-theme==1.1.3
    - sphinx-comments==0.0.3
    - sphinx-copybutton==0.5.2
    - sphinx-design==0.6.1
    - sphinx-external-toc==1.0.1
    - sphinx-jupyterbook-latex==1.0.0
    - sphinx-multitoc-numbering==0.1.3
    - sphinx-thebe==0.3.1
    - sphinx-togglebutton==0.3.2
    - sphinxcontrib-applehelp==2.0.0
    - sphinxcontrib-bibtex==2.6.3
    - sphinxcontrib-devhelp==2.0.0
    - sphinxcontrib-htmlhelp==2.1.0
    - sphinxcontrib-jsmath==1.0.1
    - sphinxcontrib-napoleon==0.7
    - sphinxcontrib-qthelp==2.0.0
    - sphinxcontrib-serializinghtml==2.0.0
    - sqlalchemy==2.0.38
    - stack-data==0.6.3
    - tabulate==0.9.0
    - threadpoolctl==3.5.0
    - timezonefinder==6.5.8
    - toml==0.10.2
    - tornado==6.4.2
    - traitlets==5.14.3
    - turbine-models==1.0.0
    - typing-extensions==4.12.2
    - tzdata==2025.1
    - uc-micro-py==1.0.3
    - urllib3==2.3.0
    - utm==0.8.0
    - wcwidth==0.2.13
    - xlwings==0.33.9
    - zipp==3.21.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions