Add ERROR macro into the model.cpp