ObjectOutputStream os=null;
try {
fs=new FileOutputStream(corefilename);
os=new ObjectOutputStream(fs);
os.writeObject(core);
os.writeObject(sol.lowLevelCore());
corefilename="CORE: "+corefilename;
} catch(Throwable ex) {
corefilename="";
} finally {
Util.close(os);