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


Performing analysis on: 4FGL_J1416.1+1320_daily_bin825
RA = 214.029, Dec = 13.347
tmin = 453168001, tmax = 453427201
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='282404', job_status='RUN', time_executed='2021-09-09 06:19:27.844578', time_epoch_executed='1631193567.84' WHERE source_name='4FGL J1416.1+1320' and cadence='daily' and bin_id='825'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/282404

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/282404/ft1_4FGL_J1416.1+1320_daily_bin825.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/282404/ft2_4FGL_J1416.1+1320_daily_bin825.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/282404/ft1_4FGL_J1416.1+1320_daily_bin825.fits outfile=/scratch/kocevski/282404/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin825.fits ra=214.029 dec=13.347 rad=12.0 tmin=453168001.0 tmax=453427201.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.10
user 3.41
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/282404/ft1_filtered_4FGL_J1416.1+1320_daily_bin825.fits evtable="EVENTS" scfile=/scratch/kocevski/282404/ft2_4FGL_J1416.1+1320_daily_bin825.fits sctable="SC_DATA" expcube=/scratch/kocevski/282404/ltcube_453168001_453427201_4FGL_J1416.1+1320_daily_bin825.fits outfile=/scratch/kocevski/282404/expmap_453168001_453427201_4FGL_J1416.1+1320_daily_bin825.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/282404/ltcube_453168001_453427201_4FGL_J1416.1+1320_daily_bin825.fits
.....................!
real 195.84
user 185.14
sys 4.74

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/282404/ft1_filtered_4FGL_J1416.1+1320_daily_bin825.fits scfile=/scratch/kocevski/282404/ft2_4FGL_J1416.1+1320_daily_bin825.fits outfile=/scratch/kocevski/282404/cmap_453168001_453427201_4FGL_J1416.1+1320_daily_bin825.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 2.11
user 0.38
sys 0.18

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    52.864       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.8572       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.3007       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.3235       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .39155       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    31.499       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.325       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.7155       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.7749       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 '    .11548E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    39.075       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    59.320       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0318       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0915       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=   6624.650     FROM MIGRAD    STATUS=CONVERGED    507 CALLS     2419 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     52.813        64.876       -.23253E-06   -.37416E-04
   2  Prefactor     2.8467        5.3038        .90261E-06   -.16173E-04
   3  Prefactor     1.2995        3.3816        .50698E-06    .38747E-05
   4  Prefactor     7.3278        12.353       -.15141E-06   -.52522E-04
   5  Prefactor     .81327E-01    9.4308        .13585E-05   -.26317E-03
   6  Prefactor     .10000E-03    16.285        .38084E-06** at limit **
   7  Prefactor     31.485        26.210       -.27031E-07   -.29543E-04
   8  Prefactor     11.290        23.718        .42695E-06   -.82512E-05
   9  norm          .10000E-03    9.8257        .10931E-06** at limit **
  10  Prefactor     .10000E-03    1.8650        .41360E-07** at limit **
  11  norm          5.7149        2.7427       -.14833E-08   -.27625E-04
  12  Prefactor     .10000E-03    2.4264        .94397E-07** at limit **
  13  norm          1.7728        2.8360        .42228E-06    .28627E-04
  14  Prefactor     .10000E-03    9.9231       -.32566E-07** at limit **
  15  norm          .10000E-03    6.2161       -.40368E-07** at limit **
  16  Prefactor     .10000E-03    74.318       -.55705E-05** at limit **
  17  Prefactor     39.027        30.639        .25817E-06   -.31455E-04
  18  Prefactor     .10000E-03    14.408       -.15152E-05** at limit **
  19  Prefactor     59.242        38.064       -.34116E-07   -.53838E-05
  20  Prefactor     .10000E-03    26.493       -.85221E-06** at limit **
  21  Normalizat    1.0334        .22740       -.10902E-05   -.15997E-03
  22  Prefactor     1.0908        .15785       -.51226E-06   -.18026E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 52.8129
  Prefactor  = 2.84672
  Prefactor  = 1.29948
  Prefactor  = 7.32778
  Prefactor  = 0.0813266
  Prefactor  = 0.0001
  Prefactor  = 31.4845
  Prefactor  = 11.2899
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.71495
  Prefactor  = 0.0001
  norm       = 1.77275
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.0271
  Prefactor  = 0.0001
  Prefactor  = 59.2422
  Prefactor  = 0.0001
  Normalizat = 1.03345
  Prefactor  = 1.09081
 **********
 **   18 **HESSE 
 **********

 FCN=   6624.650     FROM HESSE     STATUS=OK           350 CALLS     2769 TOTAL
                     EDM=   .75E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     52.813        64.982        .55164E-04   -1.4253    
   2  Prefactor     2.8467        5.3363        .23878E-03   -1.5371    
   3  Prefactor     1.2995        3.3277        .23309E-03   -1.5480    
   4  Prefactor     7.3278        12.348        .14821E-03   -1.5167    
   5  Prefactor     .81327E-01    19.549        .66521E-01   -1.5651    
   6  Prefactor     .10000E-03    16.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     31.485        26.235        .71393E-04   -1.4585    
   8  Prefactor     11.290        23.799        .11905E-03   -1.5036    
   9  norm          .10000E-03    9.8338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.8675        .10856E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.7149        2.7434        .90885E-04   -1.5230    
  12  Prefactor     .10000E-03    2.4462        .12385E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.7728        2.8332        .16689E-03   -1.5442    
  14  Prefactor     .10000E-03    9.9276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    6.2226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    73.060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     39.027        30.769        .64121E-04   -1.4458    
  18  Prefactor     .10000E-03    14.343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     59.242        38.058        .52092E-04   -1.4167    
  20  Prefactor     .10000E-03    26.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0334        .27894        .30662E-03   -.91918    
  22  Prefactor     1.0908        .19066        .21881E-03   -.89761    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.50378e-11
Minuit parameter uncertainties:
  1  65.0691
  2  5.33723
  3  3.3282
  4  12.3519
  5  2.52105
  6  9.336e-06
  7  26.2445
  8  23.8191
  9  6.92591e-06
  10  1.2253e-06
  11  2.74344
  12  2.65676e-06
  13  2.83346
  14  1.0092e-06
  15  3.65322e-06
  16  0.000158068
  17  30.7818
  18  3.10302e-05
  19  38.0737
  20  1.97028e-05
  21  0.279334
  22  0.190784
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  3.148e+01  2.624e+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.091e+00  1.908e-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.033e+00  2.793e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.13
Ra Dec: 214.029 13.347
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 4.11e-08 +/- 3.43e-08
Energy Flux (Fixed Index): 1.40e-05 +/- 1.17e-05

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

Saving results to:
/scratch/kocevski/282404/likelihoodResults_453168001_453427201_4FGL_J1416.1+1320_daily_bin825.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) = 6624.43236659
delta logL = 0.217379664299

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6624.39019032
delta logL = 0.259555932487

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    40.137       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9010       1.0000          .0000       10.000    
     3 'Normalizat'    1.0558       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0783       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=   6624.390     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      240 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.133        32.519        .63269E-04    .30187E-04
   2  Index         1.9010        .57071        .98233E-02    .23863E-04
   3  Normalizat    1.0558        .25606        .30368E-03    .31651E-03
   4  Prefactor     1.0784        .18801        .21984E-03    .40118E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.1329
  Index      = 1.90102
  Normalizat = 1.05576
  Prefactor  = 1.0784
 **********
 **   18 **HESSE 
 **********

 FCN=   6624.390     FROM HESSE     STATUS=OK            25 CALLS      265 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.133        32.477        .12654E-04   -1.4440    
   2  Index         1.9010        .56997        .39293E-03   -.66848    
   3  Normalizat    1.0558        .25626        .60735E-04   -.91185    
   4  Prefactor     1.0784        .18817        .43967E-04   -.90160    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54374e-10
Minuit parameter uncertainties:
  1  32.4915
  2  0.571996
  3  0.256559
  4  0.188282
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/282404': 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) = 6624.39019014
delta logL = 0.259556111691

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  4.013e+01  3.249e+01  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  1.901e+00  5.720e-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.078e+00  1.883e-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.056e+00  2.566e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.65
Ra Dec: 214.029 13.347
Photon Index (Free Index): 1.90 +/- 0.57
Photon Flux (Free Index): 2.84e-08 +/- 2.87e-08
Energy Flux (Free Index): 2.54e-05 +/- 3.21e-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/282404/cmap_HighResolution_453168001_453427201_4FGL_J1416.1+1320_daily_bin825.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.55e-03', comment='SUCCESS', photon_flux='4.11e-08', energy_flux2='2.54e-05', photon_flux_error='3.43e-08', dlogl='2.60e-01', energy_flux='1.40e-05', photon_flux2='2.84e-08', job_status='DONE', time_completed='2021-09-09 06:29:43.259881', photon_index_error2='0.57', photon_index2='1.90', ts='3.13', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='1.24e-07', energy_flux_error2='3.21e-05', EG='1.03', time_epoch_completed='1631194183.26', return_code='0', job_id='282404', GAL2='1.08', EG2='1.06', return_code2='0', energy_flux_error='1.17e-05', photon_flux_error2='2.87e-08', ts2='3.65', photon_index='2.37' WHERE bin_id='825' AND source_name='4FGL J1416.1+1320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 06:29:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 282404: <4FGL_J1416.1+1320_daily_bin825> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_daily_bin825 214.029 13.347 453168001 453427201 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 :                                   575.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             265.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   741 sec.
    Turnaround time :                            744 sec.

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

