Hello,
To use multiple instances of the same HOC file in a single simulation, the neuron model must be defined as a HOC template (see Manual section 2.13.4.7.2, “HOC Templates”).
In a non-templated HOC file, section names are defined globally. Loading the file more than once therefore creates duplicate section names, which NEURON does not permit. A template gives each neuron instance its own namespace, allowing multiple instances to be created and connected without naming conflicts.
Please also ensure that the HOC template meets Sim4Life’s compatibility requirements, including matching the file and template names and placing the compiled mechanisms in the same folder as the HOC file.