/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 19 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 = 7493
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1416.1+1320_daily_bin641
RA = 214.029, Dec = 13.347
tmin = 405475201, tmax = 405734401
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='282148', job_status='RUN', time_executed='2021-09-09 06:18:14.264101', time_epoch_executed='1631193494.26' WHERE source_name='4FGL J1416.1+1320' and cadence='daily' and bin_id='641'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/282148

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/282148/ft1_4FGL_J1416.1+1320_daily_bin641.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/282148/ft2_4FGL_J1416.1+1320_daily_bin641.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/282148/ft1_4FGL_J1416.1+1320_daily_bin641.fits outfile=/scratch/kocevski/282148/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin641.fits ra=214.029 dec=13.347 rad=12.0 tmin=405475201.0 tmax=405734401.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 8.22
user 6.96
sys 0.31

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/282148/ft2_4FGL_J1416.1+1320_daily_bin641.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/282148/ft2_4FGL_J1416.1+1320_daily_bin641.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/282148/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin641.fits evtable="EVENTS" outfile="/scratch/kocevski/282148/ft1_filtered_4FGL_J1416.1+1320_daily_bin641.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.48
user 0.33
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/282148/ft1_filtered_4FGL_J1416.1+1320_daily_bin641.fits" evtable="EVENTS" scfile=/scratch/kocevski/282148/ft2_4FGL_J1416.1+1320_daily_bin641.fits sctable="SC_DATA" outfile=/scratch/kocevski/282148/ltcube_405475201_405734401_4FGL_J1416.1+1320_daily_bin641.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/282148/ft2_4FGL_J1416.1+1320_daily_bin641.fits
.....................!
real 12.67
user 11.60
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/282148/ft1_filtered_4FGL_J1416.1+1320_daily_bin641.fits evtable="EVENTS" scfile=/scratch/kocevski/282148/ft2_4FGL_J1416.1+1320_daily_bin641.fits sctable="SC_DATA" expcube=/scratch/kocevski/282148/ltcube_405475201_405734401_4FGL_J1416.1+1320_daily_bin641.fits outfile=/scratch/kocevski/282148/expmap_405475201_405734401_4FGL_J1416.1+1320_daily_bin641.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/282148/ltcube_405475201_405734401_4FGL_J1416.1+1320_daily_bin641.fits
.....................!
real 199.16
user 188.38
sys 4.80

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 142 point sources and 0 extended sources

Setting source of interest to:
4FGL J1416.1+1320 @ 214.029 13.347

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/282148/ft1_filtered_4FGL_J1416.1+1320_daily_bin641.fits scfile=/scratch/kocevski/282148/ft2_4FGL_J1416.1+1320_daily_bin641.fits outfile=/scratch/kocevski/282148/cmap_405475201_405734401_4FGL_J1416.1+1320_daily_bin641.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=214.029 yref=13.347 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 1.37
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/282148/ft1_filtered_4FGL_J1416.1+1320_daily_bin641.fits scfile=/scratch/kocevski/282148/ft2_4FGL_J1416.1+1320_daily_bin641.fits outfile=/scratch/kocevski/282148/cmap_HighResolution_405475201_405734401_4FGL_J1416.1+1320_daily_bin641.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=214.029 yref=13.347 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 1.39
user 0.39
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/282148/ft1_filtered_4FGL_J1416.1+1320_daily_bin641.fits evtable="EVENTS" scfile=/scratch/kocevski/282148/ft2_4FGL_J1416.1+1320_daily_bin641.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/282148/Model_4FGL_J1416.1+1320_daily_bin641.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/282148/ft1_filtered_4FGL_J1416.1+1320_daily_bin641.fits.....................!
real 68.98
user 51.39
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/282148/ft1_filtered_4FGL_J1416.1+1320_daily_bin641.fits', '/scratch/kocevski/282148/ft2_4FGL_J1416.1+1320_daily_bin641.fits', expMap='/scratch/kocevski/282148/expmap_405475201_405734401_4FGL_J1416.1+1320_daily_bin641.fits', expCube='/scratch/kocevski/282148/ltcube_405475201_405734401_4FGL_J1416.1+1320_daily_bin641.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/282148/Model_4FGL_J1416.1+1320_daily_bin641.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1416.1+1320'

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  8.909e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  2.373e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
244        Scale:  8.905e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/282148/ft1_filtered_4FGL_J1416.1+1320_daily_bin641.fits
Spacecraft file(s): /scratch/kocevski/282148/ft2_4FGL_J1416.1+1320_daily_bin641.fits
Exposure map: /scratch/kocevski/282148/expmap_405475201_405734401_4FGL_J1416.1+1320_daily_bin641.fits
Exposure cube: /scratch/kocevski/282148/ltcube_405475201_405734401_4FGL_J1416.1+1320_daily_bin641.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/282148/Model_4FGL_J1416.1+1320_daily_bin641.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) = 6921.21668027

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.592       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.706       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    26.734       1.0000         .10000E-03   10000.    
     7 'Prefactor '    32.090       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10296E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10080E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .17225       1.0000         .10000E-03   10000.    
    11 'norm      '    10.011       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.2225       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .27397E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    .17455E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.4038       1.0000         .10000E-03   10000.    
    17 'Prefactor '    25.647       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10491E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.7743       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.5899       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .60458       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4610E+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=   6921.198     FROM MIGRAD    STATUS=CONVERGED    864 CALLS     2782 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.599        35.273        .72440E-04   -.43943E-05
   2  Prefactor     .10000E-03    3.3954        .29319E-03** at limit **
   3  Prefactor     .10000E-03    2.1485        .11827E-02** at limit **
   4  Prefactor     10.709        11.147        .12245E-03   -.15598E-04
   5  Prefactor     .10000E-03    9.3584        .18142E-02** at limit **
   6  Prefactor     26.736        21.008        .77480E-04   -.10565E-04
   7  Prefactor     32.098        22.216        .70734E-04   -.39699E-04
   8  Prefactor     .10000E-03    23.004        .18142E-02** at limit **
   9  norm          .10000E-03    13.338        .18142E-02** at limit **
  10  Prefactor     .15368        21.064        .30495E-02    .72695E-03
  11  norm          10.011        3.3503        .85513E-04   -.60624E-04
  12  Prefactor     6.2249        4.7359        .15092E-03   -.35255E-04
  13  norm          .10000E-03    .75242        .70133E-03** at limit **
  14  Prefactor     .10004E-03    37.306        .13206    ** at limit **
  15  norm          .10000E-03    113.09        .64170E-02** at limit **
  16  Prefactor     6.4160        20.765        .15861E-03   -.42076E-04
  17  Prefactor     25.559        29.363        .79101E-04   -.44123E-04
  18  Prefactor     .10000E-03    29.915        .18142E-02** at limit **
  19  Prefactor     .10000E-03    12.085        .18142E-02** at limit **
  20  Prefactor     6.7820        26.782        .15416E-03   -.20870E-04
  21  Normalizat    1.5896        .23219        .23464E-03   -.40255E-03
  22  Prefactor     .60459        .16431        .25927E-03   -.98439E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.5994
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 10.7089
  Prefactor  = 0.000100001
  Prefactor  = 26.7365
  Prefactor  = 32.0977
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.153682
  norm       = 10.0115
  Prefactor  = 6.22487
  norm       = 0.0001
  Prefactor  = 0.000100044
  norm       = 0.000100001
  Prefactor  = 6.41599
  Prefactor  = 25.5585
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 6.78202
  Normalizat = 1.58963
  Prefactor  = 0.604594
 **********
 **   18 **HESSE 
 **********

 FCN=   6921.198     FROM HESSE     STATUS=OK           332 CALLS     3114 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.599        35.266        .28976E-05   -1.4601    
   2  Prefactor     .10000E-03    3.3956        .58638E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.1490        .23653E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.709        11.146        .48979E-05   -1.5053    
   5  Prefactor     .10000E-03    9.3666        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     26.736        21.007        .30992E-05   -1.4673    
   7  Prefactor     32.098        22.204        .28294E-05   -1.4574    
   8  Prefactor     .10000E-03    23.012        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    13.340        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .15368        21.445        .12198E-03   -1.5630    
  11  norm          10.011        3.3503        .34205E-05   -1.5075    
  12  Prefactor     6.2249        4.7275        .60367E-05   -1.5209    
  13  norm          .10000E-03    .75247        .14027E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10004E-03    36.370        .13314       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    114.49        .25668E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.4160        20.760        .63442E-05   -1.5201    
  17  Prefactor     25.559        29.353        .31641E-05   -1.4696    
  18  Prefactor     .10000E-03    29.940        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    12.085        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.7820        26.780        .61664E-05   -1.5187    
  21  Normalizat    1.5896        .23239        .46927E-04   -.75290    
  22  Prefactor     .60459        .16437        .10371E-04   -1.0739    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.09041e-09
Minuit parameter uncertainties:
  1  35.2897
  2  8.35622e-05
  3  2.95054e-05
  4  11.148
  5  0.0001619
  6  21.0126
  7  22.21
  8  0.000297518
  9  4.46598e-05
  10  3.63098
  11  3.35034
  12  4.72783
  13  6.76964e-06
  14  0.00254576
  15  0.000615639
  16  20.7832
  17  29.3694
  18  0.000390623
  19  1.99985e-05
  20  26.8271
  21  0.232552
  22  0.164497
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  3.210e+01  2.221e+01  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  2.373e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
244        Scale:  8.905e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
458    Prefactor:  6.046e-01  1.645e-01  0.000e+00  1.000e+01 ( 1.000e+00)
459        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
460        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
457   Normalization:  1.590e+00  2.326e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.76
Ra Dec: 214.029 13.347
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 4.19e-08 +/- 2.90e-08
Energy Flux (Fixed Index): 1.43e-05 +/- 9.86e-06

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) = 6920.61636541
delta logL = 0.581929595002

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6920.57753157
delta logL = 0.620763434955

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.565       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7675       1.0000          .0000       10.000    
     3 'Normalizat'    1.6118       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .59445       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4610E+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=   6920.578     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      247 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.559        29.590        .63723E-04    .55163E-04
   2  Index         1.7674        .51086        .83404E-02    .39403E-04
   3  Normalizat    1.6117        .22659        .23337E-03    .72815E-03
   4  Prefactor     .59448        .16320        .26150E-03    .59874E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.5595
  Index      = 1.76741
  Normalizat = 1.61175
  Prefactor  = 0.594478
 **********
 **   18 **HESSE 
 **********

 FCN=   6920.578     FROM HESSE     STATUS=OK            25 CALLS      272 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.559        29.841        .12745E-04   -1.4449    
   2  Index         1.7674        .51526        .33361E-03   -.70301    
   3  Normalizat    1.6117        .22678        .46673E-04   -.74685    
   4  Prefactor     .59448        .16333        .52301E-04   -1.0782    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.60064e-10
Minuit parameter uncertainties:
  1  29.8525
  2  0.51684
  3  0.226928
  4  0.163463
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/282148': 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) = 6920.57753151
delta logL = 0.62076349711

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  3.956e+01  2.985e+01  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  1.767e+00  5.168e-01  0.000e+00  1.000e+01 (-1.000e+00)
244        Scale:  8.905e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
458    Prefactor:  5.945e-01  1.635e-01  0.000e+00  1.000e+01 ( 1.000e+00)
459        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
460        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
457   Normalization:  1.612e+00  2.269e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.01
Ra Dec: 214.029 13.347
Photon Index (Free Index): 1.77 +/- 0.52
Photon Flux (Free Index): 2.45e-08 +/- 2.44e-08
Energy Flux (Free Index): 3.23e-05 +/- 3.73e-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/282148/cmap_HighResolution_405475201_405734401_4FGL_J1416.1+1320_daily_bin641.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.19e-08', energy_flux2='3.23e-05', photon_flux_error='2.90e-08', dlogl='6.21e-01', energy_flux='1.43e-05', photon_flux2='2.45e-08', job_status='DONE', time_completed='2021-09-09 06:28:44.001952', photon_index_error2='0.52', photon_index2='1.77', ts='4.76', fit_tolerance='1e-08', GAL='0.60', photon_index_error='0.00', energy_flux_error2='3.73e-05', EG='1.59', time_epoch_completed='1631194124.0', return_code='0', job_id='282148', GAL2='0.59', EG2='1.61', return_code2='0', energy_flux_error='9.86e-06', photon_flux_error2='2.44e-08', ts2='6.01', photon_index='2.37' WHERE bin_id='641' AND source_name='4FGL J1416.1+1320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 06:28:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 282148: <4FGL_J1416.1+1320_daily_bin641> in cluster <slac> Done

Job <4FGL_J1416.1+1320_daily_bin641> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Sep  9 06:17:02 2021
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 06:17:04 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 06:17:04 2021
Terminated at Thu Sep  9 06:28:45 2021
Results reported at Thu Sep  9 06:28:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_daily_bin641 214.029 13.347 405475201 405734401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1416.1+1320 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   588.00 sec.
    Max Memory :                                 1225 MB
    Average Memory :                             369.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   700 sec.
    Turnaround time :                            703 sec.

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

