-
Notifications
You must be signed in to change notification settings - Fork 32
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
AmberFF_test fails intermittently #584
Comments
I had the same problem yesterday under Gentoo (same numbers):
So far, this only happened once and only with my current working copy of the master branch (incremental build processes), not with clean builds. The latter might be a coincidence, though. |
I think this is a rather bad one – not sure yet, but I believe that it is an effect of the setup-handling. Selection is handled differently based on whether it was switched on before or after the call to setup. Calling select before setup will remove all non-selected atoms from the force field entirely. Calling it after setup will compute the energies and forces only on selected atoms, but based also on non-selected atoms. This mechanism is, unfortunately, based on time stamps. If the clock rewinds after calling setup, the logic screws up. We need to fix this, but I don’t think it is a regression, so should not block 1.5. Von: Thomas Kemmer <[email protected]mailto:[email protected]> I had the same problem yesterday under Gentoo (same numbers): checking [EXTRA] Additivity of energies w/ selection... So far, this only happened once and only with my current working copy of the master branch (incremental build processes), not with clean builds. The latter might be a coincidence, though. — |
Nevertheless we should probably fix the test. I am not sure if this is an issue on the CI servers, but I imagine that randomly failing builds are no fun. If it is really a timestamp issue we could add short sleeps between select and setup to decrease the likelyhood of things breaking. In Amber we could check the timestamps for non-monotonicity and at least issue a warning. |
This fix is only for the test itself. Please read the discussion of issue 584 for more details on the actual problem (selection changes followed by FF setup / updateEnergy). In order to reduce the occurrence of test failures, according to Daniels suggestion, I interspersed sleep time before calls to FF setup() or updateEnergy(). This reduces the number of test failures roughly ten times.
According to Daniels suggestion I added a fix that reduces the number of test failures roughly about ten times (d5c8f85). |
This fix is only for the test itself. Please read the discussion of issue 584 for more details on the actual problem (selection changes followed by FF setup / updateEnergy). In order to reduce the occurrence of test failures, according to Daniels suggestion, I interspersed sleep time before calls to FF setup() or updateEnergy(). This reduces the number of test failures roughly ten times.
The AmberFF_test sometimes fails with the following error message (the numbers are always the same):
This hints at some non-determinism in the Amber code, that might be triggered by something like pointers in a HashMap, etc.
Tested on Ubuntu 14.04.
The text was updated successfully, but these errors were encountered: