NeuroML / pyNeuroML

A single package in Python unifying scripts and modules for reading, writing, simulating and analysing NeuroML2/LEMS models.
https://docs.neuroml.org/Userdocs/Software/pyNeuroML.html
GNU Lesser General Public License v3.0
36 stars 30 forks source link

[Bug] Brian2, NetPyNe simulation methods appear to be fragile to the number of steps #137

Closed jonrkarr closed 2 years ago

jonrkarr commented 2 years ago

Describe the bug As described in #136, time courses with Brian2 and NetPyNe are short. So I tried compensating by incrementing the step by 1 in the LEMS file. This caused the simulation to fail.

Brian2:

self = <brian2.codegen.runtime.numpy_rt.numpy_rt.NumpyCodeObject object at 0x7f890b5d05e0>, block = 'run'

    def run_block(self, block):
        compiled_code = self.compiled_code[block]
        if not compiled_code:
            return
        try:
>           exec(compiled_code, self.namespace)

/usr/local/lib/python3.9/dist-packages/brian2/codegen/runtime/numpy_rt/numpy_rt.py:248: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???

(string):26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

t = 0.0

    def unitless_timed_array_func(t):
        timestep = np.clip(np.int_(np.round(t/epsilon) / K),
                           0, n_values-1)
>       return values[timestep]
E       IndexError: index -1 is out of bounds for axis 0 with size 0

/usr/local/lib/python3.9/dist-packages/brian2/input/timedarray.py:246: IndexError

The above exception was the direct cause of the following exception:

self = <test_core_main.CoreCliTestCase testMethod=test_exec_sed_task_brian2>

    def test_exec_sed_task_brian2(self):
        task, variables = self._get_simulation()
        log = TaskLog()
>       results, log = core.exec_sed_task(task, variables, log=log, simulator=Simulator.brian2)

/home/jonrkarr/Documents/biosimulations/Biosimulators_pyNeuroML/tests/test_core_main.py:87: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/home/jonrkarr/Documents/biosimulations/Biosimulators_pyNeuroML/biosimulators_pyneuroml/core.py:155: in exec_sed_task
    lems_results = run_lems_xml(
/home/jonrkarr/Documents/biosimulations/Biosimulators_pyNeuroML/biosimulators_pyneuroml/utils.py:224: in run_lems_xml
    result = run_lems_method(os.path.relpath(temp_filename, working_dirname), **options.to_kw_args(simulator))
/usr/local/lib/python3.9/dist-packages/pyneuroml/pynml.py:1592: in run_lems_with_jneuroml_brian2
    exec("import %s" % brian2_py_name)
<string>:1: in <module>
    ???
/home/jonrkarr/Documents/biosimulations/Biosimulators_pyNeuroML/tests/fixtures/tmp1wo0zeuo_brian2.py:234: in <module>
    run(duration)
/usr/local/lib/python3.9/dist-packages/brian2/units/fundamentalunits.py:2434: in new_f
    result = f(*args, **kwds)
/usr/local/lib/python3.9/dist-packages/brian2/core/magic.py:373: in run
    return magic_network.run(duration, report=report, report_period=report_period,
/usr/local/lib/python3.9/dist-packages/brian2/core/magic.py:231: in run
    Network.run(self, duration, report=report, report_period=report_period,
/usr/local/lib/python3.9/dist-packages/brian2/core/base.py:278: in device_override_decorated_function
    return func(*args, **kwds)
/usr/local/lib/python3.9/dist-packages/brian2/units/fundamentalunits.py:2434: in new_f
    result = f(*args, **kwds)
/usr/local/lib/python3.9/dist-packages/brian2/core/network.py:1076: in run
    obj.run()
/usr/local/lib/python3.9/dist-packages/brian2/core/base.py:181: in run
    codeobj()
/usr/local/lib/python3.9/dist-packages/brian2/codegen/codeobject.py:107: in __call__
    return self.run()
/usr/local/lib/python3.9/dist-packages/brian2/codegen/codeobject.py:135: in run
    return self.run_block('run')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <brian2.codegen.runtime.numpy_rt.numpy_rt.NumpyCodeObject object at 0x7f890b5d05e0>, block = 'run'

    def run_block(self, block):
        compiled_code = self.compiled_code[block]
        if not compiled_code:
            return
        try:
            exec(compiled_code, self.namespace)
        except Exception as exc:
            code = getattr(self.code, block)
            message = ('An exception occured during the execution of the {} '
                       'block of code object {}.\n').format(block, self.name)
            lines = code.split('\n')
            message += 'The error was raised in the following line:\n'
            _, _, tb = sys.exc_info()
            tb = tb.tb_next  # Line in the code object's code
            message += lines[tb.tb_lineno - 1] + '\n'
>           raise BrianObjectException(message, self.owner) from exc
E           brian2.core.base.BrianObjectException: Error encountered with object named "neurongroup".
E           Object was created here (most recent call only, full details in debug log):
E             File "/home/jonrkarr/Documents/biosimulations/Biosimulators_pyNeuroML/tests/fixtures/tmp1wo0zeuo_brian2.py", line 185, in <module>
E               hhpop = NeuronGroup(1, model=hhcell_eqs, threshold = 'v > thresh and spiking < 0.5', reset = """spiking = 1""")
E           
E           An exception occured during the execution of the run block of code object neurongroup_stateupdater_codeobject.
E           The error was raised in the following line:
E           _lio_19 = hhpop_iSyn(t)
E            (See above for original error message and traceback.)

/usr/local/lib/python3.9/dist-packages/brian2/codegen/runtime/numpy_rt/numpy_rt.py:258: BrianObjectException

NetPyNe:

INFO     pyneuroml.pynml:pynml.py:1466 Loading LEMS file: /tmp/tmp3mj43rrx/fixtures/tmpjfnpsu7c.xml and running with jNeuroML_NetPyNE
INFO     pyneuroml.pynml:pynml.py:2396 Executing: (java -Xmx7883M  -Djava.awt.headless=true -jar  "/home/jonrkarr/Documents/biosimulations/pyNeuroML/pyneuroml/lib/jNeuroML-0.11.0-jar-with-dependencies.jar"  "/tmp/tmp3mj43rrx/fixtures/tmpjfnpsu7c.xml"  -netpyne -np 3 -run -nogui -I '') in directory: .
INFO     pyneuroml.pynml:pynml.py:2417 Command completed. Output: 
  jNeuroML >>   jNeuroML v0.11.0
  jNeuroML >>  (INFO) Reading from: /tmp/tmp3mj43rrx/fixtures/tmpjfnpsu7c.xml
  jNeuroML >>  (WARNING) Unrecognized attribute XMLAttribute(description, Name of the property)  Name of the property at: org.lemsml.jlems.core.reader.LemsFactory.buildText(LemsFactory.java:950)
  jNeuroML >>  (LOG)  .......  last warning repeated 3 times
  jNeuroML >>  (LOG)  .......  last warning repeated 10 times
  jNeuroML >>  (LOG)  .......  last warning repeated 30 times
  jNeuroML >>  (WARNING) Unused attribute in Component(id=sim1 type=Simulation): XMLAttribute(method, cvode)  at: org.lemsml.jlems.core.type.Component.resolve(Component.java:540)
  jNeuroML >>  WARNING: An illegal reflective access operation has occurred
  jNeuroML >>  WARNING: Illegal reflective access by com.sun.xml.bind.v2.runtime.reflect.opt.Injector (file:/home/jonrkarr/Documents/biosimulations/pyNeuroML/pyneuroml/lib/jNeuroML-0.11.0-jar-with-dependencies.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int)
  jNeuroML >>  WARNING: Please consider reporting this to the maintainers of com.sun.xml.bind.v2.runtime.reflect.opt.Injector
  jNeuroML >>  WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
  jNeuroML >>  WARNING: All illegal access operations will be denied in a future release
  jNeuroML >>  (INFO) >>> Written network info to: /tmp/tmp3mj43rrx/fixtures/tmpjfnpsu7c.net.nml
  jNeuroML >>  (INFO) Creating NeuronWriter to output files to /tmp/tmp3mj43rrx/fixtures
  jNeuroML >>  (INFO) -- Writing to hoc: /tmp/tmp3mj43rrx/fixtures/hhcell.hoc
  jNeuroML >>  (INFO) -- Writing to mod: /tmp/tmp3mj43rrx/fixtures/LeakConductance.mod
  jNeuroML >>  (INFO) File /tmp/tmp3mj43rrx/fixtures/LeakConductance.mod exists and is identical
  jNeuroML >>  (INFO) -- Writing to mod: /tmp/tmp3mj43rrx/fixtures/NaConductance.mod
  jNeuroML >>  (INFO) File /tmp/tmp3mj43rrx/fixtures/NaConductance.mod exists and is identical
  jNeuroML >>  (INFO) -- Writing to mod: /tmp/tmp3mj43rrx/fixtures/KConductance.mod
  jNeuroML >>  (INFO) File /tmp/tmp3mj43rrx/fixtures/KConductance.mod exists and is identical
  jNeuroML >>  (INFO) -- Writing to mod: /tmp/tmp3mj43rrx/fixtures/pulseGen1.mod
  jNeuroML >>  (INFO) File /tmp/tmp3mj43rrx/fixtures/pulseGen1.mod exists and is identical
  jNeuroML >>  (INFO) Saving main NetPyNE file to: /tmp/tmp3mj43rrx/fixtures/tmpjfnpsu7c_netpyne.py
  jNeuroML >>  (INFO) Trying to compile mods in: /tmp/tmp3mj43rrx/fixtures
  jNeuroML >>  (INFO) Going to compile the mod files in: /tmp/tmp3mj43rrx/fixtures, forcing recompile: false
  jNeuroML >>  (INFO) Parent dir: /tmp/tmp3mj43rrx/fixtures
  jNeuroML >>  (INFO) Assuming *nix environment...
  jNeuroML >>  (INFO) Name of file to be created: /tmp/tmp3mj43rrx/fixtures/x86_64/libnrnmech.la
  jNeuroML >>  (INFO) Name of file to be created: /tmp/tmp3mj43rrx/fixtures/x86_64/libnrnmech.so
  jNeuroML >>  (INFO) commandToExecute: /usr/local/bin/nrnivmodl
  jNeuroML >>  (INFO) Found previously compiled file: /tmp/tmp3mj43rrx/fixtures/x86_64/libnrnmech.so
  jNeuroML >>  (INFO) Going to check if mods in /tmp/tmp3mj43rrx/fixtures are newer than /tmp/tmp3mj43rrx/fixtures/x86_64/libnrnmech.so
  jNeuroML >>  (INFO) Not being asked to recompile, and no mod files exist in /tmp/tmp3mj43rrx/fixtures which are newer than /tmp/tmp3mj43rrx/fixtures/x86_64/libnrnmech.so
  jNeuroML >>  (INFO) Going to execute command: mpiexec -np 3 /usr/local/bin/nrniv -mpi /tmp/tmp3mj43rrx/fixtures/tmpjfnpsu7c_netpyne.py
  jNeuroML >>  (INFO) Have successfully executed command: mpiexec -np 3 /usr/local/bin/nrniv -mpi /tmp/tmp3mj43rrx/fixtures/tmpjfnpsu7c_netpyne.py
  jNeuroML >>  (INFO) NRN Output >>> numprocs=3
  jNeuroML >>  (INFO) NRN Error  >>> NEURON -- VERSION 8.0.0 HEAD (429d11ef) 2021-04-30
  jNeuroML >>  (INFO) NRN Error  >>> Duke, Yale, and the BlueBrain Project -- Copyright 1984-2021
  jNeuroML >>  (INFO) NRN Error  >>> See http://neuron.yale.edu/neuron/credits
  jNeuroML >>  (INFO) NRN Error  >>> 
  jNeuroML >>  (INFO) NRN Error  >>> Additional mechanisms from files
  jNeuroML >>  (INFO) NRN Error  >>>  "KConductance.mod" "LeakConductance.mod" "NaConductance.mod" "pulseGen1.mod"
  jNeuroML >>  (INFO) NRN Error  >>> pyNeuroML >>> pyneuroml.pynml - INFO - Converting -20.0 mV to mV: -20.0 (-0.02 in SI units)
  jNeuroML >>  (INFO) NRN Error  >>> pyNeuroML >>> 2021-11-24 11:03:40,624 - pyneuroml.pynml - INFO - Converting -20.0 mV to mV: -20.0 (-0.02 in SI units)
  jNeuroML >>  (INFO) NRN Error  >>> pyNeuroML >>> pyneuroml.pynml - INFO - Converting 3.0 S_per_m2 to S_per_cm2: 0.0003 (3.0 in SI units)
  jNeuroML >>  (INFO) NRN Error  >>> pyNeuroML >>> 2021-11-24 11:03:40,624 - pyneuroml.pynml - INFO - Converting 3.0 S_per_m2 to S_per_cm2: 0.0003 (3.0 in SI units)
  jNeuroML >>  (INFO) NRN Error  >>> pyNeuroML >>> pyneuroml.pynml - INFO - Converting -54.3 mV to mV: -54.3 (-0.0543 in SI units)
  jNeuroML >>  (INFO) NRN Error  >>> pyNeuroML >>> 2021-11-24 11:03:40,624 - pyneuroml.pynml - INFO - Converting -54.3 mV to mV: -54.3 (-0.0543 in SI units)
  jNeuroML >>  (INFO) NRN Error  >>> pyNeuroML >>> pyneuroml.pynml - INFO - Converting 120.0 mS_per_cm2 to S_per_cm2: 0.12 (1200.0 in SI units)
  jNeuroML >>  (INFO) NRN Error  >>> pyNeuroML >>> 2021-11-24 11:03:40,625 - pyneuroml.pynml - INFO - Converting 120.0 mS_per_cm2 to S_per_cm2: 0.12 (1200.0 in SI units)
  jNeuroML >>  (INFO) NRN Error  >>> pyNeuroML >>> pyneuroml.pynml - INFO - Converting 50.0 mV to mV: 50.0 (0.05 in SI units)
  jNeuroML >>  (INFO) NRN Error  >>> pyNeuroML >>> 2021-11-24 11:03:40,626 - pyneuroml.pynml - INFO - Converting 50.0 mV to mV: 50.0 (0.05 in SI units)
  jNeuroML >>  (INFO) NRN Error  >>> pyNeuroML >>> pyneuroml.pynml - INFO - Converting 360.0 S_per_m2 to S_per_cm2: 0.036 (360.0 in SI units)
  jNeuroML >>  (INFO) NRN Error  >>> pyNeuroML >>> 2021-11-24 11:03:40,626 - pyneuroml.pynml - INFO - Converting 360.0 S_per_m2 to S_per_cm2: 0.036 (360.0 in SI units)
  jNeuroML >>  (INFO) NRN Error  >>> pyNeuroML >>> pyneuroml.pynml - INFO - Converting -77.0 mV to mV: -77.0 (-0.077 in SI units)
  jNeuroML >>  (INFO) NRN Error  >>> pyNeuroML >>> 2021-11-24 11:03:40,626 - pyneuroml.pynml - INFO - Converting -77.0 mV to mV: -77.0 (-0.077 in SI units)
  jNeuroML >>  (INFO) NRN Error  >>> pyNeuroML >>> pyneuroml.pynml - INFO - Converting -65.0 mV to mV: -65.0 (-0.065 in SI units)
  jNeuroML >>  (INFO) NRN Error  >>> pyNeuroML >>> 2021-11-24 11:03:40,627 - pyneuroml.pynml - INFO - Converting -65.0 mV to mV: -65.0 (-0.065 in SI units)
  jNeuroML >>  (INFO) NRN Error  >>> pyNeuroML >>> pyneuroml.pynml - INFO - Converting 1.0 uF_per_cm2 to uF_per_cm2: 1.0 (0.01 in SI units)
  jNeuroML >>  (INFO) NRN Error  >>> pyNeuroML >>> 2021-11-24 11:03:40,627 - pyneuroml.pynml - INFO - Converting 1.0 uF_per_cm2 to uF_per_cm2: 1.0 (0.01 in SI units)
  jNeuroML >>  (INFO) NRN Error  >>> pyNeuroML >>> pyneuroml.pynml - INFO - Converting 0.03 kohm_cm to ohm_cm: 30.0 (0.3 in SI units)
  jNeuroML >>  (INFO) NRN Error  >>> pyNeuroML >>> 2021-11-24 11:03:40,627 - pyneuroml.pynml - INFO - Converting 0.03 kohm_cm to ohm_cm: 30.0 (0.3 in SI units)
  jNeuroML >>  (INFO) NRN Error  >>> pyNeuroML >>> pyneuroml.pynml - INFO - Converting -20.0 mV to mV: -20.0 (-0.02 in SI units)
  jNeuroML >>  (INFO) NRN Error  >>> pyNeuroML >>> 2021-11-24 11:03:40,640 - pyneuroml.pynml - INFO - Converting -20.0 mV to mV: -20.0 (-0.02 in SI units)
  jNeuroML >>  (INFO) NRN Error  >>> pyNeuroML >>> pyneuroml.pynml - INFO - Converting 3.0 S_per_m2 to S_per_cm2: 0.0003 (3.0 in SI units)
  jNeuroML >>  (INFO) NRN Error  >>> pyNeuroML >>> 2021-11-24 11:03:40,640 - pyneuroml.pynml - INFO - Converting 3.0 S_per_m2 to S_per_cm2: 0.0003 (3.0 in SI units)
  jNeuroML >>  (INFO) NRN Error  >>> pyNeuroML >>> pyneuroml.pynml - INFO - Converting -54.3 mV to mV: -54.3 (-0.0543 in SI units)
  jNeuroML >>  (INFO) NRN Error  >>> pyNeuroML >>> 2021-11-24 11:03:40,640 - pyneuroml.pynml - INFO - Converting -54.3 mV to mV: -54.3 (-0.0543 in SI units)
  jNeuroML >>  (INFO) NRN Error  >>> pyNeuroML >>> pyneuroml.pynml - INFO - Converting 120.0 mS_per_cm2 to S_per_cm2: 0.12 (1200.0 in SI units)
  jNeuroML >>  (INFO) NRN Error  >>> pyNeuroML >>> 2021-11-24 11:03:40,640 - pyneuroml.pynml - INFO - Converting 120.0 mS_per_cm2 to S_per_cm2: 0.12 (1200.0 in SI units)
  jNeuroML >>  (INFO) NRN Error  >>> pyNeuroML >>> pyneuroml.pynml - INFO - Converting 50.0 mV to mV: 50.0 (0.05 in SI units)
  jNeuroML >>  (INFO) NRN Error  >>> pyNeuroML >>> 2021-11-24 11:03:40,640 - pyneuroml.pynml - INFO - Converting 50.0 mV to mV: 50.0 (0.05 in SI units)
  jNeuroML >>  (INFO) NRN Error  >>> pyNeuroML >>> pyneuroml.pynml - INFO - Converting 360.0 S_per_m2 to S_per_cm2: 0.036 (360.0 in SI units)
  jNeuroML >>  (INFO) NRN Error  >>> pyNeuroML >>> 2021-11-24 11:03:40,641 - pyneuroml.pynml - INFO - Converting 360.0 S_per_m2 to S_per_cm2: 0.036 (360.0 in SI units)
  jNeuroML >>  (INFO) NRN Error  >>> pyNeuroML >>> pyneuroml.pynml - INFO - Converting -77.0 mV to mV: -77.0 (-0.077 in SI units)
  jNeuroML >>  (INFO) NRN Error  >>> pyNeuroML >>> 2021-11-24 11:03:40,641 - pyneuroml.pynml - INFO - Converting -77.0 mV to mV: -77.0 (-0.077 in SI units)
  jNeuroML >>  (INFO) NRN Error  >>> pyNeuroML >>> pyneuroml.pynml - INFO - Converting -65.0 mV to mV: -65.0 (-0.065 in SI units)
  jNeuroML >>  (INFO) NRN Error  >>> pyNeuroML >>> 2021-11-24 11:03:40,641 - pyneuroml.pynml - INFO - Converting -65.0 mV to mV: -65.0 (-0.065 in SI units)
  jNeuroML >>  (INFO) NRN Error  >>> pyNeuroML >>> pyneuroml.pynml - INFO - Converting 1.0 uF_per_cm2 to uF_per_cm2: 1.0 (0.01 in SI units)
  jNeuroML >>  (INFO) NRN Error  >>> pyNeuroML >>> 2021-11-24 11:03:40,641 - pyneuroml.pynml - INFO - Converting 1.0 uF_per_cm2 to uF_per_cm2: 1.0 (0.01 in SI units)
  jNeuroML >>  (INFO) NRN Error  >>> pyNeuroML >>> pyneuroml.pynml - INFO - Converting 0.03 kohm_cm to ohm_cm: 30.0 (0.3 in SI units)
  jNeuroML >>  (INFO) NRN Error  >>> pyNeuroML >>> 2021-11-24 11:03:40,641 - pyneuroml.pynml - INFO - Converting 0.03 kohm_cm to ohm_cm: 30.0 (0.3 in SI units)
  jNeuroML >>  (INFO) NRN Error  >>> pyNeuroML >>> pyneuroml.pynml - INFO - Converting -20.0 mV to mV: -20.0 (-0.02 in SI units)
  jNeuroML >>  (INFO) NRN Error  >>> pyNeuroML >>> 2021-11-24 11:03:40,683 - pyneuroml.pynml - INFO - Converting -20.0 mV to mV: -20.0 (-0.02 in SI units)
  jNeuroML >>  (INFO) NRN Error  >>> pyNeuroML >>> pyneuroml.pynml - INFO - Converting 3.0 S_per_m2 to S_per_cm2: 0.0003 (3.0 in SI units)
  jNeuroML >>  (INFO) NRN Error  >>> pyNeuroML >>> 2021-11-24 11:03:40,683 - pyneuroml.pynml - INFO - Converting 3.0 S_per_m2 to S_per_cm2: 0.0003 (3.0 in SI units)
  jNeuroML >>  (INFO) NRN Error  >>> pyNeuroML >>> pyneuroml.pynml - INFO - Converting -54.3 mV to mV: -54.3 (-0.0543 in SI units)
  jNeuroML >>  (INFO) NRN Error  >>> pyNeuroML >>> 2021-11-24 11:03:40,683 - pyneuroml.pynml - INFO - Converting -54.3 mV to mV: -54.3 (-0.0543 in SI units)
  jNeuroML >>  (INFO) NRN Error  >>> pyNeuroML >>> pyneuroml.pynml - INFO - Converting 120.0 mS_per_cm2 to S_per_cm2: 0.12 (1200.0 in SI units)
  jNeuroML >>  (INFO) NRN Error  >>> pyNeuroML >>> 2021-11-24 11:03:40,683 - pyneuroml.pynml - INFO - Converting 120.0 mS_per_cm2 to S_per_cm2: 0.12 (1200.0 in SI units)
  jNeuroML >>  (INFO) NRN Error  >>> pyNeuroML >>> pyneuroml.pynml - INFO - Converting 50.0 mV to mV: 50.0 (0.05 in SI units)
  jNeuroML >>  (INFO) NRN Error  >>> pyNeuroML >>> 2021-11-24 11:03:40,683 - pyneuroml.pynml - INFO - Converting 50.0 mV to mV: 50.0 (0.05 in SI units)
  jNeuroML >>  (INFO) NRN Error  >>> pyNeuroML >>> pyneuroml.pynml - INFO - Converting 360.0 S_per_m2 to S_per_cm2: 0.036 (360.0 in SI units)
  jNeuroML >>  (INFO) NRN Error  >>> pyNeuroML >>> 2021-11-24 11:03:40,684 - pyneuroml.pynml - INFO - Converting 360.0 S_per_m2 to S_per_cm2: 0.036 (360.0 in SI units)
  jNeuroML >>  (INFO) NRN Error  >>> pyNeuroML >>> pyneuroml.pynml - INFO - Converting -77.0 mV to mV: -77.0 (-0.077 in SI units)
  jNeuroML >>  (INFO) NRN Error  >>> pyNeuroML >>> 2021-11-24 11:03:40,684 - pyneuroml.pynml - INFO - Converting -77.0 mV to mV: -77.0 (-0.077 in SI units)
  jNeuroML >>  (INFO) NRN Error  >>> pyNeuroML >>> pyneuroml.pynml - INFO - Converting -65.0 mV to mV: -65.0 (-0.065 in SI units)
  jNeuroML >>  (INFO) NRN Error  >>> pyNeuroML >>> 2021-11-24 11:03:40,684 - pyneuroml.pynml - INFO - Converting -65.0 mV to mV: -65.0 (-0.065 in SI units)
  jNeuroML >>  (INFO) NRN Error  >>> pyNeuroML >>> pyneuroml.pynml - INFO - Converting 1.0 uF_per_cm2 to uF_per_cm2: 1.0 (0.01 in SI units)
  jNeuroML >>  (INFO) NRN Error  >>> pyNeuroML >>> 2021-11-24 11:03:40,684 - pyneuroml.pynml - INFO - Converting 1.0 uF_per_cm2 to uF_per_cm2: 1.0 (0.01 in SI units)
  jNeuroML >>  (INFO) NRN Error  >>> pyNeuroML >>> pyneuroml.pynml - INFO - Converting 0.03 kohm_cm to ohm_cm: 30.0 (0.3 in SI units)
  jNeuroML >>  (INFO) NRN Error  >>> pyNeuroML >>> 2021-11-24 11:03:40,684 - pyneuroml.pynml - INFO - Converting 0.03 kohm_cm to ohm_cm: 30.0 (0.3 in SI units)
  jNeuroML >>  (INFO) NRN Error  >>> 0 /usr/local/bin/nrniv: usable mindelay is 0 (or less than dt for fixed step method)
  jNeuroML >>  (INFO) NRN Error  >>> 0  near line 0
  jNeuroML >>  (INFO) NRN Error  >>> 0  tstop=300.0
  jNeuroML >>  (INFO) NRN Error  >>>             ^
  jNeuroML >>  (INFO) NRN Error  >>>         0 finitialize(-65)
  jNeuroML >>  (INFO) NRN Error  >>> application called MPI_Abort(MPI_COMM_WORLD, -1) - process 0
  jNeuroML >>  (INFO) Exit value for running PyNEURON: 255

System information:

jonrkarr commented 2 years ago

There's no problem here. I wasn't paying careful attention to the meaning of the LEMS steps (size) parameter. I was thinking of other languages which focus on the number of steps rather than their size.