Start: 0812-172202

Task 1: pick_heat_then_place_in_recep-Tomato-None-GarbageCan-10/trial_T20190908_225453_272533
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 hot tomato in garbagecan.
[Step 4] go to a stoveburner to heat the tomato
Act: go to stoveburner 1
Obs: On the stoveburner 1, you see a pot 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_tomato' referenced before assignment
[Step 4] go to a microwave to heat the tomato
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: heat None with 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 44, in solution
AssertionError: Error in [Step 4]: I cannot heat the None using 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 nothing.
Act: heat None with microwave 1
Obs: Nothing happens.
I am at microwave 1 and holding None. I should have been 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 closed.
Act: open fridge 1
Obs: You open the fridge 1. The fridge 1 is open. In it, you see a apple 3, a apple 2, a apple 1, a cup 1, a egg 1, a lettuce 3, a lettuce 1, a mug 2, a potato 1, and a tomato 2.
[Step 3] identify the tomato I just found and take it
Act: take tomato 2 from fridge 1
Obs: You pick up the tomato 2 from the fridge 1.
[Step 4] go to a microwave to heat the tomato
Act: go to microwave 1
Obs: The microwave 1 is open. In it, you see nothing.
Act: heat tomato 2 with microwave 1
Obs: You heat the tomato 2 using the microwave 1.
[Step 5] go to garbagecan and put the tomato in it
Act: go to garbagecan 1
Obs: On the garbagecan 1, you see nothing.
Act: put tomato 2 in/on garbagecan 1
Obs: You put the tomato 2 in/on the garbagecan 1.
Done. Success: True

Success: True
Task 1, rs: [0, 0, 0, 1, 0, 0] cnts [0, 0, 0, 1, 0, 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': [3], 'pick_cool_then_place': [], 'pick_two_obj': []}
all_tasks_id {'pick_and_place': [], 'look_at_obj': [], 'pick_clean_then_place': [], 'pick_heat_then_place': [0], 'pick_cool_then_place': [], 'pick_two_obj': []}
------------

Task 2: pick_heat_then_place_in_recep-Mug-None-Cabinet-10/trial_T20190909_021200_669381
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: heat some mug and put it in cabinet.
[Step 4] go to a coffeemachine to heat the mug
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 40, in solution
UnboundLocalError: local variable 'found_mug' referenced before assignment
[Step 4] go to a microwave to heat the mug
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, and 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 30, 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: On the coffeemachine 1, you see nothing.
Act: go to countertop 3
Obs: On the countertop 3, you see a butterknife 3, a butterknife 2, a cellphone 2, a creditcard 2, a dishsponge 3, a glassbottle 3, a houseplant 1, a knife 3, a knife 2, a pan 2, a saltshaker 2, a soapbottle 3, a spoon 3, a statue 1, and a tomato 2.
Act: go to countertop 2
Obs: On the countertop 2, you see a butterknife 1, a knife 1, a peppershaker 2, a spoon 1, a tomato 1, a vase 3, and a vase 2.
Act: go to countertop 1
Obs: On the countertop 1, you see a creditcard 1, and a potato 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 spatula 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 fork 2, and a fork 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 cellphone 1, a spatula 1, and a spoon 2.
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 2, a bowl 1, a bread 2, a bread 1, a lettuce 1, and a potato 1.
Act: go to shelf 3
Obs: On the shelf 3, you see nothing.
Act: go to shelf 2
Obs: On the shelf 2, you see a dishsponge 2, a papertowelroll 1, and a plate 1.
Act: go to shelf 1
Obs: On the shelf 1, you see nothing.
Act: go to sinkbasin 1
Obs: On the sinkbasin 1, you see a cup 2, a egg 3, a fork 3, a potato 3, and a spatula 3.
Act: go to stoveburner 4
Obs: On the stoveburner 4, you see a pan 1.
Act: go to stoveburner 3
Obs: On the stoveburner 3, you see a pot 1.
Act: go to stoveburner 2
Obs: On the stoveburner 2, you see a pan 1.
Act: go to stoveburner 1
Obs: On the stoveburner 1, you see a pot 1.
Act: go to toaster 1
Obs: On the toaster 1, 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 glassbottle 2, a peppershaker 3, a saltshaker 1, and a soapbottle 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 a peppershaker 1.
Act: go to cabinet 4
Obs: On the cabinet 4, you see a mug 1, and a soapbottle 1.
[Step 3] identify the mug I just found and take it
Act: take mug 1 from cabinet 4
Obs: You pick up the mug 1 from the cabinet 4.
[Step 4] go to a microwave to heat the mug
Act: go to microwave 1
Obs: The microwave 1 is open. In it, you see a cup 1, and a egg 1.
Act: heat mug 1 with microwave 1
Obs: You heat the mug 1 using the microwave 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 vase 1.
Act: put mug 1 in/on cabinet 1
Obs: You put the mug 1 in/on the cabinet 1.
Done. Success: True

Success: True
Task 2, rs: [0, 0, 0, 2, 0, 0] cnts [0, 0, 0, 2, 0, 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': [3, 3], 'pick_cool_then_place': [], 'pick_two_obj': []}
all_tasks_id {'pick_and_place': [], 'look_at_obj': [], 'pick_clean_then_place': [], 'pick_heat_then_place': [0, 1], 'pick_cool_then_place': [], 'pick_two_obj': []}
------------

Task 3: pick_heat_then_place_in_recep-Egg-None-GarbageCan-10/trial_T20190908_113523_123938
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: heat some egg and put it in garbagecan.
[Step 1] get a list of receptacles where the egg is likely to appear.
[Step 2] go to each receptacle in the list until seeing an egg
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 cup 2, a cup 1, a lettuce 2, a potato 2, and a potato 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 spatula 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 cellphone 2, and a peppershaker 1.
Act: go to cabinet 1
Obs: On the cabinet 1, you see 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 bowl 1, and a glassbottle 1.
Act: go to cabinet 4
Obs: On the cabinet 4, you see 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 glassbottle 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 nothing.
Act: go to countertop 1
Obs: On the countertop 1, you see a cellphone 3, a pan 1, and a peppershaker 2.
Act: go to countertop 2
Obs: On the countertop 2, you see a bread 1, a cellphone 1, a creditcard 2, a creditcard 1, a lettuce 1, a mug 1, a spoon 1, and a statue 1.
Act: go to countertop 3
Obs: On the countertop 3, you see a butterknife 1, a fork 1, a glassbottle 3, a houseplant 1, a knife 1, a lettuce 3, a saltshaker 3, a soapbottle 1, a spoon 2, and a tomato 1.
Act: go to shelf 1
Obs: On the shelf 1, you see a saltshaker 2.
Act: go to shelf 2
Obs: On the shelf 2, you see a papertowelroll 1, and a vase 1.
Act: go to shelf 3
Obs: On the shelf 3, you see a vase 2.
Act: go to sinkbasin 1
Obs: On the sinkbasin 1, you see a fork 2, a spatula 2, and a spoon 3.
Act: go to stoveburner 1
Obs: On the stoveburner 1, you see a pan 1.
Act: go to stoveburner 2
Obs: On the stoveburner 2, you see a pot 1.
Act: go to stoveburner 3
Obs: On the stoveburner 3, you see a pan 1.
Act: go to stoveburner 4
Obs: On the stoveburner 4, you see a pot 1.
Act: go to toaster 1
Obs: On the toaster 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 nothing.
Act: go to coffeemachine 1
Obs: On the coffeemachine 1, you see nothing.
Act: go to garbagecan 1
Obs: On the garbagecan 1, you see a apple 2, a egg 2, and a egg 1.
[Step 3] identify the egg I just found and take it
Act: take egg 2 from garbagecan 1
Obs: You pick up the egg 2 from the garbagecan 1.
[Step 4] go to a microwave to heat the egg
Act: go to microwave 1
Obs: The microwave 1 is open. In it, you see nothing.
Act: heat egg 2 with microwave 1
Obs: You heat the egg 2 using the microwave 1.
[Step 5] go to the garbagecan and put the egg in it
Act: go to garbagecan 1
Obs: On the garbagecan 1, you see a apple 2, and a egg 1.
Act: put egg 2 in/on garbagecan 1
Obs: You put the egg 2 in/on the garbagecan 1.
Done. Success: True

Success: True
Task 3, rs: [0, 0, 0, 3, 0, 0] cnts [0, 0, 0, 3, 0, 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': [3, 3, 0], 'pick_cool_then_place': [], 'pick_two_obj': []}
all_tasks_id {'pick_and_place': [], 'look_at_obj': [], 'pick_clean_then_place': [], 'pick_heat_then_place': [0, 1, 2], 'pick_cool_then_place': [], 'pick_two_obj': []}
------------

Task 4: pick_heat_then_place_in_recep-Apple-None-Fridge-10/trial_T20190906_182259_116320
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: heat some apple and put it in fridge.
[Step 5] go to the fridge and put the apple in it
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 3, a bread 2, a bread 1, a lettuce 1, a tomato 2, and a tomato 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_apple' referenced before assignment
[Step 2] go to each receptacle in the list until seeing an apple
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 10, 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: Nothing happens.
Act: go to countertop 1
Obs: On the countertop 1, you see a cellphone 1, a creditcard 3, a creditcard 1, and a pan 1.
Act: go to countertop 2
Obs: On the countertop 2, you see a creditcard 2, a knife 2, a knife 1, a statue 1, and a tomato 3.
Act: go to countertop 3
Obs: On the countertop 3, you see a bowl 2, a bowl 1, a butterknife 1, a cellphone 3, a cellphone 2, a cup 1, a houseplant 1, a knife 3, a plate 3, a soapbottle 2, a spatula 1, a spoon 1, a vase 3, and a vase 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 a fork 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 fork 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 nothing.
Act: go to shelf 1
Obs: On the shelf 1, you see a papertowelroll 1, a saltshaker 1, and a statue 2.
Act: go to shelf 2
Obs: On the shelf 2, you see a dishsponge 3, a mug 1, and a vase 1.
Act: go to shelf 3
Obs: On the shelf 3, you see nothing.
Act: go to cabinet 1
Obs: On the cabinet 1, you see a glassbottle 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 dishsponge 1, and a plate 1.
Act: go to cabinet 3
Obs: On the cabinet 3, you see a plate 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 dishsponge 2, a peppershaker 1, and a soapbottle 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 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 nothing.
Act: go to garbagecan 1
Obs: On the garbagecan 1, you see a apple 2, a apple 1, a egg 2, a egg 1, a potato 2, and a potato 1.
Act: go to sinkbasin 1
Obs: On the sinkbasin 1, you see a apple 3, a egg 3, a glassbottle 2, a potato 3, and a spoon 2.
Act: go to stoveburner 1
Obs: On the stoveburner 1, you see a pan 1.
Act: go to stoveburner 2
Obs: On the stoveburner 2, you see a pot 1.
Act: go to stoveburner 3
Obs: On the stoveburner 3, you see a pan 1.
Act: go to stoveburner 4
Obs: On the stoveburner 4, you see a pot 1.
Act: go to coffeemachine 1
Obs: On the coffeemachine 1, you see nothing.
Act: go to toaster 1
Obs: On the toaster 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 24, in solution
AssertionError: Error in [Step 2]: There is no lettuce in/on ['fridge 1', 'countertop 1', 'countertop 2', 'countertop 3', 'drawer 1', 'drawer 2', 'drawer 3', 'shelf 1', 'shelf 2', 'shelf 3', 'cabinet 1', 'cabinet 2', 'cabinet 3', 'cabinet 4', 'cabinet 5', 'cabinet 6', 'microwave 1', 'garbagecan 1', 'sinkbasin 1', 'stoveburner 1', 'stoveburner 2', 'stoveburner 3', 'stoveburner 4', 'coffeemachine 1', 'toaster 1']. The last three interactions before error were:
Act: go to stoveburner 4
Obs: On the stoveburner 4, you see a pot 1.
Act: go to coffeemachine 1
Obs: On the coffeemachine 1, you see nothing.
Act: go to toaster 1
Obs: On the toaster 1, you see nothing.
I am at toaster 1 and holding None.
[Step 1] get a list of receptacles where the apple is likely to appear.
[Step 2] go to each receptacle in the list until seeing an apple
Act: go to fridge 1
Obs: The fridge 1 is open. In it, you see a bread 3, a bread 2, a bread 1, a lettuce 1, a tomato 2, and a tomato 1.
Act: go to countertop 3
Obs: On the countertop 3, you see a bowl 2, a bowl 1, a butterknife 1, a cellphone 3, a cellphone 2, a cup 1, a houseplant 1, a knife 3, a plate 3, a soapbottle 2, a spatula 1, a spoon 1, a vase 3, and a vase 2.
Act: go to countertop 2
Obs: On the countertop 2, you see a creditcard 2, a knife 2, a knife 1, a statue 1, and a tomato 3.
Act: go to countertop 1
Obs: On the countertop 1, you see a cellphone 1, a creditcard 3, a creditcard 1, and a pan 1.
Act: go to shelf 3
Obs: On the shelf 3, you see nothing.
Act: go to shelf 2
Obs: On the shelf 2, you see a dishsponge 3, a mug 1, and a vase 1.
Act: go to shelf 1
Obs: On the shelf 1, you see a papertowelroll 1, a saltshaker 1, and a statue 2.
Act: go to drawer 3
Obs: The drawer 3 is open. In it, you see nothing.
Act: go to drawer 2
Obs: The drawer 2 is open. In it, you see a fork 2.
Act: go to drawer 1
Obs: The drawer 1 is open. In it, you see a fork 1.
Act: go to cabinet 6
Obs: The cabinet 6 is open. In it, you see nothing.
Act: go to cabinet 5
Obs: The cabinet 5 is open. In it, you see a dishsponge 2, a peppershaker 1, and a soapbottle 1.
Act: go to cabinet 4
Obs: On the cabinet 4, you see nothing.
Act: go to cabinet 3
Obs: On the cabinet 3, you see a plate 2.
Act: go to cabinet 2
Obs: The cabinet 2 is open. In it, you see a dishsponge 1, and a plate 1.
Act: go to cabinet 1
Obs: On the cabinet 1, you see a glassbottle 1.
Done. Success: False
Act: go to microwave 1
Obs: On the cabinet 1, you see a glassbottle 1.
Done. Success: False
Act: go to stoveburner 4
Obs: On the cabinet 1, you see a glassbottle 1.
Done. Success: False
Act: go to stoveburner 3
Obs: On the cabinet 1, you see a glassbottle 1.
Done. Success: False
Act: go to stoveburner 2
Obs: On the cabinet 1, you see a glassbottle 1.
Done. Success: False
Act: go to stoveburner 1
Obs: On the cabinet 1, you see a glassbottle 1.
Done. Success: False
Act: go to coffeemachine 1
Obs: On the cabinet 1, you see a glassbottle 1.
Done. Success: False
Act: go to sinkbasin 1
Obs: On the cabinet 1, you see a glassbottle 1.
Done. Success: False
Act: go to toaster 1
Obs: On the cabinet 1, you see a glassbottle 1.
Done. Success: False
Act: go to garbagecan 1
Obs: On the cabinet 1, you see a glassbottle 1.
Done. Success: False
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 16, in solution
AssertionError: Error in [Step 2]: There is no apple in/on ['fridge 1', 'countertop 3', 'countertop 2', 'countertop 1', 'shelf 3', 'shelf 2', 'shelf 1', 'drawer 3', 'drawer 2', 'drawer 1', 'cabinet 6', 'cabinet 5', 'cabinet 4', 'cabinet 3', 'cabinet 2', 'cabinet 1', 'microwave 1', 'stoveburner 4', 'stoveburner 3', 'stoveburner 2', 'stoveburner 1', 'coffeemachine 1', 'sinkbasin 1', 'toaster 1', 'garbagecan 1']. The last three interactions before error were:
Act: go to sinkbasin 1
Obs: On the cabinet 1, you see a glassbottle 1.
Act: go to toaster 1
Obs: On the cabinet 1, you see a glassbottle 1.
Act: go to garbagecan 1
Obs: On the cabinet 1, you see a glassbottle 1.
I am at garbagecan 1 and holding None.
[Step 1] get a list of receptacles where the apple is likely to appear.
[Step 2] go to each receptacle in the list until seeing an apple
Act: go to fridge 1
Obs: On the cabinet 1, you see a glassbottle 1.
Done. Success: False
Act: go to countertop 3
Obs: On the cabinet 1, you see a glassbottle 1.
Done. Success: False
Act: go to countertop 2
Obs: On the cabinet 1, you see a glassbottle 1.
Done. Success: False
Act: go to countertop 1
Obs: On the cabinet 1, you see a glassbottle 1.
Done. Success: False
Act: go to shelf 3
Obs: On the cabinet 1, you see a glassbottle 1.
Done. Success: False
Act: go to shelf 2
Obs: On the cabinet 1, you see a glassbottle 1.
Done. Success: False
Act: go to shelf 1
Obs: On the cabinet 1, you see a glassbottle 1.
Done. Success: False
Act: go to drawer 3
Obs: On the cabinet 1, you see a glassbottle 1.
Done. Success: False
Act: go to drawer 2
Obs: On the cabinet 1, you see a glassbottle 1.
Done. Success: False
Act: go to drawer 1
Obs: On the cabinet 1, you see a glassbottle 1.
Done. Success: False
Act: go to cabinet 6
Obs: On the cabinet 1, you see a glassbottle 1.
Done. Success: False
Act: go to cabinet 5
Obs: On the cabinet 1, you see a glassbottle 1.
Done. Success: False
Act: go to cabinet 4
Obs: On the cabinet 1, you see a glassbottle 1.
Done. Success: False
Act: go to cabinet 3
Obs: On the cabinet 1, you see a glassbottle 1.
Done. Success: False
Act: go to cabinet 2
Obs: On the cabinet 1, you see a glassbottle 1.
Done. Success: False
Act: go to cabinet 1
Obs: On the cabinet 1, you see a glassbottle 1.
Done. Success: False
Act: go to microwave 1
Obs: On the cabinet 1, you see a glassbottle 1.
Done. Success: False
Act: go to stoveburner 4
Obs: On the cabinet 1, you see a glassbottle 1.
Done. Success: False
Act: go to stoveburner 3
Obs: On the cabinet 1, you see a glassbottle 1.
Done. Success: False
Act: go to stoveburner 2
Obs: On the cabinet 1, you see a glassbottle 1.
Done. Success: False
Act: go to stoveburner 1
Obs: On the cabinet 1, you see a glassbottle 1.
Done. Success: False
Act: go to coffeemachine 1
Obs: On the cabinet 1, you see a glassbottle 1.
Done. Success: False
Act: go to sinkbasin 1
Obs: On the cabinet 1, you see a glassbottle 1.
Done. Success: False
Act: go to toaster 1
Obs: On the cabinet 1, you see a glassbottle 1.
Done. Success: False
Act: go to garbagecan 1
Obs: On the cabinet 1, you see a glassbottle 1.
Done. Success: False
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 apple in/on ['fridge 1', 'countertop 3', 'countertop 2', 'countertop 1', 'shelf 3', 'shelf 2', 'shelf 1', 'drawer 3', 'drawer 2', 'drawer 1', 'cabinet 6', 'cabinet 5', 'cabinet 4', 'cabinet 3', 'cabinet 2', 'cabinet 1', 'microwave 1', 'stoveburner 4', 'stoveburner 3', 'stoveburner 2', 'stoveburner 1', 'coffeemachine 1', 'sinkbasin 1', 'toaster 1', 'garbagecan 1']. The last three interactions before error were:
Act: go to sinkbasin 1
Obs: On the cabinet 1, you see a glassbottle 1.
Act: go to toaster 1
Obs: On the cabinet 1, you see a glassbottle 1.
Act: go to garbagecan 1
Obs: On the cabinet 1, you see a glassbottle 1.
I am at garbagecan 1 and holding None.

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

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

Task 5: pick_heat_then_place_in_recep-Egg-None-GarbageCan-10/trial_T20190908_113610_425142
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: heat some egg and put it in garbagecan.
[Step 1] get a list of receptacles where the egg is likely to appear.
[Step 2] go to each receptacle in the list until seeing an egg
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 bowl 2, a bowl 1, a bread 1, a lettuce 1, a plate 1, and a tomato 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 a spatula 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 nothing.
Act: go to cabinet 1
Obs: On the cabinet 1, you see a glassbottle 1, 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 dishsponge 1.
Act: go to cabinet 3
Obs: On the cabinet 3, you see a vase 2.
Act: go to cabinet 4
Obs: On the cabinet 4, you see 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 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 mug 1.
Act: go to countertop 1
Obs: On the countertop 1, you see a egg 1, and a soapbottle 2.
[Step 3] identify the egg I just found and take it
Act: take egg 1 from countertop 1
Obs: You pick up the egg 1 from the countertop 1.
[Step 4] go to a microwave to heat the egg
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 cup 1.
Act: heat egg 1 with microwave 1
Obs: You heat the egg 1 using the microwave 1.
[Step 5] go to a garbagecan and put the egg in it
Act: go to garbagecan 1
Obs: On the garbagecan 1, you see a lettuce 3, and a papertowelroll 1.
Act: put egg 1 in/on garbagecan 1
Obs: You put the egg 1 in/on the garbagecan 1.
Done. Success: True

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

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

Task 6: pick_heat_then_place_in_recep-Potato-None-GarbageCan-10/trial_T20190907_161853_945788
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 hot potato in garbagecan.
[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 1, a bread 2, a cup 2, a cup 1, a lettuce 1, a mug 1, a tomato 2, and a tomato 1.
Act: go to countertop 3
Obs: On the countertop 3, you see a bread 3, a cellphone 3, a creditcard 2, a creditcard 1, a dishsponge 3, a fork 3, a glassbottle 3, a houseplant 1, a pan 3, a pan 2, a pot 1, a potato 3, a spatula 3, and a spatula 1.
[Step 3] identify the potato I just found and take it
Act: take potato 3 from countertop 3
Obs: You pick up the potato 3 from the countertop 3.
[Step 4] go to a stoveburner to heat the potato
Act: go to stoveburner 1
Obs: On the stoveburner 1, you see a pan 1.
Act: heat potato 3 with stoveburner 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 34, in solution
AssertionError: Error in [Step 4]: I cannot heat the potato 3 using the stoveburner 1. The last three interactions before error were:
Act: take potato 3 from countertop 3
Obs: You pick up the potato 3 from the countertop 3.
Act: go to stoveburner 1
Obs: On the stoveburner 1, you see a pan 1.
Act: heat potato 3 with stoveburner 1
Obs: Nothing happens.
I am at stoveburner 1 and holding potato 3.
[Step 5] go to a garbagecan and put the potato in it
Act: go to garbagecan 1
Obs: On the garbagecan 1, you see a apple 3, a egg 1, and a soapbottle 2.
Act: put potato 3 in/on garbagecan 1
Obs: You put the potato 3 in/on the garbagecan 1.
[Step 3] identify the potato 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 20, in solution
UnboundLocalError: local variable 'observation' 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 open. In it, you see a apple 1, a bread 2, a cup 2, a cup 1, a lettuce 1, a mug 1, a tomato 2, and a tomato 1.
Act: go to countertop 1
Obs: On the countertop 1, you see a apple 2, a cellphone 2, a pan 1, and a soapbottle 1.
Act: go to countertop 2
Obs: On the countertop 2, you see a bowl 1, a bread 1, a butterknife 1, a cellphone 1, a glassbottle 1, a knife 1, a peppershaker 2, a potato 2, a potato 1, a spoon 2, and a statue 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 stoveburner to heat the potato
Act: go to stoveburner 1
Obs: On the stoveburner 1, you see a pan 1.
Act: heat potato 2 with stoveburner 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 43, in solution
AssertionError: Error in [Step 4]: I cannot heat the potato 2 using the stoveburner 1. The last three interactions before error were:
Act: take potato 2 from countertop 2
Obs: You pick up the potato 2 from the countertop 2.
Act: go to stoveburner 1
Obs: On the stoveburner 1, you see a pan 1.
Act: heat potato 2 with stoveburner 1
Obs: Nothing happens.
I am at stoveburner 1 and holding potato 2. I should have been at stoveburner 1 and holding potato 2. 
[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 open. In it, you see a apple 1, a bread 2, a cup 2, a cup 1, a lettuce 1, a mug 1, a tomato 2, and a tomato 1.
Act: go to countertop 3
Obs: On the countertop 3, you see a bread 3, a cellphone 3, a creditcard 2, a creditcard 1, a dishsponge 3, a fork 3, a glassbottle 3, a houseplant 1, a pan 3, a pan 2, a pot 1, a spatula 3, and a spatula 1.
Act: go to countertop 2
Obs: On the countertop 2, you see a bowl 1, a bread 1, a butterknife 1, a cellphone 1, a glassbottle 1, a knife 1, a peppershaker 2, a potato 1, a spoon 2, and a statue 1.
[Step 3] identify the potato 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 31, in solution
AssertionError: Error in [Step 3]: I cannot take potato 1 from the countertop 2. The last three interactions before error were:
Act: go to fridge 1
Obs: The fridge 1 is open. In it, you see a apple 1, a bread 2, a cup 2, a cup 1, a lettuce 1, a mug 1, a tomato 2, and a tomato 1.
Act: go to countertop 3
Obs: On the countertop 3, you see a bread 3, a cellphone 3, a creditcard 2, a creditcard 1, a dishsponge 3, a fork 3, a glassbottle 3, a houseplant 1, a pan 3, a pan 2, a pot 1, a spatula 3, and a spatula 1.
Act: go to countertop 2
Obs: On the countertop 2, you see a bowl 1, a bread 1, a butterknife 1, a cellphone 1, a glassbottle 1, a knife 1, a peppershaker 2, a potato 1, a spoon 2, and a statue 1.
I am at countertop 2 and holding potato 2.
[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 open. In it, you see a apple 1, a bread 2, a cup 2, a cup 1, a lettuce 1, a mug 1, a tomato 2, and a tomato 1.
Act: go to countertop 1
Obs: On the countertop 1, you see a apple 2, a cellphone 2, a pan 1, and a soapbottle 1.
Act: go to countertop 2
Obs: On the countertop 2, you see a bowl 1, a bread 1, a butterknife 1, a cellphone 1, a glassbottle 1, a knife 1, a peppershaker 2, a potato 1, a spoon 2, and a statue 1.
[Step 3] identify the potato 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 31, in solution
AssertionError: Error in [Step 3]: I cannot take potato 1 from the countertop 2. The last three interactions before error were:
Act: go to fridge 1
Obs: The fridge 1 is open. In it, you see a apple 1, a bread 2, a cup 2, a cup 1, a lettuce 1, a mug 1, a tomato 2, and a tomato 1.
Act: go to countertop 1
Obs: On the countertop 1, you see a apple 2, a cellphone 2, a pan 1, and a soapbottle 1.
Act: go to countertop 2
Obs: On the countertop 2, you see a bowl 1, a bread 1, a butterknife 1, a cellphone 1, a glassbottle 1, a knife 1, a peppershaker 2, a potato 1, a spoon 2, and a statue 1.
I am at countertop 2 and holding potato 2.

Success: False
Task 6, rs: [0, 0, 0, 4, 0, 0] cnts [0, 0, 0, 6, 0, 0] success_rate: 0.6666666666666666 

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

Task 7: pick_heat_then_place_in_recep-Apple-None-Fridge-10/trial_T20190906_182353_418140
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 hot apple in fridge.
[Step 4] go to a stoveburner to heat the apple
Act: go to stoveburner 1
Obs: On the stoveburner 1, you see a pot 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_apple' referenced before assignment
[Step 4] go to a microwave to heat the apple
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 mug 1.
Act: heat None with 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 45, in solution
AssertionError: Error in [Step 4]: I cannot heat the None using 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 mug 1.
Act: heat None with microwave 1
Obs: Nothing happens.
I am at microwave 1 and holding None. I should have been at microwave 1 and holding None. 
[Step 1] get a list of receptacles where the apple is likely to appear.
[Step 2] go to each receptacle in the list until seeing an apple
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 2, a cup 1, a egg 1, a lettuce 1, a mug 2, a plate 2, a potato 2, a potato 1, and a tomato 1.
Act: go to countertop 3
Obs: On the countertop 3, you see a bread 1, a cellphone 3, a dishsponge 3, a fork 3, a houseplant 1, a knife 2, a lettuce 2, a papertowelroll 1, a pot 3, a pot 2, and a vase 2.
Act: go to countertop 2
Obs: On the countertop 2, you see a butterknife 1, a cellphone 1, a cup 3, a fork 2, a fork 1, a knife 1, a spatula 2, a spoon 3, a spoon 2, a spoon 1, a statue 1, and a tomato 2.
Act: go to countertop 1
Obs: On the countertop 1, you see a apple 2, a apple 1, a mug 3, a potato 3, and a spatula 1.
[Step 3] identify the apple I just found and take it
Act: take apple 2 from countertop 1
Obs: You pick up the apple 2 from the countertop 1.
[Step 4] go to a fridge to put the apple in
Act: go to fridge 1
Obs: The fridge 1 is open. In it, you see a bowl 1, a cup 2, a cup 1, a egg 1, a lettuce 1, a mug 2, a plate 2, a potato 2, a potato 1, and a tomato 1.
Act: put apple 2 in/on fridge 1
Obs: You put the apple 2 in/on the fridge 1.
Act: go to fridge 1
Obs: Nothing happens.
Act: go to countertop 3
Obs: On the countertop 3, you see a bread 1, a cellphone 3, a dishsponge 3, a fork 3, a houseplant 1, a knife 2, a lettuce 2, a papertowelroll 1, a pot 3, a pot 2, and a vase 2.
Act: go to countertop 2
Obs: On the countertop 2, you see a butterknife 1, a cellphone 1, a cup 3, a fork 2, a fork 1, a knife 1, a spatula 2, a spoon 3, a spoon 2, a spoon 1, a statue 1, and a tomato 2.
Act: go to countertop 1
Obs: On the countertop 1, you see a apple 1, a mug 3, a potato 3, and a spatula 1.
Act: take apple 1 from countertop 1
Obs: You pick up the apple 1 from the countertop 1.
Act: go to microwave 1
Obs: The microwave 1 is open. In it, you see a mug 1.
Act: heat apple 1 with microwave 1
Obs: You heat the apple 1 using the microwave 1.
Act: go to fridge 1
Obs: The fridge 1 is open. In it, you see a apple 2, a bowl 1, a cup 2, a cup 1, a egg 1, a lettuce 1, a mug 2, a plate 2, a potato 2, a potato 1, and a tomato 1.
Act: put apple 1 in/on fridge 1
Obs: You put the apple 1 in/on the fridge 1.
Done. Success: True

Success: True
Task 7, rs: [0, 0, 0, 5, 0, 0] cnts [0, 0, 0, 7, 0, 0] success_rate: 0.7142857142857143 

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

Task 8: pick_heat_then_place_in_recep-Apple-None-Fridge-10/trial_T20190906_182435_622538
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: heat some apple and put it in fridge.

Success: False
Task 8, rs: [0, 0, 0, 5, 0, 0] cnts [0, 0, 0, 8, 0, 0] success_rate: 0.625 

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

Task 9: pick_heat_then_place_in_recep-Egg-None-GarbageCan-10/trial_T20190908_113432_673307
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: heat some egg and put it in garbagecan.
[Step 1] get a list of receptacles where the egg is likely to appear.
[Step 2] go to each receptacle in the list until seeing an egg
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 bread 2, a cup 1, a lettuce 1, a mug 1, and a tomato 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 peppershaker 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 dishsponge 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 creditcard 2, and a spoon 3.
Act: go to cabinet 1
Obs: On the cabinet 1, you see a bowl 1, and a glassbottle 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 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 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 vase 2.
Act: go to countertop 1
Obs: On the countertop 1, you see a creditcard 1, and a peppershaker 1.
Act: go to countertop 2
Obs: On the countertop 2, you see a bread 1, a knife 1, a lettuce 2, a papertowelroll 1, a soapbottle 1, a spoon 2, and a vase 1.
Act: go to countertop 3
Obs: On the countertop 3, you see a butterknife 3, a butterknife 2, a butterknife 1, a cellphone 1, a cup 2, a egg 1, a fork 1, a houseplant 1, a lettuce 3, a plate 2, a plate 1, a potato 1, a tomato 2, and a vase 3.
[Step 3] identify the egg I just found and take it
Act: take egg 1 from countertop 3
Obs: You pick up the egg 1 from the countertop 3.
[Step 4] go to a microwave to heat the egg
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: heat egg 1 with microwave 1
Obs: You heat the egg 1 using the microwave 1.
[Step 5] go to a garbagecan and put the egg in it
Act: go to garbagecan 1
Obs: On the garbagecan 1, you see a soapbottle 2, and a tomato 3.
Act: put egg 1 in/on garbagecan 1
Obs: You put the egg 1 in/on the garbagecan 1.
Done. Success: True

Success: True
Task 9, rs: [0, 0, 0, 6, 0, 0] cnts [0, 0, 0, 9, 0, 0] success_rate: 0.6666666666666666 

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

Task 10: pick_heat_then_place_in_recep-Tomato-None-GarbageCan-10/trial_T20190908_225359_617900
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: heat some tomato and put it in garbagecan.
[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 3, a bowl 2, a lettuce 1, a mug 1, a pan 1, a potato 2, and a potato 1.
Act: go to countertop 1
Obs: On the countertop 1, you see a pan 2, and a papertowelroll 1.
Act: go to countertop 2
Obs: On the countertop 2, you see a butterknife 2, a butterknife 1, a egg 1, a fork 1, and a statue 1.
Act: go to countertop 3
Obs: On the countertop 3, you see a bread 1, a butterknife 3, a egg 2, a houseplant 1, a knife 2, a knife 1, a pot 1, a statue 2, a tomato 1, and a vase 2.
[Step 3] identify the tomato I just found and take it
Act: take tomato 1 from countertop 3
Obs: You pick up the tomato 1 from the countertop 3.
[Step 4] go to a microwave to heat the tomato
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: heat tomato 1 with microwave 1
Obs: You heat the tomato 1 using the microwave 1.
[Step 5] go to a garbagecan and put the tomato in it
Act: go to garbagecan 1
Obs: On the garbagecan 1, you see nothing.
Act: put tomato 1 in/on garbagecan 1
Obs: You put the tomato 1 in/on the garbagecan 1.
Done. Success: True

Success: True
Task 10, rs: [0, 0, 0, 7, 0, 0] cnts [0, 0, 0, 10, 0, 0] success_rate: 0.7 

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

Task 11: pick_heat_then_place_in_recep-Apple-None-GarbageCan-10/trial_T20190908_145050_918567
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: heat some apple and put it in garbagecan.
[Step 1] get a list of receptacles where the apple is likely to appear.
[Step 2] go to each receptacle in the list until seeing an apple
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 2, a egg 2, a lettuce 1, a potato 3, and a potato 2.
Act: go to countertop 3
Obs: On the countertop 3, you see a apple 4, a bowl 3, a butterknife 2, a cellphone 3, a creditcard 3, a creditcard 2, a fork 2, a glassbottle 2, a houseplant 1, a knife 3, and a knife 2.
[Step 3] identify the apple I just found and take it
Act: take apple 4 from countertop 3
Obs: You pick up the apple 4 from the countertop 3.
[Step 4] go to a microwave to heat the apple
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: heat apple 4 with microwave 1
Obs: You heat the apple 4 using the microwave 1.
[Step 5] go to a garbagecan and put the apple in it
Act: go to garbagecan 1
Obs: On the garbagecan 1, you see a apple 3, a apple 2, and a papertowelroll 1.
Act: put apple 4 in/on garbagecan 1
Obs: You put the apple 4 in/on the garbagecan 1.
Done. Success: True

Success: True
Task 11, rs: [0, 0, 0, 8, 0, 0] cnts [0, 0, 0, 11, 0, 0] success_rate: 0.7272727272727273 

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

