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


Performing analysis on: 4FGL_J1416.1+1320_daily_bin274
RA = 214.029, Dec = 13.347
tmin = 310348801, tmax = 310608001
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='278169', job_status='RUN', time_executed='2021-09-09 06:07:52.068403', time_epoch_executed='1631192872.07' WHERE source_name='4FGL J1416.1+1320' and cadence='daily' and bin_id='274'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/278169

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/278169/ft1_4FGL_J1416.1+1320_daily_bin274.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/278169/ft2_4FGL_J1416.1+1320_daily_bin274.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/278169/ft1_4FGL_J1416.1+1320_daily_bin274.fits outfile=/scratch/kocevski/278169/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin274.fits ra=214.029 dec=13.347 rad=12.0 tmin=310348801.0 tmax=310608001.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 3.56
user 3.25
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/278169/ft1_filtered_4FGL_J1416.1+1320_daily_bin274.fits" evtable="EVENTS" scfile=/scratch/kocevski/278169/ft2_4FGL_J1416.1+1320_daily_bin274.fits sctable="SC_DATA" outfile=/scratch/kocevski/278169/ltcube_310348801_310608001_4FGL_J1416.1+1320_daily_bin274.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/278169/ft2_4FGL_J1416.1+1320_daily_bin274.fits
.....................!
real 12.49
user 11.91
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/278169/ft1_filtered_4FGL_J1416.1+1320_daily_bin274.fits evtable="EVENTS" scfile=/scratch/kocevski/278169/ft2_4FGL_J1416.1+1320_daily_bin274.fits sctable="SC_DATA" expcube=/scratch/kocevski/278169/ltcube_310348801_310608001_4FGL_J1416.1+1320_daily_bin274.fits outfile=/scratch/kocevski/278169/expmap_310348801_310608001_4FGL_J1416.1+1320_daily_bin274.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/278169/ltcube_310348801_310608001_4FGL_J1416.1+1320_daily_bin274.fits
.....................!
real 193.22
user 187.11
sys 4.45

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/278169/ft1_filtered_4FGL_J1416.1+1320_daily_bin274.fits scfile=/scratch/kocevski/278169/ft2_4FGL_J1416.1+1320_daily_bin274.fits outfile=/scratch/kocevski/278169/cmap_310348801_310608001_4FGL_J1416.1+1320_daily_bin274.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.65
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/278169/ft1_filtered_4FGL_J1416.1+1320_daily_bin274.fits scfile=/scratch/kocevski/278169/ft2_4FGL_J1416.1+1320_daily_bin274.fits outfile=/scratch/kocevski/278169/cmap_HighResolution_310348801_310608001_4FGL_J1416.1+1320_daily_bin274.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.75
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    200.98       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.3394       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.3649       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.162       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    42.668       1.0000         .10000E-03   10000.    
     8 'Prefactor '    37.341       1.0000         .10000E-03   10000.    
     9 'norm      '    15.434       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    8.9321       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.1144       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10328E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.4981       1.0000         .10000E-03   10000.    
    16 'Prefactor '    26.402       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3609       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .77788       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=   6697.153     FROM MIGRAD    STATUS=CONVERGED    467 CALLS     2349 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     200.98        79.332       -.22465E-05   -.14177E-04
   2  Prefactor     1.3391        4.1265        .24109E-06   -.12992E-03
   3  Prefactor     4.3649        4.0669        .32135E-07   -.11067E-04
   4  Prefactor     .10000E-03    4.8690        .10814E-05** at limit **
   5  Prefactor     12.162        9.6059        .49917E-07   -.18072E-05
   6  Prefactor     .10000E-03    9.0634        .43330E-06** at limit **
   7  Prefactor     42.668        31.411        .18328E-07    .13853E-05
   8  Prefactor     37.341        28.621       -.30516E-07    .38716E-05
   9  norm          15.434        21.428        .23001E-07    .11672E-05
  10  Prefactor     .10000E-03    3.7209        .89573E-07** at limit **
  11  norm          8.9320        3.3275        .64005E-08    .11702E-04
  12  Prefactor     .10000E-03    4.7525       -.76296E-06** at limit **
  13  norm          1.1146        2.7932       -.67005E-07   -.16210E-03
  14  Prefactor     .10000E-03    41.763       -.50937E-05** at limit **
  15  norm          1.4961        5.1620        .83552E-06   -.47823E-03
  16  Prefactor     26.403        26.205        .80327E-06   -.58762E-04
  17  Prefactor     .10000E-03    7.5919       -.85692E-06** at limit **
  18  Prefactor     .10000E-03    5.6204       -.34685E-07** at limit **
  19  Prefactor     .10000E-03    26.659        .13275E-04** at limit **
  20  Prefactor     .10000E-03    23.552       -.95771E-05** at limit **
  21  Normalizat    1.3610        .21491        .26798E-06   -.39510E-04
  22  Prefactor     .77787        .14858       -.43694E-06   -.12008E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 200.977
  Prefactor  = 1.33912
  Prefactor  = 4.36492
  Prefactor  = 0.0001
  Prefactor  = 12.1623
  Prefactor  = 0.0001
  Prefactor  = 42.6678
  Prefactor  = 37.3407
  norm       = 15.4338
  Prefactor  = 0.0001
  norm       = 8.93203
  Prefactor  = 0.0001
  norm       = 1.11463
  Prefactor  = 0.0001
  norm       = 1.4961
  Prefactor  = 26.4029
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.36095
  Prefactor  = 0.777875
 **********
 **   18 **HESSE 
 **********

 FCN=   6697.153     FROM HESSE     STATUS=OK           344 CALLS     2693 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     200.98        79.494        .28503E-04   -1.2863    
   2  Prefactor     1.3391        4.1305        .27868E-03   -1.5477    
   3  Prefactor     4.3649        4.0649        .15403E-03   -1.5290    
   4  Prefactor     .10000E-03    4.8806        .17640E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.162        9.6230        .11486E-03   -1.5010    
   6  Prefactor     .10000E-03    9.0732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     42.668        31.444        .61372E-04   -1.4401    
   8  Prefactor     37.341        28.701        .65588E-04   -1.4485    
   9  norm          15.434        21.434        .10195E-03   -1.4922    
  10  Prefactor     .10000E-03    3.7494        .15412E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          8.9320        3.3284        .88532E-04   -1.5110    
  12  Prefactor     .10000E-03    4.8129        .17408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.1146        2.7653        .20609E-03   -1.5497    
  14  Prefactor     .10000E-03    42.140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.4961        40.253        .17497E-02   -1.5463    
  16  Prefactor     26.403        26.175        .77963E-04   -1.4680    
  17  Prefactor     .10000E-03    7.6015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.6281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    26.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    23.684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3610        .26174        .26808E-03   -.81765    
  22  Prefactor     .77787        .18125        .24162E-03   -1.0055    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.71021e-09
Minuit parameter uncertainties:
  1  79.5367
  2  4.13133
  3  4.06512
  4  5.33029e-06
  5  9.62423
  6  2.20645e-06
  7  31.4564
  8  28.7117
  9  21.4444
  10  8.92111e-07
  11  3.32851
  12  1.89194e-06
  13  2.76566
  14  4.80689e-06
  15  15.5317
  16  26.1863
  17  3.00211e-06
  18  2.23939e-06
  19  6.74311e-06
  20  7.1701e-05
  21  0.261992
  22  0.181384
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  4.267e+01  3.146e+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:  7.779e-01  1.814e-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.361e+00  2.620e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.92
Ra Dec: 214.029 13.347
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 5.58e-08 +/- 4.11e-08
Energy Flux (Fixed Index): 1.89e-05 +/- 1.40e-05

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

Saving results to:
/scratch/kocevski/278169/likelihoodResults_310348801_310608001_4FGL_J1416.1+1320_daily_bin274.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) = 6696.80477054
delta logL = 0.348434255083

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6696.80409262
delta logL = 0.349112176018

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    56.004       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9620       1.0000          .0000       10.000    
     3 'Normalizat'    1.3851       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76358       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=   6696.804     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      263 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     55.892        1304.9        .13401E-02    .18070E-04
   2  Index         1.9604        5.7162        .20192        .22341E-04
   3  Normalizat    1.3850        .24565        .60159E-01   -.18494E-05
   4  Prefactor     .76377        .17277        .43241E-01    .14538E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 55.8921
  Index      = 1.96035
  Normalizat = 1.38501
  Prefactor  = 0.763773
 **********
 **   18 **HESSE 
 **********

 FCN=   6696.804     FROM HESSE     STATUS=OK            31 CALLS      294 TOTAL
                     EDM=   .61E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     55.892        38.757        .53603E-04   -1.4211    
   2  Index         1.9604        .44931        .75620E-02   -.65345    
   3  Normalizat    1.3850        .25373        .26606E-03   -.81063    
   4  Prefactor     .76377        .17907        .24348E-03   -1.0108    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.09551e-12
Minuit parameter uncertainties:
  1  38.7746
  2  0.450271
  3  0.253958
  4  0.179204
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/278169': 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) = 6696.80408001
delta logL = 0.34912478263

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  5.589e+01  3.877e+01  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  1.960e+00  4.503e-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:  7.638e-01  1.792e-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.385e+00  2.540e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.61
Ra Dec: 214.029 13.347
Photon Index (Free Index): 1.96 +/- 0.45
Photon Flux (Free Index): 4.23e-08 +/- 3.47e-08
Energy Flux (Free Index): 3.23e-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/278169/cmap_HighResolution_310348801_310608001_4FGL_J1416.1+1320_daily_bin274.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.11e-02', comment='SUCCESS', photon_flux='5.58e-08', energy_flux2='3.23e-05', photon_flux_error='4.11e-08', dlogl='3.49e-01', energy_flux='1.89e-05', photon_flux2='4.23e-08', job_status='DONE', time_completed='2021-09-09 06:17:44.662034', photon_index_error2='0.45', photon_index2='1.96', ts='2.92', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', photon_flux_upper_limit='1.44e-07', energy_flux_error2='3.21e-05', EG='1.36', time_epoch_completed='1631193464.66', return_code='0', job_id='278169', GAL2='0.76', EG2='1.39', return_code2='0', energy_flux_error='1.40e-05', photon_flux_error2='3.47e-08', ts2='3.61', photon_index='2.37' WHERE bin_id='274' AND source_name='4FGL J1416.1+1320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 06:17:44 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_daily_bin274 214.029 13.347 310348801 310608001 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 :                                   578.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             313.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   667 sec.
    Turnaround time :                            670 sec.

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

