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


Performing analysis on: 4FGL_J1416.1+1320_daily_bin628
RA = 214.029, Dec = 13.347
tmin = 402105601, tmax = 402364801
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='282135', job_status='RUN', time_executed='2021-09-09 06:22:57.433376', time_epoch_executed='1631193777.43' WHERE source_name='4FGL J1416.1+1320' and cadence='daily' and bin_id='628'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/282135

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/282135/ft1_4FGL_J1416.1+1320_daily_bin628.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/282135/ft2_4FGL_J1416.1+1320_daily_bin628.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/282135/ft1_4FGL_J1416.1+1320_daily_bin628.fits outfile=/scratch/kocevski/282135/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin628.fits ra=214.029 dec=13.347 rad=12.0 tmin=402105601.0 tmax=402364801.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.62
user 3.31
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/282135/ft2_4FGL_J1416.1+1320_daily_bin628.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/282135/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin628.fits evtable="EVENTS" outfile="/scratch/kocevski/282135/ft1_filtered_4FGL_J1416.1+1320_daily_bin628.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.76
user 0.35
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/282135/ft1_filtered_4FGL_J1416.1+1320_daily_bin628.fits evtable="EVENTS" scfile=/scratch/kocevski/282135/ft2_4FGL_J1416.1+1320_daily_bin628.fits sctable="SC_DATA" expcube=/scratch/kocevski/282135/ltcube_402105601_402364801_4FGL_J1416.1+1320_daily_bin628.fits outfile=/scratch/kocevski/282135/expmap_402105601_402364801_4FGL_J1416.1+1320_daily_bin628.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/282135/ltcube_402105601_402364801_4FGL_J1416.1+1320_daily_bin628.fits
.....................!
real 200.25
user 185.73
sys 4.77

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/282135/ft1_filtered_4FGL_J1416.1+1320_daily_bin628.fits scfile=/scratch/kocevski/282135/ft2_4FGL_J1416.1+1320_daily_bin628.fits outfile=/scratch/kocevski/282135/cmap_402105601_402364801_4FGL_J1416.1+1320_daily_bin628.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.63
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/282135/ft1_filtered_4FGL_J1416.1+1320_daily_bin628.fits scfile=/scratch/kocevski/282135/ft2_4FGL_J1416.1+1320_daily_bin628.fits outfile=/scratch/kocevski/282135/cmap_HighResolution_402105601_402364801_4FGL_J1416.1+1320_daily_bin628.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.61
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    66.272       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.4320       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.8210       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    27.247       1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.520       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .31813E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    11.665       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.3923       1.0000         .10000E-03   10000.    
    14 'Prefactor '    109.10       1.0000         .10000E-03   10000.    
    15 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.085       1.0000         .10000E-03   10000.    
    19 'Prefactor '    31.625       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3027       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .87327       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=   6580.435     FROM MIGRAD    STATUS=CONVERGED    483 CALLS     2363 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     66.262        55.725       -.10673E-04   -.55771E-05
   2  Prefactor     3.4309        4.3617        .51908E-06   -.48210E-03
   3  Prefactor     2.8211        2.7251        .39600E-07    .20760E-03
   4  Prefactor     .10000E-03    9.3797        .15592E-05** at limit **
   5  Prefactor     .10000E-03    23.854        .84593E-05** at limit **
   6  Prefactor     27.241        24.002       -.26353E-05    .19356E-05
   7  Prefactor     26.522        27.406        .66402E-05    .63452E-04
   8  Prefactor     .10000E-03    19.194       -.56883E-05** at limit **
   9  norm          .10000E-03    12.098       -.18974E-06** at limit **
  10  Prefactor     .10002E-03    5.5506       -.11317E-05** at limit **
  11  norm          11.664        3.7453        .16672E-07    .49309E-04
  12  Prefactor     .10000E-03    2.6403        .23564E-06** at limit **
  13  norm          1.3922        3.3251       -.10701E-05   -.10551E-02
  14  Prefactor     109.10        45.495        .10899E-05   -.97003E-04
  15  norm          .10000E-03    14.719        .81598E-05** at limit **
  16  Prefactor     .10000E-03    11.283       -.52087E-05** at limit **
  17  Prefactor     .10000E-03    7.9710       -.57454E-06** at limit **
  18  Prefactor     10.080        19.780       -.11592E-05    .91820E-05
  19  Prefactor     31.626        26.853        .12210E-05    .53946E-04
  20  Prefactor     .10000E-03    20.311       -.65368E-05** at limit **
  21  Normalizat    1.3030        .21169       -.10599E-05    .80604E-04
  22  Prefactor     .87320        .15464        .99093E-06   -.15022E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 66.2617
  Prefactor  = 3.43087
  Prefactor  = 2.82106
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.2412
  Prefactor  = 26.5215
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100024
  norm       = 11.6641
  Prefactor  = 0.0001
  norm       = 1.39221
  Prefactor  = 109.102
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.0802
  Prefactor  = 31.626
  Prefactor  = 0.0001
  Normalizat = 1.30297
  Prefactor  = 0.873203
 **********
 **   18 **HESSE 
 **********

 FCN=   6580.435     FROM HESSE     STATUS=OK           348 CALLS     2711 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     66.262        55.728        .49300E-04   -1.4078    
   2  Prefactor     3.4309        4.3414        .18248E-03   -1.5337    
   3  Prefactor     2.8211        2.7342        .12821E-03   -1.5372    
   4  Prefactor     .10000E-03    9.4430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    24.304        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     27.241        24.009        .76748E-04   -1.4664    
   7  Prefactor     26.522        27.418        .77790E-04   -1.4678    
   8  Prefactor     .10000E-03    19.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    12.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10002E-03    7.0363        .58027E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          11.664        3.7452        .86307E-04   -1.5025    
  12  Prefactor     .10000E-03    2.6520        .12866E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.3922        3.3760        .21837E-03   -1.5472    
  14  Prefactor     109.10        45.385        .38507E-04   -1.3615    
  15  norm          .10000E-03    14.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.9840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.080        19.752        .12617E-03   -1.5073    
  19  Prefactor     31.626        26.831        .71251E-04   -1.4583    
  20  Prefactor     .10000E-03    20.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3030        .25514        .27442E-03   -.83478    
  22  Prefactor     .87320        .18620        .23671E-03   -.97084    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17773e-09
Minuit parameter uncertainties:
  1  55.7715
  2  4.34177
  3  2.7343
  4  9.64244e-08
  5  0.000114769
  6  24.0179
  7  27.4307
  8  3.79234e-06
  9  8.12228e-07
  10  0.000819847
  11  3.74525
  12  3.18527e-07
  13  3.37642
  14  45.3995
  15  4.42104e-05
  16  3.81249e-06
  17  2.38727e-06
  18  19.7648
  19  26.8415
  20  2.06649e-07
  21  0.255388
  22  0.186337
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  2.652e+01  2.743e+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:  8.732e-01  1.863e-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.303e+00  2.554e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.55
Ra Dec: 214.029 13.347
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 3.47e-08 +/- 3.58e-08
Energy Flux (Fixed Index): 1.18e-05 +/- 1.22e-05

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

Saving results to:
/scratch/kocevski/282135/likelihoodResults_402105601_402364801_4FGL_J1416.1+1320_daily_bin628.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) = 6580.25400086
delta logL = 0.181168773837

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6580.24814946
delta logL = 0.187020168329

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.556       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9594       1.0000          .0000       10.000    
     3 'Normalizat'    1.2725       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88696       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=   6580.248     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      291 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.548        32.163        .95588E-04   -.31208E-03
   2  Index         2.9604        1.2655        .81732E-02   -.10990E-03
   3  Normalizat    1.2729        .26222        .27716E-03   -.10303E-02
   4  Prefactor     .88687        .18661        .23507E-03   -.14186E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.5481
  Index      = 2.9604
  Normalizat = 1.27293
  Prefactor  = 0.886866
 **********
 **   18 **HESSE 
 **********

 FCN=   6580.248     FROM HESSE     STATUS=OK            25 CALLS      316 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.548        26.379        .38235E-05   -1.4870    
   2  Index         2.9604        1.0402        .32693E-03   -.42017    
   3  Normalizat    1.2729        .26088        .55432E-04   -.84378    
   4  Prefactor     .88687        .18592        .47014E-04   -.96602    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.93875e-09
Minuit parameter uncertainties:
  1  26.3969
  2  1.04945
  3  0.261146
  4  0.186057
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/282135': 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) = 6580.24814384
delta logL = 0.187025788723

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  1.755e+01  2.640e+01  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  2.960e+00  1.049e+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:  8.869e-01  1.861e-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.273e+00  2.611e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.96
Ra Dec: 214.029 13.347
Photon Index (Free Index): 2.96 +/- 1.05
Photon Flux (Free Index): 5.81e-08 +/- 6.06e-08
Energy Flux (Free Index): 1.18e-05 +/- 1.05e-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/282135/cmap_HighResolution_402105601_402364801_4FGL_J1416.1+1320_daily_bin628.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.12e-03', comment='SUCCESS', photon_flux='3.47e-08', energy_flux2='1.18e-05', photon_flux_error='3.58e-08', dlogl='1.87e-01', energy_flux='1.18e-05', photon_flux2='5.81e-08', job_status='DONE', time_completed='2021-09-09 06:33:06.891968', photon_index_error2='1.05', photon_index2='2.96', ts='1.55', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='1.18e-07', energy_flux_error2='1.05e-05', EG='1.30', time_epoch_completed='1631194386.89', return_code='0', job_id='282135', GAL2='0.89', EG2='1.27', return_code2='0', energy_flux_error='1.22e-05', photon_flux_error2='6.06e-08', ts2='1.96', photon_index='2.37' WHERE bin_id='628' AND source_name='4FGL J1416.1+1320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 06:33:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 282135: <4FGL_J1416.1+1320_daily_bin628> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_daily_bin628 214.029 13.347 402105601 402364801 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 :                                   585.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             204.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   964 sec.
    Turnaround time :                            966 sec.

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

