Program: 76251
Project: 76251
Buggy source:
/** 
 * Changing of a parameter has occured. First check if the parameter (K or N) falls within the range of allowed values. Then propagate the new parameter value to the various actors in the model. If a valid change of a parameter took place, execute the model again.
 * @param name The name of the entry that changed.
 */
public void changed(String name){
  try {
    boolean done=false;
    if (name == "String_Node_Str") {
      int k=(int)_query.intValue("String_Node_Str");
      if ((k < 501) && (k > 0)) {
        _ND_6.parameter_K.setToken(new IntToken((int)_query.intValue("String_Node_Str")));
        _ND_14.parameter_K.setToken(new IntToken((int)_query.intValue("String_Node_Str")));
        _ND_66.parameter_K.setToken(new IntToken((int)_query.intValue("String_Node_Str")));
        _ND_36.parameter_K.setToken(new IntToken((int)_query.intValue("String_Node_Str")));
        _ND_86.parameter_K.setToken(new IntToken((int)_query.intValue("String_Node_Str")));
        done=true;
      }
 else {
        throw new IllegalActionException("String_Node_Str");
      }
    }
    if (name == "String_Node_Str") {
      int n=(int)_query.intValue("String_Node_Str");
      if ((n < 17) && (n > 1)) {
        _s2m.dimension.setToken(new IntToken((int)_query.intValue("String_Node_Str")));
        _ND_6.parameter_N.setToken(new IntToken((int)_query.intValue("String_Node_Str")));
        _ND_14.parameter_N.setToken(new IntToken((int)_query.intValue("String_Node_Str")));
        _ND_66.parameter_N.setToken(new IntToken((int)_query.intValue("String_Node_Str")));
        _ND_36.parameter_N.setToken(new IntToken((int)_query.intValue("String_Node_Str")));
        _ND_86.parameter_N.setToken(new IntToken((int)_query.intValue("String_Node_Str")));
        done=true;
      }
 else {
        throw new IllegalActionException("String_Node_Str");
      }
    }
    if (done) {
      _go();
    }
  }
 catch (  IllegalActionException ex) {
    throw new InternalErrorException(ex.toString());
  }
}

Fixed version (ground truth):
/** 
 * Changing of a parameter has occured. First check if the parameter (K or N) falls within the range of allowed values. Then propagate the new parameter value to the various actors in the model. If a valid change of a parameter took place, execute the model again.
 * @param name The name of the entry that changed.
 */
public void changed(String name){
  try {
    boolean done=false;
    if (name == "String_Node_Str") {
      int k=(int)_query.intValue("String_Node_Str");
      if ((0 < k) && (k < 501)) {
        _ND_6.parameter_K.setToken(new IntToken(k));
        _ND_14.parameter_K.setToken(new IntToken(k));
        _ND_66.parameter_K.setToken(new IntToken(k));
        _ND_36.parameter_K.setToken(new IntToken(k));
        _ND_86.parameter_K.setToken(new IntToken(k));
        done=true;
      }
 else {
        report("String_Node_Str");
      }
    }
 else {
      if (name == "String_Node_Str") {
        int n=(int)_query.intValue("String_Node_Str");
        if ((1 < n) && (n < 17)) {
          _s2m.dimension.setToken(new IntToken(n));
          _ND_6.parameter_N.setToken(new IntToken(n));
          _ND_14.parameter_N.setToken(new IntToken(n));
          _ND_66.parameter_N.setToken(new IntToken(n));
          _ND_36.parameter_N.setToken(new IntToken(n));
          _ND_86.parameter_N.setToken(new IntToken(n));
          done=true;
        }
 else {
          report("String_Node_Str");
        }
      }
    }
    if (done) {
      _go();
    }
  }
 catch (  IllegalActionException ex) {
    throw new InternalErrorException(ex.toString());
  }
}