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

Test failure with Scipy 1.13.0rc1 #3156

Closed
swryan opened this issue Mar 21, 2024 · 1 comment · Fixed by #3257
Closed

Test failure with Scipy 1.13.0rc1 #3156

swryan opened this issue Mar 21, 2024 · 1 comment · Fixed by #3257
Assignees
Labels

Comments

@swryan
Copy link
Contributor

swryan commented Mar 21, 2024

Description

test_newton_with_cscjac_under_cs fails with Scipy 1.13.0 release candidate.

Example

(latest) swryan@Chimaera:~/dev/OpenMDAO/openmdao/core/tests$ testflo -vs test_approx_derivs.py:TestGroupComplexStep.test_newton_with_cscjac_under_cs
NL: NewtonSolver 'NL: Newton' on system 'sub' failed to converge in 10 iterations.
test_approx_derivs.py:TestGroupComplexStep.test_newton_with_cscjac_under_cs  ... FAIL (00:00:0.03, 268 MB)
Traceback (most recent call last):
  File "/home/swryan/dev/OpenMDAO/openmdao/core/tests/test_approx_derivs.py", line 1629, in test_newton_with_cscjac_under_cs
    assert_near_equal(J['obj', 'x'][0][0], 2.98061391, 1.0e-6)
  File "/home/swryan/dev/OpenMDAO/openmdao/utils/assert_utils.py", line 574, in assert_near_equal
    raise ValueError('actual %s, desired %s, rel error %s, tolerance %s'
ValueError: actual [2.84522616], desired [2.98061391], rel error 0.045422774462393824, tolerance 1e-06



The following tests failed:
test_approx_derivs.py:TestGroupComplexStep.test_newton_with_cscjac_under_cs


Passed:  0
Failed:  1
Skipped: 0


Ran 1 test using 12 processes
Wall clock time:   00:00:3.24

(latest) swryan@Chimaera:~/dev/OpenMDAO/openmdao/core/tests$ pip install "scipy<1.13"
Collecting scipy<1.13
  Using cached scipy-1.12.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (60 kB)
Requirement already satisfied: numpy<1.29.0,>=1.22.4 in /home/swryan/miniconda3/envs/latest/lib/python3.12/site-packages (from scipy<1.13) (1.26.4)
Using cached scipy-1.12.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (37.8 MB)
Installing collected packages: scipy
  Attempting uninstall: scipy
    Found existing installation: scipy 1.13.0rc1
    Uninstalling scipy-1.13.0rc1:
      Successfully uninstalled scipy-1.13.0rc1
Successfully installed scipy-1.12.0
[09:57:28](latest) swryan@Chimaera:~/dev/OpenMDAO/openmdao/core/tests$ !te
testflo -vs test_approx_derivs.py:TestGroupComplexStep.test_newton_with_cscjac_under_cs
test_approx_derivs.py:TestGroupComplexStep.test_newton_with_cscjac_under_cs ... OK (00:00:0.03, 265 MB)


OK

Passed:  1
Failed:  0
Skipped: 0


Ran 1 test using 12 processes
Wall clock time:   00:00:3.28

OpenMDAO Version

3.31.2-dev

Relevant environment information

No response

@swryan swryan added the bug label Mar 21, 2024
@robfalck robfalck removed their assignment Apr 10, 2024
@swryan
Copy link
Contributor Author

swryan commented Apr 16, 2024

SciPy 1.13.0 has been released and this test is still failing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants