For research purposes, I need to execute a solver built upon ASL on thousands of problem instances. The solver used is custom (made of the interaction of CPLEX + custom routines in an iterative fashion). I have access to a high performance computing cluster using SLURM and would like to be able to integrate AMPL with this.
The header of my licence file looks like this (I am omitting the key and my email address):
The problem is, AMPL will complain when running jobs in parallel, apparently because it won’t allow running multiple jobs on the same machine at once. Is there a way to resolve this?
Thank you for reaching out. The AMPL CE license should allow multiple runs on the same machine. Could you please provide more details on how multiple instances are being invoked on the same machine? The license needs to be activated once and then multiple processes can use the license and will renew the license as needed. If they processes are running inside containers, then the license needs to be activated once in each container when it starts. Could you please send us the amplkey.log file that should be next to ampl.lic?
Sorry for reviving this post, but I am currently running into the same problem. I’m copying here the sbatch script I use to submit SLURM jobs (with sensitive information omitted) and the last relevant lines of “amplkey.log”. I think the problem is that each compute node has its own “fingerprint” which requires activation at each node, but I am not sure how to do it.
2025/10/28 17:06:23 Failed GET request to https://ampl.com/amplkey/v0.1/amplkey.config.json: Get "https://ampl.com/amplkey/v0.1/amplkey.config.json": dial tcp 162.159.135.42:443: i/o timeout
2025/10/28 17:06:26 Failed GET request to https://ampl.com/amplkey/v0.1/amplkey.config.json: Get "https://ampl.com/amplkey/v0.1/amplkey.config.json": dial tcp 162.159.135.42:443: i/o timeout
2025/10/28 17:06:27 Reading /lustre06/project/6006742/walton/SOLVERS/ampl.lic
2025/10/28 17:06:27 Reading /lustre06/project/6006742/walton/SOLVERS/ampl.lic
2025/10/28 17:06:27 Config cache has expired. Trying to update.
2025/10/28 17:06:27 Config cache has expired. Trying to update.
2025/10/28 17:06:28 Failed GET request to https://ampl.com/amplkey/v0.1/amplkey.config.json: Get "https://ampl.com/amplkey/v0.1/amplkey.config.json": dial tcp 162.159.135.42:443: i/o timeout
2025/10/28 17:06:28 Failed GET request to https://ampl.com/amplkey/v0.1/amplkey.config.json: Get "https://ampl.com/amplkey/v0.1/amplkey.config.json": dial tcp 162.159.135.42:443: i/o timeout
2025/10/28 17:06:28 Failed GET request to https://ampl.com/amplkey/v0.1/amplkey.config.json: Get "https://ampl.com/amplkey/v0.1/amplkey.config.json": dial tcp 162.159.135.42:443: i/o timeout
2025/10/28 17:06:30 Reading /lustre06/project/6006742/walton/SOLVERS/ampl.lic
2025/10/28 17:06:30 Config cache has expired. Trying to update.
2025/10/28 17:06:31 Failed GET request to https://ampl.com/amplkey/v0.1/amplkey.config.json: Get "https://ampl.com/amplkey/v0.1/amplkey.config.json": dial tcp 162.159.135.42:443: i/o timeout
2025/10/28 17:06:31 Failed GET request to https://ampl.com/amplkey/v0.1/amplkey.config.json: Get "https://ampl.com/amplkey/v0.1/amplkey.config.json": dial tcp 162.159.135.42:443: i/o timeout
2025/10/28 17:06:32 Reading /lustre06/project/6006742/walton/SOLVERS/ampl.lic
2025/10/28 17:06:32 Config cache has expired. Trying to update.
2025/10/28 17:06:33 Failed GET request to https://ampl.com/amplkey/v0.1/amplkey.config.json: Get "https://ampl.com/amplkey/v0.1/amplkey.config.json": dial tcp 162.159.135.42:443: i/o timeout
2025/10/28 17:06:33 Failed GET request to https://ampl.com/amplkey/v0.1/amplkey.config.json: Get "https://ampl.com/amplkey/v0.1/amplkey.config.json": dial tcp 162.159.135.42:443: i/o timeout
2025/10/28 17:06:33 Failed GET request to https://ampl.com/amplkey/v0.1/amplkey.config.json: Get "https://ampl.com/amplkey/v0.1/amplkey.config.json": dial tcp 162.159.135.42:443: i/o timeout
2025/10/28 17:06:33 Failed GET request to https://ampl.com/amplkey/v0.1/amplkey.config.json: Get "https://ampl.com/amplkey/v0.1/amplkey.config.json": dial tcp 162.159.135.42:443: i/o timeout
2025/10/28 17:06:35 Reading /lustre06/project/6006742/walton/SOLVERS/ampl.lic
2025/10/28 17:06:35 Config cache has expired. Trying to update.
2025/10/28 17:06:36 Failed GET request to https://ampl.com/amplkey/v0.1/amplkey.config.json: Get "https://ampl.com/amplkey/v0.1/amplkey.config.json": dial tcp 162.159.135.42:443: i/o timeout
2025/10/28 17:06:36 Failed GET request to https://ampl.com/amplkey/v0.1/amplkey.config.json: Get "https://ampl.com/amplkey/v0.1/amplkey.config.json": dial tcp 162.159.135.42:443: i/o timeout
2025/10/28 17:06:38 Failed GET request to https://ampl.com/amplkey/v0.1/amplkey.config.json: Get "https://ampl.com/amplkey/v0.1/amplkey.config.json": dial tcp 162.159.135.42:443: i/o timeout
2025/10/28 17:06:37 Failed GET request to https://ampl.com/amplkey/v0.1/amplkey.config.json: Get "https://ampl.com/amplkey/v0.1/amplkey.config.json": dial tcp 162.159.135.42:443: i/o timeout