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


Performing analysis on: 4FGL_J1416.1+1320_daily_bin162
RA = 214.029, Dec = 13.347
tmin = 281318401, tmax = 281577601
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='276769', job_status='RUN', time_executed='2021-09-09 06:05:00.926378', time_epoch_executed='1631192700.93' WHERE source_name='4FGL J1416.1+1320' and cadence='daily' and bin_id='162'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/276769

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/276769/ft1_4FGL_J1416.1+1320_daily_bin162.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/276769/ft2_4FGL_J1416.1+1320_daily_bin162.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/276769/ft1_4FGL_J1416.1+1320_daily_bin162.fits outfile=/scratch/kocevski/276769/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin162.fits ra=214.029 dec=13.347 rad=12.0 tmin=281318401.0 tmax=281577601.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 5.50
user 3.26
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/276769/ft1_filtered_4FGL_J1416.1+1320_daily_bin162.fits evtable="EVENTS" scfile=/scratch/kocevski/276769/ft2_4FGL_J1416.1+1320_daily_bin162.fits sctable="SC_DATA" expcube=/scratch/kocevski/276769/ltcube_281318401_281577601_4FGL_J1416.1+1320_daily_bin162.fits outfile=/scratch/kocevski/276769/expmap_281318401_281577601_4FGL_J1416.1+1320_daily_bin162.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/276769/ltcube_281318401_281577601_4FGL_J1416.1+1320_daily_bin162.fits
.....................!
real 192.85
user 185.98
sys 4.58

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/276769/ft1_filtered_4FGL_J1416.1+1320_daily_bin162.fits scfile=/scratch/kocevski/276769/ft2_4FGL_J1416.1+1320_daily_bin162.fits outfile=/scratch/kocevski/276769/cmap_281318401_281577601_4FGL_J1416.1+1320_daily_bin162.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.79
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/276769/ft1_filtered_4FGL_J1416.1+1320_daily_bin162.fits scfile=/scratch/kocevski/276769/ft2_4FGL_J1416.1+1320_daily_bin162.fits outfile=/scratch/kocevski/276769/cmap_HighResolution_281318401_281577601_4FGL_J1416.1+1320_daily_bin162.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.59
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.800       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .33991E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.6820       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.893       1.0000         .10000E-03   10000.    
     6 'Prefactor '    28.169       1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.748       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10925E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .76220       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.3137       1.0000         .10000E-03   10000.    
    11 'norm      '    5.4943       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.8808       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    31.882       1.0000         .10000E-03   10000.    
    15 'norm      '    .27142E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.516       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.2938       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4295       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .70144       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=   6020.939     FROM MIGRAD    STATUS=CONVERGED    465 CALLS     2376 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.801        28.939        .70396E-08   -.89114E-05
   2  Prefactor     .10064E-03    2.1310        .85802E-06** at limit **
   3  Prefactor     1.6803        4.5707        .92954E-06   -.81830E-04
   4  Prefactor     .10000E-03    5.1145        .16876E-07** at limit **
   5  Prefactor     16.892        11.133        .65231E-07   -.20344E-05
   6  Prefactor     28.171        25.254        .51695E-06    .52305E-04
   7  Prefactor     16.748        16.339       -.14361E-06   -.16804E-04
   8  Prefactor     .10000E-03    40.721       -.20538E-06** at limit **
   9  norm          .74949        12.512        .15392E-05   -.22649E-03
  10  Prefactor     4.3134        7.3623       -.56609E-06   -.46624E-04
  11  norm          5.4942        2.5962        .22944E-09   -.82333E-05
  12  Prefactor     9.8793        8.1217        .18793E-05   -.11034E-03
  13  norm          .10000E-03    1.2249       -.38559E-07** at limit **
  14  Prefactor     31.864        26.002       -.29157E-05   -.47663E-03
  15  norm          .10000E-03    19.007       -.21478E-05** at limit **
  16  Prefactor     10.516        21.750       -.15716E-06   -.13525E-05
  17  Prefactor     .10000E-03    13.201       -.42851E-06** at limit **
  18  Prefactor     7.2931        11.503        .99196E-07   -.73293E-05
  19  Prefactor     .10000E-03    7.4341       -.95816E-08** at limit **
  20  Prefactor     .10000E-03    11.700        .30797E-06** at limit **
  21  Normalizat    1.4296        .21154       -.65696E-06   -.14292E-03
  22  Prefactor     .70145        .15245       -.26748E-07   -.18889E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.8005
  Prefactor  = 0.000100636
  Prefactor  = 1.68025
  Prefactor  = 0.0001
  Prefactor  = 16.8919
  Prefactor  = 28.1712
  Prefactor  = 16.7476
  Prefactor  = 0.0001
  norm       = 0.749488
  Prefactor  = 4.31343
  norm       = 5.49421
  Prefactor  = 9.87926
  norm       = 0.0001
  Prefactor  = 31.8638
  norm       = 0.000100001
  Prefactor  = 10.5161
  Prefactor  = 0.0001
  Prefactor  = 7.29306
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.42962
  Prefactor  = 0.701448
 **********
 **   18 **HESSE 
 **********

 FCN=   6020.939     FROM HESSE     STATUS=OK           356 CALLS     2732 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.801        28.935        .85786E-04   -1.4774    
   2  Prefactor     .10064E-03    3.2690        .39530E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.6803        4.5827        .26387E-03   -1.5449    
   4  Prefactor     .10000E-03    5.1327        .17137E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.892        11.162        .97445E-04   -1.4886    
   6  Prefactor     28.171        25.277        .75485E-04   -1.4646    
   7  Prefactor     16.748        16.344        .97867E-04   -1.4889    
   8  Prefactor     .10000E-03    41.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .74949        61.538        .52270E-02   -1.5535    
  10  Prefactor     4.3134        7.3418        .19396E-03   -1.5293    
  11  norm          5.4942        2.5965        .83636E-04   -1.5239    
  12  Prefactor     9.8793        8.5047        .63739E-03   -1.5079    
  13  norm          .10000E-03    1.2413        .83831E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     31.864        27.822        .70963E-04   -1.4578    
  15  norm          .10000E-03    18.852        .21431E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.516        21.742        .12356E-03   -1.5059    
  17  Prefactor     .10000E-03    13.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.2931        11.497        .14852E-03   -1.5168    
  19  Prefactor     .10000E-03    7.4405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.4296        .25553        .24514E-03   -.79776    
  22  Prefactor     .70145        .18306        .24591E-03   -1.0347    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.52011e-09
Minuit parameter uncertainties:
  1  28.9538
  2  0.00288486
  3  4.58364
  4  2.45524e-07
  5  11.163
  6  25.2866
  7  16.3484
  8  3.41958e-05
  9  13.5962
  10  7.34331
  11  2.59658
  12  8.5057
  13  3.27084e-06
  14  27.8337
  15  0.000196463
  16  21.7586
  17  4.44985e-05
  18  11.5003
  19  1.79912e-06
  20  3.96765e-05
  21  0.255757
  22  0.183218
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  1.675e+01  1.635e+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.014e-01  1.832e-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.430e+00  2.558e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.82
Ra Dec: 214.029 13.347
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 2.19e-08 +/- 2.13e-08
Energy Flux (Fixed Index): 7.44e-06 +/- 7.26e-06

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) = 6018.51272224
delta logL = 2.42618053785

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6018.28784424
delta logL = 2.65105853596

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.5951       1.0000         .10000E-03   10000.    
     2 'Index     '    .85951       1.0000          .0000       10.000    
     3 'Normalizat'    1.4444       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69805       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=   6018.288     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      226 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5743        6.0775        .42460E-02   -.45290E-02
   2  Index         .85768        .36091        .20880       -.52234E-04
   3  Normalizat    1.4450        .20500        .55182E-01   -.15896E-04
   4  Prefactor     .69767        .15057        .42375E-01   -.49261E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.57426
  Index      = 0.857678
  Normalizat = 1.44498
  Prefactor  = 0.697669
 **********
 **   18 **HESSE 
 **********

 FCN=   6018.288     FROM HESSE     STATUS=OK            33 CALLS      259 TOTAL
                     EDM=   .88E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5743        10.163        .84919E-03   -1.5236    
   2  Index         .85768        .61782        .89738E-02   -.97636    
   3  Normalizat    1.4450        .24594        .24400E-03   -.79336    
   4  Prefactor     .69767        .18062        .24648E-03   -1.0362    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.84576e-11
Minuit parameter uncertainties:
  1  10.1659
  2  0.622946
  3  0.246142
  4  0.180776
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/276769': 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) = 6018.28783707
delta logL = 2.65106570724

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  5.574e+00  1.017e+01  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  8.577e-01  6.229e-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:  6.977e-01  1.808e-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.445e+00  2.461e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.11
Ra Dec: 214.029 13.347
Photon Index (Free Index): 0.86 +/- 0.62
Photon Flux (Free Index): 4.27e-09 +/- 4.59e-09
Energy Flux (Free Index): 8.51e-05 +/- 1.13e-04

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/276769/cmap_HighResolution_281318401_281577601_4FGL_J1416.1+1320_daily_bin162.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.19e-08', energy_flux2='8.51e-05', photon_flux_error='2.13e-08', dlogl='2.65e+00', energy_flux='7.44e-06', photon_flux2='4.27e-09', job_status='DONE', time_completed='2021-09-09 06:13:48.427676', photon_index_error2='0.62', photon_index2='0.86', ts='6.82', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', energy_flux_error2='1.13e-04', EG='1.43', time_epoch_completed='1631193228.43', return_code='0', job_id='276769', GAL2='0.70', EG2='1.44', return_code2='0', energy_flux_error='7.26e-06', photon_flux_error2='4.59e-09', ts2='12.11', photon_index='2.37' WHERE bin_id='162' AND source_name='4FGL J1416.1+1320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 06:13:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 276769: <4FGL_J1416.1+1320_daily_bin162> in cluster <slac> Done

Job <4FGL_J1416.1+1320_daily_bin162> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  9 06:02:21 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 06:02:23 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:02:23 2021
Terminated at Thu Sep  9 06:13:49 2021
Results reported at Thu Sep  9 06:13:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_daily_bin162 214.029 13.347 281318401 281577601 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 :                                   514.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   685 sec.
    Turnaround time :                            688 sec.

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

