Program: 73877
Project: 73877
Buggy source:
/** 
 * Preinitialize the actors associated with this director. Generate the giotto schedule.
 * @exception IllegalActionException If the preinitialize() method ofone of the associated actors throws it.
 */
public void preinitialize() throws IllegalActionException {
  super.preinitialize();
  CompositeActor compositeActor=(CompositeActor)(getContainer());
  if (_isEmbedded()) {
    Director executiveDirector=compositeActor.getExecutiveDirector();
    if (executiveDirector instanceof GiottoDirector) {
      double periodValue=((GiottoDirector)executiveDirector).getPeriod();
      int frequencyValue=_getActorFrequency(compositeActor);
      _periodValue=periodValue / frequencyValue;
      period.setExpression(Double.toString(_periodValue));
    }
  }
  GiottoScheduler scheduler=(GiottoScheduler)getScheduler();
  _schedule=scheduler.getSchedule();
  _unitTimeIncrement=scheduler._getMinTimeStep(_periodValue);
  _lcm=scheduler.getLCM();
  CompositeActor localCompositeActor=(CompositeActor)(getContainer());
  List actorList=compositeActor.deepEntityList();
  ListIterator actors=actorList.listIterator();
  Actor actor;
  double wcet=0;
  boolean errorHandlerSet=false;
  try {
    createDecoratedAttributes(this);
    System.out.println("String_Node_Str");
  }
 catch (  NameDuplicationException e) {
    e.printStackTrace();
  }
  Attribute dirWCET=this.getContainer().getAttribute("String_Node_Str");
  if (dirWCET != null) {
    wcet=((DoubleToken)((Variable)dirWCET).getToken()).doubleValue();
  }
  System.out.println("String_Node_Str" + wcet + "String_Node_Str"+ _periodValue);
  if (wcet > _periodValue) {
    System.out.println("String_Node_Str");
    handleModelError(this,new IllegalActionException(this,"String_Node_Str" + wcet + "String_Node_Str"+ _periodValue+ "String_Node_Str"+ ((CompositeActor)(getContainer())).getDisplayName()));
  }
}

Fixed version (ground truth):
/** 
 * Preinitialize the actors associated with this director. Generate the giotto schedule.
 * @exception IllegalActionException If the preinitialize() method ofone of the associated actors throws it.
 */
public void preinitialize() throws IllegalActionException {
  super.preinitialize();
  super.preinitialize();
  CompositeActor compositeActor=(CompositeActor)(getContainer());
  if (_isEmbedded()) {
    Director executiveDirector=compositeActor.getExecutiveDirector();
    if (executiveDirector instanceof GiottoDirector) {
      double periodValue=((GiottoDirector)executiveDirector).getPeriod();
      int frequencyValue=_getActorFrequency(compositeActor);
      _periodValue=periodValue / frequencyValue;
      period.setExpression(Double.toString(_periodValue));
    }
  }
  GiottoScheduler scheduler=(GiottoScheduler)getScheduler();
  _schedule=scheduler.getSchedule();
  _unitTimeIncrement=scheduler._getMinTimeStep(_periodValue);
  Actor actor;
  double wcet=0;
  boolean errorHandlerSet=false;
  try {
    createDecoratedAttributes(this);
  }
 catch (  NameDuplicationException e) {
    e.printStackTrace();
  }
  Attribute dirWCET=this.getContainer().getAttribute("String_Node_Str");
  if (dirWCET != null) {
    wcet=((DoubleToken)((Variable)dirWCET).getToken()).doubleValue();
  }
  if (wcet > _periodValue) {
    if (_debugging) {
      _debug("String_Node_Str");
    }
    handleModelError(this,new IllegalActionException(this,"String_Node_Str" + wcet + "String_Node_Str"+ _periodValue+ "String_Node_Str"+ ((CompositeActor)(getContainer())).getDisplayName()));
  }
  if (_debugging) {
    _debug("String_Node_Str");
  }
}