added 'nodeFunctionOnly = TRUE' option to model$getNodeNames