Skip to content

NetLogo

NetLogo in Umbrella On Demand NetLogo is a multi-agent programmable modeling environment. It is used by many hundreds of thousands of students, teachers, and researchers worldwide.

Using NetLogo interactive
(Graphical User Interface)

Use your browser to connect to Umbrella On Demand

Using NetLogo in SLURM batch jobs
(Command Line Interface)

Load the modules

[user@umbrella]$ module purge
[user@umbrella]$ module load NetLogo/6.4.0-64
Check commandline version of NetLogo
[user@umbrella]$ netlogo-headless.sh --version

NetLogo SLURM sbatch jobscript example using Shared Memory

#!/bin/bash
#SBATCH --job-name=test_NetLogo
#SBATCH --output=test_NetLogo-%j.log
#SBATCH --partition=tue.default.q
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=4
#SBATCH --mem-per-cpu=1gb
#SBATCH --time=00:05:00

module purge
module load NetLogo/6.4.0-64

mdl="model.nlogo"
exp="experiment01"
tab="${exp}-${SLURM_JOBID}.csv"

srun netlogo-headless.sh --model "${mdl}" --experiment "${exp}" --tab "${tab}" --threads ${SLURM_CPUS_PER_TASK}

Netlogo running in SLURM Issues

No SLURM output and/or NetLogo csv generated

This is possibly due to an incorrect stop condition in the Netlogo experiment.

Exit code 137 in SLURM output

Out of memmory of the Netlogo/Java process. Reserving more --mem-per-cpu (eq. 4gb) can fix this.