/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 23 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 = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1416.1+1320_daily_bin253
RA = 214.029, Dec = 13.347
tmin = 304905601, tmax = 305164801
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='278139', job_status='RUN', time_executed='2021-09-09 06:07:56.204895', time_epoch_executed='1631192876.2' WHERE source_name='4FGL J1416.1+1320' and cadence='daily' and bin_id='253'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/278139

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/278139/ft1_4FGL_J1416.1+1320_daily_bin253.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/278139/ft2_4FGL_J1416.1+1320_daily_bin253.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/278139/ft1_4FGL_J1416.1+1320_daily_bin253.fits outfile=/scratch/kocevski/278139/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin253.fits ra=214.029 dec=13.347 rad=12.0 tmin=304905601.0 tmax=305164801.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 3.75
user 3.24
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/278139/ft2_4FGL_J1416.1+1320_daily_bin253.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/278139/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin253.fits evtable="EVENTS" outfile="/scratch/kocevski/278139/ft1_filtered_4FGL_J1416.1+1320_daily_bin253.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.77
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/278139/ft1_filtered_4FGL_J1416.1+1320_daily_bin253.fits" evtable="EVENTS" scfile=/scratch/kocevski/278139/ft2_4FGL_J1416.1+1320_daily_bin253.fits sctable="SC_DATA" outfile=/scratch/kocevski/278139/ltcube_304905601_305164801_4FGL_J1416.1+1320_daily_bin253.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/278139/ft2_4FGL_J1416.1+1320_daily_bin253.fits
.....................!
real 12.04
user 11.44
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/278139/ft1_filtered_4FGL_J1416.1+1320_daily_bin253.fits evtable="EVENTS" scfile=/scratch/kocevski/278139/ft2_4FGL_J1416.1+1320_daily_bin253.fits sctable="SC_DATA" expcube=/scratch/kocevski/278139/ltcube_304905601_305164801_4FGL_J1416.1+1320_daily_bin253.fits outfile=/scratch/kocevski/278139/expmap_304905601_305164801_4FGL_J1416.1+1320_daily_bin253.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/278139/ltcube_304905601_305164801_4FGL_J1416.1+1320_daily_bin253.fits
.....................!
real 197.09
user 187.71
sys 5.08

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/278139/ft1_filtered_4FGL_J1416.1+1320_daily_bin253.fits scfile=/scratch/kocevski/278139/ft2_4FGL_J1416.1+1320_daily_bin253.fits outfile=/scratch/kocevski/278139/cmap_304905601_305164801_4FGL_J1416.1+1320_daily_bin253.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 0.68
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/278139/ft1_filtered_4FGL_J1416.1+1320_daily_bin253.fits scfile=/scratch/kocevski/278139/ft2_4FGL_J1416.1+1320_daily_bin253.fits outfile=/scratch/kocevski/278139/cmap_HighResolution_304905601_305164801_4FGL_J1416.1+1320_daily_bin253.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 0.62
user 0.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/278139/ft1_filtered_4FGL_J1416.1+1320_daily_bin253.fits', '/scratch/kocevski/278139/ft2_4FGL_J1416.1+1320_daily_bin253.fits', expMap='/scratch/kocevski/278139/expmap_304905601_305164801_4FGL_J1416.1+1320_daily_bin253.fits', expCube='/scratch/kocevski/278139/ltcube_304905601_305164801_4FGL_J1416.1+1320_daily_bin253.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/278139/Model_4FGL_J1416.1+1320_daily_bin253.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/278139/ft1_filtered_4FGL_J1416.1+1320_daily_bin253.fits
Spacecraft file(s): /scratch/kocevski/278139/ft2_4FGL_J1416.1+1320_daily_bin253.fits
Exposure map: /scratch/kocevski/278139/expmap_304905601_305164801_4FGL_J1416.1+1320_daily_bin253.fits
Exposure cube: /scratch/kocevski/278139/ltcube_304905601_305164801_4FGL_J1416.1+1320_daily_bin253.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/278139/Model_4FGL_J1416.1+1320_daily_bin253.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) = 6593.19297279

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .21378E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.7627       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.147       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.3094       1.0000         .10000E-03   10000.    
     6 'Prefactor '    38.705       1.0000         .10000E-03   10000.    
     7 'Prefactor '    36.102       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11093E-01   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    10.852       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.0240       1.0000         .10000E-03   10000.    
    13 'norm      '    1.4119       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.205       1.0000         .10000E-03   10000.    
    15 'norm      '    .62334       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10561E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.3693       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3996       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .76287       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.

 FCN=   6593.153     FROM MIGRAD    STATUS=CONVERGED    478 CALLS     2362 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    152.76       -.17977E-04** at limit **
   2  Prefactor     3.7626        3.3679        .25860E-06   -.15693E-03
   3  Prefactor     .10000E-03    2.2048        .20785E-07** at limit **
   4  Prefactor     11.145        12.447       -.11071E-05   -.17894E-04
   5  Prefactor     4.3090        9.6636       -.86647E-06   -.15048E-03
   6  Prefactor     38.711        22.429       -.74558E-06   -.28751E-04
   7  Prefactor     36.105        28.317       -.67497E-07   -.56177E-05
   8  Prefactor     .10000E-03    74.429        .22607E-04** at limit **
   9  norm          .10000E-03    7.7460       -.78117E-07** at limit **
  10  Prefactor     .10000E-03    3.1510        .14283E-06** at limit **
  11  norm          10.852        3.3141        .76786E-07    .46563E-04
  12  Prefactor     7.0241        7.7302       -.12802E-05   -.18064E-03
  13  norm          1.4120        2.5807       -.17487E-06   -.83741E-03
  14  Prefactor     13.178        22.548        .37264E-05    .35193E-04
  15  norm          .62861        9.3154       -.10272E-05   -.28643E-03
  16  Prefactor     .10000E-03    11.132        .92026E-07** at limit **
  17  Prefactor     .10000E-03    10.680       -.89208E-06** at limit **
  18  Prefactor     .10000E-03    27.449       -.43810E-06** at limit **
  19  Prefactor     6.3606        23.727        .16887E-05    .41888E-04
  20  Prefactor     .10000E-03    70.244       -.19299E-04** at limit **
  21  Normalizat    1.3995        .20878        .62054E-06   -.45366E-04
  22  Prefactor     .76291        .14818       -.56676E-06    .29419E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.76259
  Prefactor  = 0.0001
  Prefactor  = 11.1451
  Prefactor  = 4.30901
  Prefactor  = 38.7112
  Prefactor  = 36.1053
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 10.8524
  Prefactor  = 7.02409
  norm       = 1.41197
  Prefactor  = 13.1779
  norm       = 0.62861
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.36065
  Prefactor  = 0.0001
  Normalizat = 1.39953
  Prefactor  = 0.762911
 **********
 **   18 **HESSE 
 **********

 FCN=   6593.153     FROM HESSE     STATUS=OK           348 CALLS     2710 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    153.93        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.7626        3.3643        .13612E-03   -1.5320    
   3  Prefactor     .10000E-03    2.2204        .11772E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.145        12.469        .12000E-03   -1.5040    
   5  Prefactor     4.3090        9.7065        .19406E-03   -1.5293    
   6  Prefactor     38.711        22.451        .64425E-04   -1.4463    
   7  Prefactor     36.105        28.329        .66700E-04   -1.4505    
   8  Prefactor     .10000E-03    74.119        .36314E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    7.7499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.1611        .14070E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          10.852        3.3145        .79433E-04   -1.5049    
  12  Prefactor     7.0241        7.7788        .15137E-03   -1.5178    
  13  norm          1.4120        2.5648        .16844E-03   -1.5470    
  14  Prefactor     13.178        26.327        .11023E-03   -1.4982    
  15  norm          .62861        68.468        .44275E-02   -1.5549    
  16  Prefactor     .10000E-03    11.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    27.843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.3606        23.698        .15904E-03   -1.5204    
  20  Prefactor     .10000E-03    70.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3995        .25619        .25119E-03   -.80642    
  22  Prefactor     .76291        .18032        .23917E-03   -1.0111    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.12257e-09
Minuit parameter uncertainties:
  1  0.000354009
  2  3.36442
  3  1.9633e-06
  4  12.4714
  5  9.71009
  6  22.4554
  7  28.3396
  8  0.00101411
  9  3.82299e-06
  10  9.75408e-06
  11  3.31452
  12  7.77992
  13  2.56502
  14  26.3506
  15  13.1353
  16  4.75611e-06
  17  1.61646e-06
  18  2.85749e-06
  19  23.7328
  20  3.08748e-05
  21  0.256427
  22  0.180459
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  3.611e+01  2.834e+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:  7.629e-01  1.805e-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.400e+00  2.564e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.55
Ra Dec: 214.029 13.347
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 4.72e-08 +/- 3.70e-08
Energy Flux (Fixed Index): 1.60e-05 +/- 1.26e-05

TS (Fixed Index): 2.55
Ra Dec: 214.029 13.347
Photon Flux Upper Limit: 1.27e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/278139/likelihoodResults_304905601_305164801_4FGL_J1416.1+1320_daily_bin253.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) = 6593.14648909
delta logL = 0.00654305616445

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6593.14449142
delta logL = 0.00854073059145

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    37.979       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2924       1.0000          .0000       10.000    
     3 'Normalizat'    1.4038       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76079       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=   6593.144     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      274 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.980        33.126        .65036E-04   -.13254E-03
   2  Index         2.2924        .62419        .86542E-02    .25736E-03
   3  Normalizat    1.4037        .24690        .25088E-03   -.71461E-04
   4  Prefactor     .76088        .17905        .23946E-03   -.79714E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.9799
  Index      = 2.2924
  Normalizat = 1.40372
  Prefactor  = 0.760879
 **********
 **   18 **HESSE 
 **********

 FCN=   6593.144     FROM HESSE     STATUS=OK            25 CALLS      299 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.980        32.509        .13007E-04   -1.4475    
   2  Index         2.2924        .61241        .17308E-02   -.57224    
   3  Normalizat    1.4037        .24709        .10035E-04   -.80521    
   4  Prefactor     .76088        .17920        .95783E-05   -1.0119    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.23901e-11
Minuit parameter uncertainties:
  1  32.5242
  2  0.614602
  3  0.247299
  4  0.17934
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/278139': 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) = 6593.14449129
delta logL = 0.00854085857463

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  3.798e+01  3.252e+01  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  2.292e+00  6.146e-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:  7.609e-01  1.793e-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.404e+00  2.473e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.56
Ra Dec: 214.029 13.347
Photon Index (Free Index): 2.29 +/- 0.61
Photon Flux (Free Index): 4.42e-08 +/- 4.20e-08
Energy Flux (Free Index): 1.69e-05 +/- 1.53e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/278139/cmap_HighResolution_304905601_305164801_4FGL_J1416.1+1320_daily_bin253.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.80e-03', comment='SUCCESS', photon_flux='4.72e-08', energy_flux2='1.69e-05', photon_flux_error='3.70e-08', dlogl='8.54e-03', energy_flux='1.60e-05', photon_flux2='4.42e-08', job_status='DONE', time_completed='2021-09-09 06:17:55.290285', photon_index_error2='0.61', photon_index2='2.29', ts='2.55', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='1.27e-07', energy_flux_error2='1.53e-05', EG='1.40', time_epoch_completed='1631193475.29', return_code='0', job_id='278139', GAL2='0.76', EG2='1.40', return_code2='0', energy_flux_error='1.26e-05', photon_flux_error2='4.20e-08', ts2='2.56', photon_index='2.37' WHERE bin_id='253' AND source_name='4FGL J1416.1+1320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 06:17:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0286>
Subject: Job 278139: <4FGL_J1416.1+1320_daily_bin253> in cluster <slac> Done

Job <4FGL_J1416.1+1320_daily_bin253> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  9 06:06:34 2021
Job was executed on host(s) <bullet0286>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 06:06:36 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:06:36 2021
Terminated at Thu Sep  9 06:17:56 2021
Results reported at Thu Sep  9 06:17:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_daily_bin253 214.029 13.347 304905601 305164801 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 :                                   586.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             276.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   679 sec.
    Turnaround time :                            682 sec.

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

