/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 3 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7465
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0401.7+2112_daily_bin536
RA = 60.4496, Dec = 21.2007
tmin = 378259201, tmax = 378518401
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository Job = True

LAT data Source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='150420', job_status='RUN', time_executed='2021-08-19 22:47:16.069235', time_epoch_executed='1629438436.07' WHERE source_name='4FGL J0401.7+2112' and cadence='daily' and bin_id='536'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/150420

Creating custom pfile directory:
/scratch/kocevski/150420/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=378259201.0 && nMetStart<378518401.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=378259201.0 && nMetStart<378518401.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/150420/ft1_4FGL_J0401.7+2112_daily_bin536.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=378259201.0 && nMetStart<378518401.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/150420/ft2_4FGL_J0401.7+2112_daily_bin536.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/150420/ft1_4FGL_J0401.7+2112_daily_bin536.fits outfile=/scratch/kocevski/150420/ft1_filteredMKT_4FGL_J0401.7+2112_daily_bin536.fits ra=60.4496 dec=21.2007 rad=12.0 tmin=378259201.0 tmax=378518401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 9.74
user 4.19
sys 5.51

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/150420/ft2_4FGL_J0401.7+2112_daily_bin536.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/150420/ft2_4FGL_J0401.7+2112_daily_bin536.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/150420/ft1_filteredMKT_4FGL_J0401.7+2112_daily_bin536.fits evtable="EVENTS" outfile="/scratch/kocevski/150420/ft1_filtered_4FGL_J0401.7+2112_daily_bin536.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 5.77
user 0.33
sys 5.42

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/150420/ft1_filtered_4FGL_J0401.7+2112_daily_bin536.fits" evtable="EVENTS" scfile=/scratch/kocevski/150420/ft2_4FGL_J0401.7+2112_daily_bin536.fits sctable="SC_DATA" outfile=/scratch/kocevski/150420/ltcube_378259201_378518401_4FGL_J0401.7+2112_daily_bin536.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/150420/ft2_4FGL_J0401.7+2112_daily_bin536.fits
.....................!
real 17.51
user 11.27
sys 6.20

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/150420/ft1_filtered_4FGL_J0401.7+2112_daily_bin536.fits evtable="EVENTS" scfile=/scratch/kocevski/150420/ft2_4FGL_J0401.7+2112_daily_bin536.fits sctable="SC_DATA" expcube=/scratch/kocevski/150420/ltcube_378259201_378518401_4FGL_J0401.7+2112_daily_bin536.fits outfile=/scratch/kocevski/150420/expmap_378259201_378518401_4FGL_J0401.7+2112_daily_bin536.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/150420/ltcube_378259201_378518401_4FGL_J0401.7+2112_daily_bin536.fits
.....................!
real 197.21
user 185.37
sys 11.49

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 155 point sources and 0 extended sources

Setting source of interest to:
4FGL J0401.7+2112 @ 60.4496 21.2007

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/150420/ft1_filtered_4FGL_J0401.7+2112_daily_bin536.fits scfile=/scratch/kocevski/150420/ft2_4FGL_J0401.7+2112_daily_bin536.fits outfile=/scratch/kocevski/150420/cmap_378259201_378518401_4FGL_J0401.7+2112_daily_bin536.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=60.4496 yref=21.2007 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 5.71
user 0.38
sys 5.30

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/150420/ft1_filtered_4FGL_J0401.7+2112_daily_bin536.fits scfile=/scratch/kocevski/150420/ft2_4FGL_J0401.7+2112_daily_bin536.fits outfile=/scratch/kocevski/150420/cmap_HighResolution_378259201_378518401_4FGL_J0401.7+2112_daily_bin536.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=60.4496 yref=21.2007 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 5.69
user 0.38
sys 5.29

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/150420/ft1_filtered_4FGL_J0401.7+2112_daily_bin536.fits evtable="EVENTS" scfile=/scratch/kocevski/150420/ft2_4FGL_J0401.7+2112_daily_bin536.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/150420/Model_4FGL_J0401.7+2112_daily_bin536.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/150420/ft1_filtered_4FGL_J0401.7+2112_daily_bin536.fits....................!
real 222.55
user 214.08
sys 8.08

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/150420/ft1_filtered_4FGL_J0401.7+2112_daily_bin536.fits', '/scratch/kocevski/150420/ft2_4FGL_J0401.7+2112_daily_bin536.fits', expMap='/scratch/kocevski/150420/expmap_378259201_378518401_4FGL_J0401.7+2112_daily_bin536.fits', expCube='/scratch/kocevski/150420/ltcube_378259201_378518401_4FGL_J0401.7+2112_daily_bin536.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/150420/Model_4FGL_J0401.7+2112_daily_bin536.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0401.7+2112'

4FGL J0401.7+2112
   Spectrum: PowerLaw
267    Prefactor:  9.136e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
268        Index:  2.420e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  9.816e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/150420/ft1_filtered_4FGL_J0401.7+2112_daily_bin536.fits
Spacecraft file(s): /scratch/kocevski/150420/ft2_4FGL_J0401.7+2112_daily_bin536.fits
Exposure map: /scratch/kocevski/150420/expmap_378259201_378518401_4FGL_J0401.7+2112_daily_bin536.fits
Exposure cube: /scratch/kocevski/150420/ltcube_378259201_378518401_4FGL_J0401.7+2112_daily_bin536.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/150420/Model_4FGL_J0401.7+2112_daily_bin536.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 13758.8723807

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 13758.8695805

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    130.16       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.3572       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.3510       1.0000         .10000E-03   10000.    
     5 'norm      '    7.7735       1.0000         .10000E-03   10000.    
     6 'norm      '    4.4031       1.0000         .10000E-03   10000.    
     7 'norm      '    15.297       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.8778       1.0000         .10000E-03   10000.    
     9 'Prefactor '    56.520       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    7.3055       1.0000         .10000E-03   10000.    
    12 'Normalizat'    1.4713       1.0000         .10000E-01   10.000    
    13 'Prefactor '    .85688       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13758.87     FROM MIGRAD    STATUS=CONVERGED    261 CALLS     1135 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     130.15        146.07       -.50513E-05   -.27867E-04
   2  Prefactor     6.3569        6.0570        .15204E-06   -.39444E-03
   3  Prefactor     .10000E-03    3.8131       -.15132E-06** at limit **
   4  norm          3.3516        3.2487       -.49531E-08   -.32397E-03
   5  norm          7.7715        12.877       -.28481E-06   -.23556E-04
   6  norm          4.4030        2.6288       -.22987E-06    .16217E-02
   7  norm          15.129        61.989        .31162E-07    .13646E-05
   8  Prefactor     8.8027        29.970        .57105E-06   -.81666E-04
   9  Prefactor     56.521        47.664       -.37924E-05   -.87142E-04
  10  Prefactor     .10000E-03    6.2444       -.12402E-06** at limit **
  11  norm          7.3048        8.8211        .20756E-07   -.29250E-05
  12  Normalizat    1.4713        .26005        .46985E-06   -.89126E-05
  13  Prefactor     .85692        .52322E-01    .25820E-07   -.13263E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 130.147
  Prefactor  = 6.35694
  Prefactor  = 0.0001
  norm       = 3.35159
  norm       = 7.77148
  norm       = 4.40304
  norm       = 15.1289
  Prefactor  = 8.80268
  Prefactor  = 56.5213
  Prefactor  = 0.0001
  norm       = 7.30485
  Normalizat = 1.47128
  Prefactor  = 0.856919
 **********
 **   18 **HESSE 
 **********

 FCN=   13758.87     FROM HESSE     STATUS=OK           149 CALLS     1284 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     130.15        146.36        .35292E-04   -1.3421    
   2  Prefactor     6.3569        6.1589        .79596E-03   -1.5204    
   3  Prefactor     .10000E-03    3.8139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.3516        3.2641        .18764E-03   -1.5342    
   5  norm          7.7715        12.884        .14382E-03   -1.5150    
   6  norm          4.4030        4.1993        .95964E-03   -1.5288    
   7  norm          15.129        62.139        .10241E-03   -1.4930    
   8  Prefactor     8.8027        30.669        .67261E-03   -1.5114    
   9  Prefactor     56.521        48.121        .53359E-04   -1.4203    
  10  Prefactor     .10000E-03    6.2662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.3048        8.8240        .14840E-03   -1.5167    
  12  Normalizat    1.4713        .28789        .51580E-03   -.78589    
  13  Prefactor     .85692        .58018E-01    .13684E-03   -.97663    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24875e-09
Minuit parameter uncertainties:
  1  146.766
  2  6.15951
  3  2.29765e-06
  4  3.26428
  5  12.8885
  6  4.19956
  7  61.4324
  8  30.7242
  9  48.1545
  10  2.82017e-06
  11  8.82562
  12  0.28821
  13  0.0580223
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 13758.8695731

Extracting fit parameters...

4FGL J0401.7+2112
   Spectrum: PowerLaw
267    Prefactor:  8.803e+00  3.072e+01  1.000e-04  1.000e+04 ( 1.000e-13)
268        Index:  2.420e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  9.816e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  8.569e-01  5.802e-02  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
516   Normalization:  1.471e+00  2.882e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.09
Ra Dec: 60.450 21.201
Photon Flux Upper Limit: 1.42e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.10e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/150420/likelihoodResults_378259201_378518401_4FGL_J0401.7+2112_daily_bin536.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13758.8119338
delta logL = 0.0576393297815

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13758.8063394
delta logL = 0.0632336393628

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.898       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9327       1.0000          .0000       10.000    
     3 'Normalizat'    1.4778       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85575       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   13758.81     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      331 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.895        33.145        .10744E-03    .17205E-03
   2  Index         1.9331        1.1151        .11660E-01    .14850E-03
   3  Normalizat    1.4774        .27025        .51487E-03   -.22275E-03
   4  Prefactor     .85583        .56896E-01    .13692E-03   -.87003E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.8948
  Index      = 1.93312
  Normalizat = 1.47741
  Prefactor  = 0.855831
 **********
 **   18 **HESSE 
 **********

 FCN=   13758.81     FROM HESSE     STATUS=OK            23 CALLS      354 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.895        33.410        .21488E-04   -1.4962    
   2  Index         1.9331        1.1241        .46641E-03   -.66033    
   3  Normalizat    1.4774        .27038        .20595E-04   -.78415    
   4  Prefactor     .85583        .56917E-01    .27383E-04   -.97702    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.60618e-09
Minuit parameter uncertainties:
  1  33.4545
  2  1.13991
  3  0.270642
  4  0.0569205
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/150420': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13758.8063382
delta logL = 0.0632348320505

Extracting fit parameters...

4FGL J0401.7+2112
   Spectrum: PowerLaw
267    Prefactor:  1.389e+01  3.345e+01  1.000e-04  1.000e+04 ( 1.000e-13)
268        Index:  1.933e+00  1.140e+00  0.000e+00  1.000e+01 (-1.000e+00)
269        Scale:  9.816e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  8.558e-01  5.692e-02  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
516   Normalization:  1.477e+00  2.706e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
Ra Dec: 60.450 21.201

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/150420/cmap_HighResolution_378259201_378518401_4FGL_J0401.7+2112_daily_bin536.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/150420

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-02', job_status='DONE', photon_flux_upper_limit='1.42e-07', time_completed='2021-08-19 23:01:40.279315', job_id='150420', GAL2='0.86', fit_tolerance='1e-08', EG2='1.48', EG='1.47', time_epoch_completed='1629439300.28', return_code2='0', ts='0.09', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='6.32e-02', ts2='0.22', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='536' AND source_name='4FGL J0401.7+2112' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 23:01:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 150420: <4FGL_J0401.7+2112_daily_bin536> in cluster <slac> Done

Job <4FGL_J0401.7+2112_daily_bin536> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Aug 19 22:45:39 2021
Job was executed on host(s) <bullet0265>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 22:45:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 19 22:45:41 2021
Terminated at Thu Aug 19 23:01:43 2021
Results reported at Thu Aug 19 23:01:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0401.7+2112_daily_bin536 60.4496 21.2007 378259201 378518401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0401.7+2112 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   943.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             375.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   960 sec.
    Turnaround time :                            964 sec.

The output (if any) is above this job summary.

