The DAYOFYEAR function is pushed to Osisoft PI as DAY, but that appears to actually return day of month (the documentation is not clear on this).
This issue is resolved in upstream (commit 01b968a2)