diff --git a/DynamicModel.cc b/DynamicModel.cc
index d63692c8700cc079537e1c2bb3698586e06ca2f6..12658291f8fdd5ad0b623e2105a4ff081cf5d1ed 100644
--- a/DynamicModel.cc
+++ b/DynamicModel.cc
@@ -3239,10 +3239,7 @@ DynamicModel::addEquationsForVar(map<string, pair<SymbolList, int> > var_model_i
     {
       map<string, int>::const_iterator it1 = model_endos_and_lags.find(it->first);
       if (it1 == model_endos_and_lags.end())
-        {
-          cerr << "WARNING: Variable used in var that is not used in the model: " << it->first << endl;
-          //          exit(EXIT_FAILURE);
-        }
+        cerr << "WARNING: Variable used in VAR that is not used in the model: " << it->first << endl;
       else
         if (it->second < it1->second)
           {