Start: 0812-172358

Task 1: pick_cool_then_place_in_recep-Tomato-None-Microwave-10/trial_T20190909_102644_926781
You are in the middle of a room. Looking quickly around you, you see a cabinet 6, a cabinet 5, a cabinet 4, a cabinet 3, a cabinet 2, a cabinet 1, a coffeemachine 1, a countertop 3, a countertop 2, a countertop 1, a drawer 3, a drawer 2, a drawer 1, a fridge 1, a garbagecan 1, a microwave 1, a shelf 3, a shelf 2, a shelf 1, a sinkbasin 1, a stoveburner 4, a stoveburner 3, a stoveburner 2, a stoveburner 1, and a toaster 1.
Your task is to: put a cool tomato in microwave.
[Step 4] go to a fridge to cool the tomato
Act: go to fridge 1
Obs: The fridge 1 is closed.
Act: open fridge 1
Obs: You open the fridge 1. The fridge 1 is open. In it, you see a bread 1, a mug 3, a pan 1, and a plate 3.
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 40, in solution
UnboundLocalError: local variable 'found_tomato' referenced before assignment
[Step 5] go to the microwave and put the tomato in it
Act: go to microwave 1
Obs: The microwave 1 is closed.
Act: open microwave 1
Obs: You open the microwave 1. The microwave 1 is open. In it, you see a egg 1.
Act: put None in/on microwave 1
Obs: Nothing happens.
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 56, in solution
AssertionError: Error in [Step 5]: I cannot put the None in the microwave 1. The last three interactions before error were:
Act: go to microwave 1
Obs: The microwave 1 is closed.
Act: open microwave 1
Obs: You open the microwave 1. The microwave 1 is open. In it, you see a egg 1.
Act: put None in/on microwave 1
Obs: Nothing happens.
I am at microwave 1 and holding None.
[Step 1] get a list of receptacles where the tomato is likely to appear.
[Step 2] go to each receptacle in the list until seeing a tomato
Act: go to fridge 1
Obs: The fridge 1 is open. In it, you see a bread 1, a mug 3, a pan 1, and a plate 3.
Act: go to countertop 1
Obs: On the countertop 1, you see a dishsponge 1, and a mug 2.
Act: go to countertop 2
Obs: On the countertop 2, you see a butterknife 1, a cellphone 1, a creditcard 1, a knife 1, a lettuce 1, a saltshaker 2, a saltshaker 1, a statue 1, and a tomato 1.
[Step 3] identify the tomato I just found and take it
Act: take tomato 1 from countertop 2
Obs: You pick up the tomato 1 from the countertop 2.
[Step 4] go to a fridge to cool the tomato
Act: go to fridge 1
Obs: The fridge 1 is open. In it, you see a bread 1, a mug 3, a pan 1, and a plate 3.
Act: cool tomato 1 with fridge 1
Obs: You cool the tomato 1 using the fridge 1.
[Step 5] go to a microwave and put the tomato in it
Act: go to microwave 1
Obs: The microwave 1 is open. In it, you see a egg 1.
Act: put tomato 1 in/on microwave 1
Obs: You put the tomato 1 in/on the microwave 1.
Done. Success: True

Success: True
Task 1, rs: [0, 0, 0, 0, 1, 0] cnts [0, 0, 0, 0, 1, 0] success_rate: 1.0 

failed_tasks_id {'pick_and_place': [], 'look_at_obj': [], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [], 'pick_two_obj': []}
num_refinement {'pick_and_place': [], 'look_at_obj': [], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [4], 'pick_two_obj': []}
all_tasks_id {'pick_and_place': [], 'look_at_obj': [], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [0], 'pick_two_obj': []}
------------

Task 2: pick_cool_then_place_in_recep-Mug-None-Cabinet-10/trial_T20190909_121635_622676
You are in the middle of a room. Looking quickly around you, you see a cabinet 6, a cabinet 5, a cabinet 4, a cabinet 3, a cabinet 2, a cabinet 1, a coffeemachine 1, a countertop 3, a countertop 2, a countertop 1, a drawer 3, a drawer 2, a drawer 1, a fridge 1, a garbagecan 1, a microwave 1, a shelf 3, a shelf 2, a shelf 1, a sinkbasin 1, a stoveburner 4, a stoveburner 3, a stoveburner 2, a stoveburner 1, and a toaster 1.
Your task is to: cool some mug and put it in cabinet.
[Step 3] identify the mug I just found and take it
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 27, in solution
UnboundLocalError: local variable 'observation' referenced before assignment
[Step 2] go to each receptacle in the list until seeing a mug
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 14, in solution
UnboundLocalError: local variable 'recep_to_check' referenced before assignment
[Step 1] get a list of receptacles where the lettuce is likely to appear.
[Step 2] go to each receptacle in the list until seeing a lettuce
Act: go to fridge 1
Obs: The fridge 1 is closed.
Act: open fridge 1
Obs: You open the fridge 1. The fridge 1 is open. In it, you see a apple 1, a bowl 1, a cup 2, a egg 1, a plate 2, a potato 2, a potato 1, a tomato 2, and a tomato 1.
Act: go to countertop 1
Obs: On the countertop 1, you see a fork 3, a mug 2, a peppershaker 3, a soapbottle 3, a soapbottle 2, and a spatula 2.
Act: go to countertop 2
Obs: On the countertop 2, you see a cellphone 2, a cellphone 1, a knife 1, a lettuce 1, a spatula 1, a spoon 1, and a tomato 3.
[Step 3] identify the lettuce I just found and take it
Act: take lettuce 1 from countertop 2
Obs: You pick up the lettuce 1 from the countertop 2.
[Step 4] go to a fridge to cool the lettuce
Act: go to fridge 1
Obs: The fridge 1 is open. In it, you see a apple 1, a bowl 1, a cup 2, a egg 1, a plate 2, a potato 2, a potato 1, a tomato 2, and a tomato 1.
Act: cool lettuce 1 with fridge 1
Obs: You cool the lettuce 1 using the fridge 1.
[Step 5] go to a diningtable and put the lettuce on it
Act: go to diningtable 1
Obs: Nothing happens.
Act: put lettuce 1 in/on diningtable 1
Obs: Nothing happens.
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 55, in solution
AssertionError: Error in [Step 5]: I cannot put the lettuce 1 on the diningtable 1. The last three interactions before error were:
Act: cool lettuce 1 with fridge 1
Obs: You cool the lettuce 1 using the fridge 1.
Act: go to diningtable 1
Obs: Nothing happens.
Act: put lettuce 1 in/on diningtable 1
Obs: Nothing happens.
I am at diningtable 1 and holding None.
[Step 1] get a list of receptacles where the mug is likely to appear.
[Step 2] go to each receptacle in the list until seeing a mug
Act: go to coffeemachine 1
Obs: On the coffeemachine 1, you see a mug 2.
[Step 3] identify the mug I just found and take it
Act: take mug 2 from coffeemachine 1
Obs: Nothing happens.
[Step 4] go to a fridge to cool the mug
Act: go to fridge 1
Obs: The fridge 1 is open. In it, you see a apple 1, a bowl 1, a cup 2, a egg 1, a plate 2, a potato 2, a potato 1, a tomato 2, and a tomato 1.
Act: cool mug 2 with fridge 1
Obs: Nothing happens.
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 42, in solution
AssertionError: Error in [Step 4]: I cannot cool the mug 2 using the fridge 1. The last three interactions before error were:
Act: take mug 2 from coffeemachine 1
Obs: Nothing happens.
Act: go to fridge 1
Obs: The fridge 1 is open. In it, you see a apple 1, a bowl 1, a cup 2, a egg 1, a plate 2, a potato 2, a potato 1, a tomato 2, and a tomato 1.
Act: cool mug 2 with fridge 1
Obs: Nothing happens.
I am at fridge 1 and holding mug 2. I should have been at fridge 1 and holding mug 2.

Success: False
Task 2, rs: [0, 0, 0, 0, 1, 0] cnts [0, 0, 0, 0, 2, 0] success_rate: 0.5 

failed_tasks_id {'pick_and_place': [], 'look_at_obj': [], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [1], 'pick_two_obj': []}
num_refinement {'pick_and_place': [], 'look_at_obj': [], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [4, -1], 'pick_two_obj': []}
all_tasks_id {'pick_and_place': [], 'look_at_obj': [], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [0, 1], 'pick_two_obj': []}
------------

Task 3: pick_cool_then_place_in_recep-Pan-None-CounterTop-10/trial_T20190908_114545_244903
You are in the middle of a room. Looking quickly around you, you see a cabinet 6, a cabinet 5, a cabinet 4, a cabinet 3, a cabinet 2, a cabinet 1, a coffeemachine 1, a countertop 3, a countertop 2, a countertop 1, a drawer 3, a drawer 2, a drawer 1, a fridge 1, a garbagecan 1, a microwave 1, a shelf 3, a shelf 2, a shelf 1, a sinkbasin 1, a stoveburner 4, a stoveburner 3, a stoveburner 2, a stoveburner 1, and a toaster 1.
Your task is to: cool some pan and put it in countertop.
[Step 3] identify the pan I just found and take it
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 27, in solution
UnboundLocalError: local variable 'observation' referenced before assignment
[Step 3] identify the pan I just found and take it
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 27, in solution
UnboundLocalError: local variable 'observation' referenced before assignment
[Step 1] get a list of receptacles where the pan is likely to appear.
[Step 2] go to each receptacle in the list until seeing a pan
Act: go to fridge 1
Obs: The fridge 1 is closed.
Act: open fridge 1
Obs: You open the fridge 1. The fridge 1 is open. In it, you see nothing.
Act: go to drawer 1
Obs: The drawer 1 is closed.
Act: open drawer 1
Obs: You open the drawer 1. The drawer 1 is open. In it, you see a knife 1.
Act: go to drawer 2
Obs: The drawer 2 is closed.
Act: open drawer 2
Obs: You open the drawer 2. The drawer 2 is open. In it, you see a cellphone 1, a saltshaker 3, and a saltshaker 2.
Act: go to drawer 3
Obs: The drawer 3 is closed.
Act: open drawer 3
Obs: You open the drawer 3. The drawer 3 is open. In it, you see a dishsponge 2.
Act: go to cabinet 1
Obs: On the cabinet 1, you see a bowl 1, and a plate 1.
Act: go to cabinet 2
Obs: The cabinet 2 is closed.
Act: open cabinet 2
Obs: You open the cabinet 2. The cabinet 2 is open. In it, you see a vase 1.
Act: go to cabinet 3
Obs: On the cabinet 3, you see a glassbottle 2.
Act: go to cabinet 4
Obs: On the cabinet 4, you see a bowl 2, a glassbottle 1, and a saltshaker 1.
Act: go to cabinet 5
Obs: The cabinet 5 is closed.
Act: open cabinet 5
Obs: You open the cabinet 5. The cabinet 5 is open. In it, you see a cup 1, and a peppershaker 1.
Act: go to cabinet 6
Obs: The cabinet 6 is closed.
Act: open cabinet 6
Obs: You open the cabinet 6. The cabinet 6 is open. In it, you see a dishsponge 1, a plate 2, and a soapbottle 1.
Act: go to countertop 1
Obs: On the countertop 1, you see a mug 1.
Act: go to countertop 2
Obs: On the countertop 2, you see nothing.
Act: go to countertop 3
Obs: On the countertop 3, you see a apple 1, a bread 1, a butterknife 1, a cellphone 3, a cellphone 2, a fork 1, a houseplant 1, a lettuce 1, a spoon 1, a statue 2, and a tomato 1.
Act: go to shelf 1
Obs: On the shelf 1, you see a creditcard 2, a creditcard 1, a soapbottle 2, a statue 1, and a vase 2.
Act: go to shelf 2
Obs: On the shelf 2, you see a creditcard 3, a papertowelroll 1, and a vase 3.
Act: go to shelf 3
Obs: On the shelf 3, you see nothing.
Act: go to sinkbasin 1
Obs: On the sinkbasin 1, you see a egg 1, a potato 1, a spatula 1, and a tomato 3.
Act: go to stoveburner 1
Obs: On the stoveburner 1, you see a pot 1.
Act: go to stoveburner 2
Obs: On the stoveburner 2, you see a pan 1.
[Step 3] identify the pan I just found and take it
Act: take pan 1 from stoveburner 2
Obs: You pick up the pan 1 from the stoveburner 2.
[Step 4] go to a fridge to cool the pan
Act: go to fridge 1
Obs: The fridge 1 is open. In it, you see nothing.
Act: cool pan 1 with fridge 1
Obs: You cool the pan 1 using the fridge 1.
[Step 5] go to a countertop and put the pan on it
Act: go to countertop 1
Obs: On the countertop 1, you see a mug 1.
Act: put pan 1 in/on countertop 1
Obs: You put the pan 1 in/on the countertop 1.
Done. Success: True

Success: True
Task 3, rs: [0, 0, 0, 0, 2, 0] cnts [0, 0, 0, 0, 3, 0] success_rate: 0.6666666666666666 

failed_tasks_id {'pick_and_place': [], 'look_at_obj': [], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [1], 'pick_two_obj': []}
num_refinement {'pick_and_place': [], 'look_at_obj': [], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [4, -1, 3], 'pick_two_obj': []}
all_tasks_id {'pick_and_place': [], 'look_at_obj': [], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [0, 1, 2], 'pick_two_obj': []}
------------

Task 4: pick_cool_then_place_in_recep-Potato-None-Microwave-10/trial_T20190907_033228_194678
You are in the middle of a room. Looking quickly around you, you see a cabinet 6, a cabinet 5, a cabinet 4, a cabinet 3, a cabinet 2, a cabinet 1, a coffeemachine 1, a countertop 3, a countertop 2, a countertop 1, a drawer 3, a drawer 2, a drawer 1, a fridge 1, a garbagecan 1, a microwave 1, a shelf 3, a shelf 2, a shelf 1, a sinkbasin 1, a stoveburner 4, a stoveburner 3, a stoveburner 2, a stoveburner 1, and a toaster 1.
Your task is to: cool some potato and put it in microwave.
[Step 5] go to a microwave and put the potato in it
Act: go to microwave 1
Obs: The microwave 1 is closed.
Act: open microwave 1
Obs: You open the microwave 1. The microwave 1 is open. In it, you see a egg 1.
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 51, in solution
UnboundLocalError: local variable 'found_potato' referenced before assignment
[Step 5] go to a microwave and put the potato in it
Act: go to microwave 1
Obs: Nothing happens.
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 51, in solution
UnboundLocalError: local variable 'found_potato' referenced before assignment
[Step 1] get a list of receptacles where the potato is likely to appear.
[Step 2] go to each receptacle in the list until seeing a potato
Act: go to fridge 1
Obs: The fridge 1 is closed.
Act: open fridge 1
Obs: You open the fridge 1. The fridge 1 is open. In it, you see a bowl 1, a cup 1, a lettuce 1, a plate 2, and a tomato 1.
Act: go to countertop 3
Obs: On the countertop 3, you see a bowl 2, a bread 1, a butterknife 3, a cellphone 2, a dishsponge 2, a egg 3, a fork 3, a houseplant 1, a soapbottle 3, a spatula 3, a spoon 3, a statue 2, and a statue 1.
Act: go to countertop 2
Obs: On the countertop 2, you see a apple 1, a creditcard 2, a creditcard 1, a fork 1, a glassbottle 1, a lettuce 2, a papertowelroll 1, a potato 1, a soapbottle 1, a spatula 2, and a spoon 1.
[Step 3] identify the potato I just found and take it
Act: take potato 1 from countertop 2
Obs: You pick up the potato 1 from the countertop 2.
[Step 4] go to a fridge to cool the potato
Act: go to fridge 1
Obs: The fridge 1 is open. In it, you see a bowl 1, a cup 1, a lettuce 1, a plate 2, and a tomato 1.
Act: cool potato 1 with fridge 1
Obs: You cool the potato 1 using the fridge 1.
[Step 5] go to the microwave and put the potato in it
Act: go to microwave 1
Obs: The microwave 1 is open. In it, you see a egg 1.
Act: put potato 1 in/on microwave 1
Obs: You put the potato 1 in/on the microwave 1.
Done. Success: True

Success: True
Task 4, rs: [0, 0, 0, 0, 3, 0] cnts [0, 0, 0, 0, 4, 0] success_rate: 0.75 

failed_tasks_id {'pick_and_place': [], 'look_at_obj': [], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [1], 'pick_two_obj': []}
num_refinement {'pick_and_place': [], 'look_at_obj': [], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [4, -1, 3, 3], 'pick_two_obj': []}
all_tasks_id {'pick_and_place': [], 'look_at_obj': [], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [0, 1, 2, 3], 'pick_two_obj': []}
------------

Task 5: pick_cool_then_place_in_recep-Mug-None-Cabinet-10/trial_T20190909_121559_082363
You are in the middle of a room. Looking quickly around you, you see a cabinet 6, a cabinet 5, a cabinet 4, a cabinet 3, a cabinet 2, a cabinet 1, a coffeemachine 1, a countertop 3, a countertop 2, a countertop 1, a drawer 3, a drawer 2, a drawer 1, a fridge 1, a garbagecan 1, a microwave 1, a shelf 3, a shelf 2, a shelf 1, a sinkbasin 1, a stoveburner 4, a stoveburner 3, a stoveburner 2, a stoveburner 1, and a toaster 1.
Your task is to: put a cool mug in cabinet.
[Step 4] go to a fridge to cool the mug
Act: go to fridge 1
Obs: The fridge 1 is closed.
Act: open fridge 1
Obs: You open the fridge 1. The fridge 1 is open. In it, you see a bowl 1, a bread 2, a egg 1, and a lettuce 1.
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 40, in solution
UnboundLocalError: local variable 'found_mug' referenced before assignment
[Step 3] identify the mug I just found and take it
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 29, in solution
UnboundLocalError: local variable 'receptacle' referenced before assignment
[Step 1] get a list of receptacles where the mug is likely to appear.
[Step 2] go to each receptacle in the list until seeing a mug
Act: go to coffeemachine 1
Obs: On the coffeemachine 1, you see a mug 3.
[Step 3] identify the mug I just found and take it
Act: take mug 3 from coffeemachine 1
Obs: You pick up the mug 3 from the coffeemachine 1.
[Step 4] go to a fridge to cool the mug
Act: go to fridge 1
Obs: The fridge 1 is open. In it, you see a bowl 1, a bread 2, a egg 1, and a lettuce 1.
Act: cool mug 3 with fridge 1
Obs: You cool the mug 3 using the fridge 1.
[Step 5] go to a cabinet and put the mug in it
Act: go to cabinet 1
Obs: On the cabinet 1, you see a peppershaker 1, a soapbottle 1, and a vase 2.
Act: put mug 3 in/on cabinet 1
Obs: You put the mug 3 in/on the cabinet 1.
Done. Success: True

Success: True
Task 5, rs: [0, 0, 0, 0, 4, 0] cnts [0, 0, 0, 0, 5, 0] success_rate: 0.8 

failed_tasks_id {'pick_and_place': [], 'look_at_obj': [], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [1], 'pick_two_obj': []}
num_refinement {'pick_and_place': [], 'look_at_obj': [], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [4, -1, 3, 3, 3], 'pick_two_obj': []}
all_tasks_id {'pick_and_place': [], 'look_at_obj': [], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [0, 1, 2, 3, 4], 'pick_two_obj': []}
------------

Task 6: pick_cool_then_place_in_recep-Tomato-None-Microwave-10/trial_T20190909_102710_795182
You are in the middle of a room. Looking quickly around you, you see a cabinet 6, a cabinet 5, a cabinet 4, a cabinet 3, a cabinet 2, a cabinet 1, a coffeemachine 1, a countertop 3, a countertop 2, a countertop 1, a drawer 3, a drawer 2, a drawer 1, a fridge 1, a garbagecan 1, a microwave 1, a shelf 3, a shelf 2, a shelf 1, a sinkbasin 1, a stoveburner 4, a stoveburner 3, a stoveburner 2, a stoveburner 1, and a toaster 1.
Your task is to: put a cool tomato in microwave.
[Step 1] get a list of receptacles where the tomato is likely to appear.
[Step 2] go to each receptacle in the list until finding a tomato
Act: go to fridge 1
Obs: The fridge 1 is closed.
Act: open fridge 1
Obs: You open the fridge 1. The fridge 1 is open. In it, you see a apple 1, a bowl 3, a bowl 2, a cup 1, a mug 1, and a pan 1.
Act: go to countertop 1
Obs: On the countertop 1, you see a peppershaker 2, and a tomato 1.
[Step 3] identify the tomato and take it
Act: take tomato 1 from countertop 1
Obs: You pick up the tomato 1 from the countertop 1.
[Step 4] go to a fridge to cool the tomato
Act: go to fridge 1
Obs: The fridge 1 is open. In it, you see a apple 1, a bowl 3, a bowl 2, a cup 1, a mug 1, and a pan 1.
Act: cool tomato 1 with fridge 1
Obs: You cool the tomato 1 using the fridge 1.
[Step 5] go to the microwave and put the cool tomato in it
Act: go to microwave 1
Obs: The microwave 1 is closed.
Act: open microwave 1
Obs: You open the microwave 1. The microwave 1 is open. In it, you see nothing.
Act: put tomato 1 in/on microwave 1
Obs: You put the tomato 1 in/on the microwave 1.
Done. Success: True

Success: True
Task 6, rs: [0, 0, 0, 0, 5, 0] cnts [0, 0, 0, 0, 6, 0] success_rate: 0.8333333333333334 

failed_tasks_id {'pick_and_place': [], 'look_at_obj': [], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [1], 'pick_two_obj': []}
num_refinement {'pick_and_place': [], 'look_at_obj': [], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [4, -1, 3, 3, 3, 0], 'pick_two_obj': []}
all_tasks_id {'pick_and_place': [], 'look_at_obj': [], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [0, 1, 2, 3, 4, 5], 'pick_two_obj': []}
------------

Task 7: pick_cool_then_place_in_recep-Tomato-None-Microwave-10/trial_T20190909_102608_318800
You are in the middle of a room. Looking quickly around you, you see a cabinet 6, a cabinet 5, a cabinet 4, a cabinet 3, a cabinet 2, a cabinet 1, a coffeemachine 1, a countertop 3, a countertop 2, a countertop 1, a drawer 3, a drawer 2, a drawer 1, a fridge 1, a garbagecan 1, a microwave 1, a shelf 3, a shelf 2, a shelf 1, a sinkbasin 1, a stoveburner 4, a stoveburner 3, a stoveburner 2, a stoveburner 1, and a toaster 1.
Your task is to: put a cool tomato in microwave.
[Step 3] identify the tomato I just found and take it
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 27, in solution
UnboundLocalError: local variable 'observation' referenced before assignment
[Step 1] get a list of receptacles where the tomato is likely to appear.
[Step 2] go to each receptacle in the list until seeing a tomato
Act: go to fridge 1
Obs: The fridge 1 is closed.
Act: open fridge 1
Obs: You open the fridge 1. The fridge 1 is open. In it, you see a bowl 2, a bowl 1, a egg 1, a lettuce 2, a lettuce 1, a potato 2, and a potato 1.
Act: go to countertop 1
Obs: On the countertop 1, you see a mug 1, and a saltshaker 1.
Act: go to countertop 2
Obs: On the countertop 2, you see a butterknife 2, a butterknife 1, a cellphone 1, a glassbottle 1, a knife 1, a lettuce 3, a peppershaker 1, a statue 2, a statue 1, and a vase 1.
Act: go to countertop 3
Obs: On the countertop 3, you see a bread 1, a butterknife 3, a creditcard 2, a houseplant 1, a knife 3, a knife 2, a mug 2, a peppershaker 2, and a spatula 2.
Act: go to shelf 1
Obs: On the shelf 1, you see a creditcard 1, and a dishsponge 2.
Act: go to shelf 2
Obs: On the shelf 2, you see a papertowelroll 1, and a vase 3.
Act: go to shelf 3
Obs: On the shelf 3, you see nothing.
Act: go to drawer 1
Obs: The drawer 1 is closed.
Act: open drawer 1
Obs: You open the drawer 1. The drawer 1 is open. In it, you see a cellphone 2.
Act: go to drawer 2
Obs: The drawer 2 is closed.
Act: open drawer 2
Obs: You open the drawer 2. The drawer 2 is open. In it, you see a saltshaker 2, a spoon 2, and a spoon 1.
Act: go to drawer 3
Obs: The drawer 3 is closed.
Act: open drawer 3
Obs: You open the drawer 3. The drawer 3 is open. In it, you see a saltshaker 3.
Act: go to cabinet 1
Obs: On the cabinet 1, you see a dishsponge 1.
Act: go to cabinet 2
Obs: The cabinet 2 is closed.
Act: open cabinet 2
Obs: You open the cabinet 2. The cabinet 2 is open. In it, you see nothing.
Act: go to cabinet 3
Obs: On the cabinet 3, you see nothing.
Act: go to cabinet 4
Obs: On the cabinet 4, you see a cup 1, and a vase 2.
Act: go to cabinet 5
Obs: The cabinet 5 is closed.
Act: open cabinet 5
Obs: You open the cabinet 5. The cabinet 5 is open. In it, you see nothing.
Act: go to cabinet 6
Obs: The cabinet 6 is closed.
Act: open cabinet 6
Obs: You open the cabinet 6. The cabinet 6 is open. In it, you see a plate 1, and a soapbottle 1.
Act: go to stoveburner 1
Obs: On the stoveburner 1, you see a pot 1.
Act: go to stoveburner 2
Obs: On the stoveburner 2, you see a pan 1.
Act: go to stoveburner 3
Obs: On the stoveburner 3, you see a pot 1.
Act: go to stoveburner 4
Obs: On the stoveburner 4, you see a pan 1.
Act: go to microwave 1
Obs: The microwave 1 is closed.
Act: open microwave 1
Obs: You open the microwave 1. The microwave 1 is open. In it, you see nothing.
Act: go to toaster 1
Obs: On the toaster 1, you see nothing.
Act: go to coffeemachine 1
Obs: On the coffeemachine 1, you see a mug 1.
Act: go to sinkbasin 1
Obs: On the sinkbasin 1, you see a fork 1, a glassbottle 2, a spatula 1, and a spoon 3.
Act: go to garbagecan 1
Obs: On the garbagecan 1, you see a apple 1, and a tomato 1.
[Step 3] identify the tomato I just found and take it
Act: take tomato 1 from garbagecan 1
Obs: You pick up the tomato 1 from the garbagecan 1.
[Step 4] go to a fridge to cool the tomato
Act: go to fridge 1
Obs: The fridge 1 is open. In it, you see a bowl 2, a bowl 1, a egg 1, a lettuce 2, a lettuce 1, a potato 2, and a potato 1.
Act: cool tomato 1 with fridge 1
Obs: You cool the tomato 1 using the fridge 1.
[Step 5] go to a microwave and put the tomato in it
Act: go to microwave 1
Obs: The microwave 1 is open. In it, you see nothing.
Act: put tomato 1 in/on microwave 1
Obs: You put the tomato 1 in/on the microwave 1.
Done. Success: True

Success: True
Task 7, rs: [0, 0, 0, 0, 6, 0] cnts [0, 0, 0, 0, 7, 0] success_rate: 0.8571428571428571 

failed_tasks_id {'pick_and_place': [], 'look_at_obj': [], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [1], 'pick_two_obj': []}
num_refinement {'pick_and_place': [], 'look_at_obj': [], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [4, -1, 3, 3, 3, 0, 3], 'pick_two_obj': []}
all_tasks_id {'pick_and_place': [], 'look_at_obj': [], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [0, 1, 2, 3, 4, 5, 6], 'pick_two_obj': []}
------------

Task 8: pick_cool_then_place_in_recep-Pan-None-CounterTop-10/trial_T20190908_114622_738670
You are in the middle of a room. Looking quickly around you, you see a cabinet 6, a cabinet 5, a cabinet 4, a cabinet 3, a cabinet 2, a cabinet 1, a coffeemachine 1, a countertop 3, a countertop 2, a countertop 1, a drawer 3, a drawer 2, a drawer 1, a fridge 1, a garbagecan 1, a microwave 1, a shelf 3, a shelf 2, a shelf 1, a sinkbasin 1, a stoveburner 4, a stoveburner 3, a stoveburner 2, a stoveburner 1, and a toaster 1.
Your task is to: put a cool pan in countertop.
[Step 3] identify the pan I just found and take it
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 27, in solution
UnboundLocalError: local variable 'observation' referenced before assignment
[Step 3] identify the pan I just found and take it
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 27, in solution
UnboundLocalError: local variable 'observation' referenced before assignment
[Step 1] get a list of receptacles where the pan is likely to appear.
[Step 2] go to each receptacle in the list until seeing a pan
Act: go to fridge 1
Obs: The fridge 1 is closed.
Act: open fridge 1
Obs: You open the fridge 1. The fridge 1 is open. In it, you see nothing.
Act: go to cabinet 1
Obs: On the cabinet 1, you see a pan 1.
[Step 3] identify the pan I just found and take it
Act: take pan 1 from cabinet 1
Obs: You pick up the pan 1 from the cabinet 1.
[Step 4] go to a fridge to cool the pan
Act: go to fridge 1
Obs: The fridge 1 is open. In it, you see nothing.
Act: cool pan 1 with fridge 1
Obs: You cool the pan 1 using the fridge 1.
[Step 5] go to a countertop and put the pan on it
Act: go to countertop 1
Obs: On the countertop 1, you see a mug 2, and a pan 2.
Act: put pan 1 in/on countertop 1
Obs: You put the pan 1 in/on the countertop 1.
Done. Success: True

Success: True
Task 8, rs: [0, 0, 0, 0, 7, 0] cnts [0, 0, 0, 0, 8, 0] success_rate: 0.875 

failed_tasks_id {'pick_and_place': [], 'look_at_obj': [], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [1], 'pick_two_obj': []}
num_refinement {'pick_and_place': [], 'look_at_obj': [], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [4, -1, 3, 3, 3, 0, 3, 3], 'pick_two_obj': []}
all_tasks_id {'pick_and_place': [], 'look_at_obj': [], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [0, 1, 2, 3, 4, 5, 6, 7], 'pick_two_obj': []}
------------

Task 9: pick_cool_then_place_in_recep-Lettuce-None-CounterTop-10/trial_T20190909_174840_771703
You are in the middle of a room. Looking quickly around you, you see a cabinet 6, a cabinet 5, a cabinet 4, a cabinet 3, a cabinet 2, a cabinet 1, a coffeemachine 1, a countertop 3, a countertop 2, a countertop 1, a drawer 3, a drawer 2, a drawer 1, a fridge 1, a garbagecan 1, a microwave 1, a shelf 3, a shelf 2, a shelf 1, a sinkbasin 1, a stoveburner 4, a stoveburner 3, a stoveburner 2, a stoveburner 1, and a toaster 1.
Your task is to: cool some lettuce and put it in countertop.
[Step 3] identify the lettuce I just found and take it
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 27, in solution
UnboundLocalError: local variable 'observation' referenced before assignment
[Step 3] identify the lettuce I just found and take it
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 27, in solution
UnboundLocalError: local variable 'observation' referenced before assignment
[Step 1] get a list of receptacles where the lettuce is likely to appear.
[Step 2] go to each receptacle in the list until seeing a lettuce
Act: go to fridge 1
Obs: The fridge 1 is closed.
Act: open fridge 1
Obs: You open the fridge 1. The fridge 1 is open. In it, you see a bowl 1, a bread 2, a cup 3, a egg 1, a mug 1, a plate 3, a potato 1, and a tomato 1.
Act: go to countertop 1
Obs: On the countertop 1, you see a bowl 3, a bowl 2, a creditcard 2, a creditcard 1, a dishsponge 1, and a glassbottle 1.
Act: go to countertop 2
Obs: On the countertop 2, you see a bread 1, a cellphone 1, a cup 2, a cup 1, a dishsponge 2, a knife 2, a knife 1, a lettuce 2, a lettuce 1, and a plate 2.
[Step 3] identify the lettuce I just found and take it
Act: take lettuce 2 from countertop 2
Obs: You pick up the lettuce 2 from the countertop 2.
[Step 4] go to a fridge to cool the lettuce
Act: go to fridge 1
Obs: The fridge 1 is open. In it, you see a bowl 1, a bread 2, a cup 3, a egg 1, a mug 1, a plate 3, a potato 1, and a tomato 1.
Act: cool lettuce 2 with fridge 1
Obs: You cool the lettuce 2 using the fridge 1.
[Step 5] go to a countertop and put the lettuce on it
Act: go to countertop 1
Obs: On the countertop 1, you see a bowl 3, a bowl 2, a creditcard 2, a creditcard 1, a dishsponge 1, and a glassbottle 1.
Act: put lettuce 2 in/on countertop 1
Obs: You put the lettuce 2 in/on the countertop 1.
Done. Success: True

Success: True
Task 9, rs: [0, 0, 0, 0, 8, 0] cnts [0, 0, 0, 0, 9, 0] success_rate: 0.8888888888888888 

failed_tasks_id {'pick_and_place': [], 'look_at_obj': [], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [1], 'pick_two_obj': []}
num_refinement {'pick_and_place': [], 'look_at_obj': [], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [4, -1, 3, 3, 3, 0, 3, 3, 3], 'pick_two_obj': []}
all_tasks_id {'pick_and_place': [], 'look_at_obj': [], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [0, 1, 2, 3, 4, 5, 6, 7, 8], 'pick_two_obj': []}
------------

Task 10: pick_cool_then_place_in_recep-Mug-None-CoffeeMachine-10/trial_T20190907_183853_958104
You are in the middle of a room. Looking quickly around you, you see a cabinet 6, a cabinet 5, a cabinet 4, a cabinet 3, a cabinet 2, a cabinet 1, a coffeemachine 1, a countertop 3, a countertop 2, a countertop 1, a drawer 3, a drawer 2, a drawer 1, a fridge 1, a garbagecan 1, a microwave 1, a shelf 3, a shelf 2, a shelf 1, a sinkbasin 1, a stoveburner 4, a stoveburner 3, a stoveburner 2, a stoveburner 1, and a toaster 1.
Your task is to: put a cool mug in coffeemachine.
[Step 3] identify the mug I just found and take it
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 27, in solution
UnboundLocalError: local variable 'observation' referenced before assignment
[Step 5] go to the coffeemachine and put the mug in it
Act: go to coffeemachine 1
Obs: On the coffeemachine 1, you see a mug 2.
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 52, in solution
UnboundLocalError: local variable 'found_mug' referenced before assignment
[Step 1] get a list of receptacles where the mug is likely to appear.
[Step 2] go to each receptacle in the list until seeing a mug
Act: go to coffeemachine 1
Obs: Nothing happens.
Act: go to countertop 3
Obs: On the countertop 3, you see a bread 1, a cellphone 3, a cellphone 2, a glassbottle 1, a houseplant 1, a knife 1, a spatula 2, a spoon 3, and a statue 2.
Act: go to countertop 2
Obs: On the countertop 2, you see a butterknife 1, a cellphone 1, a lettuce 3, a lettuce 1, a peppershaker 2, a pot 2, a spoon 1, and a tomato 1.
Act: go to countertop 1
Obs: On the countertop 1, you see a apple 1, a creditcard 2, a mug 2, and a spatula 1.
[Step 3] identify the mug I just found and take it
Act: take mug 2 from countertop 1
Obs: You pick up the mug 2 from the countertop 1.
[Step 4] go to a fridge to cool the mug
Act: go to fridge 1
Obs: The fridge 1 is closed.
Act: open fridge 1
Obs: You open the fridge 1. The fridge 1 is open. In it, you see a egg 1, a lettuce 2, a plate 2, a potato 2, and a potato 1.
Act: cool mug 2 with fridge 1
Obs: You cool the mug 2 using the fridge 1.
Done. Success: True
[Step 5] go to the coffeemachine and put the mug in it
Act: go to coffeemachine 1
Obs: You cool the mug 2 using the fridge 1.
Done. Success: True
Act: put mug 2 in/on coffeemachine 1
Obs: You cool the mug 2 using the fridge 1.
Done. Success: True
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 52, in solution
AssertionError: Error in [Step 5]: I cannot put the mug 2 in the coffeemachine 1. The last three interactions before error were:
Act: cool mug 2 with fridge 1
Obs: You cool the mug 2 using the fridge 1.
Act: go to coffeemachine 1
Obs: You cool the mug 2 using the fridge 1.
Act: put mug 2 in/on coffeemachine 1
Obs: You cool the mug 2 using the fridge 1.
I am at coffeemachine 1 and holding None.

Success: True
Task 10, rs: [0, 0, 0, 0, 9, 0] cnts [0, 0, 0, 0, 10, 0] success_rate: 0.9 

failed_tasks_id {'pick_and_place': [], 'look_at_obj': [], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [1], 'pick_two_obj': []}
num_refinement {'pick_and_place': [], 'look_at_obj': [], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [4, -1, 3, 3, 3, 0, 3, 3, 3, 4], 'pick_two_obj': []}
all_tasks_id {'pick_and_place': [], 'look_at_obj': [], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], 'pick_two_obj': []}
------------

Task 11: pick_cool_then_place_in_recep-Potato-None-Microwave-10/trial_T20190907_033157_424297
You are in the middle of a room. Looking quickly around you, you see a cabinet 6, a cabinet 5, a cabinet 4, a cabinet 3, a cabinet 2, a cabinet 1, a coffeemachine 1, a countertop 3, a countertop 2, a countertop 1, a drawer 3, a drawer 2, a drawer 1, a fridge 1, a garbagecan 1, a microwave 1, a shelf 3, a shelf 2, a shelf 1, a sinkbasin 1, a stoveburner 4, a stoveburner 3, a stoveburner 2, a stoveburner 1, and a toaster 1.
Your task is to: cool some potato and put it in microwave.
[Step 5] go to a microwave and put the potato in it
Act: go to microwave 1
Obs: The microwave 1 is closed.
Act: open microwave 1
Obs: You open the microwave 1. The microwave 1 is open. In it, you see a apple 1, and a mug 1.
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 51, in solution
UnboundLocalError: local variable 'found_potato' referenced before assignment
[Step 5] go to the microwave and put the potato in it
Act: go to microwave 1
Obs: Nothing happens.
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 51, in solution
UnboundLocalError: local variable 'found_potato' referenced before assignment
Act: go to fridge 1
Obs: The fridge 1 is closed.
Act: open fridge 1
Obs: You open the fridge 1. The fridge 1 is open. In it, you see a egg 1, a lettuce 2, and a pan 1.
Act: go to countertop 3
Obs: On the countertop 3, you see a bread 1, a butterknife 2, a creditcard 3, a creditcard 2, a houseplant 1, a knife 2, a lettuce 3, a potato 2, and a soapbottle 3.
Act: take potato 2 from countertop 3
Obs: You pick up the potato 2 from the countertop 3.
Act: go to fridge 1
Obs: The fridge 1 is open. In it, you see a egg 1, a lettuce 2, and a pan 1.
Act: cool potato 2 with fridge 1
Obs: You cool the potato 2 using the fridge 1.
Act: go to microwave 1
Obs: The microwave 1 is open. In it, you see a apple 1, and a mug 1.
Act: put potato 2 in/on microwave 1
Obs: You put the potato 2 in/on the microwave 1.
Done. Success: True

Success: True
Task 11, rs: [0, 0, 0, 0, 10, 0] cnts [0, 0, 0, 0, 11, 0] success_rate: 0.9090909090909091 

failed_tasks_id {'pick_and_place': [], 'look_at_obj': [], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [1], 'pick_two_obj': []}
num_refinement {'pick_and_place': [], 'look_at_obj': [], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [4, -1, 3, 3, 3, 0, 3, 3, 3, 4, 3], 'pick_two_obj': []}
all_tasks_id {'pick_and_place': [], 'look_at_obj': [], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], 'pick_two_obj': []}
------------

Task 12: pick_cool_then_place_in_recep-Bread-None-CounterTop-10/trial_T20190908_091811_414150
You are in the middle of a room. Looking quickly around you, you see a cabinet 6, a cabinet 5, a cabinet 4, a cabinet 3, a cabinet 2, a cabinet 1, a coffeemachine 1, a countertop 3, a countertop 2, a countertop 1, a drawer 3, a drawer 2, a drawer 1, a fridge 1, a garbagecan 1, a microwave 1, a shelf 3, a shelf 2, a shelf 1, a sinkbasin 1, a stoveburner 4, a stoveburner 3, a stoveburner 2, a stoveburner 1, and a toaster 1.
Your task is to: cool some bread and put it in countertop.
[Step 3] identify the bread I just found and take it
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 27, in solution
UnboundLocalError: local variable 'observation' referenced before assignment
[Step 3] identify the bread I just found and take it
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 27, in solution
UnboundLocalError: local variable 'observation' referenced before assignment
[Step 1] get a list of receptacles where the bread is likely to appear.
[Step 2] go to each receptacle in the list until seeing a bread
Act: go to fridge 1
Obs: The fridge 1 is closed.
Act: open fridge 1
Obs: You open the fridge 1. The fridge 1 is open. In it, you see nothing.
Act: go to cabinet 1
Obs: On the cabinet 1, you see a bowl 1, and a plate 1.
Act: go to cabinet 2
Obs: The cabinet 2 is closed.
Act: open cabinet 2
Obs: You open the cabinet 2. The cabinet 2 is open. In it, you see nothing.
Act: go to cabinet 3
Obs: On the cabinet 3, you see a vase 1.
Act: go to cabinet 4
Obs: On the cabinet 4, you see a vase 2.
Act: go to cabinet 5
Obs: The cabinet 5 is closed.
Act: open cabinet 5
Obs: You open the cabinet 5. The cabinet 5 is open. In it, you see nothing.
Act: go to cabinet 6
Obs: The cabinet 6 is closed.
Act: open cabinet 6
Obs: You open the cabinet 6. The cabinet 6 is open. In it, you see nothing.
Act: go to drawer 1
Obs: The drawer 1 is closed.
Act: open drawer 1
Obs: You open the drawer 1. The drawer 1 is open. In it, you see a knife 1, and a saltshaker 1.
Act: go to drawer 2
Obs: The drawer 2 is closed.
Act: open drawer 2
Obs: You open the drawer 2. The drawer 2 is open. In it, you see a dishsponge 1.
Act: go to drawer 3
Obs: The drawer 3 is closed.
Act: open drawer 3
Obs: You open the drawer 3. The drawer 3 is open. In it, you see a creditcard 1, and a fork 1.
Act: go to shelf 1
Obs: On the shelf 1, you see a bowl 2, a soapbottle 1, and a statue 1.
Act: go to shelf 2
Obs: On the shelf 2, you see a cellphone 1, a creditcard 2, and a peppershaker 1.
Act: go to shelf 3
Obs: On the shelf 3, you see nothing.
Act: go to countertop 1
Obs: On the countertop 1, you see a mug 1.
Act: go to countertop 2
Obs: On the countertop 2, you see nothing.
Act: go to countertop 3
Obs: On the countertop 3, you see a bread 2, a bread 1, a butterknife 2, a butterknife 1, a fork 2, a glassbottle 1, a houseplant 1, a lettuce 1, a papertowelroll 1, a potato 3, a potato 2, a saltshaker 2, a spatula 1, a spoon 1, a statue 2, a tomato 3, a tomato 1, and a vase 3.
[Step 3] identify the bread I just found and take it
Act: take bread 2 from countertop 3
Obs: You pick up the bread 2 from the countertop 3.
[Step 4] go to a fridge to cool the bread
Act: go to fridge 1
Obs: The fridge 1 is open. In it, you see nothing.
Act: cool bread 2 with fridge 1
Obs: You cool the bread 2 using the fridge 1.
[Step 5] go to a countertop and put the bread on it
Act: go to countertop 1
Obs: On the countertop 1, you see a mug 1.
Act: put bread 2 in/on countertop 1
Obs: You put the bread 2 in/on the countertop 1.
Done. Success: True

Success: True
Task 12, rs: [0, 0, 0, 0, 11, 0] cnts [0, 0, 0, 0, 12, 0] success_rate: 0.9166666666666666 

failed_tasks_id {'pick_and_place': [], 'look_at_obj': [], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [1], 'pick_two_obj': []}
num_refinement {'pick_and_place': [], 'look_at_obj': [], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [4, -1, 3, 3, 3, 0, 3, 3, 3, 4, 3, 3], 'pick_two_obj': []}
all_tasks_id {'pick_and_place': [], 'look_at_obj': [], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], 'pick_two_obj': []}
------------

Task 13: pick_cool_then_place_in_recep-Bread-None-CounterTop-10/trial_T20190908_091835_825830
You are in the middle of a room. Looking quickly around you, you see a cabinet 6, a cabinet 5, a cabinet 4, a cabinet 3, a cabinet 2, a cabinet 1, a coffeemachine 1, a countertop 3, a countertop 2, a countertop 1, a drawer 3, a drawer 2, a drawer 1, a fridge 1, a garbagecan 1, a microwave 1, a shelf 3, a shelf 2, a shelf 1, a sinkbasin 1, a stoveburner 4, a stoveburner 3, a stoveburner 2, a stoveburner 1, and a toaster 1.
Your task is to: cool some bread and put it in countertop.
[Step 3] identify the bread I just found and take it
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 27, in solution
UnboundLocalError: local variable 'observation' referenced before assignment
[Step 3] identify the bread I just found and take it
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 27, in solution
UnboundLocalError: local variable 'observation' referenced before assignment
[Step 1] get a list of receptacles where the bread is likely to appear.
[Step 2] go to each receptacle in the list until seeing a bread
Act: go to fridge 1
Obs: The fridge 1 is closed.
Act: open fridge 1
Obs: You open the fridge 1. The fridge 1 is open. In it, you see a lettuce 1.
Act: go to cabinet 1
Obs: On the cabinet 1, you see a saltshaker 1, a soapbottle 2, a vase 2, and a vase 1.
Act: go to cabinet 2
Obs: The cabinet 2 is closed.
Act: open cabinet 2
Obs: You open the cabinet 2. The cabinet 2 is open. In it, you see a cup 1, a dishsponge 1, a plate 3, and a soapbottle 1.
Act: go to cabinet 3
Obs: On the cabinet 3, you see a plate 1, and a soapbottle 3.
Act: go to cabinet 4
Obs: On the cabinet 4, you see a plate 2.
Act: go to cabinet 5
Obs: The cabinet 5 is closed.
Act: open cabinet 5
Obs: You open the cabinet 5. The cabinet 5 is open. In it, you see nothing.
Act: go to cabinet 6
Obs: The cabinet 6 is closed.
Act: open cabinet 6
Obs: You open the cabinet 6. The cabinet 6 is open. In it, you see nothing.
Act: go to drawer 1
Obs: The drawer 1 is closed.
Act: open drawer 1
Obs: You open the drawer 1. The drawer 1 is open. In it, you see a knife 1.
Act: go to drawer 2
Obs: The drawer 2 is closed.
Act: open drawer 2
Obs: You open the drawer 2. The drawer 2 is open. In it, you see a dishsponge 2, a peppershaker 1, and a saltshaker 2.
Act: go to drawer 3
Obs: The drawer 3 is closed.
Act: open drawer 3
Obs: You open the drawer 3. The drawer 3 is open. In it, you see a cellphone 1.
Act: go to shelf 1
Obs: On the shelf 1, you see a creditcard 2, a glassbottle 1, a papertowelroll 1, and a statue 1.
Act: go to shelf 2
Obs: On the shelf 2, you see a bowl 1, a cellphone 3, a cellphone 2, and a creditcard 1.
Act: go to shelf 3
Obs: On the shelf 3, you see nothing.
Act: go to countertop 1
Obs: On the countertop 1, you see a mug 1.
Act: go to countertop 2
Obs: On the countertop 2, you see nothing.
Act: go to countertop 3
Obs: On the countertop 3, you see a apple 3, a bowl 3, a bowl 2, a bread 1, a butterknife 1, a creditcard 3, a egg 1, a glassbottle 3, a glassbottle 2, a houseplant 1, a lettuce 2, a pot 1, a saltshaker 3, a spoon 1, a statue 2, a tomato 2, and a tomato 1.
[Step 3] identify the bread I just found and take it
Act: take bread 1 from countertop 3
Obs: You pick up the bread 1 from the countertop 3.
[Step 4] go to a fridge to cool the bread
Act: go to fridge 1
Obs: The fridge 1 is open. In it, you see a lettuce 1.
Act: cool bread 1 with fridge 1
Obs: You cool the bread 1 using the fridge 1.
[Step 5] go to a countertop and put the bread on it
Act: go to countertop 1
Obs: On the countertop 1, you see a mug 1.
Act: put bread 1 in/on countertop 1
Obs: You put the bread 1 in/on the countertop 1.
Done. Success: True

Success: True
Task 13, rs: [0, 0, 0, 0, 12, 0] cnts [0, 0, 0, 0, 13, 0] success_rate: 0.9230769230769231 

failed_tasks_id {'pick_and_place': [], 'look_at_obj': [], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [1], 'pick_two_obj': []}
num_refinement {'pick_and_place': [], 'look_at_obj': [], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [4, -1, 3, 3, 3, 0, 3, 3, 3, 4, 3, 3, 3], 'pick_two_obj': []}
all_tasks_id {'pick_and_place': [], 'look_at_obj': [], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], 'pick_two_obj': []}
------------

Task 14: pick_cool_then_place_in_recep-Bread-None-CounterTop-10/trial_T20190908_091747_866951
You are in the middle of a room. Looking quickly around you, you see a cabinet 6, a cabinet 5, a cabinet 4, a cabinet 3, a cabinet 2, a cabinet 1, a coffeemachine 1, a countertop 3, a countertop 2, a countertop 1, a drawer 3, a drawer 2, a drawer 1, a fridge 1, a garbagecan 1, a microwave 1, a shelf 3, a shelf 2, a shelf 1, a sinkbasin 1, a stoveburner 4, a stoveburner 3, a stoveburner 2, a stoveburner 1, and a toaster 1.
Your task is to: put a cool bread in countertop.
[Step 3] identify the bread I just found and take it
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 27, in solution
UnboundLocalError: local variable 'observation' referenced before assignment
[Step 3] identify the bread I just found and take it
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 27, in solution
UnboundLocalError: local variable 'observation' referenced before assignment
[Step 1] get a list of receptacles where the lettuce is likely to appear.
[Step 2] go to each receptacle in the list until seeing a lettuce
Act: go to fridge 1
Obs: The fridge 1 is closed.
Act: open fridge 1
Obs: You open the fridge 1. The fridge 1 is open. In it, you see a lettuce 1.
[Step 3] identify the lettuce I just found and take it
Act: take lettuce 1 from fridge 1
Obs: You pick up the lettuce 1 from the fridge 1.
[Step 4] go to a fridge to cool the lettuce
Act: go to fridge 1
Obs: Nothing happens.
Act: cool lettuce 1 with fridge 1
Obs: You cool the lettuce 1 using the fridge 1.
[Step 5] go to a diningtable and put the lettuce on it
Act: go to diningtable 1
Obs: Nothing happens.
Act: put lettuce 1 in/on diningtable 1
Obs: Nothing happens.
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 54, in solution
AssertionError: Error in [Step 5]: I cannot put the lettuce 1 on the diningtable 1. The last three interactions before error were:
Act: cool lettuce 1 with fridge 1
Obs: You cool the lettuce 1 using the fridge 1.
Act: go to diningtable 1
Obs: Nothing happens.
Act: put lettuce 1 in/on diningtable 1
Obs: Nothing happens.
I am at diningtable 1 and holding None.
[Step 1] get a list of receptacles where the bread is likely to appear.
[Step 2] go to each receptacle in the list until seeing a bread
Act: go to fridge 1
Obs: Nothing happens.
Act: go to cabinet 1
Obs: On the cabinet 1, you see a plate 3, and a plate 2.
Act: go to cabinet 2
Obs: The cabinet 2 is closed.
Act: open cabinet 2
Obs: You open the cabinet 2. The cabinet 2 is open. In it, you see a bowl 1, and a soapbottle 1.
Act: go to cabinet 3
Obs: On the cabinet 3, you see nothing.
Act: go to cabinet 4
Obs: On the cabinet 4, you see a plate 1.
Act: go to cabinet 5
Obs: The cabinet 5 is closed.
Act: open cabinet 5
Obs: You open the cabinet 5. The cabinet 5 is open. In it, you see nothing.
Act: go to cabinet 6
Obs: The cabinet 6 is closed.
Act: open cabinet 6
Obs: You open the cabinet 6. The cabinet 6 is open. In it, you see a dishsponge 1, and a soapbottle 2.
Act: go to drawer 1
Obs: The drawer 1 is closed.
Act: open drawer 1
Obs: You open the drawer 1. The drawer 1 is open. In it, you see nothing.
Act: go to drawer 2
Obs: The drawer 2 is closed.
Act: open drawer 2
Obs: You open the drawer 2. The drawer 2 is open. In it, you see a creditcard 3, a creditcard 1, and a peppershaker 1.
Act: go to drawer 3
Obs: The drawer 3 is closed.
Act: open drawer 3
Obs: You open the drawer 3. The drawer 3 is open. In it, you see a creditcard 2, and a fork 1.
Act: go to shelf 1
Obs: On the shelf 1, you see a statue 1.
Act: go to shelf 2
Obs: On the shelf 2, you see a bowl 2.
Act: go to shelf 3
Obs: On the shelf 3, you see nothing.
Act: go to countertop 1
Obs: On the countertop 1, you see nothing.
Act: go to countertop 2
Obs: On the countertop 2, you see a spatula 1.
Act: go to countertop 3
Obs: On the countertop 3, you see a apple 1, a bowl 3, a bread 1, a butterknife 1, a cellphone 1, a houseplant 1, a knife 1, a peppershaker 2, a pot 2, a saltshaker 1, a statue 2, a tomato 1, a vase 2, and a vase 1.
[Step 3] identify the bread I just found and take it
Act: take bread 1 from countertop 3
Obs: Nothing happens.
[Step 4] go to a fridge to cool the bread
Act: go to fridge 1
Obs: The fridge 1 is open. In it, you see nothing.
Act: cool bread 1 with fridge 1
Obs: Nothing happens.
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 42, in solution
AssertionError: Error in [Step 4]: I cannot cool the bread 1 using the fridge 1. The last three interactions before error were:
Act: take bread 1 from countertop 3
Obs: Nothing happens.
Act: go to fridge 1
Obs: The fridge 1 is open. In it, you see nothing.
Act: cool bread 1 with fridge 1
Obs: Nothing happens.
I am at fridge 1 and holding bread 1. I should have been at fridge 1 and holding bread 1.

Success: False
Task 14, rs: [0, 0, 0, 0, 12, 0] cnts [0, 0, 0, 0, 14, 0] success_rate: 0.8571428571428571 

failed_tasks_id {'pick_and_place': [], 'look_at_obj': [], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [1, 13], 'pick_two_obj': []}
num_refinement {'pick_and_place': [], 'look_at_obj': [], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [4, -1, 3, 3, 3, 0, 3, 3, 3, 4, 3, 3, 3, -1], 'pick_two_obj': []}
all_tasks_id {'pick_and_place': [], 'look_at_obj': [], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], 'pick_two_obj': []}
------------

Task 15: pick_cool_then_place_in_recep-Lettuce-None-CounterTop-10/trial_T20190909_174807_646433
You are in the middle of a room. Looking quickly around you, you see a cabinet 6, a cabinet 5, a cabinet 4, a cabinet 3, a cabinet 2, a cabinet 1, a coffeemachine 1, a countertop 3, a countertop 2, a countertop 1, a drawer 3, a drawer 2, a drawer 1, a fridge 1, a garbagecan 1, a microwave 1, a shelf 3, a shelf 2, a shelf 1, a sinkbasin 1, a stoveburner 4, a stoveburner 3, a stoveburner 2, a stoveburner 1, and a toaster 1.
Your task is to: put a cool lettuce in countertop.
[Step 3] identify the lettuce I just found and take it
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 27, in solution
UnboundLocalError: local variable 'observation' referenced before assignment
[Step 5] go to a countertop and put the lettuce on it
Act: go to countertop 1
Obs: On the countertop 1, you see a apple 1, a cellphone 1, a cup 2, a glassbottle 2, a lettuce 1, and a spatula 1.
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 51, in solution
UnboundLocalError: local variable 'found_lettuce' referenced before assignment
[Step 1] get a list of receptacles where the lettuce is likely to appear.
[Step 2] go to each receptacle in the list until seeing a lettuce
Act: go to fridge 1
Obs: The fridge 1 is closed.
Act: open fridge 1
Obs: You open the fridge 1. The fridge 1 is open. In it, you see a bowl 3, a bread 1, a cup 1, a egg 1, a pan 1, a plate 2, a potato 1, and a tomato 2.
Act: go to countertop 1
Obs: On the countertop 1, you see a apple 1, a cellphone 1, a cup 2, a glassbottle 2, a lettuce 1, and a spatula 1.
[Step 3] identify the lettuce I just found and take it
Act: take lettuce 1 from countertop 1
Obs: You pick up the lettuce 1 from the countertop 1.
[Step 4] go to a fridge to cool the lettuce
Act: go to fridge 1
Obs: The fridge 1 is open. In it, you see a bowl 3, a bread 1, a cup 1, a egg 1, a pan 1, a plate 2, a potato 1, and a tomato 2.
Act: cool lettuce 1 with fridge 1
Obs: You cool the lettuce 1 using the fridge 1.
[Step 5] go to a countertop and put the lettuce on it
Act: go to countertop 1
Obs: On the countertop 1, you see a apple 1, a cellphone 1, a cup 2, a glassbottle 2, and a spatula 1.
Act: put lettuce 1 in/on countertop 1
Obs: You put the lettuce 1 in/on the countertop 1.
Done. Success: True

Success: True
Task 15, rs: [0, 0, 0, 0, 13, 0] cnts [0, 0, 0, 0, 15, 0] success_rate: 0.8666666666666667 

failed_tasks_id {'pick_and_place': [], 'look_at_obj': [], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [1, 13], 'pick_two_obj': []}
num_refinement {'pick_and_place': [], 'look_at_obj': [], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [4, -1, 3, 3, 3, 0, 3, 3, 3, 4, 3, 3, 3, -1, 3], 'pick_two_obj': []}
all_tasks_id {'pick_and_place': [], 'look_at_obj': [], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], 'pick_two_obj': []}
------------

Task 16: pick_cool_then_place_in_recep-Pan-None-CounterTop-10/trial_T20190908_114656_768805
You are in the middle of a room. Looking quickly around you, you see a cabinet 6, a cabinet 5, a cabinet 4, a cabinet 3, a cabinet 2, a cabinet 1, a coffeemachine 1, a countertop 3, a countertop 2, a countertop 1, a drawer 3, a drawer 2, a drawer 1, a fridge 1, a garbagecan 1, a microwave 1, a shelf 3, a shelf 2, a shelf 1, a sinkbasin 1, a stoveburner 4, a stoveburner 3, a stoveburner 2, a stoveburner 1, and a toaster 1.
Your task is to: cool some pan and put it in countertop.
[Step 3] identify the pan I just found and take it
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 27, in solution
UnboundLocalError: local variable 'observation' referenced before assignment
[Step 3] identify the pan I just found and take it
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 27, in solution
UnboundLocalError: local variable 'observation' referenced before assignment
[Step 1] get a list of receptacles where the pan is likely to appear.
[Step 2] go to each receptacle in the list until seeing a pan
Act: go to fridge 1
Obs: The fridge 1 is closed.
Act: open fridge 1
Obs: You open the fridge 1. The fridge 1 is open. In it, you see nothing.
Act: go to cabinet 1
Obs: On the cabinet 1, you see a peppershaker 2, a soapbottle 2, and a vase 1.
Act: go to cabinet 2
Obs: The cabinet 2 is closed.
Act: open cabinet 2
Obs: You open the cabinet 2. The cabinet 2 is open. In it, you see a bowl 1, and a glassbottle 1.
Act: go to cabinet 3
Obs: On the cabinet 3, you see a bowl 2, and a plate 1.
Act: go to cabinet 4
Obs: On the cabinet 4, you see a peppershaker 1, and a soapbottle 1.
Act: go to cabinet 5
Obs: The cabinet 5 is closed.
Act: open cabinet 5
Obs: You open the cabinet 5. The cabinet 5 is open. In it, you see a saltshaker 3.
Act: go to cabinet 6
Obs: The cabinet 6 is closed.
Act: open cabinet 6
Obs: You open the cabinet 6. The cabinet 6 is open. In it, you see a cup 1.
Act: go to drawer 1
Obs: The drawer 1 is closed.
Act: open drawer 1
Obs: You open the drawer 1. The drawer 1 is open. In it, you see a knife 1.
Act: go to drawer 2
Obs: The drawer 2 is closed.
Act: open drawer 2
Obs: You open the drawer 2. The drawer 2 is open. In it, you see a saltshaker 2.
Act: go to drawer 3
Obs: The drawer 3 is closed.
Act: open drawer 3
Obs: You open the drawer 3. The drawer 3 is open. In it, you see a dishsponge 1, a saltshaker 1, and a spatula 1.
Act: go to countertop 1
Obs: On the countertop 1, you see a mug 1.
Act: go to countertop 2
Obs: On the countertop 2, you see nothing.
Act: go to countertop 3
Obs: On the countertop 3, you see a bread 1, a butterknife 1, a cellphone 2, a creditcard 3, a dishsponge 3, a dishsponge 2, a egg 3, a fork 1, a houseplant 1, a lettuce 1, a spatula 2, a spoon 2, a spoon 1, a statue 2, and a tomato 1.
Act: go to shelf 1
Obs: On the shelf 1, you see a creditcard 2, and a statue 1.
Act: go to shelf 2
Obs: On the shelf 2, you see a cellphone 1, a creditcard 1, a glassbottle 2, and a vase 2.
Act: go to shelf 3
Obs: On the shelf 3, you see nothing.
Act: go to sinkbasin 1
Obs: On the sinkbasin 1, you see a egg 2, a glassbottle 3, a plate 2, and a potato 1.
Act: go to stoveburner 1
Obs: On the stoveburner 1, you see a pot 1.
Act: go to stoveburner 2
Obs: On the stoveburner 2, you see a pan 1.
[Step 3] identify the pan I just found and take it
Act: take pan 1 from stoveburner 2
Obs: You pick up the pan 1 from the stoveburner 2.
[Step 4] go to a fridge to cool the pan
Act: go to fridge 1
Obs: The fridge 1 is open. In it, you see nothing.
Act: cool pan 1 with fridge 1
Obs: You cool the pan 1 using the fridge 1.
[Step 5] go to a countertop and put the pan on it
Act: go to countertop 1
Obs: On the countertop 1, you see a mug 1.
Act: put pan 1 in/on countertop 1
Obs: You put the pan 1 in/on the countertop 1.
Done. Success: True

Success: True
Task 16, rs: [0, 0, 0, 0, 14, 0] cnts [0, 0, 0, 0, 16, 0] success_rate: 0.875 

failed_tasks_id {'pick_and_place': [], 'look_at_obj': [], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [1, 13], 'pick_two_obj': []}
num_refinement {'pick_and_place': [], 'look_at_obj': [], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [4, -1, 3, 3, 3, 0, 3, 3, 3, 4, 3, 3, 3, -1, 3, 3], 'pick_two_obj': []}
all_tasks_id {'pick_and_place': [], 'look_at_obj': [], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], 'pick_two_obj': []}
------------

Task 17: pick_cool_then_place_in_recep-Mug-None-CoffeeMachine-10/trial_T20190907_183715_299073
You are in the middle of a room. Looking quickly around you, you see a cabinet 6, a cabinet 5, a cabinet 4, a cabinet 3, a cabinet 2, a cabinet 1, a coffeemachine 1, a countertop 3, a countertop 2, a countertop 1, a drawer 3, a drawer 2, a drawer 1, a fridge 1, a garbagecan 1, a microwave 1, a shelf 3, a shelf 2, a shelf 1, a sinkbasin 1, a stoveburner 4, a stoveburner 3, a stoveburner 2, a stoveburner 1, and a toaster 1.
Your task is to: cool some mug and put it in coffeemachine.
[Step 5] go to the coffeemachine and put the mug in it
Act: go to coffeemachine 1
Obs: On the coffeemachine 1, you see nothing.
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 50, in solution
UnboundLocalError: local variable 'found_mug' referenced before assignment
[Step 5] go to the coffeemachine and put the mug in it
Act: go to coffeemachine 1
Obs: Nothing happens.
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 51, in solution
UnboundLocalError: local variable 'found_mug' referenced before assignment
[Step 1] get a list of receptacles where the mug is likely to appear.
[Step 2] go to each receptacle in the list until seeing a mug
Act: go to fridge 1
Obs: The fridge 1 is closed.
Act: open fridge 1
Obs: You open the fridge 1. The fridge 1 is open. In it, you see a apple 2, a apple 1, a bowl 2, a bowl 1, a egg 1, a lettuce 1, a plate 2, a potato 1, and a tomato 1.
Act: go to coffeemachine 1
Obs: On the coffeemachine 1, you see nothing.
Act: go to countertop 3
Obs: On the countertop 3, you see a bread 3, a butterknife 1, a cellphone 3, a creditcard 2, a fork 2, a houseplant 1, a pot 2, a potato 2, and a saltshaker 3.
Act: go to countertop 2
Obs: On the countertop 2, you see a bread 2, a bread 1, a cellphone 1, a creditcard 1, a knife 2, a knife 1, a soapbottle 2, and a spoon 2.
Act: go to countertop 1
Obs: On the countertop 1, you see a glassbottle 2, a mug 1, and a papertowelroll 1.
[Step 3] identify the mug I just found and take it
Act: take mug 1 from countertop 1
Obs: You pick up the mug 1 from the countertop 1.
[Step 4] go to a fridge to cool the mug
Act: go to fridge 1
Obs: The fridge 1 is open. In it, you see a apple 2, a apple 1, a bowl 2, a bowl 1, a egg 1, a lettuce 1, a plate 2, a potato 1, and a tomato 1.
Act: cool mug 1 with fridge 1
Obs: You cool the mug 1 using the fridge 1.
[Step 5] go to the coffeemachine and put the mug in it
Act: go to coffeemachine 1
Obs: On the coffeemachine 1, you see nothing.
Act: put mug 1 in/on coffeemachine 1
Obs: You put the mug 1 in/on the coffeemachine 1.
Done. Success: True

Success: True
Task 17, rs: [0, 0, 0, 0, 15, 0] cnts [0, 0, 0, 0, 17, 0] success_rate: 0.8823529411764706 

failed_tasks_id {'pick_and_place': [], 'look_at_obj': [], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [1, 13], 'pick_two_obj': []}
num_refinement {'pick_and_place': [], 'look_at_obj': [], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [4, -1, 3, 3, 3, 0, 3, 3, 3, 4, 3, 3, 3, -1, 3, 3, 3], 'pick_two_obj': []}
all_tasks_id {'pick_and_place': [], 'look_at_obj': [], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16], 'pick_two_obj': []}
------------

Task 18: pick_cool_then_place_in_recep-Mug-None-Cabinet-10/trial_T20190909_121710_650938
You are in the middle of a room. Looking quickly around you, you see a cabinet 6, a cabinet 5, a cabinet 4, a cabinet 3, a cabinet 2, a cabinet 1, a coffeemachine 1, a countertop 3, a countertop 2, a countertop 1, a drawer 3, a drawer 2, a drawer 1, a fridge 1, a garbagecan 1, a microwave 1, a shelf 3, a shelf 2, a shelf 1, a sinkbasin 1, a stoveburner 4, a stoveburner 3, a stoveburner 2, a stoveburner 1, and a toaster 1.
Your task is to: cool some mug and put it in cabinet.
[Step 3] identify the mug I just found and take it
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 27, in solution
UnboundLocalError: local variable 'observation' referenced before assignment
[Step 3] identify the mug I just found and take it
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 27, in solution
UnboundLocalError: local variable 'observation' referenced before assignment
[Step 1] get a list of receptacles where the mug is likely to appear.
[Step 2] go to each receptacle in the list until seeing a mug
Act: go to countertop 1
Obs: On the countertop 1, you see a mug 2, and a papertowelroll 1.
[Step 3] identify the mug I just found and take it
Act: take mug 2 from countertop 1
Obs: You pick up the mug 2 from the countertop 1.
[Step 4] go to a fridge to cool the mug
Act: go to fridge 1
Obs: The fridge 1 is closed.
Act: open fridge 1
Obs: You open the fridge 1. The fridge 1 is open. In it, you see a apple 1, a bread 1, a egg 1, a plate 2, a plate 1, and a tomato 1.
Act: cool mug 2 with fridge 1
Obs: You cool the mug 2 using the fridge 1.
[Step 5] go to a cabinet and put the mug in it
Act: go to cabinet 1
Obs: On the cabinet 1, you see nothing.
Act: put mug 2 in/on cabinet 1
Obs: You put the mug 2 in/on the cabinet 1.
Done. Success: True

Success: True
Task 18, rs: [0, 0, 0, 0, 16, 0] cnts [0, 0, 0, 0, 18, 0] success_rate: 0.8888888888888888 

failed_tasks_id {'pick_and_place': [], 'look_at_obj': [], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [1, 13], 'pick_two_obj': []}
num_refinement {'pick_and_place': [], 'look_at_obj': [], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [4, -1, 3, 3, 3, 0, 3, 3, 3, 4, 3, 3, 3, -1, 3, 3, 3, 3], 'pick_two_obj': []}
all_tasks_id {'pick_and_place': [], 'look_at_obj': [], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17], 'pick_two_obj': []}
------------

Task 19: pick_cool_then_place_in_recep-Lettuce-None-CounterTop-10/trial_T20190909_123133_763972
You are in the middle of a room. Looking quickly around you, you see a cabinet 6, a cabinet 5, a cabinet 4, a cabinet 3, a cabinet 2, a cabinet 1, a coffeemachine 1, a countertop 3, a countertop 2, a countertop 1, a drawer 3, a drawer 2, a drawer 1, a fridge 1, a garbagecan 1, a microwave 1, a shelf 3, a shelf 2, a shelf 1, a sinkbasin 1, a stoveburner 4, a stoveburner 3, a stoveburner 2, a stoveburner 1, and a toaster 1.
Your task is to: cool some lettuce and put it in countertop.
[Step 3] identify the lettuce I just found and take it
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 27, in solution
UnboundLocalError: local variable 'observation' referenced before assignment
[Step 3] identify the lettuce I just found and take it
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 27, in solution
UnboundLocalError: local variable 'observation' referenced before assignment
[Step 1] get a list of receptacles where the lettuce is likely to appear.
[Step 2] go to each receptacle in the list until seeing a lettuce
Act: go to fridge 1
Obs: The fridge 1 is closed.
Act: open fridge 1
Obs: You open the fridge 1. The fridge 1 is open. In it, you see a apple 1, a bread 1, a plate 1, a potato 1, and a tomato 2.
Act: go to countertop 1
Obs: On the countertop 1, you see a egg 2, a spoon 1, a tomato 1, and a vase 1.
Act: go to countertop 2
Obs: On the countertop 2, you see a butterknife 1, a creditcard 2, a creditcard 1, a cup 1, a knife 1, a lettuce 1, a plate 2, and a spatula 1.
[Step 3] identify the lettuce I just found and take it
Act: take lettuce 1 from countertop 2
Obs: You pick up the lettuce 1 from the countertop 2.
[Step 4] go to a fridge to cool the lettuce
Act: go to fridge 1
Obs: The fridge 1 is open. In it, you see a apple 1, a bread 1, a plate 1, a potato 1, and a tomato 2.
Act: cool lettuce 1 with fridge 1
Obs: You cool the lettuce 1 using the fridge 1.
[Step 5] go to a countertop and put the lettuce on it
Act: go to countertop 1
Obs: On the countertop 1, you see a egg 2, a spoon 1, a tomato 1, and a vase 1.
Act: put lettuce 1 in/on countertop 1
Obs: You put the lettuce 1 in/on the countertop 1.
Done. Success: True

Success: True
Task 19, rs: [0, 0, 0, 0, 17, 0] cnts [0, 0, 0, 0, 19, 0] success_rate: 0.8947368421052632 

failed_tasks_id {'pick_and_place': [], 'look_at_obj': [], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [1, 13], 'pick_two_obj': []}
num_refinement {'pick_and_place': [], 'look_at_obj': [], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [4, -1, 3, 3, 3, 0, 3, 3, 3, 4, 3, 3, 3, -1, 3, 3, 3, 3, 3], 'pick_two_obj': []}
all_tasks_id {'pick_and_place': [], 'look_at_obj': [], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18], 'pick_two_obj': []}
------------

Task 20: pick_cool_then_place_in_recep-Mug-None-CoffeeMachine-10/trial_T20190907_183807_477267
You are in the middle of a room. Looking quickly around you, you see a cabinet 6, a cabinet 5, a cabinet 4, a cabinet 3, a cabinet 2, a cabinet 1, a coffeemachine 1, a countertop 3, a countertop 2, a countertop 1, a drawer 3, a drawer 2, a drawer 1, a fridge 1, a garbagecan 1, a microwave 1, a shelf 3, a shelf 2, a shelf 1, a sinkbasin 1, a stoveburner 4, a stoveburner 3, a stoveburner 2, a stoveburner 1, and a toaster 1.
Your task is to: cool some mug and put it in coffeemachine.
[Step 5] go to the coffeemachine and put the mug in it
Act: go to coffeemachine 1
Obs: On the coffeemachine 1, you see nothing.
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 51, in solution
UnboundLocalError: local variable 'found_mug' referenced before assignment
[Step 5] go to the coffeemachine and put the mug in it
Act: go to coffeemachine 1
Obs: Nothing happens.
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 51, in solution
UnboundLocalError: local variable 'found_mug' referenced before assignment
[Step 1] get a list of receptacles where the mug is likely to appear.
[Step 2] go to each receptacle in the list until seeing a mug
Act: go to countertop 1
Obs: Nothing happens.
Act: go to countertop 2
Obs: On the countertop 2, you see a bread 1, a butterknife 1, a cellphone 1, a glassbottle 1, a plate 1, and a tomato 1.
Act: go to countertop 3
Obs: On the countertop 3, you see a butterknife 2, a cellphone 3, a creditcard 2, a cup 2, a fork 2, a fork 1, a glassbottle 3, a houseplant 1, a knife 1, a lettuce 1, a papertowelroll 1, a plate 2, a pot 1, and a saltshaker 1.
Act: go to cabinet 1
Obs: On the cabinet 1, you see a bowl 1, and a soapbottle 1.
Act: go to cabinet 2
Obs: The cabinet 2 is closed.
Act: open cabinet 2
Obs: You open the cabinet 2. The cabinet 2 is open. In it, you see a peppershaker 1.
Act: go to cabinet 3
Obs: On the cabinet 3, you see a peppershaker 2.
Act: go to cabinet 4
Obs: On the cabinet 4, you see nothing.
Act: go to cabinet 5
Obs: The cabinet 5 is closed.
Act: open cabinet 5
Obs: You open the cabinet 5. The cabinet 5 is open. In it, you see a bowl 2.
Act: go to cabinet 6
Obs: The cabinet 6 is closed.
Act: open cabinet 6
Obs: You open the cabinet 6. The cabinet 6 is open. In it, you see a glassbottle 2, a soapbottle 2, and a vase 1.
Act: go to drawer 1
Obs: The drawer 1 is closed.
Act: open drawer 1
Obs: You open the drawer 1. The drawer 1 is open. In it, you see nothing.
Act: go to drawer 2
Obs: The drawer 2 is closed.
Act: open drawer 2
Obs: You open the drawer 2. The drawer 2 is open. In it, you see nothing.
Act: go to drawer 3
Obs: The drawer 3 is closed.
Act: open drawer 3
Obs: You open the drawer 3. The drawer 3 is open. In it, you see a creditcard 1, and a spatula 1.
Act: go to shelf 1
Obs: On the shelf 1, you see a dishsponge 1, a statue 1, and a vase 2.
Act: go to shelf 2
Obs: On the shelf 2, you see a peppershaker 3, and a vase 3.
Act: go to shelf 3
Obs: On the shelf 3, you see nothing.
Act: go to fridge 1
Obs: The fridge 1 is closed.
Act: open fridge 1
Obs: You open the fridge 1. The fridge 1 is open. In it, you see a bread 2, and a egg 1.
Act: go to coffeemachine 1
Obs: On the coffeemachine 1, you see nothing.
Act: go to microwave 1
Obs: The microwave 1 is closed.
Act: open microwave 1
Obs: You open the microwave 1. The microwave 1 is open. In it, you see a cup 1.
Act: go to sinkbasin 1
Obs: On the sinkbasin 1, you see a bowl 3, a spatula 3, a spatula 2, and a spoon 2.
Act: go to toaster 1
Obs: On the toaster 1, you see nothing.
Act: go to stoveburner 1
Obs: On the stoveburner 1, you see nothing.
Act: go to stoveburner 2
Obs: On the stoveburner 2, you see a pan 1.
Act: go to stoveburner 3
Obs: On the stoveburner 3, you see nothing.
Act: go to stoveburner 4
Obs: On the stoveburner 4, you see a pan 1.
Act: go to garbagecan 1
Obs: On the garbagecan 1, you see a apple 1, a potato 2, a potato 1, and a soapbottle 3.
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 22, in solution
AssertionError: Error in [Step 2]: There is no mug in/on ['countertop 1', 'countertop 2', 'countertop 3', 'cabinet 1', 'cabinet 2', 'cabinet 3', 'cabinet 4', 'cabinet 5', 'cabinet 6', 'drawer 1', 'drawer 2', 'drawer 3', 'shelf 1', 'shelf 2', 'shelf 3', 'fridge 1', 'coffeemachine 1', 'microwave 1', 'sinkbasin 1', 'toaster 1', 'stoveburner 1', 'stoveburner 2', 'stoveburner 3', 'stoveburner 4', 'garbagecan 1']. The last three interactions before error were:
Act: go to stoveburner 3
Obs: On the stoveburner 3, you see nothing.
Act: go to stoveburner 4
Obs: On the stoveburner 4, you see a pan 1.
Act: go to garbagecan 1
Obs: On the garbagecan 1, you see a apple 1, a potato 2, a potato 1, and a soapbottle 3.
I am at garbagecan 1 and holding None.
[Step 1] get a list of receptacles where the mug is likely to appear.
[Step 2] go to each receptacle in the list until seeing a mug
Act: go to coffeemachine 1
Obs: On the coffeemachine 1, you see nothing.
Act: go to countertop 3
Obs: On the countertop 3, you see a butterknife 2, a cellphone 3, a creditcard 2, a cup 2, a fork 2, a fork 1, a glassbottle 3, a houseplant 1, a knife 1, a lettuce 1, a papertowelroll 1, a plate 2, a pot 1, and a saltshaker 1.
Act: go to countertop 2
Obs: On the countertop 2, you see a bread 1, a butterknife 1, a cellphone 1, a glassbottle 1, a plate 1, and a tomato 1.
Act: go to countertop 1
Obs: On the countertop 1, you see a cellphone 2, a mug 1, and a spoon 1.
[Step 3] identify the mug I just found and take it
Act: take mug 1 from countertop 1
Obs: You pick up the mug 1 from the countertop 1.
[Step 4] go to a fridge to cool the mug
Act: go to fridge 1
Obs: The fridge 1 is open. In it, you see a bread 2, and a egg 1.
Act: cool mug 1 with fridge 1
Obs: You cool the mug 1 using the fridge 1.
[Step 5] go to coffeemachine and put the mug in it
Act: go to coffeemachine 1
Obs: On the coffeemachine 1, you see nothing.
Act: put mug 1 in/on coffeemachine 1
Obs: You put the mug 1 in/on the coffeemachine 1.
Done. Success: True

Success: True
Task 20, rs: [0, 0, 0, 0, 18, 0] cnts [0, 0, 0, 0, 20, 0] success_rate: 0.9 

failed_tasks_id {'pick_and_place': [], 'look_at_obj': [], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [1, 13], 'pick_two_obj': []}
num_refinement {'pick_and_place': [], 'look_at_obj': [], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [4, -1, 3, 3, 3, 0, 3, 3, 3, 4, 3, 3, 3, -1, 3, 3, 3, 3, 3, 4], 'pick_two_obj': []}
all_tasks_id {'pick_and_place': [], 'look_at_obj': [], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19], 'pick_two_obj': []}
------------

Task 21: pick_cool_then_place_in_recep-Potato-None-Microwave-10/trial_T20190907_033306_962974
You are in the middle of a room. Looking quickly around you, you see a cabinet 6, a cabinet 5, a cabinet 4, a cabinet 3, a cabinet 2, a cabinet 1, a coffeemachine 1, a countertop 3, a countertop 2, a countertop 1, a drawer 3, a drawer 2, a drawer 1, a fridge 1, a garbagecan 1, a microwave 1, a shelf 3, a shelf 2, a shelf 1, a sinkbasin 1, a stoveburner 4, a stoveburner 3, a stoveburner 2, a stoveburner 1, and a toaster 1.
Your task is to: cool some potato and put it in microwave.
[Step 5] go to a microwave and put the potato in it
Act: go to microwave 1
Obs: The microwave 1 is closed.
Act: open microwave 1
Obs: You open the microwave 1. The microwave 1 is open. In it, you see a egg 1.
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 51, in solution
UnboundLocalError: local variable 'found_potato' referenced before assignment
[Step 5] go to a microwave and put the potato in it
Act: go to microwave 1
Obs: Nothing happens.
Traceback (most recent call last):
  File "/workspace/S/tianzikang/my_project/alfworld/adaplanner/adaplanner.py", line 191, in capture_output
    func(agent, start_from=step)
  File "<string>", line 51, in solution
UnboundLocalError: local variable 'found_potato' referenced before assignment
[Step 1] get a list of receptacles where the potato is likely to appear.
[Step 2] go to each receptacle in the list until seeing a potato
Act: go to fridge 1
Obs: The fridge 1 is closed.
Act: open fridge 1
Obs: You open the fridge 1. The fridge 1 is open. In it, you see a apple 2, a apple 1, a bowl 3, a bowl 2, a egg 2, a lettuce 1, and a tomato 1.
Act: go to countertop 1
Obs: On the countertop 1, you see a fork 2, and a mug 2.
Act: go to countertop 2
Obs: On the countertop 2, you see a butterknife 1, a cellphone 1, a mug 1, a peppershaker 1, a potato 2, a potato 1, a soapbottle 1, a spoon 1, and a vase 1.
[Step 3] identify the potato I just found and take it
Act: take potato 2 from countertop 2
Obs: You pick up the potato 2 from the countertop 2.
[Step 4] go to a fridge to cool the potato
Act: go to fridge 1
Obs: The fridge 1 is open. In it, you see a apple 2, a apple 1, a bowl 3, a bowl 2, a egg 2, a lettuce 1, and a tomato 1.
Act: cool potato 2 with fridge 1
Obs: You cool the potato 2 using the fridge 1.
[Step 5] go to a microwave and put the potato in it
Act: go to microwave 1
Obs: The microwave 1 is open. In it, you see a egg 1.
Act: put potato 2 in/on microwave 1
Obs: You put the potato 2 in/on the microwave 1.
Done. Success: True

Success: True
Task 21, rs: [0, 0, 0, 0, 19, 0] cnts [0, 0, 0, 0, 21, 0] success_rate: 0.9047619047619048 

failed_tasks_id {'pick_and_place': [], 'look_at_obj': [], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [1, 13], 'pick_two_obj': []}
num_refinement {'pick_and_place': [], 'look_at_obj': [], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [4, -1, 3, 3, 3, 0, 3, 3, 3, 4, 3, 3, 3, -1, 3, 3, 3, 3, 3, 4, 3], 'pick_two_obj': []}
all_tasks_id {'pick_and_place': [], 'look_at_obj': [], 'pick_clean_then_place': [], 'pick_heat_then_place': [], 'pick_cool_then_place': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20], 'pick_two_obj': []}
------------

