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


Performing analysis on: 4FGL_J1416.1+1320_daily_bin802
RA = 214.029, Dec = 13.347
tmin = 447206401, tmax = 447465601
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='282373', job_status='RUN', time_executed='2021-09-09 06:18:30.507310', time_epoch_executed='1631193510.51' WHERE source_name='4FGL J1416.1+1320' and cadence='daily' and bin_id='802'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/282373

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/282373/ft1_4FGL_J1416.1+1320_daily_bin802.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/282373/ft2_4FGL_J1416.1+1320_daily_bin802.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/282373/ft1_4FGL_J1416.1+1320_daily_bin802.fits outfile=/scratch/kocevski/282373/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin802.fits ra=214.029 dec=13.347 rad=12.0 tmin=447206401.0 tmax=447465601.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.49
user 3.18
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/282373/ft1_filtered_4FGL_J1416.1+1320_daily_bin802.fits" evtable="EVENTS" scfile=/scratch/kocevski/282373/ft2_4FGL_J1416.1+1320_daily_bin802.fits sctable="SC_DATA" outfile=/scratch/kocevski/282373/ltcube_447206401_447465601_4FGL_J1416.1+1320_daily_bin802.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/282373/ft2_4FGL_J1416.1+1320_daily_bin802.fits
.....................!
real 12.89
user 11.67
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/282373/ft1_filtered_4FGL_J1416.1+1320_daily_bin802.fits evtable="EVENTS" scfile=/scratch/kocevski/282373/ft2_4FGL_J1416.1+1320_daily_bin802.fits sctable="SC_DATA" expcube=/scratch/kocevski/282373/ltcube_447206401_447465601_4FGL_J1416.1+1320_daily_bin802.fits outfile=/scratch/kocevski/282373/expmap_447206401_447465601_4FGL_J1416.1+1320_daily_bin802.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/282373/ltcube_447206401_447465601_4FGL_J1416.1+1320_daily_bin802.fits
.....................!
real 191.93
user 186.07
sys 5.03

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/282373/ft1_filtered_4FGL_J1416.1+1320_daily_bin802.fits scfile=/scratch/kocevski/282373/ft2_4FGL_J1416.1+1320_daily_bin802.fits outfile=/scratch/kocevski/282373/cmap_447206401_447465601_4FGL_J1416.1+1320_daily_bin802.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.43
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/282373/ft1_filtered_4FGL_J1416.1+1320_daily_bin802.fits scfile=/scratch/kocevski/282373/ft2_4FGL_J1416.1+1320_daily_bin802.fits outfile=/scratch/kocevski/282373/cmap_HighResolution_447206401_447465601_4FGL_J1416.1+1320_daily_bin802.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.90
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.5891       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.8267       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.046       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10236E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.876       1.0000         .10000E-03   10000.    
     8 'Prefactor '    39.048       1.0000         .10000E-03   10000.    
     9 'norm      '    .10085E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.3046       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .72553       1.0000         .10000E-03   10000.    
    13 'norm      '    .30766E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    28.500       1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.228       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.8938       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .40456       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.3867       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=   6232.606     FROM MIGRAD    STATUS=CONVERGED    470 CALLS     2364 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.961        .13396E-07** at limit **
   2  Prefactor     1.5886        3.0928        .36876E-06    .97968E-04
   3  Prefactor     1.8264        2.1763        .52897E-07    .39865E-04
   4  Prefactor     .10000E-03    4.3387        .68969E-07** at limit **
   5  Prefactor     21.040        13.875        .45969E-06   -.90900E-04
   6  Prefactor     .10000E-03    22.811       -.23292E-06** at limit **
   7  Prefactor     16.875        27.466        .18074E-06   -.83891E-04
   8  Prefactor     39.028        26.340        .11962E-05   -.35907E-03
   9  norm          .10000E-03    6.6218       -.12208E-06** at limit **
  10  Prefactor     .10000E-03    2.7036       -.13652E-06** at limit **
  11  norm          4.3046        2.4954        .34772E-07   -.11685E-03
  12  Prefactor     .72272        6.5788        .18637E-05   -.60924E-04
  13  norm          .10000E-03    1.2389        .34224E-06** at limit **
  14  Prefactor     .10000E-03    11.233        .99900E-07** at limit **
  15  norm          .10000E-03    6.9658       -.39174E-07** at limit **
  16  Prefactor     28.508        24.811       -.95199E-06   -.28989E-04
  17  Prefactor     15.224        16.546        .26682E-06   -.40173E-04
  18  Prefactor     1.8925        8.4681        .85018E-05   -.69626E-04
  19  Prefactor     .10000E-03    16.225        .86367E-06** at limit **
  20  Prefactor     .10000E-03    7.8540       -.11483E-06** at limit **
  21  Normalizat    .40480        .23273       -.29802E-05   -.34835E-03
  22  Prefactor     1.3866        .17198       -.11718E-06   -.56552E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.58855
  Prefactor  = 1.8264
  Prefactor  = 0.0001
  Prefactor  = 21.0404
  Prefactor  = 0.0001
  Prefactor  = 16.8745
  Prefactor  = 39.0277
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.30459
  Prefactor  = 0.722718
  norm       = 0.000100004
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 28.5084
  Prefactor  = 15.2242
  Prefactor  = 1.89246
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 0.404797
  Prefactor  = 1.3866
 **********
 **   18 **HESSE 
 **********

 FCN=   6232.606     FROM HESSE     STATUS=OK           344 CALLS     2708 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.5886        3.0578        .18587E-03   -1.5456    
   3  Prefactor     1.8264        2.1717        .12392E-03   -1.5438    
   4  Prefactor     .10000E-03    4.3481        .16060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     21.040        13.819        .87308E-04   -1.4790    
   6  Prefactor     .10000E-03    23.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.875        27.341        .97495E-04   -1.4886    
   8  Prefactor     39.028        26.387        .64143E-04   -1.4458    
   9  norm          .10000E-03    6.6230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.7103        .12671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.3046        2.4935        .92187E-04   -1.5293    
  12  Prefactor     .72272        6.6861        .38266E-03   -1.5538    
  13  norm          .10000E-03    25.119        .16694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    6.9744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     28.508        24.678        .75046E-04   -1.4640    
  17  Prefactor     15.224        16.535        .10264E-03   -1.4927    
  18  Prefactor     1.8925        8.4398        .15116E-02   -1.5433    
  19  Prefactor     .10000E-03    16.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.8533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .40480        .24082        .40471E-03   -1.1705    
  22  Prefactor     1.3866        .18134        .17966E-03   -.80767    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.79309e-10
Minuit parameter uncertainties:
  1  6.17939e-05
  2  3.05808
  3  2.17181
  4  1.4802e-05
  5  13.8213
  6  3.36155e-05
  7  27.3612
  8  26.3945
  9  4.54692e-05
  10  1.30716e-05
  11  2.49352
  12  4.3968
  13  0.000640798
  14  6.25819e-05
  15  7.13114e-06
  16  24.6872
  17  16.5403
  18  7.99465
  19  0.0002128
  20  5.71117e-05
  21  0.241444
  22  0.18142
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  1.687e+01  2.736e+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:  1.387e+00  1.814e-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:  4.048e-01  2.414e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/282373/likelihoodResults_447206401_447465601_4FGL_J1416.1+1320_daily_bin802.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) = 6231.99580749
delta logL = 0.609980893156

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6231.95191236
delta logL = 0.653876028154

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1313       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6264       1.0000          .0000       10.000    
     3 'Normalizat'    .36102       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4068       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.

 FCN=   6231.952     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      254 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1090        110.12        .44370E-02    .40755E-03
   2  Index         3.6284        3.6927        .12398        .16228E-03
   3  Normalizat    .36106        .63475E-01    .96543E-01   -.39616E-04
   4  Prefactor     1.4067        .48850E-01    .30969E-01   -.14891E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.10901
  Index      = 3.62845
  Normalizat = 0.361063
  Prefactor  = 1.40674
 **********
 **   18 **HESSE 
 **********

 FCN=   6231.952     FROM HESSE     STATUS=OK            31 CALLS      285 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1090        272.12        .14668E-03   -1.5256    
   2  Index         3.6284        6.6665        .60990E-02   -.27787    
   3  Normalizat    .36106        .23335        .42764E-03   -1.1936    
   4  Prefactor     1.4067        .18652        .17848E-03   -.80186    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.06452e-09
Minuit parameter uncertainties:
  1  74.9333
  2  7.87787
  3  0.233981
  4  0.186606
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/282373': 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) = 6231.95191054
delta logL = 0.653877846533

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  5.109e+00  7.493e+01  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  3.628e+00  7.878e+00  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:  1.407e+00  1.866e-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:  3.611e-01  2.340e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.91
Ra Dec: 214.029 13.347
Photon Index (Free Index): 3.63 +/- 7.88
Photon Flux (Free Index): 5.44e-08 +/- 5.24e-08
Energy Flux (Free Index): 8.76e-06 +/- 2.11e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/282373/cmap_HighResolution_447206401_447465601_4FGL_J1416.1+1320_daily_bin802.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.87e-03', comment='SUCCESS', energy_flux2='8.76e-06', dlogl='6.54e-01', photon_flux2='5.44e-08', job_status='DONE', time_completed='2021-09-09 06:28:07.189002', photon_index_error2='7.88', photon_index2='3.63', ts='0.48', fit_tolerance='1e-08', GAL='1.39', photon_index_error='0.00', photon_flux_upper_limit='1.02e-07', energy_flux_error2='2.11e-05', EG='0.40', time_epoch_completed='1631194087.19', return_code='0', job_id='282373', GAL2='1.41', EG2='0.36', return_code2='0', photon_flux_error2='5.24e-08', ts2='1.91', photon_index='2.37' WHERE bin_id='802' AND source_name='4FGL J1416.1+1320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 06:28:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 282373: <4FGL_J1416.1+1320_daily_bin802> in cluster <slac> Done

Job <4FGL_J1416.1+1320_daily_bin802> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Sep  9 06:17:18 2021
Job was executed on host(s) <bullet0265>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 06:17:19 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:19 2021
Terminated at Thu Sep  9 06:28:08 2021
Results reported at Thu Sep  9 06:28:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_daily_bin802 214.029 13.347 447206401 447465601 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 :                                   557.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             280.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   648 sec.
    Turnaround time :                            650 sec.

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

