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

Random failure in Unit.PointwiseFunctions.AnalyticSolutions.Xcts.Schwarzschild #6481

Open
wthrowe opened this issue Feb 14, 2025 · 0 comments

Comments

@wthrowe
Copy link
Member

wthrowe commented Feb 14, 2025

Seen on CI, can also reproduce locally.

2025-02-13T23:45:05.3047585Z 1209/1482 Test #1340: Unit.PointwiseFunctions.AnalyticSolutions.Xcts.Schwarzschild .......................***Failed    8.70 sec
2025-02-13T23:45:05.3061573Z The following options differ from their suggested values:
2025-02-13T23:45:05.3062275Z The following options differ from their suggested values:
2025-02-13T23:45:05.3062891Z The following options differ from their suggested values:
2025-02-13T23:45:05.3063662Z The following options differ from their suggested values:
2025-02-13T23:45:05.3064265Z The following options differ from their suggested values:
2025-02-13T23:45:05.3064860Z The following options differ from their suggested values:
2025-02-13T23:45:05.3065457Z The following options differ from their suggested values:
2025-02-13T23:45:05.3066880Z /__w/spectre/spectre/tests/Unit/PointwiseFunctions/AnalyticSolutions/Xcts/SchwarzschildMaximalIsotropic.py:26: RuntimeWarning: invalid value encountered in scalar power
2025-02-13T23:45:05.3068322Z   part2 = (part2_numerator / part2_denominator) ** (1 / sqrt(2))
2025-02-13T23:45:05.3068874Z SpECTRE Build Information:
2025-02-13T23:45:05.3069589Z Version:                      2025.01.30
2025-02-13T23:45:05.3070025Z Compiled on host:             2a702d06ed8f
2025-02-13T23:45:05.3070602Z Compiled in directory:        /__w/spectre/spectre/build
2025-02-13T23:45:05.3071162Z Source directory is:          /__w/spectre/spectre
2025-02-13T23:45:05.3071647Z Compiled on git branch:       develop
2025-02-13T23:45:05.3072073Z Compiled on git revision:     54d0906
2025-02-13T23:45:05.3072522Z Linked on:                    Thu Feb 13 23:32:53 2025
2025-02-13T23:45:05.3073121Z Build type:                   Debug
2025-02-13T23:45:05.3073707Z Filters: ""Unit.PointwiseFunctions.AnalyticSolutions.Xcts.Schwarzschild""
2025-02-13T23:45:05.3074301Z Randomness seeded to: 3342733995
2025-02-13T23:45:05.3074643Z Traceback (most recent call last):
2025-02-13T23:45:05.3075733Z   File "/__w/spectre/spectre/tests/Unit/PointwiseFunctions/AnalyticSolutions/Xcts/SchwarzschildMaximalIsotropic.py", line 73, in conformal_factor
2025-02-13T23:45:05.3077304Z     r_areal = areal_radius_from_isotropic(r_isotropic, mass)
2025-02-13T23:45:05.3078652Z   File "/__w/spectre/spectre/tests/Unit/PointwiseFunctions/AnalyticSolutions/Xcts/SchwarzschildMaximalIsotropic.py", line 48, in areal_radius_from_isotropic
2025-02-13T23:45:05.3080011Z     return newton(func=f, fprime=fprime, x0=r_isotropic, tol=1.0e-12)
2025-02-13T23:45:05.3080874Z   File "/usr/local/lib/python3.10/dist-packages/scipy/optimize/_zeros_py.py", line 391, in newton
2025-02-13T23:45:05.3081607Z     raise RuntimeError(msg)
2025-02-13T23:45:05.3082146Z RuntimeError: Failed to converge after 50 iterations, value is nan.
2025-02-13T23:45:05.3082590Z 
2025-02-13T23:45:05.3082790Z ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2025-02-13T23:45:05.3086771Z "Debug.Unit.PointwiseFunctions.AnalyticSolutions.Xcts.Schwarzschild" is a Catch2 v3.4.0 host application.
2025-02-13T23:45:05.3087660Z Run with -? for options
2025-02-13T23:45:05.3087884Z 
2025-02-13T23:45:05.3088132Z -------------------------------------------------------------------------------
2025-02-13T23:45:05.3088848Z Unit.PointwiseFunctions.AnalyticSolutions.Xcts.Schwarzschild
2025-02-13T23:45:05.3089534Z -------------------------------------------------------------------------------
2025-02-13T23:45:05.3090352Z ../../../../../../tests/Unit/PointwiseFunctions/AnalyticSolutions/Xcts/Test_Schwarzschild.cpp:151
2025-02-13T23:45:05.3091121Z ...............................................................................
2025-02-13T23:45:05.3091473Z 
2025-02-13T23:45:05.3091957Z ../../../../../../tests/Unit/PointwiseFunctions/AnalyticSolutions/Xcts/Test_Schwarzschild.cpp:151: FAILED:
2025-02-13T23:45:05.3092771Z   {Unknown expression after the reported line}
2025-02-13T23:45:05.3102144Z due to unexpected exception with messages:
2025-02-13T23:45:05.3102613Z   mass := 1.0
2025-02-13T23:45:05.3103222Z   coords := MaximalIsotropic
2025-02-13T23:45:05.3103612Z   Random-value tests
2025-02-13T23:45:05.3104081Z   Seed is: 1176091585 from ../../../../../../tests/Unit/Framework/
2025-02-13T23:45:05.3104631Z   CheckWithRandomValues.hpp:622
2025-02-13T23:45:05.3105099Z   module_name := "SchwarzschildMaximalIsotropic"
2025-02-13T23:45:05.3105592Z   function_name := "conformal_factor"
2025-02-13T23:45:05.3106012Z   args := { T(0)=(2.28035,0.815026,1.46844)
2025-02-13T23:45:05.3106415Z   T(1)=(1.1538,0.855539,1.70191)
2025-02-13T23:45:05.3106777Z   T(2)=(1.70511,0.915308,1.22956) }
2025-02-13T23:45:05.3107153Z   member_args := { 1.0 }
2025-02-13T23:45:05.3107492Z   Function returned null
2025-02-13T23:45:05.3107720Z 
2025-02-13T23:45:05.3108058Z 0.000 s: Unit.PointwiseFunctions.AnalyticSolutions.Xcts.Schwarzschild
2025-02-13T23:45:05.3108708Z ===============================================================================
2025-02-13T23:45:05.3109194Z test cases:      1 |      0 passed | 1 failed
2025-02-13T23:45:05.3109658Z assertions: 992198 | 992197 passed | 1 failed
2025-02-13T23:45:05.3109958Z 
2025-02-13T23:45:05.3110004Z 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant