Got error while compiling generated code. Command returned non-zero exit code: /usr/bin/php7.0 -f /var/www/magento2/bin/magento setup:di:compile
try to run the failing command with the -vvv
/usr/bin/php7.0 -f /var/www/magento2/bin/magento setup:di:compile -vvv
to get better error message