Error KIM_CollectionsImplementation.cpp:730 * Unable to find item

Hey

I’ve used cmake to make the kim-api from source into my local directory on a HPC node.
I get this error even though the potential I want is installed and I have sourced kim-api-activate

I am using LAMMPS to access the potential.

I am currently using version 2.1.3 due to compatibility.

If anyone has any ideas what this error means beyond the obvious that would be really helpful thanks

Output from log file below :
2022-03-08:12:49:16GMT * 0 * information * 0x13e7bb0 * KIM_LogImplementation.cpp:110 * Log object created. Default verbosity level is ‘information’. 2022-03-08:12:49:16GMT * 0 * information * 0x1e459a0 * KIM_LogImplementation.cpp:110 * Log object created. Default verbosity level is ‘information’. 2022-03-08:12:49:16GMT * 0 * information * 0x15e8b20 * KIM_LogImplementation.cpp:110 * Log object created. Default verbosity level is ‘information’. 2022-03-08:12:49:16GMT * 1 * error * 0x1e459a0 * KIM_CollectionsImplementation.cpp:730 * Unable to find item.
2022-03-08:12:49:16GMT * 1 * error * 0x15e8b20 * KIM_CollectionsImplementation.cpp:730 * Unable to find item.
2022-03-08:12:49:16GMT * 1 * error * 0x13e7bb0 * KIM_CollectionsImplementation.cpp:730 * Unable to find item.
2022-03-08:12:49:18GMT * 0 * information * 0x63ba9a0 * KIM_LogImplementation.cpp:110 * Log object created. Default verbosity level is ‘information’. 2022-03-08:12:49:18GMT * 1 * error * 0x63ba9a0 * KIM_CollectionsImplementation.cpp:730 * Unable to find item.

Hi Adam, Thanks for your message.

It will be helpful to know how you have built lammps; It needs to be built and linked with the local copy of the kim-api you have installed. My first guess is that lammps is using a different installation of the kim-api than the one you expect.

Hey,

I installed lammps using cmake, built it with open Kim package but without downloading a new copy of Kim inside LAMMPS.

From what I gather from the output it found that specific KIM installation

LAMMPS version from 03Mar2020

I forgot to mention that this error only occurs when I run LAMMPS through another code using it’s static library

So I wanted to know what the error means so I can figure out why the potential can’t be found in this instance and works when I just run it in LAMMPS

The input file to both is identical and the other code works if Kim isn’t used

Let me know what you think

Thanks
Adam

Hi Adam,

The error message is saying that the kim-api library is not able to find an installed model with the specified name. Thanks for the additional information about the two executables. It’s not clear to me what is happening. We might start with looking at the output of the ‘ldd -v’ command for each of the executables you are comparing.

Hi Elliot,

Thank you so much for your help turns out lammps had the correct path for the Kim lib but the other executable did not

I added the library where the Kim so was located to the LD library path and recompiled and it is working

Thanks
Adam

Great!