My Mathematica 13.1 crashes when I try to see the result of 'Save' for some very long expressions, and produces short DumpSave files which when clicked on contain only Null.
I have a system
L = \[Lambda] - mx x; fz = y (bc/(kb + y) - dc/(kd + y)) - mz;
x1 = L - \[Beta] x v ;
y1 = \[Beta] x v - byz y z - my y;
v1 = B my y - \[Beta] x v - bvz v z - mv v;
z1 = z fz;
dyn = {x1, y1, v1, z1}; X = {x, y, v, z};
cfp = Solve[Thread[dyn == 0], X]
Length[cfp]
cfp[[1]]
cfp[[2]]
This takes a little while to solve on Mathematica and yields 6 answers, the first and second ones being very simple, the others not. The results take 20.6 MB. I tried saving the result in two ways
Save["cfp.m", cfp]
DumpSave["cfp.mx", cfp]
''Save'' produces a file of 2852 Ko;
trying to open it by clicking on it crashes the file which produced the expression.
''DumpSave'' produces a file of 38 Ko containing only the word Null.
Thanks for all the answers, I haven't tried them yet, it seemed that first priority was to give the full example. It is worrisome that DumpSave works on other computers, but not on mine
DumpSave["filename.mx", expression]
, that works. You say that doesn't work for you, i.e something that does works for other people doesn't work for you. That hints there is a problem in the way you are implementing the solution. We can only speculate, unless you provide a minimum working example of your problem. Please edit your question and provide a minimal well-formatted Mathematica code example of how you are saving your data. $\endgroup$DumpSave["filename.mx", expression;]
(notice the extra;
). Is that the case? $\endgroup$DumpSave["cfp.mx", cfp]
does produce a 33.8KB file with the correct data. It's not empty. It starts with"(*This is a Wolfram Language binary dump file. It can be loaded with Get.*)"
then it becomes binary. $\endgroup$