Removed double call to $this->_objectManager->create('Magento\Core\Model\Variable') and changed name of var to variablesModel instead of variables.