/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 71 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 = 7398
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1416.1+1320_daily_bin311
RA = 214.029, Dec = 13.347
tmin = 319939201, tmax = 320198401
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='278220', job_status='RUN', time_executed='2021-09-09 06:09:49.759376', time_epoch_executed='1631192989.76' WHERE source_name='4FGL J1416.1+1320' and cadence='daily' and bin_id='311'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/278220

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/278220/ft1_4FGL_J1416.1+1320_daily_bin311.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/278220/ft2_4FGL_J1416.1+1320_daily_bin311.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/278220/ft1_4FGL_J1416.1+1320_daily_bin311.fits outfile=/scratch/kocevski/278220/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin311.fits ra=214.029 dec=13.347 rad=12.0 tmin=319939201.0 tmax=320198401.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.09
user 3.32
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/278220/ft1_filtered_4FGL_J1416.1+1320_daily_bin311.fits" evtable="EVENTS" scfile=/scratch/kocevski/278220/ft2_4FGL_J1416.1+1320_daily_bin311.fits sctable="SC_DATA" outfile=/scratch/kocevski/278220/ltcube_319939201_320198401_4FGL_J1416.1+1320_daily_bin311.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/278220/ft2_4FGL_J1416.1+1320_daily_bin311.fits
.....................!
real 12.69
user 11.53
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/278220/ft1_filtered_4FGL_J1416.1+1320_daily_bin311.fits evtable="EVENTS" scfile=/scratch/kocevski/278220/ft2_4FGL_J1416.1+1320_daily_bin311.fits sctable="SC_DATA" expcube=/scratch/kocevski/278220/ltcube_319939201_320198401_4FGL_J1416.1+1320_daily_bin311.fits outfile=/scratch/kocevski/278220/expmap_319939201_320198401_4FGL_J1416.1+1320_daily_bin311.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/278220/ltcube_319939201_320198401_4FGL_J1416.1+1320_daily_bin311.fits
.....................!
real 193.46
user 185.96
sys 4.99

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/278220/ft1_filtered_4FGL_J1416.1+1320_daily_bin311.fits scfile=/scratch/kocevski/278220/ft2_4FGL_J1416.1+1320_daily_bin311.fits outfile=/scratch/kocevski/278220/cmap_319939201_320198401_4FGL_J1416.1+1320_daily_bin311.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.59
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/278220/ft1_filtered_4FGL_J1416.1+1320_daily_bin311.fits scfile=/scratch/kocevski/278220/ft2_4FGL_J1416.1+1320_daily_bin311.fits outfile=/scratch/kocevski/278220/cmap_HighResolution_319939201_320198401_4FGL_J1416.1+1320_daily_bin311.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.57
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.5241       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12775E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    25.932       1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.068       1.0000         .10000E-03   10000.    
     6 'Prefactor '    27.768       1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.439       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.3924       1.0000         .10000E-03   10000.    
    11 'norm      '    16.647       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.7894       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.5604       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.6667       1.0000         .10000E-03   10000.    
    19 'Prefactor '    21.316       1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.912       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .97411       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .89994       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=   6657.731     FROM MIGRAD    STATUS=CONVERGED    458 CALLS     2357 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.259        .31762E-05** at limit **
   2  Prefactor     8.5240        4.2978       -.12840E-06   -.23605E-03
   3  Prefactor     .10000E-03    3.2664       -.18211E-06** at limit **
   4  Prefactor     25.932        15.529        .54619E-07    .11955E-04
   5  Prefactor     22.067        14.222       -.92422E-07   -.57309E-04
   6  Prefactor     27.768        22.490       -.11805E-06   -.28495E-04
   7  Prefactor     21.439        25.849       -.44246E-06   -.47885E-04
   8  Prefactor     .10000E-03    8.9814        .82192E-06** at limit **
   9  norm          .10000E-03    25.178       -.92806E-06** at limit **
  10  Prefactor     2.3924        5.8136        .11218E-06   -.20659E-03
  11  norm          16.647        4.4718       -.92897E-07   -.26252E-03
  12  Prefactor     3.7895        7.2446       -.37877E-07   -.15434E-03
  13  norm          .10000E-03    2.2344        .22997E-06** at limit **
  14  Prefactor     .10000E-03    15.237       -.19761E-05** at limit **
  15  norm          .10000E-03    6.2398       -.12136E-05** at limit **
  16  Prefactor     4.5641        30.263        .39848E-05    .67443E-04
  17  Prefactor     .10000E-03    6.1929        .74936E-06** at limit **
  18  Prefactor     4.6674        10.890        .31524E-05   -.66902E-03
  19  Prefactor     21.312        28.205       -.36128E-05   -.24121E-03
  20  Prefactor     14.913        30.818        .53058E-06    .41528E-05
  21  Normalizat    .97414        .20545       -.16689E-06   -.50084E-04
  22  Prefactor     .89992        .14147       -.55472E-07   -.41336E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 8.52404
  Prefactor  = 0.000100001
  Prefactor  = 25.9315
  Prefactor  = 22.0675
  Prefactor  = 27.7678
  Prefactor  = 21.4388
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.39245
  norm       = 16.647
  Prefactor  = 3.78953
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 4.5641
  Prefactor  = 0.0001
  Prefactor  = 4.66742
  Prefactor  = 21.3117
  Prefactor  = 14.9132
  Normalizat = 0.974142
  Prefactor  = 0.899917
 **********
 **   18 **HESSE 
 **********

 FCN=   6657.731     FROM HESSE     STATUS=OK           348 CALLS     2705 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.5240        4.3133        .11535E-03   -1.5124    
   3  Prefactor     .10000E-03    9.6151        .28362E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     25.932        15.503        .78667E-04   -1.4689    
   5  Prefactor     22.067        14.287        .85265E-04   -1.4768    
   6  Prefactor     27.768        22.506        .76026E-04   -1.4654    
   7  Prefactor     21.439        25.853        .86504E-04   -1.4782    
   8  Prefactor     .10000E-03    9.0277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    25.408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.3924        5.7723        .26478E-03   -1.5399    
  11  norm          16.647        4.4783        .86716E-04   -1.4892    
  12  Prefactor     3.7895        7.1920        .20737E-03   -1.5319    
  13  norm          .10000E-03    2.2833        .23779E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    15.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    6.3192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.5641        31.242        .18850E-03   -1.5281    
  17  Prefactor     .10000E-03    6.2284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.6674        13.700        .93147E-03   -1.5276    
  19  Prefactor     21.312        28.485        .86754E-04   -1.4784    
  20  Prefactor     14.913        30.953        .10372E-03   -1.4935    
  21  Normalizat    .97414        .24361        .28729E-03   -.93902    
  22  Prefactor     .89992        .16803        .21422E-03   -.96144    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.39518e-09
Minuit parameter uncertainties:
  1  0.000410101
  2  4.31346
  3  0.000142677
  4  15.5053
  5  14.2896
  6  22.5124
  7  25.8665
  8  7.62176e-05
  9  0.000140314
  10  5.77362
  11  4.47841
  12  7.19367
  13  6.92845e-06
  14  0.000234219
  15  9.21288e-05
  16  23.8998
  17  5.73097e-05
  18  13.7093
  19  28.5032
  20  30.9867
  21  0.243887
  22  0.168122
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  2.144e+01  2.587e+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.999e-01  1.681e-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.741e-01  2.439e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.12
Ra Dec: 214.029 13.347
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 2.80e-08 +/- 3.38e-08
Energy Flux (Fixed Index): 9.52e-06 +/- 1.15e-05

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

Saving results to:
/scratch/kocevski/278220/likelihoodResults_319939201_320198401_4FGL_J1416.1+1320_daily_bin311.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) = 6657.72748013
delta logL = 0.00332730796345

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6657.72672651
delta logL = 0.00408092850012

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.606       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5229       1.0000          .0000       10.000    
     3 'Normalizat'    .96719       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90278       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=   6657.727     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      254 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.594        31.164        .88234E-04   -.56466E-03
   2  Index         2.5295        1.8655        .10837E-01   -.24117E-03
   3  Normalizat    .96626        .25154        .28833E-03   -.14447E-02
   4  Prefactor     .90326        .17219        .21387E-03   -.23162E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.5939
  Index      = 2.52954
  Normalizat = 0.966259
  Prefactor  = 0.903258
 **********
 **   18 **HESSE 
 **********

 FCN=   6657.727     FROM HESSE     STATUS=OK            23 CALLS      277 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.594        28.201        .17647E-04   -1.4800    
   2  Index         2.5295        1.6897        .43350E-03   -.51679    
   3  Normalizat    .96626        .24808        .57665E-04   -.94170    
   4  Prefactor     .90326        .17104        .42774E-04   -.96027    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.93941e-09
Minuit parameter uncertainties:
  1  28.2192
  2  1.73541
  3  0.248376
  4  0.171146
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/278220': 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) = 6657.72671426
delta logL = 0.004093178115

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  2.059e+01  2.822e+01  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  2.530e+00  1.735e+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:  9.033e-01  1.711e-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.663e-01  2.484e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.15
Ra Dec: 214.029 13.347
Photon Index (Free Index): 2.53 +/- 1.74
Photon Flux (Free Index): 3.40e-08 +/- 7.56e-08
Energy Flux (Free Index): 9.57e-06 +/- 1.10e-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/278220/cmap_HighResolution_319939201_320198401_4FGL_J1416.1+1320_daily_bin311.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.41e-03', comment='SUCCESS', photon_flux='2.80e-08', energy_flux2='9.57e-06', photon_flux_error='3.38e-08', dlogl='4.09e-03', energy_flux='9.52e-06', photon_flux2='3.40e-08', job_status='DONE', time_completed='2021-09-09 06:19:36.435373', photon_index_error2='1.74', photon_index2='2.53', ts='1.12', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='1.09e-07', energy_flux_error2='1.10e-05', EG='0.97', time_epoch_completed='1631193576.44', return_code='0', job_id='278220', GAL2='0.90', EG2='0.97', return_code2='0', energy_flux_error='1.15e-05', photon_flux_error2='7.56e-08', ts2='1.15', photon_index='2.37' WHERE bin_id='311' AND source_name='4FGL J1416.1+1320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 06:19:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 278220: <4FGL_J1416.1+1320_daily_bin311> in cluster <slac> Done

Job <4FGL_J1416.1+1320_daily_bin311> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  9 06:06:40 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 06:06:42 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:42 2021
Terminated at Thu Sep  9 06:19:37 2021
Results reported at Thu Sep  9 06:19:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_daily_bin311 214.029 13.347 319939201 320198401 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 :                                   574.14 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             315.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   774 sec.
    Turnaround time :                            777 sec.

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

