<div dir="ltr">I'm attempting to run MD using QS on a 64 molecule water box. So far I have been unable to achieve consistent performance across the MD trajectory. After a while the time per MD step dramatically increases, but the number of SCF iterations per step stays basically constant, as you can see in the included image.<p class="separator" style="text-align: center; clear: both;"><a imageanchor="1" href="about:invalid#zClosurez" style="margin-left: 1em; margin-right: 1em;"><img src="cid:55068c28-700b-4db0-b7e7-3e2d01c50dcb" alt="md_timing.png" width="320" height="240" style="" border="0"></a></p><p class="separator" style="text-align: left; clear: both;">To further illustrate this, the following is from one of the first steps in the trajectory</p><p class="separator" style="text-align: left; clear: both;"><br></p><p class="p1"><span class="s1"><span class="Apple-converted-space">  </span>----------------------------------- OT ---------------------------------------</span></p><p class="p1"><span class="s1"><span class="Apple-converted-space">  </span>Minimizer<span class="Apple-converted-space">      </span>: DIIS<span class="Apple-converted-space">                </span>: direct inversion</span></p><p class="p1"><span class="s1"><span class="Apple-converted-space">                                         </span>in the iterative subspace</span></p><p class="p1"><span class="s1"><span class="Apple-converted-space">                                         </span>using <span class="Apple-converted-space">  </span>7 DIIS vectors</span></p><p class="p1"><span class="s1"><span class="Apple-converted-space">                                         </span>safer DIIS on</span></p><p class="p1"><span class="s1"><span class="Apple-converted-space">  </span>Preconditioner : FULL_ALL<span class="Apple-converted-space">            </span>: diagonalization, state selective</span></p><p class="p1"><span class="s1"><span class="Apple-converted-space">  </span>Precond_solver : DEFAULT</span></p><p class="p1"><span class="s1"><span class="Apple-converted-space">  </span>stepsize <span class="Apple-converted-space">      </span>:<span class="Apple-converted-space">    </span>0.15000000<span class="Apple-converted-space">                  </span>energy_gap <span class="Apple-converted-space">    </span>:<span class="Apple-converted-space">    </span>0.08000000</span></p><p class="p1"><span class="s1"><span class="Apple-converted-space">  </span>eps_taylor <span class="Apple-converted-space">    </span>: <span class="Apple-converted-space">  </span>0.10000E-15<span class="Apple-converted-space">                  </span>max_taylor <span class="Apple-converted-space">    </span>: <span class="Apple-converted-space">            </span>4</span></p><p class="p1"><span class="s1"><span class="Apple-converted-space">  </span>----------------------------------- OT ---------------------------------------</span></p><p class="p2"><span class="s1"></span><br></p><p class="p1"><span class="s1"><span class="Apple-converted-space">  </span>Step <span class="Apple-converted-space">    </span>Update method<span class="Apple-converted-space">      </span>Time<span class="Apple-converted-space">    </span>Convergence <span class="Apple-converted-space">        </span>Total energy<span class="Apple-converted-space">    </span>Change</span></p><p class="p1"><span class="s1"><span class="Apple-converted-space">  </span>------------------------------------------------------------------------------</span></p><p class="p1"><span class="s1"><span class="Apple-converted-space">     </span>1 OT DIIS <span class="Apple-converted-space">    </span>0.15E+00<span class="Apple-converted-space">    </span>2.3 <span class="Apple-converted-space">    </span>0.00030148 <span class="Apple-converted-space">    </span>-1107.9047914512 -1.11E+03</span></p><p class="p1"><span class="s1"><span class="Apple-converted-space">     </span>2 OT DIIS <span class="Apple-converted-space">    </span>0.15E+00<span class="Apple-converted-space">    </span>1.6 <span class="Apple-converted-space">    </span>0.00012826 <span class="Apple-converted-space">    </span>-1107.9089080136 -4.12E-03</span></p><p class="p1"><span class="s1"><span class="Apple-converted-space">     </span>3 OT DIIS <span class="Apple-converted-space">    </span>0.15E+00<span class="Apple-converted-space">    </span>1.6 <span class="Apple-converted-space">    </span>0.00007994 <span class="Apple-converted-space">    </span>-1107.9095257164 -6.18E-04</span></p><p class="p1"><span class="s1"><span class="Apple-converted-space">     </span>4 OT DIIS <span class="Apple-converted-space">    </span>0.15E+00<span class="Apple-converted-space">    </span>1.6 <span class="Apple-converted-space">    </span>0.00000744 <span class="Apple-converted-space">    </span>-1107.9096948950 -1.69E-04</span></p><p class="p1"><span class="s1"><span class="Apple-converted-space">     </span>5 OT DIIS <span class="Apple-converted-space">    </span>0.15E+00<span class="Apple-converted-space">    </span>2.0 <span class="Apple-converted-space">    </span>0.00000377 <span class="Apple-converted-space">    </span>-1107.9096964458 -1.55E-06</span></p><p class="p1"><span class="s1"><span class="Apple-converted-space">     </span>6 OT DIIS <span class="Apple-converted-space">    </span>0.15E+00<span class="Apple-converted-space">    </span>1.6 <span class="Apple-converted-space">    </span>0.00000067 <span class="Apple-converted-space">    </span>-1107.9096967653 -3.19E-07</span></p><p class="p2"><span class="s1"></span><br></p><p class="p1"><span class="s1"><span class="Apple-converted-space">  </span>*** SCF run converged in <span class="Apple-converted-space">    </span>6 steps ***</span></p><p class="p2"><span class="s1"></span><br></p><p class="p2"><span class="s1"></span><br></p><p class="p1"><span class="s1"><span class="Apple-converted-space">  </span>Electronic density on regular grids: <span class="Apple-converted-space">      </span>-511.9999993695<span class="Apple-converted-space">        </span>0.0000006305</span></p><p class="p1"><span class="s1"><span class="Apple-converted-space">  </span>Core density on regular grids:<span class="Apple-converted-space">              </span>511.9999999846 <span class="Apple-converted-space">      </span>-0.0000000154</span></p><p class="p1"><span class="s1"><span class="Apple-converted-space">  </span>Total charge density on r-space grids:<span class="Apple-converted-space">        </span>0.0000006151</span></p><p class="separator" style="text-align: left; clear: both;">




<style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px 'PT Mono'; color: #000000}
p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px 'PT Mono'; color: #000000; min-height: 15.0px}
span.s1 {font-variant-ligatures: no-common-ligatures}
</style>




























</p><p class="p1"><span class="s1"><span class="Apple-converted-space">  </span>Total charge density g-space grids: <span class="Apple-converted-space">          </span>0.0000006151</span></p><p class="separator" style="text-align: left; clear: both;"><br></p><p class="separator" style="text-align: left; clear: both;"><br></p><p class="separator" style="text-align: left; clear: both;">While after ~2500 steps, the same section now looks like</p><p class="separator" style="text-align: left; clear: both;"><br></p><p class="p1"><span class="s1"><span class="Apple-converted-space">  </span>----------------------------------- OT ---------------------------------------</span></p><p class="p1"><span class="s1"><span class="Apple-converted-space">  </span>Minimizer<span class="Apple-converted-space">      </span>: DIIS<span class="Apple-converted-space">                </span>: direct inversion</span></p><p class="p1"><span class="s1"><span class="Apple-converted-space">                                         </span>in the iterative subspace</span></p><p class="p1"><span class="s1"><span class="Apple-converted-space">                                         </span>using <span class="Apple-converted-space">  </span>7 DIIS vectors</span></p><p class="p1"><span class="s1"><span class="Apple-converted-space">                                         </span>safer DIIS on</span></p><p class="p1"><span class="s1"><span class="Apple-converted-space">  </span>Preconditioner : FULL_ALL<span class="Apple-converted-space">            </span>: diagonalization, state selective</span></p><p class="p1"><span class="s1"><span class="Apple-converted-space">  </span>Precond_solver : DEFAULT</span></p><p class="p1"><span class="s1"><span class="Apple-converted-space">  </span>stepsize <span class="Apple-converted-space">      </span>:<span class="Apple-converted-space">    </span>0.15000000<span class="Apple-converted-space">                  </span>energy_gap <span class="Apple-converted-space">    </span>:<span class="Apple-converted-space">    </span>0.08000000</span></p><p class="p1"><span class="s1"><span class="Apple-converted-space">  </span>eps_taylor <span class="Apple-converted-space">    </span>: <span class="Apple-converted-space">  </span>0.10000E-15<span class="Apple-converted-space">                  </span>max_taylor <span class="Apple-converted-space">    </span>: <span class="Apple-converted-space">            </span>4</span></p><p class="p1"><span class="s1"><span class="Apple-converted-space">  </span>----------------------------------- OT ---------------------------------------</span></p><p class="p2"><span class="s1"></span><br></p><p class="p1"><span class="s1"><span class="Apple-converted-space">  </span>Step <span class="Apple-converted-space">    </span>Update method<span class="Apple-converted-space">      </span>Time<span class="Apple-converted-space">    </span>Convergence <span class="Apple-converted-space">        </span>Total energy<span class="Apple-converted-space">    </span>Change</span></p><p class="p1"><span class="s1"><span class="Apple-converted-space">  </span>------------------------------------------------------------------------------</span></p><p class="p1"><span class="s1"><span class="Apple-converted-space">     </span>1 OT DIIS <span class="Apple-converted-space">    </span>0.15E+00<span class="Apple-converted-space">    </span>6.3 <span class="Apple-converted-space">    </span>0.00003184 <span class="Apple-converted-space">    </span>-1108.0316770158 -1.11E+03</span></p><p class="p1"><span class="s1"><span class="Apple-converted-space">     </span>2 OT DIIS <span class="Apple-converted-space">    </span>0.15E+00 <span class="Apple-converted-space">  </span>17.0 <span class="Apple-converted-space">    </span>0.00001599 <span class="Apple-converted-space">    </span>-1108.0317180830 -4.11E-05</span></p><p class="p1"><span class="s1"><span class="Apple-converted-space">     </span>3 OT DIIS <span class="Apple-converted-space">    </span>0.15E+00 <span class="Apple-converted-space">  </span>18.4 <span class="Apple-converted-space">    </span>0.00000956 <span class="Apple-converted-space">    </span>-1108.0317247395 -6.66E-06</span></p><p class="p1"><span class="s1"><span class="Apple-converted-space">     </span>4 OT DIIS <span class="Apple-converted-space">    </span>0.15E+00 <span class="Apple-converted-space">  </span>21.9 <span class="Apple-converted-space">    </span>0.00000119 <span class="Apple-converted-space">    </span>-1108.0317273970 -2.66E-06</span></p><p class="p1"><span class="s1"><span class="Apple-converted-space">     </span>5 OT DIIS <span class="Apple-converted-space">    </span>0.15E+00<span class="Apple-converted-space">    </span>6.8 <span class="Apple-converted-space">    </span>0.00000063 <span class="Apple-converted-space">    </span>-1108.0317274283 -3.14E-08</span></p><p class="p2"><span class="s1"></span><br></p><p class="p1"><span class="s1"><span class="Apple-converted-space">  </span>*** SCF run converged in <span class="Apple-converted-space">    </span>5 steps ***</span></p><p class="p2"><span class="s1"></span><br></p><p class="p2"><span class="s1"></span><br></p><p class="p1"><span class="s1"><span class="Apple-converted-space">  </span>Electronic density on regular grids: <span class="Apple-converted-space">      </span>-511.9999994472<span class="Apple-converted-space">        </span>0.0000005528</span></p><p class="p1"><span class="s1"><span class="Apple-converted-space">  </span>Core density on regular grids:<span class="Apple-converted-space">              </span>511.9999999845 <span class="Apple-converted-space">      </span>-0.0000000155</span></p><p class="p1"><span class="s1"><span class="Apple-converted-space">  </span>Total charge density on r-space grids:<span class="Apple-converted-space">        </span>0.0000005373</span></p><p class="separator" style="text-align: left; clear: both;">




<style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px 'PT Mono'; color: #000000}
p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px 'PT Mono'; color: #000000; min-height: 15.0px}
span.s1 {font-variant-ligatures: no-common-ligatures}
</style>



























</p><p class="p1"><span class="s1"><span class="Apple-converted-space">  </span>Total charge density g-space grids: <span class="Apple-converted-space">          </span>0.0000005373</span></p><p class="separator" style="text-align: left; clear: both;"><br></p><p class="separator" style="text-align: left; clear: both;"><br></p><p class="separator" style="text-align: left; clear: both;">This has happened with different functionals, pseudopotentials, and SCF parameters (PS vs ASPC extrapolation, different orders of extrapolation, OT DIIS vs DIIS/Diag., different preconditioners). I recompiled the whole code with the toolchain install script generating all dependencies and got the same result. There is no indication from the dynamics of the system itself as to what the problem might be as the potential and kinetic energies are well behaved, and the constant of motion for the dynamics is reasonably conserved. I've watched the resulting trajectory itself, and there is nothing unusually happening (no bonding breaking, etc.) The input file I used for run in the plot above is attached. The starting geometry for the water molecules was taken from the 64 molecule benchmark in the tests/QS directory.</p><p class="separator" style="text-align: left; clear: both;"><br></p><p class="separator" style="text-align: left; clear: both;">If anyone has any suggestions on possible causes or where I can look for more information, I would be very appreciative.</p></div>