# 5-Phase 3-Phase error for example file and task test

**URL:** <https://discourse.ladybug.tools/t/5-phase-3-phase-error-for-example-file-and-task-test/4251>\
**Category:** honeybee\[+\]\
**Tags:** daylight, three-phase, bsdf, five-phase\
**Created:** [October 28, 2018, 4:47pm UTC](https://discourse.ladybug.tools/t/5-phase-3-phase-error-for-example-file-and-task-test/4251 "2018-10-28T16:47:46Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Xiufang](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/xiufang/32/9486_2.png) [@Xiufang](https://discourse.ladybug.tools/u/Xiufang)\
**Post date:** [October 28, 2018, 4:47pm UTC](https://discourse.ladybug.tools/t/5-phase-3-phase-error-for-example-file-and-task-test/4251/1 "2018-10-28T16:47:46Z")

</div>

Dear all,

I was running 5-phase in HB+ for the first time (starting from example file and then a project). However I found some errors while testing.

Downloaded from Github [example files](https://github.com/ladybug-tools/honeybee-grasshopper/tree/master/plugin/grasshopper/sampleFiles) for Honeybee[+], I cannot run the file 11 and 12 for 5-phase method. Radiance 5.2 official release installed, Honeybee[+] updated from Github. The error message is also mentioned in this post: [1. Solution exception:Failed to load total results for window\_group [1], state[0] for hour 0.0. ‘tuple’ object does not support item assignment](https://discourse.ladybug.tools/t/1-solution-exception-failed-to-load-total-results-for-window-group-1-state-0-for-hour-0-0-tuple-object-does-not-support-item-assignment/3958). As mentioned in this post, this issue will be fixed in the next release and is caused by “the initial values are saved as tuple and not list”.

So I moved on to 3-Phase test. The example files work well. And I only have 1 window group with 2 states. 3-Phase should work if I don’t need accurate spatial resolution. It would be really helpful if anyone can comment on “what is accurate spatial resolution”!

But no matter I connect 3-phase or 5-phase recipe, I noticed that in the cmd window it shows “fatal - unexpected EOF in header” at step 2. matrix multiplication [1/3] and [2/3], screenshot below:  
 ![image](https://discourse.ladybug.tools/uploads/default/original/2X/2/27839e1d84df4dbb10b557360f037e4f5cc3144a.png)

And in the end of the run, the RunRadiance failed to load empty result file. In result folder, direct…scene…default (5-phase), scene…default (5-phase and 3-phase), and total…scene…default (5-phase and 3-phase) are all empty files.  
 ![image](https://discourse.ladybug.tools/uploads/default/original/2X/1/1849b211fae29ef447d5997a1233a808170e2ef9.png)

![image](https://discourse.ladybug.tools/uploads/default/original/2X/0/06ec20aae176a450c60ec516a303b005b2478ecd.png)

Any advice or suggestions about this issue would be much appreciated! Thanks!

Best,  
Xiufang

---

<div class="post-metadata">

**Author:** ![mostapha](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/mostapha/32/15244_2.png) [@mostapha](https://discourse.ladybug.tools/u/mostapha)\
**Post date:** [October 29, 2018, 4:06am UTC](https://discourse.ladybug.tools/t/5-phase-3-phase-error-for-example-file-and-task-test/4251/2 "2018-10-29T04:06:54Z")

</div>

I will check this tomorrow and get back to you. Thank you for reporting the issue.

---

<div class="post-metadata">

**Author:** ![OlivierDambron](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/olivierdambron/32/10957_2.png) [@OlivierDambron](https://discourse.ladybug.tools/u/OlivierDambron)\
**Post date:** [October 29, 2018, 10:15am UTC](https://discourse.ladybug.tools/t/5-phase-3-phase-error-for-example-file-and-task-test/4251/3 "2018-10-29T10:15:17Z")

</div>

hi @Xiufang ,

1. Please check that re-use matrix in your recipe component is turned to false, otherwise make sure you delete the folder that was created in /ladybug. Basically if you left the matrices file from a previous test that you interupted you may be re-using files that are empty. have a look .

2. an easy way to put it is that 3 phase method will give you the correct average amount of lux falling on a surface but you won’t see the sharp patterns of light/shadows.

Best,  
Olivier

---

<div class="post-metadata">

**Author:** ![IasonBournas](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/iasonbournas/32/147_2.png) [@IasonBournas](https://discourse.ladybug.tools/u/IasonBournas)\
**Post date:** [October 31, 2018, 4:58pm UTC](https://discourse.ladybug.tools/t/5-phase-3-phase-error-for-example-file-and-task-test/4251/4 "2018-10-31T16:58:32Z")

</div>

The same happens with the Annual Recipe,

“fatal - unexpected EOF in header” during the matrix multiplication process,  
and no .ill files generated as Xiufang mentioned.

Radiance version 5.2 official, Github updated HB[+] and no reuse of Dmtx.

 ![error_annual_in_plus](https://discourse.ladybug.tools/uploads/default/original/2X/f/f0e52ef299c391fc576cc6fc575a72c5b65cfa79.jpeg)

---

<div class="post-metadata">

**Author:** ![IasonBournas](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/iasonbournas/32/147_2.png) [@IasonBournas](https://discourse.ladybug.tools/u/IasonBournas)\
**Post date:** [October 31, 2018, 5:05pm UTC](https://discourse.ladybug.tools/t/5-phase-3-phase-error-for-example-file-and-task-test/4251/5 "2018-10-31T17:05:10Z")

</div>

and the tmp folder contains three empty files as shown below:

![error_annual_in_plus2](https://discourse.ladybug.tools/uploads/default/original/2X/4/4e16a1420abc182b7ba213ace4472fe8c23f90c0.jpeg)

---

<div class="post-metadata">

**Author:** ![mostapha](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/mostapha/32/15244_2.png) [@mostapha](https://discourse.ladybug.tools/u/mostapha)\
**Post date:** [October 31, 2018, 5:08pm UTC](https://discourse.ladybug.tools/t/5-phase-3-phase-error-for-example-file-and-task-test/4251/6 "2018-10-31T17:08:18Z")

</div>

what if you remove `-pj`?

In error message it says unsupported option `-pj`. If it works after removing -pj from rfluxmtx commands then that should be the issue.

---

<div class="post-metadata">

**Author:** ![IasonBournas](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/iasonbournas/32/147_2.png) [@IasonBournas](https://discourse.ladybug.tools/u/IasonBournas)\
**Post date:** [October 31, 2018, 5:50pm UTC](https://discourse.ladybug.tools/t/5-phase-3-phase-error-for-example-file-and-task-test/4251/7 "2018-10-31T17:50:06Z")

</div>

Yep. I had migrated all radiance rendering settings that i had used for a DC simulation with the Legacy version, to compare apples with apples, but i found out it does not work that way. If i use the RADParGridBased component, then there are 4 options for 4 different sets of parameters:

1. point-in-time
2. DC
3. 3Phase
4. 5Phase  
The annual recipe (analemma) will only work with the 2. DC set of parameters. Thank you Mostapha!

P.S. It might have been a different thing that Xiufang was after for her case.
