Program: 72672
Project: 72672
Buggy source:
/** 
 * Initialize the class. 
 */
private void _init() throws IllegalActionException, NameDuplicationException {
  StringToken[] empty=new StringToken[1];
  stateVariableNames=new Parameter(this,"String_Node_Str");
  empty[0]=new StringToken("String_Node_Str");
  stateVariableNames.setToken(new ArrayToken(BaseType.STRING,empty));
  bootstrap=new Parameter(this,"String_Node_Str");
  bootstrap.setTypeEquals(BaseType.BOOLEAN);
  bootstrap.setExpression("String_Node_Str");
  lowVarianceSampler=new Parameter(this,"String_Node_Str");
  lowVarianceSampler.setTypeEquals(BaseType.BOOLEAN);
  lowVarianceSampler.setExpression("String_Node_Str");
  particleCount=new Parameter(this,"String_Node_Str");
  particleCount.setExpression("String_Node_Str");
  Nparticles=1000;
  outputParticleCount=new Parameter(this,"String_Node_Str");
  outputParticleCount.setExpression("String_Node_Str");
  Noutput=100;
  processNoise=new Parameter(this,"String_Node_Str");
  processNoise.setExpression("String_Node_Str");
  particleOutput=new TypedIOPort(this,"String_Node_Str",false,true);
  particleOutput.setTypeEquals(RecordType.EMPTY_RECORD);
  SingletonParameter showName=(SingletonParameter)particleOutput.getAttribute("String_Node_Str");
  if (showName == null) {
    showName=new SingletonParameter(particleOutput,"String_Node_Str");
    showName.setToken("String_Node_Str");
  }
 else {
    showName.setToken("String_Node_Str");
  }
  seed=new SharedParameter(this,"String_Node_Str");
  seed.setExpression("String_Node_Str");
  seed.setTypeEquals(BaseType.LONG);
  seed.setVisibility(Settable.EXPERT);
  resetOnEachRun=new SharedParameter(this,"String_Node_Str");
  resetOnEachRun.setExpression("String_Node_Str");
  resetOnEachRun.setVisibility(Settable.EXPERT);
  resetOnEachRun.setTypeEquals(BaseType.BOOLEAN);
  stateEstimate=new TypedIOPort(this,"String_Node_Str",false,true);
  stateEstimate.setTypeEquals(RecordType.EMPTY_RECORD);
  showName=(SingletonParameter)stateEstimate.getAttribute("String_Node_Str");
  if (showName == null) {
    showName=new SingletonParameter(stateEstimate,"String_Node_Str");
    showName.setToken("String_Node_Str");
  }
 else {
    showName.setToken("String_Node_Str");
  }
  prior=new Parameter(this,"String_Node_Str");
  prior.setExpression("String_Node_Str");
  t=new Parameter(this,"String_Node_Str");
  t.setTypeEquals(BaseType.DOUBLE);
  t.setVisibility(Settable.EXPERT);
  t.setExpression("String_Node_Str");
  measurementCovariance=new Parameter(this,"String_Node_Str");
  measurementCovariance.setExpression("String_Node_Str");
  _measurementParameters=new HashMap<String,Parameter>();
  _measurementValues=new HashMap<String,Token>();
  _measurementEquations=new LinkedList<Expression>();
  _firstIteration=true;
  particles=new Particle[Nparticles];
  _createRandomGenerator();
  _tokenMap=new HashMap<String,Token>();
  _parseTreeEvaluator=new ParseTreeEvaluator();
  _scope=new VariableScope();
  new DEDirector(this,"String_Node_Str").setPersistent(false);
  _attachText("String_Node_Str","String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str");
}

Fixed version (ground truth):
/** 
 * Initialize the class. 
 */
private void _init() throws IllegalActionException, NameDuplicationException {
  StringToken[] empty=new StringToken[1];
  stateVariableNames=new Parameter(this,"String_Node_Str");
  empty[0]=new StringToken("String_Node_Str");
  stateVariableNames.setToken(new ArrayToken(BaseType.STRING,empty));
  bootstrap=new Parameter(this,"String_Node_Str");
  bootstrap.setTypeEquals(BaseType.BOOLEAN);
  bootstrap.setExpression("String_Node_Str");
  lowVarianceSampler=new Parameter(this,"String_Node_Str");
  lowVarianceSampler.setTypeEquals(BaseType.BOOLEAN);
  lowVarianceSampler.setExpression("String_Node_Str");
  particleCount=new Parameter(this,"String_Node_Str");
  particleCount.setExpression("String_Node_Str");
  Nparticles=1000;
  outputParticleCount=new Parameter(this,"String_Node_Str");
  outputParticleCount.setExpression("String_Node_Str");
  Noutput=100;
  processNoise=new Parameter(this,"String_Node_Str");
  processNoise.setExpression("String_Node_Str");
  particleOutput=new TypedIOPort(this,"String_Node_Str",false,true);
  particleOutput.setTypeEquals(RecordType.EMPTY_RECORD);
  SingletonParameter showName=(SingletonParameter)particleOutput.getAttribute("String_Node_Str");
  if (showName == null) {
    showName=new SingletonParameter(particleOutput,"String_Node_Str");
    showName.setToken("String_Node_Str");
  }
 else {
    showName.setToken("String_Node_Str");
  }
  seed=new SharedParameter(this,"String_Node_Str");
  seed.setExpression("String_Node_Str");
  seed.setTypeEquals(BaseType.LONG);
  seed.setVisibility(Settable.EXPERT);
  resetOnEachRun=new SharedParameter(this,"String_Node_Str");
  resetOnEachRun.setExpression("String_Node_Str");
  resetOnEachRun.setVisibility(Settable.EXPERT);
  resetOnEachRun.setTypeEquals(BaseType.BOOLEAN);
  stateEstimate=new TypedIOPort(this,"String_Node_Str",false,true);
  stateEstimate.setTypeEquals(RecordType.EMPTY_RECORD);
  showName=(SingletonParameter)stateEstimate.getAttribute("String_Node_Str");
  if (showName == null) {
    showName=new SingletonParameter(stateEstimate,"String_Node_Str");
    showName.setToken("String_Node_Str");
  }
 else {
    showName.setToken("String_Node_Str");
  }
  prior=new Parameter(this,"String_Node_Str");
  prior.setExpression("String_Node_Str");
  t=new Parameter(this,"String_Node_Str");
  t.setTypeEquals(BaseType.DOUBLE);
  t.setVisibility(Settable.EXPERT);
  t.setExpression("String_Node_Str");
  measurementCovariance=new Parameter(this,"String_Node_Str");
  measurementCovariance.setExpression("String_Node_Str");
  _measurementParameters=new HashMap<String,Parameter>();
  _measurementValues=new HashMap<String,Token>();
  _measurementEquations=new LinkedList<Expression>();
  _firstIteration=true;
  particles=new Particle[Nparticles];
  _createRandomGenerator();
  _tokenMap=new HashMap<String,Token>();
  new DEDirector(this,"String_Node_Str").setPersistent(false);
  _attachText("String_Node_Str","String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str");
}