Your A in the second cell depends on k which is computed in the third cell (as a fit parameter)... Then your testmodel is different at each execution of 3,2