File "oasis/functions.py", line 737, in constrained_onnlsAR2 `c = res0` UnboundLocalError: local variable 'res0' referenced before assignment