Program: 76289
Project: 76289
Buggy source:
/** 
 * After invoking super.init(), create and connect the actors.
 */
public void init(){
  super.init();
  getContentPane().add(_createRunControls(2),BorderLayout.SOUTH);
  try {
    Ramp rampSig=new Ramp(_toplevel,"String_Node_Str");
    Sine sineSig=new Sine(_toplevel,"String_Node_Str");
    sineSig.omega.setToken(new DoubleToken(0.1));
    Gaussian noise=new Gaussian(_toplevel,"String_Node_Str");
    noise.standardDeviation.setToken(new DoubleToken(0.1));
    AddSubtractBroad add=new AddSubtractBroad(_toplevel,"String_Node_Str");
    add.output.setMultiport(true);
    SequencePlotter hystplotter=new SequencePlotter(_toplevel,"String_Node_Str");
    hystplotter.place(getContentPane());
    hystplotter.plot.setBackground(getBackground());
    hystplotter.plot.setGrid(false);
    hystplotter.plot.setTitle("String_Node_Str");
    hystplotter.plot.setXRange(0.0,150.0);
    hystplotter.plot.setWrap(true);
    hystplotter.plot.setYRange(-1.3,1.3);
    hystplotter.plot.setMarksStyle("String_Node_Str");
    hystplotter.plot.setPointsPersistence(150);
    TypedCompositeActor tempAct=new TypedCompositeActor(_toplevel,"String_Node_Str");
    TypedIOPort tempActInPort=(TypedIOPort)tempAct.newPort("String_Node_Str");
    tempActInPort.setInput(true);
    tempActInPort.setTypeEquals(BaseType.DOUBLE);
    TypedIOPort tempActOutPort=(TypedIOPort)tempAct.newPort("String_Node_Str");
    tempActOutPort.setOutput(true);
    tempActOutPort.setTypeEquals(BaseType.DOUBLE);
    HDFFSMController ctrl=new HDFFSMController(tempAct,"String_Node_Str");
    StreamListener sa=new StreamListener();
    ctrl.addDebugListener(sa);
    HDFFSMState ctrls0=new HDFFSMState(ctrl,"String_Node_Str");
    HDFFSMState ctrls1=new HDFFSMState(ctrl,"String_Node_Str");
    ctrl.setInitialState(ctrls0);
    HDFFSMTransition ctrlTrs0Tos1=(HDFFSMTransition)ctrl.createTransition(ctrls0,ctrls1);
    ctrlTrs0Tos1.setTriggerEvent("String_Node_Str");
    ctrlTrs0Tos1.setTriggerCondition("String_Node_Str");
    HDFFSMTransition ctrlTrs0Tos0=(HDFFSMTransition)ctrl.createTransition(ctrls0,ctrls0);
    ctrlTrs0Tos0.setTriggerEvent("String_Node_Str");
    ctrlTrs0Tos0.setTriggerCondition("String_Node_Str");
    HDFFSMTransition ctrlTrs1Tos0=(HDFFSMTransition)ctrl.createTransition(ctrls1,ctrls0);
    ctrlTrs1Tos0.setTriggerEvent("String_Node_Str");
    ctrlTrs1Tos0.setTriggerCondition("String_Node_Str");
    HDFFSMTransition ctrlTrs1Tos1=(HDFFSMTransition)ctrl.createTransition(ctrls1,ctrls1);
    ctrlTrs1Tos1.setTriggerEvent("String_Node_Str");
    ctrlTrs1Tos1.setTriggerCondition("String_Node_Str");
    HDFFSMDirector ctrlDir=new HDFFSMDirector(tempAct,"String_Node_Str");
    ctrlDir.setController(ctrl);
    StreamListener sa2=new StreamListener();
    ctrlDir.addDebugListener(sa2);
    TypedCompositeActor tempActState0=new TypedCompositeActor(tempAct,"String_Node_Str");
    ctrls0.setRefinement(tempActState0);
    TypedIOPort tempActState0InPort=(TypedIOPort)tempActState0.newPort("String_Node_Str");
    tempActState0InPort.setInput(true);
    tempActState0InPort.setTypeEquals(BaseType.DOUBLE);
    TypedIOPort tempActState0OutPort=(TypedIOPort)tempActState0.newPort("String_Node_Str");
    tempActState0OutPort.setOutput(true);
    tempActState0OutPort.setTypeEquals(BaseType.DOUBLE);
    try {
      SDFDirector _director0=new SDFDirector(tempActState0,"String_Node_Str");
      Parameter iterparam0=_director0.iterations;
      iterparam0.setToken(new IntToken(iterations));
      SDFScheduler scheduler0=new SDFScheduler(_workspace);
      _director0.setScheduler(scheduler0);
      _director0.setScheduleValid(false);
    }
 catch (    Exception ex) {
      report("String_Node_Str",ex);
    }
    Const const0=new Const(tempActState0,"String_Node_Str");
    const0.value.setToken(new DoubleToken(-1));
    tempActState0.connect(const0.output,tempActState0OutPort);
    TypedCompositeActor tempActState1=new TypedCompositeActor(tempAct,"String_Node_Str");
    ctrls1.setRefinement(tempActState1);
    TypedIOPort tempActState1InPort=(TypedIOPort)tempActState1.newPort("String_Node_Str");
    tempActState1InPort.setInput(true);
    tempActState1InPort.setTypeEquals(BaseType.DOUBLE);
    TypedIOPort tempActState1OutPort=(TypedIOPort)tempActState1.newPort("String_Node_Str");
    tempActState1OutPort.setOutput(true);
    tempActState1OutPort.setTypeEquals(BaseType.DOUBLE);
    TypedIORelation tempActInRel=(TypedIORelation)tempAct.newRelation("String_Node_Str");
    tempActInPort.link(tempActInRel);
    tempActState0InPort.link(tempActInRel);
    tempActState1InPort.link(tempActInRel);
    TypedIORelation tempActOutRel=(TypedIORelation)tempAct.newRelation("String_Node_Str");
    tempActOutPort.link(tempActInRel);
    tempActState0OutPort.link(tempActInRel);
    tempActState1OutPort.link(tempActInRel);
    try {
      SDFDirector _director1=new SDFDirector(tempActState1,"String_Node_Str");
      Parameter iterparam1=_director1.iterations;
      iterparam1.setToken(new IntToken(iterations));
      SDFScheduler scheduler1=new SDFScheduler(_workspace);
      _director1.setScheduler(scheduler1);
      _director1.setScheduleValid(false);
    }
 catch (    Exception ex) {
      report("String_Node_Str",ex);
    }
    Const const1=new Const(tempActState1,"String_Node_Str");
    const1.value.setToken(new DoubleToken(1));
    tempActState1.connect(const1.output,tempActState1OutPort);
    _toplevel.connect(rampSig.output,sineSig.input);
    _toplevel.connect(sineSig.output,add.plus);
    _toplevel.connect(noise.output,add.plus);
    _toplevel.connect(add.output,tempActInPort);
    _toplevel.connect(tempActOutPort,hystplotter.input);
    _toplevel.connect(add.output,hystplotter.input);
  }
 catch (  Exception ex) {
    report("String_Node_Str",ex);
  }
}

Fixed version (ground truth):
/** 
 * After invoking super.init(), create and connect the actors.
 */
public void init(){
  super.init();
  getContentPane().add(_createRunControls(2),BorderLayout.SOUTH);
  try {
    Ramp rampSig=new Ramp(_toplevel,"String_Node_Str");
    Sine sineSig=new Sine(_toplevel,"String_Node_Str");
    sineSig.omega.setToken(new DoubleToken(0.1));
    Gaussian noise=new Gaussian(_toplevel,"String_Node_Str");
    noise.standardDeviation.setToken(new DoubleToken(0.2));
    AddSubtract add=new AddSubtract(_toplevel,"String_Node_Str");
    SequencePlotter hystplotter=new SequencePlotter(_toplevel,"String_Node_Str");
    hystplotter.place(getContentPane());
    hystplotter.plot.setBackground(getBackground());
    hystplotter.plot.setGrid(false);
    hystplotter.plot.setTitle("String_Node_Str");
    hystplotter.plot.setXRange(0.0,200.0);
    hystplotter.plot.setWrap(true);
    hystplotter.plot.setYRange(-1.3,1.3);
    hystplotter.plot.setMarksStyle("String_Node_Str");
    hystplotter.plot.setPointsPersistence(200);
    TypedCompositeActor tempAct=new TypedCompositeActor(_toplevel,"String_Node_Str");
    TypedIOPort tempActInPort=(TypedIOPort)tempAct.newPort("String_Node_Str");
    tempActInPort.setInput(true);
    tempActInPort.setTypeEquals(BaseType.DOUBLE);
    TypedIOPort tempActOutPort=(TypedIOPort)tempAct.newPort("String_Node_Str");
    tempActOutPort.setOutput(true);
    tempActOutPort.setTypeEquals(BaseType.DOUBLE);
    HDFFSMController ctrl=new HDFFSMController(tempAct,"String_Node_Str");
    StreamListener sa=new StreamListener();
    ctrl.addDebugListener(sa);
    HDFFSMState ctrls0=new HDFFSMState(ctrl,"String_Node_Str");
    HDFFSMState ctrls1=new HDFFSMState(ctrl,"String_Node_Str");
    ctrl.setInitialState(ctrls0);
    HDFFSMTransition ctrlTrs0Tos1=(HDFFSMTransition)ctrl.createTransition(ctrls0,ctrls1);
    ctrlTrs0Tos1.setTriggerEvent("String_Node_Str");
    ctrlTrs0Tos1.setTriggerCondition("String_Node_Str");
    HDFFSMTransition ctrlTrs0Tos0=(HDFFSMTransition)ctrl.createTransition(ctrls0,ctrls0);
    ctrlTrs0Tos0.setTriggerEvent("String_Node_Str");
    ctrlTrs0Tos0.setTriggerCondition("String_Node_Str");
    HDFFSMTransition ctrlTrs1Tos0=(HDFFSMTransition)ctrl.createTransition(ctrls1,ctrls0);
    ctrlTrs1Tos0.setTriggerEvent("String_Node_Str");
    ctrlTrs1Tos0.setTriggerCondition("String_Node_Str");
    HDFFSMTransition ctrlTrs1Tos1=(HDFFSMTransition)ctrl.createTransition(ctrls1,ctrls1);
    ctrlTrs1Tos1.setTriggerEvent("String_Node_Str");
    ctrlTrs1Tos1.setTriggerCondition("String_Node_Str");
    HDFFSMDirector ctrlDir=new HDFFSMDirector(tempAct,"String_Node_Str");
    ctrlDir.setController(ctrl);
    StreamListener sa2=new StreamListener();
    ctrlDir.addDebugListener(sa2);
    TypedCompositeActor tempActState0=new TypedCompositeActor(tempAct,"String_Node_Str");
    ctrls0.setRefinement(tempActState0);
    TypedIOPort tempActState0InPort=(TypedIOPort)tempActState0.newPort("String_Node_Str");
    tempActState0InPort.setInput(true);
    tempActState0InPort.setTypeEquals(BaseType.DOUBLE);
    TypedIOPort tempActState0OutPort=(TypedIOPort)tempActState0.newPort("String_Node_Str");
    tempActState0OutPort.setOutput(true);
    tempActState0OutPort.setTypeEquals(BaseType.DOUBLE);
    try {
      SDFDirector _director0=new SDFDirector(tempActState0,"String_Node_Str");
      Parameter iterparam0=_director0.iterations;
      iterparam0.setToken(new IntToken(iterations));
      SDFScheduler scheduler0=new SDFScheduler(_workspace);
      _director0.setScheduler(scheduler0);
      _director0.setScheduleValid(false);
    }
 catch (    Exception ex) {
      report("String_Node_Str",ex);
    }
    Const const0=new Const(tempActState0,"String_Node_Str");
    const0.value.setToken(new DoubleToken(-1));
    tempActState0.connect(const0.output,tempActState0OutPort);
    TypedCompositeActor tempActState1=new TypedCompositeActor(tempAct,"String_Node_Str");
    ctrls1.setRefinement(tempActState1);
    TypedIOPort tempActState1InPort=(TypedIOPort)tempActState1.newPort("String_Node_Str");
    tempActState1InPort.setInput(true);
    tempActState1InPort.setTypeEquals(BaseType.DOUBLE);
    TypedIOPort tempActState1OutPort=(TypedIOPort)tempActState1.newPort("String_Node_Str");
    tempActState1OutPort.setOutput(true);
    tempActState1OutPort.setTypeEquals(BaseType.DOUBLE);
    TypedIORelation tempActInRel=(TypedIORelation)tempAct.newRelation("String_Node_Str");
    tempActInPort.link(tempActInRel);
    tempActState0InPort.link(tempActInRel);
    tempActState1InPort.link(tempActInRel);
    TypedIORelation tempActOutRel=(TypedIORelation)tempAct.newRelation("String_Node_Str");
    tempActOutPort.link(tempActInRel);
    tempActState0OutPort.link(tempActInRel);
    tempActState1OutPort.link(tempActInRel);
    try {
      SDFDirector _director1=new SDFDirector(tempActState1,"String_Node_Str");
      Parameter iterparam1=_director1.iterations;
      iterparam1.setToken(new IntToken(iterations));
      SDFScheduler scheduler1=new SDFScheduler(_workspace);
      _director1.setScheduler(scheduler1);
      _director1.setScheduleValid(false);
    }
 catch (    Exception ex) {
      report("String_Node_Str",ex);
    }
    Const const1=new Const(tempActState1,"String_Node_Str");
    const1.value.setToken(new DoubleToken(1));
    tempActState1.connect(const1.output,tempActState1OutPort);
    _toplevel.connect(rampSig.output,sineSig.input);
    _toplevel.connect(sineSig.output,add.plus);
    _toplevel.connect(noise.output,add.plus);
    _toplevel.connect(tempActOutPort,hystplotter.input);
    TypedIORelation noisyRel=(TypedIORelation)_toplevel.newRelation("String_Node_Str");
    (add.output).link(noisyRel);
    (tempActInPort).link(noisyRel);
    (hystplotter.input).link(noisyRel);
  }
 catch (  Exception ex) {
    report("String_Node_Str",ex);
  }
}