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


Performing analysis on: 4FGL_J0401.7+2112_daily_bin1125
RA = 60.4496, Dec = 21.2007
tmin = 530928001, tmax = 531187201
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='154675', job_status='RUN', time_executed='2021-08-19 23:03:19.106654', time_epoch_executed='1629439399.11' WHERE source_name='4FGL J0401.7+2112' and cadence='daily' and bin_id='1125'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/154675

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/154675/ft1_4FGL_J0401.7+2112_daily_bin1125.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/154675/ft2_4FGL_J0401.7+2112_daily_bin1125.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/154675/ft1_4FGL_J0401.7+2112_daily_bin1125.fits outfile=/scratch/kocevski/154675/ft1_filteredMKT_4FGL_J0401.7+2112_daily_bin1125.fits ra=60.4496 dec=21.2007 rad=12.0 tmin=530928001.0 tmax=531187201.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 5.23
user 3.40
sys 1.72

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/154675/ft1_filtered_4FGL_J0401.7+2112_daily_bin1125.fits" evtable="EVENTS" scfile=/scratch/kocevski/154675/ft2_4FGL_J0401.7+2112_daily_bin1125.fits sctable="SC_DATA" outfile=/scratch/kocevski/154675/ltcube_530928001_531187201_4FGL_J0401.7+2112_daily_bin1125.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/154675/ft2_4FGL_J0401.7+2112_daily_bin1125.fits
.....................!
real 13.79
user 11.69
sys 2.03

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/154675/ft1_filtered_4FGL_J0401.7+2112_daily_bin1125.fits evtable="EVENTS" scfile=/scratch/kocevski/154675/ft2_4FGL_J0401.7+2112_daily_bin1125.fits sctable="SC_DATA" expcube=/scratch/kocevski/154675/ltcube_530928001_531187201_4FGL_J0401.7+2112_daily_bin1125.fits outfile=/scratch/kocevski/154675/expmap_530928001_531187201_4FGL_J0401.7+2112_daily_bin1125.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/154675/ltcube_530928001_531187201_4FGL_J0401.7+2112_daily_bin1125.fits
.....................!
real 191.59
user 184.83
sys 6.24

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/154675/ft1_filtered_4FGL_J0401.7+2112_daily_bin1125.fits scfile=/scratch/kocevski/154675/ft2_4FGL_J0401.7+2112_daily_bin1125.fits outfile=/scratch/kocevski/154675/cmap_530928001_531187201_4FGL_J0401.7+2112_daily_bin1125.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 2.00
user 0.36
sys 1.60

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/154675/ft1_filtered_4FGL_J0401.7+2112_daily_bin1125.fits scfile=/scratch/kocevski/154675/ft2_4FGL_J0401.7+2112_daily_bin1125.fits outfile=/scratch/kocevski/154675/cmap_HighResolution_530928001_531187201_4FGL_J0401.7+2112_daily_bin1125.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 2.02
user 0.37
sys 1.62

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/154675/ft1_filtered_4FGL_J0401.7+2112_daily_bin1125.fits evtable="EVENTS" scfile=/scratch/kocevski/154675/ft2_4FGL_J0401.7+2112_daily_bin1125.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/154675/Model_4FGL_J0401.7+2112_daily_bin1125.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/154675/ft1_filtered_4FGL_J0401.7+2112_daily_bin1125.fits.....................!
real 205.17
user 201.37
sys 3.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    174.15       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.1103       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10515E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.8732       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.9307       1.0000         .10000E-03   10000.    
     7 'norm      '    94.030       1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.997       1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.555       1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.004       1.0000         .10000E-03   10000.    
    11 'norm      '    25.492       1.0000         .10000E-03   10000.    
    12 'Normalizat'    .88388       1.0000         .10000E-01   10.000    
    13 'Prefactor '    .98697       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=   13279.88     FROM MIGRAD    STATUS=CONVERGED    228 CALLS     1067 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     173.81        169.68       -.25261E-03    .74816E-06
   2  Prefactor     7.1115        5.3668        .47213E-05    .13430E-03
   3  Prefactor     .10000E-03    9.2424        .78659E-06** at limit **
   4  norm          2.8740        2.0776        .13532E-06   -.53105E-03
   5  norm          .10000E-03    2.4701        .82708E-08** at limit **
   6  norm          4.9295        6.5912        .15515E-05   -.23891E-03
   7  norm          93.994        61.635       -.25924E-04   -.18909E-04
   8  Prefactor     20.997        20.193       -.76934E-06   -.14905E-03
   9  Prefactor     18.506        35.473       -.13938E-04   -.28465E-04
  10  Prefactor     16.001        10.653       -.54702E-05   -.89869E-04
  11  norm          25.483        17.145        .14937E-04   -.69081E-04
  12  Normalizat    .88351        .25259        .19129E-04   -.10296E-03
  13  Prefactor     .98707        .56681E-01   -.15440E-05    .41034E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 173.806
  Prefactor  = 7.11152
  Prefactor  = 0.000100002
  norm       = 2.87399
  norm       = 0.0001
  norm       = 4.92948
  norm       = 93.9944
  Prefactor  = 20.9968
  Prefactor  = 18.5056
  Prefactor  = 16.0012
  norm       = 25.4834
  Normalizat = 0.883506
  Prefactor  = 0.987074
 **********
 **   18 **HESSE 
 **********

 FCN=   13279.88     FROM HESSE     STATUS=OK           149 CALLS     1216 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     173.81        169.70        .15289E-03   -1.3064    
   2  Prefactor     7.1115        5.3617        .15044E-03   -1.5175    
   3  Prefactor     .10000E-03    9.2732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.8740        2.0685        .13305E-03   -1.5369    
   5  norm          .10000E-03    2.4707        .17688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.9295        6.5863        .18113E-03   -1.5264    
   7  norm          93.994        61.621        .20723E-03   -1.3766    
   8  Prefactor     20.997        20.190        .43705E-03   -1.4791    
   9  Prefactor     18.506        35.507        .92981E-04   -1.4847    
  10  Prefactor     16.001        10.655        .10012E-03   -1.4908    
  11  norm          25.483        17.164        .79341E-04   -1.4698    
  12  Normalizat    .88351        .26266        .60047E-03   -.97042    
  13  Prefactor     .98707        .59712E-01    .13008E-03   -.93162    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.43482e-10
Minuit parameter uncertainties:
  1  170.182
  2  5.36207
  3  0.000266342
  4  2.0686
  5  2.42376e-06
  6  6.5873
  7  61.6632
  8  20.1963
  9  35.5472
  10  10.6561
  11  17.1673
  12  0.26304
  13  0.0597161
Done.

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

Extracting fit parameters...

4FGL J0401.7+2112
   Spectrum: PowerLaw
267    Prefactor:  2.100e+01  2.020e+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.871e-01  5.972e-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:  8.835e-01  2.630e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.11
Ra Dec: 60.450 21.201
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 3.72e-08 +/- 3.58e-08
Energy Flux (Fixed Index): 1.19e-05 +/- 1.14e-05

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

Saving results to:
/scratch/kocevski/154675/likelihoodResults_530928001_531187201_4FGL_J0401.7+2112_daily_bin1125.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) = 13279.4615486
delta logL = 0.413480889696

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13279.4613078
delta logL = 0.413721661245

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.871       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8669       1.0000          .0000       10.000    
     3 'Normalizat'    .89872       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98451       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=   13279.46     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      308 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.872        31.062        .67863E-04   -.30603E-03
   2  Index         1.8669        .51736        .11169E-01   -.15571E-03
   3  Normalizat    .89867        .25449        .59572E-03    .65993E-04
   4  Prefactor     .98452        .58520E-01    .13021E-03    .23801E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.8722
  Index      = 1.86688
  Normalizat = 0.898666
  Prefactor  = 0.984524
 **********
 **   18 **HESSE 
 **********

 FCN=   13279.46     FROM HESSE     STATUS=OK            23 CALLS      331 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.872        30.878        .13573E-04   -1.4526    
   2  Index         1.8669        .51441        .44678E-03   -.67721    
   3  Normalizat    .89867        .25452        .23829E-04   -.96507    
   4  Prefactor     .98452        .58529E-01    .52084E-05   -.93247    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.3624e-10
Minuit parameter uncertainties:
  1  30.8923
  2  0.51592
  3  0.254856
  4  0.0585326
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/154675': 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) = 13279.4613078
delta logL = 0.413721686602

Extracting fit parameters...

4FGL J0401.7+2112
   Spectrum: PowerLaw
267    Prefactor:  3.487e+01  3.089e+01  1.000e-04  1.000e+04 ( 1.000e-13)
268        Index:  1.867e+00  5.159e-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.845e-01  5.853e-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:  8.987e-01  2.549e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.93
Ra Dec: 60.450 21.201
Photon Index (Free Index): 1.87 +/- 0.52
Photon Flux (Free Index): 2.85e-08 +/- 2.87e-08
Energy Flux (Free Index): 2.81e-05 +/- 3.69e-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/154675/cmap_HighResolution_530928001_531187201_4FGL_J0401.7+2112_daily_bin1125.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.66e-03', comment='SUCCESS', photon_flux='3.72e-08', energy_flux2='2.81e-05', photon_flux_error='3.58e-08', dlogl='4.14e-01', energy_flux='1.19e-05', photon_flux2='2.85e-08', job_status='DONE', time_completed='2021-08-19 23:16:47.412220', photon_index_error2='0.52', photon_index2='1.87', ts='2.11', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.25e-07', energy_flux_error2='3.69e-05', EG='0.88', time_epoch_completed='1629440207.41', return_code='0', job_id='154675', GAL2='0.98', EG2='0.90', return_code2='0', energy_flux_error='1.14e-05', photon_flux_error2='2.87e-08', ts2='2.93', photon_index='2.42' WHERE bin_id='1125' AND source_name='4FGL J0401.7+2112' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 23:16:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 154675: <4FGL_J0401.7+2112_daily_bin1125> in cluster <slac> Done

Job <4FGL_J0401.7+2112_daily_bin1125> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Aug 19 23:00:45 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 23:00:47 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:00:47 2021
Terminated at Thu Aug 19 23:16:48 2021
Results reported at Thu Aug 19 23:16:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0401.7+2112_daily_bin1125 60.4496 21.2007 530928001 531187201 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 :                                   815.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             327.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   960 sec.
    Turnaround time :                            963 sec.

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

