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


Performing analysis on: 4FGL_J1416.1+1320_daily_bin227
RA = 214.029, Dec = 13.347
tmin = 298166401, tmax = 298425601
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='278103', job_status='RUN', time_executed='2021-09-09 06:10:09.659124', time_epoch_executed='1631193009.66' WHERE source_name='4FGL J1416.1+1320' and cadence='daily' and bin_id='227'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/278103

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/278103/ft1_4FGL_J1416.1+1320_daily_bin227.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/278103/ft2_4FGL_J1416.1+1320_daily_bin227.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/278103/ft1_4FGL_J1416.1+1320_daily_bin227.fits outfile=/scratch/kocevski/278103/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin227.fits ra=214.029 dec=13.347 rad=12.0 tmin=298166401.0 tmax=298425601.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.07
user 3.36
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/278103/ft1_filtered_4FGL_J1416.1+1320_daily_bin227.fits evtable="EVENTS" scfile=/scratch/kocevski/278103/ft2_4FGL_J1416.1+1320_daily_bin227.fits sctable="SC_DATA" expcube=/scratch/kocevski/278103/ltcube_298166401_298425601_4FGL_J1416.1+1320_daily_bin227.fits outfile=/scratch/kocevski/278103/expmap_298166401_298425601_4FGL_J1416.1+1320_daily_bin227.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/278103/ltcube_298166401_298425601_4FGL_J1416.1+1320_daily_bin227.fits
.....................!
real 191.08
user 185.43
sys 5.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/278103/ft1_filtered_4FGL_J1416.1+1320_daily_bin227.fits scfile=/scratch/kocevski/278103/ft2_4FGL_J1416.1+1320_daily_bin227.fits outfile=/scratch/kocevski/278103/cmap_298166401_298425601_4FGL_J1416.1+1320_daily_bin227.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.97
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/278103/ft1_filtered_4FGL_J1416.1+1320_daily_bin227.fits scfile=/scratch/kocevski/278103/ft2_4FGL_J1416.1+1320_daily_bin227.fits outfile=/scratch/kocevski/278103/cmap_HighResolution_298166401_298425601_4FGL_J1416.1+1320_daily_bin227.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.31
user 0.41
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.791       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.4568       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.6556       1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.197       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10384E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    33.032       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    34.858       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.4275       1.0000         .10000E-03   10000.    
    11 'norm      '    10.117       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    36.768       1.0000         .10000E-03   10000.    
    15 'norm      '    .10785E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.040       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .44595E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.328       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.8976       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1253       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .83224       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=   7031.349     FROM MIGRAD    STATUS=CONVERGED    482 CALLS     2387 TOTAL
                     EDM=   .31E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.790        31.478       -.22348E-05   -.74637E-05
   2  Prefactor     9.4571        4.9433        .19806E-06   -.21223E-03
   3  Prefactor     .10000E-03    1.4075       -.16233E-06** at limit **
   4  Prefactor     5.6563        15.441        .20306E-05   -.55570E-04
   5  Prefactor     17.197        12.512       -.54976E-06   -.23663E-04
   6  Prefactor     .10000E-03    59.366       -.11501E-05** at limit **
   7  Prefactor     33.028        32.504       -.21014E-05    .60599E-06
   8  Prefactor     .10000E-03    31.542        .67203E-06** at limit **
   9  norm          34.866        24.004       -.18664E-05   -.11059E-06
  10  Prefactor     5.4270        5.0372       -.20188E-06   -.79015E-04
  11  norm          10.117        3.3921        .45050E-07    .22202E-04
  12  Prefactor     .10000E-03    4.4136        .16405E-06** at limit **
  13  norm          .10000E-03    .66060        .23094E-07** at limit **
  14  Prefactor     36.773        32.094       -.26004E-06    .52886E-05
  15  norm          .10000E-03    26.057       -.10709E-06** at limit **
  16  Prefactor     15.040        18.792       -.50470E-05    .50522E-05
  17  Prefactor     .10000E-03    5.6354        .10609E-06** at limit **
  18  Prefactor     .10000E-03    9.1748       -.12974E-05** at limit **
  19  Prefactor     16.299        23.241        .82125E-05    .48112E-04
  20  Prefactor     8.8853        29.475        .47526E-05    .21637E-05
  21  Normalizat    1.1253        .19323        .17029E-06    .91344E-04
  22  Prefactor     .83230        .13695        .47919E-06    .11399E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.7898
  Prefactor  = 9.4571
  Prefactor  = 0.0001
  Prefactor  = 5.65627
  Prefactor  = 17.1973
  Prefactor  = 0.0001
  Prefactor  = 33.0279
  Prefactor  = 0.0001
  norm       = 34.8659
  Prefactor  = 5.42704
  norm       = 10.1174
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 36.7733
  norm       = 0.0001
  Prefactor  = 15.0401
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.2987
  Prefactor  = 8.88534
  Normalizat = 1.12527
  Prefactor  = 0.832302
 **********
 **   18 **HESSE 
 **********

 FCN=   7031.349     FROM HESSE     STATUS=OK           358 CALLS     2745 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.790        31.494        .12196E-03   -1.5051    
   2  Prefactor     9.4571        4.9453        .12777E-03   -1.5093    
   3  Prefactor     .10000E-03    1.4123        .97143E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.6563        15.385        .16891E-03   -1.5232    
   5  Prefactor     17.197        12.590        .96581E-04   -1.4878    
   6  Prefactor     .10000E-03    61.516        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     33.028        32.625        .69721E-04   -1.4558    
   8  Prefactor     .10000E-03    32.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          34.866        24.022        .67875E-04   -1.4526    
  10  Prefactor     5.4270        5.0353        .17248E-03   -1.5242    
  11  norm          10.117        3.3929        .86730E-04   -1.5072    
  12  Prefactor     .10000E-03    4.5231        .34376E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .66758        .66544E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     36.773        32.042        .66095E-04   -1.4494    
  15  norm          .10000E-03    26.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     15.040        18.805        .10328E-03   -1.4932    
  17  Prefactor     .10000E-03    5.6403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.807        .76975E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.299        23.308        .99118E-04   -1.4900    
  20  Prefactor     8.8853        29.422        .13437E-03   -1.5112    
  21  Normalizat    1.1253        .23344        .26979E-03   -.88944    
  22  Prefactor     .83230        .16467        .22404E-03   -.98548    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.24203e-11
Minuit parameter uncertainties:
  1  31.5426
  2  4.94551
  3  1.38283e-06
  4  15.3961
  5  12.5919
  6  5.04522e-06
  7  32.6425
  8  3.94264e-05
  9  24.0289
  10  5.03566
  11  3.393
  12  2.22995e-06
  13  1.38696e-07
  14  32.0566
  15  7.44495e-06
  16  18.8126
  17  1.57413e-06
  18  0.000142045
  19  23.3205
  20  29.47
  21  0.233652
  22  0.164765
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  3.303e+01  3.264e+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.323e-01  1.648e-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.125e+00  2.337e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.46
Ra Dec: 214.029 13.347
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 4.32e-08 +/- 4.26e-08
Energy Flux (Fixed Index): 1.47e-05 +/- 1.45e-05

TS (Fixed Index): 1.46
Ra Dec: 214.029 13.347
Photon Flux Upper Limit: 1.31e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.01e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/278103/likelihoodResults_298166401_298425601_4FGL_J1416.1+1320_daily_bin227.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) = 7029.57768046
delta logL = 1.77147114622

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7029.48209927
delta logL = 1.86705234319

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .35865E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    6.6237       1.0000          .0000       10.000    
     3 'Normalizat'    .99993       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90563       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7029.482     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      321 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .35432E-01    .26614        .18048E-02    .76489E-03
   2  Index         6.6302        2.3023        .97936E-01    .12478E-03
   3  Normalizat    1.0002        .56651E-01    .46166E-01   -.54999E-04
   4  Prefactor     .90551        .41316E-01    .45077E-01    .27453E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0354319
  Index      = 6.63024
  Normalizat = 1.00015
  Prefactor  = 0.905508
 **********
 **   18 **HESSE 
 **********

 FCN=   7029.482     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      354 TOTAL
                     EDM=   .31E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .35432E-01    .49830        .81076E-05   -1.5670    
   2  Index         6.6302        3.2965        .39967E-02    .33212    
   3  Normalizat    1.0002        .19851        .28341E-03   -.93025    
   4  Prefactor     .90551        .14204        .21574E-03   -.95949    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.07164e-07
Minuit parameter uncertainties:
  1  0.265376
  2  3.64798
  3  0.19866
  4  0.142101
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/278103': 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): 102
logL (Free Index) = 7029.48209324
delta logL = 1.86705837043

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  3.543e-02  2.654e-01  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  6.630e+00  3.648e+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.055e-01  1.421e-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.000e+00  1.987e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.56
Ra Dec: 214.029 13.347
Photon Index (Free Index): 6.63 +/- 3.65
Photon Flux (Free Index): 1.26e-07 +/- 6.75e-08
Energy Flux (Free Index): 1.53e-05 +/- 9.00e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/278103/cmap_HighResolution_298166401_298425601_4FGL_J1416.1+1320_daily_bin227.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', comment='SUCCESS', photon_flux='4.32e-08', energy_flux2='1.53e-05', photon_flux_error='4.26e-08', dlogl='1.87e+00', energy_flux='1.47e-05', photon_flux2='1.26e-07', job_status='DONE', time_completed='2021-09-09 06:20:51.199341', photon_index_error2='3.65', photon_index2='6.63', ts='1.46', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='1.31e-07', energy_flux_error2='9.00e-06', EG='1.13', time_epoch_completed='1631193651.2', return_code='0', job_id='278103', GAL2='0.91', EG2='1.00', return_code2='102', energy_flux_error='1.45e-05', photon_flux_error2='6.75e-08', ts2='5.56', photon_index='2.37' WHERE bin_id='227' AND source_name='4FGL J1416.1+1320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 06:20:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 278103: <4FGL_J1416.1+1320_daily_bin227> in cluster <slac> Done

Job <4FGL_J1416.1+1320_daily_bin227> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  9 06:06:31 2021
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 06:06:33 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:33 2021
Terminated at Thu Sep  9 06:20:53 2021
Results reported at Thu Sep  9 06:20:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_daily_bin227 214.029 13.347 298166401 298425601 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 :                                   602.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             281.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   859 sec.
    Turnaround time :                            862 sec.

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

