&GLOBAL
  PRINT_LEVEL LOW
  PROJECT gly_noangvel
  RUN_TYPE MD
&END GLOBAL

&MOTION
  &FREE_ENERGY
    &METADYN
      DO_HILLS F
      NT_HILLS 100
      WW 1.0e-3
      &METAVAR
        COLVAR 1
        SCALE 0.1
      &END METAVAR
      &METAVAR
        COLVAR 2
        SCALE 0.1
      &END METAVAR
      &METAVAR
        COLVAR 3
        SCALE 0.1
      &END METAVAR
      &PRINT
        &COLVAR
          COMMON_ITERATION_LEVELS 10
          &EACH
            METADYNAMICS 1
          &END EACH
        &END COLVAR
        &HILLS
          COMMON_ITERATION_LEVELS 10
          &EACH
            METADYNAMICS 1
          &END EACH
        &END HILLS
      &END PRINT
    &END METADYN
  &END FREE_ENERGY
  &MD
    ANGVEL_TOL 1.0E-5
    ENSEMBLE NVT
    STEPS 20
    TEMPERATURE 300
    TIMESTEP 0.25
    &THERMOSTAT
      REGION GLOBAL
      TYPE CSVR
      &CSVR
        TIMECON [fs] 1000.
      &END CSVR
    &END THERMOSTAT
  &END MD
  &PRINT
    &RESTART
      ADD_LAST NUMERIC
      &EACH
        GEO_OPT 10000
        MD 10000
      &END EACH
    &END RESTART
    &RESTART_HISTORY OFF
    &END RESTART_HISTORY
    &TRAJECTORY
      ADD_LAST NUMERIC
      &EACH
        GEO_OPT 10
        MD 10
      &END EACH
    &END TRAJECTORY
  &END PRINT
&END MOTION

&FORCE_EVAL
  METHOD Quickstep
  &DFT
    &QS
      METHOD PM6
      &SE
      &END SE
    &END QS
    &SCF
      EPS_SCF 1.0E-7
      MAX_SCF 30
      SCF_GUESS mopac
      &MIXING
        ALPHA 0.1
        METHOD DIRECT_P_MIXING
      &END MIXING
      &OT
        MINIMIZER DIIS
        PRECONDITIONER NONE
      &END OT
      &OUTER_SCF
        EPS_SCF 1.0E-7
        MAX_SCF 5
      &END OUTER_SCF
      &PRINT
        &RESTART
          ADD_LAST NUMERIC
          &EACH
            GEO_OPT 0
            MD 0
          &END EACH
        &END RESTART
        &RESTART_HISTORY OFF
        &END RESTART_HISTORY
      &END PRINT
    &END SCF
  &END DFT
  &SUBSYS
    &CELL
      ABC 30. 30. 30.
      PERIODIC NONE
    &END CELL
    &COLVAR
      &DISTANCE
        ATOMS 5 9
      &END DISTANCE
    &END COLVAR
    &COLVAR
      &DISTANCE
        ATOMS 10 7
      &END DISTANCE
    &END COLVAR
    &COLVAR
      &DISTANCE
        ATOMS 8 4
      &END DISTANCE
    &END COLVAR
    &COORD
      H   -3.8983049775245973E+00    1.3002283104033299E+00    2.0140176952455726E+00
      C   -3.2470667678950580E+00    2.1456568325841858E+00    1.6988959721100318E+00
      C   -4.0068494129211505E+00    3.4876133758629240E+00    1.7611501861634231E+00
      O   -3.2191238514380931E+00    4.5179429028466007E+00    1.1423368903530997E+00
      H   -3.1557992244744955E+00    4.3298494675075263E+00    1.7358082094443117E-01
      C   -1.9240233073631130E+00    2.2009706601109844E+00    2.4881030688080350E+00
      O   -1.0053284438323109E+00    3.0223278744169013E+00    1.7589716054835618E+00
      H   -1.3678811849303769E+00    3.9560225801739595E+00    1.7128420383961833E+00
      O   -2.9679375751825989E+00    1.8799745328465036E+00    3.2029388529939046E-01
      H   -2.0419989146485626E+00    2.1841374286220754E+00    1.0408810313854576E-01
      H   -4.9832280818544623E+00    3.4171118463818542E+00    1.2504876405574370E+00
      H   -4.1493736441785574E+00    3.8539520768244206E+00    2.7930118791816452E+00
      H   -2.0524814742585202E+00    2.5919097753650000E+00    3.5108311907716327E+00
      H   -1.4189781394979690E+00    1.2163503360535519E+00    2.5250210235469726E+00
    &END COORD
    &PRINT
      &KINDS
        BASIS_SET
        POTENTIAL
      &END KINDS
    &END PRINT
    &TOPOLOGY
      CONNECTIVITY OFF
    &END TOPOLOGY
  &END SUBSYS
&END FORCE_EVAL
