$sourcelength required setting the number of the light source. This number needs to be set in the beginning of input file.
Example
$sourcelength 2