I think the issue is a badly definition of the model. Some of the parameters/functions are defined externally of the workspace and not imported there. I would suggest to import all the pdf and parameters in the workspace and then after that create the ModelConfig and call the RooStats calculators. Also if you provide the ModelConfig, you don’t need to call again plc.SetParameters(nsig). I would remove that line.