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


Performing analysis on: 4FGL_J1416.1+1320_daily_bin738
RA = 214.029, Dec = 13.347
tmin = 430617601, tmax = 430876801
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='282282', job_status='RUN', time_executed='2021-09-09 06:19:14.261575', time_epoch_executed='1631193554.26' WHERE source_name='4FGL J1416.1+1320' and cadence='daily' and bin_id='738'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/282282

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/282282/ft1_4FGL_J1416.1+1320_daily_bin738.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/282282/ft2_4FGL_J1416.1+1320_daily_bin738.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/282282/ft1_4FGL_J1416.1+1320_daily_bin738.fits outfile=/scratch/kocevski/282282/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin738.fits ra=214.029 dec=13.347 rad=12.0 tmin=430617601.0 tmax=430876801.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 6.62
user 5.21
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/282282/ft1_filtered_4FGL_J1416.1+1320_daily_bin738.fits" evtable="EVENTS" scfile=/scratch/kocevski/282282/ft2_4FGL_J1416.1+1320_daily_bin738.fits sctable="SC_DATA" outfile=/scratch/kocevski/282282/ltcube_430617601_430876801_4FGL_J1416.1+1320_daily_bin738.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/282282/ft2_4FGL_J1416.1+1320_daily_bin738.fits
.....................!
real 13.70
user 11.78
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/282282/ft1_filtered_4FGL_J1416.1+1320_daily_bin738.fits evtable="EVENTS" scfile=/scratch/kocevski/282282/ft2_4FGL_J1416.1+1320_daily_bin738.fits sctable="SC_DATA" expcube=/scratch/kocevski/282282/ltcube_430617601_430876801_4FGL_J1416.1+1320_daily_bin738.fits outfile=/scratch/kocevski/282282/expmap_430617601_430876801_4FGL_J1416.1+1320_daily_bin738.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/282282/ltcube_430617601_430876801_4FGL_J1416.1+1320_daily_bin738.fits
.....................!
real 193.63
user 186.08
sys 4.06

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/282282/ft1_filtered_4FGL_J1416.1+1320_daily_bin738.fits scfile=/scratch/kocevski/282282/ft2_4FGL_J1416.1+1320_daily_bin738.fits outfile=/scratch/kocevski/282282/cmap_430617601_430876801_4FGL_J1416.1+1320_daily_bin738.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.45
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/282282/ft1_filtered_4FGL_J1416.1+1320_daily_bin738.fits scfile=/scratch/kocevski/282282/ft2_4FGL_J1416.1+1320_daily_bin738.fits outfile=/scratch/kocevski/282282/cmap_HighResolution_430617601_430876801_4FGL_J1416.1+1320_daily_bin738.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.04
user 0.42
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.1654       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10395E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    32.329       1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.876       1.0000         .10000E-03   10000.    
     9 'norm      '    19.493       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.4125       1.0000         .10000E-03   10000.    
    11 'norm      '    1.2211       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.2088       1.0000         .10000E-03   10000.    
    13 'norm      '    5.1534       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    26.314       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.7618       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10210E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.8979       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.4981       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .99417       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1553       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=   8435.557     FROM MIGRAD    STATUS=CONVERGED    464 CALLS     2349 TOTAL
                     EDM=   .22E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.173        .13954E-05** at limit **
   2  Prefactor     2.1644        4.3079        .51321E-07   -.16209E-04
   3  Prefactor     .10000E-03    2.4458        .24012E-07** at limit **
   4  Prefactor     .10000E-03    11.048        .35298E-06** at limit **
   5  Prefactor     .10000E-03    2.9929       -.52484E-08** at limit **
   6  Prefactor     .10000E-03    30.686        .39745E-06** at limit **
   7  Prefactor     32.311        28.454        .26310E-05    .21085E-04
   8  Prefactor     19.875        24.860        .59410E-06   -.31536E-05
   9  norm          19.493        18.777        .17764E-06   -.16146E-05
  10  Prefactor     7.4106        7.9750        .21153E-07   -.26095E-04
  11  norm          1.2211        1.3339        .16159E-07    .42709E-05
  12  Prefactor     5.2063        8.0477       -.11855E-06   -.40898E-04
  13  norm          5.1527        3.5535        .80693E-06   -.82834E-04
  14  Prefactor     .10000E-03    23.394       -.11578E-06** at limit **
  15  norm          26.323        18.129       -.83069E-07   -.39511E-05
  16  Prefactor     1.7530        64.738        .17053E-05   -.73925E-05
  17  Prefactor     .10000E-03    24.259       -.48552E-06** at limit **
  18  Prefactor     3.8939        11.404        .19474E-05   -.79825E-04
  19  Prefactor     .10000E-03    12.299       -.13600E-05** at limit **
  20  Prefactor     1.4776        140.34        .10446E-04   -.21679E-05
  21  Normalizat    .99440        .19922       -.74995E-06   -.81608E-04
  22  Prefactor     1.1552        .14301       -.69857E-06   -.10591E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.16435
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.3107
  Prefactor  = 19.8747
  norm       = 19.4931
  Prefactor  = 7.41061
  norm       = 1.22112
  Prefactor  = 5.20629
  norm       = 5.15268
  Prefactor  = 0.0001
  norm       = 26.3225
  Prefactor  = 1.75297
  Prefactor  = 0.0001
  Prefactor  = 3.89391
  Prefactor  = 0.0001
  Prefactor  = 1.47759
  Normalizat = 0.9944
  Prefactor  = 1.1552
 **********
 **   18 **HESSE 
 **********

 FCN=   8435.557     FROM HESSE     STATUS=OK           346 CALLS     2695 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.1644        4.2877        .25793E-03   -1.5414    
   3  Prefactor     .10000E-03    2.4733        .14025E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.9973        .15517E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    30.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     32.311        28.495        .70472E-04   -1.4571    
   8  Prefactor     19.875        24.910        .89840E-04   -1.4816    
   9  norm          19.493        18.783        .90716E-04   -1.4825    
  10  Prefactor     7.4106        7.9200        .14731E-03   -1.5163    
  11  norm          1.2211        1.3366        .10788E-03   -1.5487    
  12  Prefactor     5.2063        7.9916        .17613E-03   -1.5252    
  13  norm          5.1527        3.5464        .66412E-03   -1.5254    
  14  Prefactor     .10000E-03    23.391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          26.323        18.108        .78094E-04   -1.4681    
  16  Prefactor     1.7530        64.362        .31566E-03   -1.5443    
  17  Prefactor     .10000E-03    24.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.8939        11.411        .10218E-02   -1.5313    
  19  Prefactor     .10000E-03    12.431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.4776        141.61        .34995E-03   -1.5465    
  21  Normalizat    .99440        .23499        .31774E-03   -.93218    
  22  Prefactor     1.1552        .16864        .21452E-03   -.87721    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.60459e-11
Minuit parameter uncertainties:
  1  1.98964e-05
  2  4.2883
  3  2.52331e-06
  4  8.71867e-06
  5  7.48686e-07
  6  2.86638e-05
  7  28.5066
  8  24.923
  9  18.7891
  10  7.92114
  11  1.33659
  12  7.9932
  13  3.54652
  14  4.41608e-05
  15  18.1118
  16  21.2679
  17  4.37214e-05
  18  11.4175
  19  7.144e-05
  20  29.0005
  21  0.235232
  22  0.168717
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  3.231e+01  2.851e+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.155e+00  1.687e-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:  9.944e-01  2.352e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.57
Ra Dec: 214.029 13.347
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 4.22e-08 +/- 3.72e-08
Energy Flux (Fixed Index): 1.43e-05 +/- 1.27e-05

TS (Fixed Index): 2.57
Ra Dec: 214.029 13.347
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/282282/likelihoodResults_430617601_430876801_4FGL_J1416.1+1320_daily_bin738.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) = 8435.24961709
delta logL = 0.30773448935

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8435.24632911
delta logL = 0.311022470867

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.790       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8857       1.0000          .0000       10.000    
     3 'Normalizat'    1.0139       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1482       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=   8435.246     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      236 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.789        24.239       -.16238E-05    .50392E-03
   2  Index         1.8857        .37624        .34266E-05    .24179E-03
   3  Normalizat    1.0141        .19185       -.22912E-06   -.10174E-03
   4  Prefactor     1.1481        .13888        .12658E-06   -.12200E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.7889
  Index      = 1.88573
  Normalizat = 1.01412
  Prefactor  = 1.14808
 **********
 **   18 **HESSE 
 **********

 FCN=   8435.246     FROM HESSE     STATUS=OK            29 CALLS      265 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.789        32.151        .68937E-04   -1.4545    
   2  Index         1.8857        .59797        .99069E-02   -.67239    
   3  Normalizat    1.0141        .22681        .31499E-03   -.92559    
   4  Prefactor     1.1481        .16428        .21508E-03   -.87944    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.85801e-09
Minuit parameter uncertainties:
  1  32.1672
  2  0.600328
  3  0.227028
  4  0.164356
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/282282': 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) = 8435.24632862
delta logL = 0.311022967886

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  3.379e+01  3.217e+01  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  1.886e+00  6.003e-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:  1.148e+00  1.644e-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.014e+00  2.270e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.16
Ra Dec: 214.029 13.347
Photon Index (Free Index): 1.89 +/- 0.60
Photon Flux (Free Index): 2.35e-08 +/- 3.10e-08
Energy Flux (Free Index): 2.20e-05 +/- 2.51e-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/282282/cmap_HighResolution_430617601_430876801_4FGL_J1416.1+1320_daily_bin738.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.66e-03', comment='SUCCESS', photon_flux='4.22e-08', energy_flux2='2.20e-05', photon_flux_error='3.72e-08', dlogl='3.11e-01', energy_flux='1.43e-05', photon_flux2='2.35e-08', job_status='DONE', time_completed='2021-09-09 06:30:27.539649', photon_index_error2='0.60', photon_index2='1.89', ts='2.57', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', photon_flux_upper_limit='1.25e-07', energy_flux_error2='2.51e-05', EG='0.99', time_epoch_completed='1631194227.54', return_code='0', job_id='282282', GAL2='1.15', EG2='1.01', return_code2='0', energy_flux_error='1.27e-05', photon_flux_error2='3.10e-08', ts2='3.16', photon_index='2.37' WHERE bin_id='738' AND source_name='4FGL J1416.1+1320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 06:30:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 282282: <4FGL_J1416.1+1320_daily_bin738> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_daily_bin738 214.029 13.347 430617601 430876801 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 :                                   638.05 sec.
    Max Memory :                                 1178 MB
    Average Memory :                             258.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   794 sec.
    Turnaround time :                            796 sec.

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

