Why does the message "Moving new file over differing existing file" comes up?

Hi,

I am running FEniCS version 2017.1 in a remote machine. I am using mpi4py for running it in parallel.

I am getting an error which says,

Moving new file over differing existing file:
src: /tmp/tmp2jfo5mun/ffc_element_45b1d44b0e4691b9df75611b170d6386dcfa3bdf.cpp.gz
dst: /scratch/a/asarkar/sudhipv/ssfem_fenics/external/dolfin/src/.cache/dijitso/src/ffc_element_45b1d44b0e4691b9df75611b170d6386dcfa3bdf.cpp.gz
backup: /scratch/a/asarkar/sudhipv/ssfem_fenics/external/dolfin/src/.cache/dijitso/src/ffc_element_45b1d44b0e4691b9df75611b170d6386dcfa3bdf.cpp.gz.old
Calling FFC just-in-time (JIT) compiler, this may take some time.
Calling FFC just-in-time (JIT) compiler, this may take some time.
Moving new file over differing existing file:
src: /tmp/tmpup3j6w29/ffc_element_45b1d44b0e4691b9df75611b170d6386dcfa3bdf.cpp.gz
dst: /scratch/a/asarkar/sudhipv/ssfem_fenics/external/dolfin/src/.cache/dijitso/src/ffc_element_45b1d44b0e4691b9df75611b170d6386dcfa3bdf.cpp.gz
backup: /scratch/a/asarkar/sudhipv/ssfem_fenics/external/dolfin/src/.cache/dijitso/src/ffc_element_45b1d44b0e4691b9df75611b170d6386dcfa3bdf.cpp.gz.old
Backup file exists, overwriting.
Moving new file over differing existing file:
src: /tmp/tmpoq3h4_fg/ffc_element_45b1d44b0e4691b9df75611b170d6386dcfa3bdf.cpp.gz
dst: /scratch/a/asarkar/sudhipv/ssfem_fenics/external/dolfin/src/.cache/dijitso/src/ffc_element_45b1d44b0e4691b9df75611b170d6386dcfa3bdf.cpp.gz
backup: /scratch/a/asarkar/sudhipv/ssfem_fenics/external/dolfin/src/.cache/dijitso/src/ffc_element_45b1d44b0e4691b9df75611b170d6386dcfa3bdf.cpp.gz.old
Backup file exists, overwriting.
Calling FFC just-in-time (JIT) compiler, this may take some time.
Calling FFC just-in-time (JIT) compiler, this may take some time.
Moving new file over differing existing file:
src: /tmp/tmpl3l06nd1/ffc_element_45b1d44b0e4691b9df75611b170d6386dcfa3bdf.cpp.gz
dst: /scratch/a/asarkar/sudhipv/ssfem_fenics/external/dolfin/src/.cache/dijitso/src/ffc_element_45b1d44b0e4691b9df75611b170d6386dcfa3bdf.cpp.gz
backup: /scratch/a/asarkar/sudhipv/ssfem_fenics/external/dolfin/src/.cache/dijitso/src/ffc_element_45b1d44b0e4691b9df75611b170d6386dcfa3bdf.cpp.gz.old
Backup file exists, overwriting.
Moving new file over differing existing file:
src: /tmp/tmps198kx2x/ffc_element_45b1d44b0e4691b9df75611b170d6386dcfa3bdf.cpp.gz
dst: /scratch/a/asarkar/sudhipv/ssfem_fenics/external/dolfin/src/.cache/dijitso/src/ffc_element_45b1d44b0e4691b9df75611b170d6386dcfa3bdf.cpp.gz
backup: /scratch/a/asarkar/sudhipv/ssfem_fenics/external/dolfin/src/.cache/dijitso/src/ffc_element_45b1d44b0e4691b9df75611b170d6386dcfa3bdf.cpp.gz.old
Backup file exists, overwriting.
Moving new file over differing existing file:
src: /tmp/tmpxee4q_jc/ffc_element_45b1d44b0e4691b9df75611b170d6386dcfa3bdf.cpp.gz
dst: /scratch/a/asarkar/sudhipv/ssfem_fenics/external/dolfin/src/.cache/dijitso/src/ffc_element_45b1d44b0e4691b9df75611b170d6386dcfa3bdf.cpp.gz
backup: /scratch/a/asarkar/sudhipv/ssfem_fenics/external/dolfin/src/.cache/dijitso/src/ffc_element_45b1d44b0e4691b9df75611b170d6386dcfa3bdf.cpp.gz.old
Backup file exists, overwriting.
Calling FFC just-in-time (JIT) compiler, this may take some time.
Traceback (most recent call last):
File “/home/a/asarkar/sudhipv/software/dolfin_intel/lib/python3.6/site-packages/dolfin/compilemodules/jit.py”, line 142, in jit
result = ffc.jit(ufl_object, parameters=p)
File “/home/a/asarkar/sudhipv/packages/fenics_intel/lib/python3.6/site-packages/ffc/jitcompiler.py”, line 204, in jit
module = jit_build(ufl_object, module_name, parameters)
File “/home/a/asarkar/sudhipv/packages/fenics_intel/lib/python3.6/site-packages/ffc/jitcompiler.py”, line 120, in jit_build
generate=jit_generate)
File “/home/a/asarkar/sudhipv/packages/fenics_intel/lib/python3.6/site-packages/dijitso/jit.py”, line 173, in jit
params)
File “/home/a/asarkar/sudhipv/packages/fenics_intel/lib/python3.6/site-packages/dijitso/build.py”, line 174, in build_shared_library
lockfree_move_file(temp_src_filename, src_filename)
File “/home/a/asarkar/sudhipv/packages/fenics_intel/lib/python3.6/site-packages/dijitso/system.py”, line 272, in lockfree_move_file
return _lockfree_move_file(src, dst, False)
File “/home/a/asarkar/sudhipv/packages/fenics_intel/lib/python3.6/site-packages/dijitso/system.py”, line 299, in _lockfree_move_file
_lockfree_move_file(dst, backup, True)
File “/home/a/asarkar/sudhipv/packages/fenics_intel/lib/python3.6/site-packages/dijitso/system.py”, line 311, in _lockfree_move_file
move_file(src, priv(ui))
File “/home/a/asarkar/sudhipv/packages/fenics_intel/lib/python3.6/site-packages/dijitso/system.py”, line 257, in move_file
assert os.path.exists(srcfilename)
AssertionError

My question is why does this message pops up ? What does it actually mean by this ?

I have tried dijitso clean and ran this. I have also made my env variable $DIJITSO_CACHE_DIR to one where I have write permissions (Different from installation directory).

I have tried out a small sample program and that works after dijitso clean and still gives those moving file messages but my original code doesn’t work even after cleaning.

Sample Code : This works only after dijitso clean.
from dolfin import *
import os as os
from mpi4py import MPI

comm = MPI.COMM_WORLD
ip = comm.Get_rank()

print("Hello I am process ",ip)
mesh = UnitIntervalMesh(mpi_comm_self(),10)
V = VectorFunctionSpace(mesh, “CG”, 1)

subpath = “…/data/Amats/subdom000”.rstrip(“0”)+str(ip+1)

if not os.path.exists(subpath):
os.makedirs(subpath)