Index: tol/stdlib/math/stat/models/bayesian/bysMcmc/bsr/gibbs/_stdLinearBlock.tol
===================================================================
--- tol/stdlib/math/stat/models/bayesian/bysMcmc/bsr/gibbs/_stdLinearBlock.tol	(revision 64f4b5069c445901b5754df20ee2a971a2da097e)
+++ tol/stdlib/math/stat/models/bayesian/bysMcmc/bsr/gibbs/_stdLinearBlock.tol	(revision 4c93933cbfd6d841aa63222446127de9f7de0419)
@@ -112,8 +112,9 @@
   ////////////////////////////////////////////////////////////////////////////
   {
+    WriteLn("TRACE"+_MID+" factorize X("<<VRows(X)+"x"+VColumns(X)+")");
     If(And(design.is.constant,VRows(_.L)), 0,
     {
       Real sparse = VNonNullCells(X)/(VRows(X)*VColumns(X));
-
+      Real numErr = Copy(NError);
       VMatrix _.L := If(sparse<.20, 
       {
@@ -125,4 +126,10 @@
         VMatrix XtX  = Convert(XtX_,"Cholmod.R.Sparse");
         CholeskiFactor(XtX,"X")
+      });
+      Real If(Copy(NError)>numErr,
+      {
+        Text path = TolAppDataPath+"tmp/"+ToName(_MID)+".oza";
+        WriteLn("Failed factorization matrix will be stored into "+path);
+        Ois.Store([[X]],path)
       });
       VMatrix If(_.R, _.Ls := Convert(_.L, "Cholmod.R.Sparse"));
