-
Notifications
You must be signed in to change notification settings - Fork 19
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
GCMC simulation explode with "Particle coordinate is nan" or "Energy is NaN" #12
Comments
The error message is like
|
Hi, My initial thought was that using OpenMM 7.7 would be causing these problems as we had issues with OpenMM 7.5-7.7 when running on the CUDA platform with mixed precision. However, when I try and simulate your system with no GCMC it is still crashing almost immediately. I have tried a number of usual fixes (minimising, reducing the time step etc) and have run in both OpenMM 7.7 and 8.0 but unable to simulate without the system exploding. I would suggest using OpenMM 8.0.0 to see if that works first but if not then could you send me a script that you are using to simulate this system (just plain MD, no GCMC) and a .yml file for the environment you're using. Thanks, |
Hello, This should be an OpenMM bug and I think we should raise an issue on this. This bug is actually severe since lots of code use this such as openmmtools or perses doing FEP on OpenMM. In the
Now the gcmc simulation works normally, and I'll raise a PR for this fix later. |
I've had a look into this - it does appear that the positions do change very slightly when the context parameters are updated, however these changes are happening on a level of precision that should not be affecting the simulation (approx. 1x10^-7 nm). These changes have not caused us any problems before while running GCMC and given they are within the limits of machine precision, I wouldn't say that they constitute a bug in OpenMM. How large are the changes in positions you were seeing? If they are of a similar magnitude to what I saw then it is safe to ignore them. Your system runs fine for me when using OpenMM 8.0.0 and the BAOABIntegrator (from openmmtools) - without requiring any changes to the positions after the parameters have been updated (which will impact performance). I would recommend using OpenMM version 8.0.0 and also the BAOABIntegrator. We have previously noticed some instability issues with the LangevinIntegrator when perturbing parameters. Let me know if this works for you. |
okay... I haven't tried OpenMM 8.0.0 since I cannot install it from conda, I might need to compile it by myself and see what happens. |
Hi, The PR may not be needed but I think I'll still add it just to make sure the positions would not changes after updating parameters. Thanks! |
Hi developers,
Recently we have tried the grand gcmc for sampling waters, and I installed the latest grand from the master branch and the OpenMM installed from conda with version 7.7.0.
I followed the example scripts in https://grand.readthedocs.io/en/latest/examples.scytalone.html but it does not work for my system.
The system is a urokinase with docked ligand. I've followed the tutorials to prepare the input files as following:
10302_inputs.tar.gz
The ligand pdb, prepi and prmtop files were generated by antechamber using GAFF2 from AmberTools 22, and the whole sovated pdb were generated by tleap.
The simulation scripts were like:
The simulation explodes even when it's just equilibrating the system using GCMC. However, if I remove all gcmc steps, the simulation runs smoothly without errors. I've tried to do energy minimization before the gcmc moves, but it still does not work.
I've inspect the error, and found that the system explode during the
InsertonMoves
. Normally the simulation would run for like 1 or 2 minutes and then crash.It's very helpful for be to hear your response and see how to debug this. Thanks!!
The text was updated successfully, but these errors were encountered: