Hi Toomas,
I don't think that it's actually that equation that causes an error but
something about its interaction with the rest of the equations. Could
you maybe reduce your equations to a minimal example with which we can
reproduce this error? Do you know what state updater you are using
(setting log_level_info() might give a clue) -- does the error remain
if you chose a different one (e.g. if you use method="RK" in the
NeuronGroup's constructor)?
One important thing: Your error message seems to indicate you are using
the exp function from Python's math package instead of the exp function
from numpy (I don't think numpy ever gives an OverflowError, it would
just return "Inf"). You should always use numpy functions everywhere --
if you do "from brian import *", you'll automatically get numpy's exp
function but you can also import it explicitly ("from numpy import exp"
or similar) or import the numpy package and call "numpy.exp".
Best
Marcel