# Error assembling .tpr file from .mdp file for energy minimization (solved)

**URL:** <https://gromacs.bioexcel.eu/t/error-assembling-tpr-file-from-mdp-file-for-energy-minimization-solved/6996>\
**Category:** User discussions\
**Tags:** mdp-parameters, mdrun\
**Created:** [August 9, 2023, 2:48am UTC](https://gromacs.bioexcel.eu/t/error-assembling-tpr-file-from-mdp-file-for-energy-minimization-solved/6996 "2023-08-09T02:48:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![alemanac](https://avatars.discourse-cdn.com/v4/letter/a/50afbb/32.png) [@alemanac](https://gromacs.bioexcel.eu/u/alemanac)\
**Post date:** [August 9, 2023, 2:48am UTC](https://gromacs.bioexcel.eu/t/error-assembling-tpr-file-from-mdp-file-for-energy-minimization-solved/6996/1 "2023-08-09T02:48:46Z")

</div>

GROMACS version: 2023.2  
GROMACS modification: No  
device: M1 macbook (arm not intel)

Hi everyone,

I have been following [this tutorial from Virginia Tech](http://www.mdtutorials.com/gmx/lysozyme/05_EM.html) and ran into an error at the energy minimization step. After downloading the MDP file `minum.mdp` and adding it to my directory that I have been using so far and running the command `gmx grompp -f minim.mdp -c 1AKI_solv_ions.gro -p topol.top -o em.tpr`, I get the following result:

```auto
Command line:
  gmx grompp -f minim.mdp -c 1AKI_solv_ions.gro -p topol.top -o em.tpr

ERROR 1 [file minim.mdp, line 4]:
  No '=' to separate .mdp parameter key and value was found on line:
  'minimization)'

ERROR 2 [file minim.mdp, line 6]:
  No '=' to separate .mdp parameter key and value was found on line:
  '1000.0 kJ/mol/nm'

ERROR 3 [file minim.mdp, line 9]:
  No '=' to separate .mdp parameter key and value was found on line:
  'perform'

ERROR 4 [file minim.mdp, line 12]:
  No '=' to separate .mdp parameter key and value was found on line:
  'calculate the interactions'

ERROR 5 [file minim.mdp, line 14]:
  No '=' to separate .mdp parameter key and value was found on line:
  'long range forces'

ERROR 6 [file minim.mdp, line 17]:
  No '=' to separate .mdp parameter key and value was found on line:
  'grid)'

ERROR 7 [file minim.mdp, line 19]:
  No '=' to separate .mdp parameter key and value was found on line:
  'interactions'

ERROR 8 [file minim.mdp, line 23]:
  No '=' to separate .mdp parameter key and value was found on line:
  'dimensions'

Ignoring obsolete mdp entry 'ns_type'

-------------------------------------------------------
Program: gmx grompp, version 2023.2
Source file: src/gromacs/fileio/readinp.cpp (line 246)

Fatal error:
There were 8 errors in input file(s)

For more information and tips for troubleshooting, please check the GROMACS
website at http://www.gromacs.org/Documentation/Errors

```

I am not sure how to proceed from here. I am a GROMACS noob. The tutorial is from 2018. Is it possible that the mdp file is outdated?

Any insight would be appreciated. Please let me know if I should provide more details. I will gladly do so.

Thanks.

---

<div class="post-metadata">

**Author:** ![jalemkul](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/jalemkul/32/18_2.png) [@jalemkul](https://gromacs.bioexcel.eu/u/jalemkul)\
**Post date:** [August 9, 2023, 3:08am UTC](https://gromacs.bioexcel.eu/t/error-assembling-tpr-file-from-mdp-file-for-energy-minimization-solved/6996/2 "2023-08-09T03:08:15Z")

</div>

The errors suggest something really broken within the `.mdp` file itself. If you previously ran `grompp` to produce the `.tpr` input for `genion`, this means your installation is functional and simple tasks like this should work. If you have opened the file with some kind of rich-text editor, delete it and get a fresh copy. The fact that it isn’t recognizing = delimiters is something I’ve literally never seen before in this tutorial (which is going on 15 years online…)

---

<div class="post-metadata">

**Author:** ![alemanac](https://avatars.discourse-cdn.com/v4/letter/a/50afbb/32.png) [@alemanac](https://gromacs.bioexcel.eu/u/alemanac)\
**Post date:** [August 9, 2023, 3:19am UTC](https://gromacs.bioexcel.eu/t/error-assembling-tpr-file-from-mdp-file-for-energy-minimization-solved/6996/4 "2023-08-09T03:19:19Z")

</div>

Thank you for the response! Previously, I simply clicked the link to the .mdp file which prompted the file to load in my browser, and from there I copy and pasted the text into a .mdp file. I solved this by instead obtaining the file directly via wget.

Also, are you the pi from the lab that made these tutorials? Kudos to you guys! Thank you so much for your tutorials! I greatly appreciate them.

---

<div class="post-metadata">

**Author:** ![jalemkul](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/jalemkul/32/18_2.png) [@jalemkul](https://gromacs.bioexcel.eu/u/jalemkul)\
**Post date:** [August 9, 2023, 3:55am UTC](https://gromacs.bioexcel.eu/t/error-assembling-tpr-file-from-mdp-file-for-energy-minimization-solved/6996/5 "2023-08-09T03:55:48Z")

</div>

> [@alemanac](#):
>
> Thank you for the response! Previously, I simply clicked the link to the .mdp file which prompted the file to load in my browser, and from there I copy and pasted the text into a .mdp file. I solved this by instead obtaining the file directly via wget.

Right click → Save As should also do the trick. Likely the copy-paste process added some extraneous formatting characters or something. You can always check the contents of the file with a plain-text editor like Emacs or VIM.

> [@alemanac](#):
>
> Also, are you the pi from the lab that made these tutorials?

I wrote the tutorials as a grad student and have been maintaining them ever since :)
