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

Nondeterministic test failure #1157

Closed
btalamini opened this issue Jun 27, 2024 · 1 comment
Closed

Nondeterministic test failure #1157

btalamini opened this issue Jun 27, 2024 · 1 comment

Comments

@btalamini
Copy link
Collaborator

During a PR, I got an unexpected failure in a test in the file dynamic_solid_adjoint.cpp. I say "unexpected", becaues the code introduced in my PR isn't used in that test. The failure looks like this:

48: /usr/WS1/bramwell/gl/builds/xYGwyxK_/000/gitlab/smith/serac/src/serac/physics/tests/dynamic_solid_adjoint.cpp:295: Failure
48: The difference between directional_deriv and (qoi_plus - qoi_base) / eps is nan, which exceeds eps, where
48: directional_deriv evaluates to -nan,
48: (qoi_plus - qoi_base) / eps evaluates to -0.023019492978448852, and
48: eps evaluates to 1.9999999999999999e-07.
48: 
48: [  FAILED  ] SolidMechanicsSensitivityFixture.ShapeSensitivities (7280 ms)

I'm suspicious that we have some kind of non-deterministic problem here, like a race condition. The entire log is included below.

output.log.make.test.txt

@btalamini
Copy link
Collaborator Author

There was an indexing error (going past the end of the array). The error was intermittent, because the retrieved value was being multiplied by 0 - it wouldn't affect the results, so long as the memory read beyond the end of the array could be interpreted as a double. Otherwise, a NAN was issued and would cause the test to fail. This is closed by #1183

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