/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 113 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 = 7368
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0401.7+2112_daily_bin1359
RA = 60.4496, Dec = 21.2007
tmin = 591580801, tmax = 591840001
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='156095', job_status='RUN', time_executed='2021-08-19 23:07:45.456432', time_epoch_executed='1629439665.46' WHERE source_name='4FGL J0401.7+2112' and cadence='daily' and bin_id='1359'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/156095

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/156095/ft1_4FGL_J0401.7+2112_daily_bin1359.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/156095/ft2_4FGL_J0401.7+2112_daily_bin1359.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/156095/ft1_4FGL_J0401.7+2112_daily_bin1359.fits outfile=/scratch/kocevski/156095/ft1_filteredMKT_4FGL_J0401.7+2112_daily_bin1359.fits ra=60.4496 dec=21.2007 rad=12.0 tmin=591580801.0 tmax=591840001.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 4.07
user 3.57
sys 0.46

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/156095/ft2_4FGL_J0401.7+2112_daily_bin1359.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/156095/ft1_filteredMKT_4FGL_J0401.7+2112_daily_bin1359.fits evtable="EVENTS" outfile="/scratch/kocevski/156095/ft1_filtered_4FGL_J0401.7+2112_daily_bin1359.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 0.73
user 0.32
sys 0.38

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/156095/ft1_filtered_4FGL_J0401.7+2112_daily_bin1359.fits" evtable="EVENTS" scfile=/scratch/kocevski/156095/ft2_4FGL_J0401.7+2112_daily_bin1359.fits sctable="SC_DATA" outfile=/scratch/kocevski/156095/ltcube_591580801_591840001_4FGL_J0401.7+2112_daily_bin1359.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/156095/ft2_4FGL_J0401.7+2112_daily_bin1359.fits
.....................!
real 15.47
user 14.82
sys 0.59

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/156095/ft1_filtered_4FGL_J0401.7+2112_daily_bin1359.fits evtable="EVENTS" scfile=/scratch/kocevski/156095/ft2_4FGL_J0401.7+2112_daily_bin1359.fits sctable="SC_DATA" expcube=/scratch/kocevski/156095/ltcube_591580801_591840001_4FGL_J0401.7+2112_daily_bin1359.fits outfile=/scratch/kocevski/156095/expmap_591580801_591840001_4FGL_J0401.7+2112_daily_bin1359.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/156095/ltcube_591580801_591840001_4FGL_J0401.7+2112_daily_bin1359.fits
.....................!
real 191.64
user 186.28
sys 4.73

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/156095/ft1_filtered_4FGL_J0401.7+2112_daily_bin1359.fits scfile=/scratch/kocevski/156095/ft2_4FGL_J0401.7+2112_daily_bin1359.fits outfile=/scratch/kocevski/156095/cmap_591580801_591840001_4FGL_J0401.7+2112_daily_bin1359.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 0.79
user 0.37
sys 0.40

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/156095/ft1_filtered_4FGL_J0401.7+2112_daily_bin1359.fits scfile=/scratch/kocevski/156095/ft2_4FGL_J0401.7+2112_daily_bin1359.fits outfile=/scratch/kocevski/156095/cmap_HighResolution_591580801_591840001_4FGL_J0401.7+2112_daily_bin1359.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 0.79
user 0.38
sys 0.40

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/156095/ft1_filtered_4FGL_J0401.7+2112_daily_bin1359.fits evtable="EVENTS" scfile=/scratch/kocevski/156095/ft2_4FGL_J0401.7+2112_daily_bin1359.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/156095/Model_4FGL_J0401.7+2112_daily_bin1359.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/156095/ft1_filtered_4FGL_J0401.7+2112_daily_bin1359.fits.....................!
real 220.58
user 218.44
sys 1.60

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/156095/ft1_filtered_4FGL_J0401.7+2112_daily_bin1359.fits', '/scratch/kocevski/156095/ft2_4FGL_J0401.7+2112_daily_bin1359.fits', expMap='/scratch/kocevski/156095/expmap_591580801_591840001_4FGL_J0401.7+2112_daily_bin1359.fits', expCube='/scratch/kocevski/156095/ltcube_591580801_591840001_4FGL_J0401.7+2112_daily_bin1359.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/156095/Model_4FGL_J0401.7+2112_daily_bin1359.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/156095/ft1_filtered_4FGL_J0401.7+2112_daily_bin1359.fits
Spacecraft file(s): /scratch/kocevski/156095/ft2_4FGL_J0401.7+2112_daily_bin1359.fits
Exposure map: /scratch/kocevski/156095/expmap_591580801_591840001_4FGL_J0401.7+2112_daily_bin1359.fits
Exposure cube: /scratch/kocevski/156095/ltcube_591580801_591840001_4FGL_J0401.7+2112_daily_bin1359.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/156095/Model_4FGL_J0401.7+2112_daily_bin1359.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) = 14069.2653445

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    154.27       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    7.4076       1.0000         .10000E-03   10000.    
     5 'norm      '    8.7136       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    76.792       1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.836       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.8608       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Normalizat'    1.2183       1.0000         .10000E-01   10.000    
    13 'Prefactor '    .94438       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.

 FCN=   14069.26     FROM MIGRAD    STATUS=CONVERGED    212 CALLS     1046 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     154.27        185.51        .81139E-03   -.60725E-03
   2  Prefactor     .10000E-03    3.9356        .90712E-02** at limit **
   3  Prefactor     .10001E-03    7.2830        .90712E-02** at limit **
   4  norm          7.4080        3.0013        .36840E-02    .33966E-03
   5  norm          8.7134        12.813        .33948E-02    .26297E-03
   6  norm          .10000E-03    7.9444        .90712E-02** at limit **
   7  norm          76.792        59.321        .11456E-02    .73251E-03
   8  Prefactor     17.836        22.225        .23709E-02    .56670E-03
   9  Prefactor     .10000E-03    14.314        .90712E-02** at limit **
  10  Prefactor     4.8604        12.028        .45613E-02    .34180E-03
  11  norm          .10000E-03    7.0276        .90712E-02** at limit **
  12  Normalizat    1.2183        .26115        .12782       -.19143E-04
  13  Prefactor     .94438        .53664E-01    .30250E-01   -.97662E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 154.275
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  norm       = 7.40798
  norm       = 8.71341
  norm       = 0.0001
  norm       = 76.7921
  Prefactor  = 17.8356
  Prefactor  = 0.000100001
  Prefactor  = 4.8604
  norm       = 0.000100001
  Normalizat = 1.21826
  Prefactor  = 0.944383
 **********
 **   18 **HESSE 
 **********

 FCN=   14069.26     FROM HESSE     STATUS=OK           141 CALLS     1187 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     154.27        185.50        .16228E-03   -1.3217    
   2  Prefactor     .10000E-03    3.9626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    7.2953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          7.4080        3.0043        .12498E-03   -1.5164    
   5  norm          8.7134        12.812        .13579E-03   -1.5118    
   6  norm          .10000E-03    8.0831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          76.792        59.345        .45823E-04   -1.3953    
   8  Prefactor     17.836        22.230        .94836E-04   -1.4863    
   9  Prefactor     .10000E-03    14.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.8604        12.013        .18245E-03   -1.5267    
  11  norm          .10000E-03    7.0599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Normalizat    1.2183        .28135        .56723E-03   -.86041    
  13  Prefactor     .94438        .58226E-01    .13367E-03   -.94607    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31333e-08
Minuit parameter uncertainties:
  1  186.206
  2  7.88974e-05
  3  0.000442314
  4  3.00431
  5  12.8156
  6  1.03033e-06
  7  59.3911
  8  22.2399
  9  0.000248727
  10  12.0186
  11  0.00015252
  12  0.281703
  13  0.0582299
Done.

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

Extracting fit parameters...

4FGL J0401.7+2112
   Spectrum: PowerLaw
267    Prefactor:  1.784e+01  2.224e+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:  9.444e-01  5.823e-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.218e+00  2.817e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.89
Ra Dec: 60.450 21.201
Photon Flux Upper Limit: 1.25e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/156095/likelihoodResults_591580801_591840001_4FGL_J0401.7+2112_daily_bin1359.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) = 14069.2201504
delta logL = 0.044542388101

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14069.2066063
delta logL = 0.0580865505435

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.991       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1489       1.0000          .0000       10.000    
     3 'Normalizat'    1.2254       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94349       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=   14069.21     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      255 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.990        28.005        .85414E-04    .33510E-03
   2  Index         2.1491        .77275        .14296E-01    .12021E-03
   3  Normalizat    1.2254        .27396        .56577E-03   -.69526E-04
   4  Prefactor     .94349        .57945E-01    .13373E-03   -.29483E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.9898
  Index      = 2.14913
  Normalizat = 1.22541
  Prefactor  = 0.943488
 **********
 **   18 **HESSE 
 **********

 FCN=   14069.21     FROM HESSE     STATUS=OK            25 CALLS      280 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.990        27.489        .17083E-04   -1.4770    
   2  Index         2.1491        .75907        .57182E-03   -.60672    
   3  Normalizat    1.2254        .27403        .22631E-04   -.85821    
   4  Prefactor     .94349        .57959E-01    .53491E-05   -.94638    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.76711e-10
Minuit parameter uncertainties:
  1  27.5047
  2  0.763458
  3  0.274352
  4  0.0579625
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/156095': 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) = 14069.2066062
delta logL = 0.0580866100081

Extracting fit parameters...

4FGL J0401.7+2112
   Spectrum: PowerLaw
267    Prefactor:  2.199e+01  2.750e+01  1.000e-04  1.000e+04 ( 1.000e-13)
268        Index:  2.149e+00  7.635e-01  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:  9.435e-01  5.796e-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.225e+00  2.744e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.00
Ra Dec: 60.450 21.201
Photon Index (Free Index): 2.15 +/- 0.76
Photon Flux (Free Index): 2.59e-08 +/- 3.82e-08
Energy Flux (Free Index): 1.28e-05 +/- 1.82e-05

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/156095/cmap_HighResolution_591580801_591840001_4FGL_J0401.7+2112_daily_bin1359.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.65e-03', comment='SUCCESS', energy_flux2='1.28e-05', dlogl='5.81e-02', photon_flux2='2.59e-08', job_status='DONE', time_completed='2021-08-19 23:21:01.061335', photon_index_error2='0.76', photon_index2='2.15', ts='0.89', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.25e-07', energy_flux_error2='1.82e-05', EG='1.22', time_epoch_completed='1629440461.06', return_code='0', job_id='156095', GAL2='0.94', EG2='1.23', return_code2='0', photon_flux_error2='3.82e-08', ts2='1.00', photon_index='2.42' WHERE bin_id='1359' AND source_name='4FGL J0401.7+2112' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 23:21:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 156095: <4FGL_J0401.7+2112_daily_bin1359> in cluster <slac> Done

Job <4FGL_J0401.7+2112_daily_bin1359> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Aug 19 23:05:37 2021
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 23:05:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 19 23:05:38 2021
Terminated at Thu Aug 19 23:21:01 2021
Results reported at Thu Aug 19 23:21:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0401.7+2112_daily_bin1359 60.4496 21.2007 591580801 591840001 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 :                                   789.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             327.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   923 sec.
    Turnaround time :                            924 sec.

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

