ERROR: KIM ModelCreate failed (src/KIM/pair_kim.cpp:773)

Hello list,

I am trying to use kim for lammps simulation. I can see that my model and model driver are installed under “kim-api-collections-management list”:

User Collection

lammps_input (571 Bytes)

amp.params (9.42 KB)

Hello,

Can you please provide versions for the kim-api and lammps?

Thanks,

Ryan

I installed both kim-api and lammps fresh.

kim-api following the instructions here: https://github.com/openkim/kim-api/blob/master/INSTALL, so must be kim-api-2.0.2, and lammps version LAMMPS (29 Mar 2019).

Regards,
Alireza

OK,

Is there a kim.log file generated when you execute lammps? What is in it?

How did you build lamms?

Can you provide the full output of

$ kim-api-collections-management list

and

$ ldd ../../../lammps/build/lmp

Thanks,

Ryan

Sure! See attached please. Also I build lammps by:

$ cd lammps && mkdir build && cd build
$ cmake -D CMAKE_C_COMPILER=gcc -D CMAKE_CXX_COMPILER=g++ -D CMAKE_Fortran_COMPILER=gfortran -D PKG_KIM=on -D KIM_LIBRARY=$"/usr/local/lib/libkim-api.so" -D KIM_INCLUDE_DIR=$"/usr/local/include/kim-api" ../cmake
$ make

Regards,
Alireza

kim-management.txt (2.04 KB)

kim.log (480 Bytes)

ldd-lammps.txt (849 Bytes)

Hi Alireza,

OK, The problem is that the installed model has a mispelled name. It is "amp_parametrized_model" instead of "amp_parameterized_model" which is what you have in the lammps input script.

Cheers,

Ryan

Oh! My bad! Thanks Ryan! Everything works fine now. Thanks also for the quick response!

Regards,
Alireza