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


Performing analysis on: 4FGL_J1416.1+1320_daily_bin157
RA = 214.029, Dec = 13.347
tmin = 280022401, tmax = 280281601
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='276761', job_status='RUN', time_executed='2021-09-09 06:03:54.082243', time_epoch_executed='1631192634.08' WHERE source_name='4FGL J1416.1+1320' and cadence='daily' and bin_id='157'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/276761

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/276761/ft1_4FGL_J1416.1+1320_daily_bin157.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/276761/ft2_4FGL_J1416.1+1320_daily_bin157.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/276761/ft1_4FGL_J1416.1+1320_daily_bin157.fits outfile=/scratch/kocevski/276761/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin157.fits ra=214.029 dec=13.347 rad=12.0 tmin=280022401.0 tmax=280281601.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.57
user 3.31
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/276761/ft1_filtered_4FGL_J1416.1+1320_daily_bin157.fits" evtable="EVENTS" scfile=/scratch/kocevski/276761/ft2_4FGL_J1416.1+1320_daily_bin157.fits sctable="SC_DATA" outfile=/scratch/kocevski/276761/ltcube_280022401_280281601_4FGL_J1416.1+1320_daily_bin157.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/276761/ft2_4FGL_J1416.1+1320_daily_bin157.fits
.....................!
real 13.83
user 11.25
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/276761/ft1_filtered_4FGL_J1416.1+1320_daily_bin157.fits evtable="EVENTS" scfile=/scratch/kocevski/276761/ft2_4FGL_J1416.1+1320_daily_bin157.fits sctable="SC_DATA" expcube=/scratch/kocevski/276761/ltcube_280022401_280281601_4FGL_J1416.1+1320_daily_bin157.fits outfile=/scratch/kocevski/276761/expmap_280022401_280281601_4FGL_J1416.1+1320_daily_bin157.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/276761/ltcube_280022401_280281601_4FGL_J1416.1+1320_daily_bin157.fits
.....................!
real 192.87
user 185.13
sys 4.53

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/276761/ft1_filtered_4FGL_J1416.1+1320_daily_bin157.fits scfile=/scratch/kocevski/276761/ft2_4FGL_J1416.1+1320_daily_bin157.fits outfile=/scratch/kocevski/276761/cmap_280022401_280281601_4FGL_J1416.1+1320_daily_bin157.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.64
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/276761/ft1_filtered_4FGL_J1416.1+1320_daily_bin157.fits scfile=/scratch/kocevski/276761/ft2_4FGL_J1416.1+1320_daily_bin157.fits outfile=/scratch/kocevski/276761/cmap_HighResolution_280022401_280281601_4FGL_J1416.1+1320_daily_bin157.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.60
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    72.387       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10919E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .32703E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.1451       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.5091       1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.927       1.0000         .10000E-03   10000.    
     7 'Prefactor '    28.862       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.3598       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .18870       1.0000         .10000E-03   10000.    
    11 'norm      '    3.7286       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    25.576       1.0000         .10000E-03   10000.    
    15 'norm      '    .10783E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    45.641       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0873       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .98011       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=   6096.489     FROM MIGRAD    STATUS=CONVERGED    473 CALLS     2348 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     72.378        58.494       -.93044E-05    .60548E-04
   2  Prefactor     .10001E-03    2.3957       -.72559E-06** at limit **
   3  Prefactor     .10011E-03    3.3076       -.54271E-06** at limit **
   4  Prefactor     5.1438        6.8127       -.51434E-06   -.53067E-03
   5  Prefactor     7.5064        11.658       -.95800E-06   -.52811E-04
   6  Prefactor     24.924        32.989       -.48337E-05    .22028E-04
   7  Prefactor     28.860        24.248       -.32291E-05    .72074E-04
   8  Prefactor     .10000E-03    13.322       -.39706E-05** at limit **
   9  norm          5.3587        17.324       -.11089E-05   -.25486E-04
  10  Prefactor     .19520        5.0771       -.11384E-05   -.72401E-04
  11  norm          3.7283        2.5865       -.95212E-07   -.24299E-04
  12  Prefactor     .10000E-03    2.4400        .98472E-06** at limit **
  13  norm          .10000E-03    1.7671       -.40460E-06** at limit **
  14  Prefactor     25.569        36.162       -.10384E-04   -.32869E-04
  15  norm          .10000E-03    11.425        .40712E-05** at limit **
  16  Prefactor     .10000E-03    15.319       -.44493E-05** at limit **
  17  Prefactor     .10000E-03    20.354        .79907E-05** at limit **
  18  Prefactor     .10000E-03    7.1098        .90710E-06** at limit **
  19  Prefactor     45.640        27.836       -.12150E-05    .29836E-04
  20  Prefactor     .10000E-03    18.714        .46176E-05** at limit **
  21  Normalizat    1.0874        .21614        .28397E-05    .22186E-03
  22  Prefactor     .98014        .15488        .62476E-06    .36265E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 72.3785
  Prefactor  = 0.000100011
  Prefactor  = 0.000100114
  Prefactor  = 5.14377
  Prefactor  = 7.50643
  Prefactor  = 24.924
  Prefactor  = 28.8599
  Prefactor  = 0.0001
  norm       = 5.35868
  Prefactor  = 0.195203
  norm       = 3.72835
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 25.5689
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.6399
  Prefactor  = 0.0001
  Normalizat = 1.08741
  Prefactor  = 0.980141
 **********
 **   18 **HESSE 
 **********

 FCN=   6096.489     FROM HESSE     STATUS=OK           342 CALLS     2690 TOTAL
                     EDM=   .50E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     72.378        58.122        .47186E-04   -1.4004    
   2  Prefactor     .10001E-03    10.151        .22975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10011E-03    31.900        .26928E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.1438        6.8471        .88619E-03   -1.5254    
   5  Prefactor     7.5064        11.663        .14635E-03   -1.5160    
   6  Prefactor     24.924        32.982        .80233E-04   -1.4709    
   7  Prefactor     28.860        24.156        .74574E-04   -1.4633    
   8  Prefactor     .10000E-03    13.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.3587        17.337        .17359E-03   -1.5245    
  10  Prefactor     .19520        30.608        .33609E-02   -1.5620    
  11  norm          3.7283        2.5871        .10147E-03   -1.5322    
  12  Prefactor     .10000E-03    2.4469        .11902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.8422        .20266E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     25.569        36.322        .79211E-04   -1.4696    
  15  norm          .10000E-03    11.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    20.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.1181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     45.640        27.819        .59347E-04   -1.4356    
  20  Prefactor     .10000E-03    18.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0874        .26367        .28191E-03   -.90157    
  22  Prefactor     .98014        .19206        .21556E-03   -.93394    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.04553e-08
Minuit parameter uncertainties:
  1  58.1678
  2  0.000657953
  3  0.00380879
  4  6.84818
  5  11.667
  6  33.0059
  7  24.1645
  8  8.47648e-06
  9  17.3528
  10  4.88993
  11  2.58713
  12  1.50587e-06
  13  7.95729e-06
  14  36.3533
  15  0.000106862
  16  9.9443e-06
  17  1.52549e-05
  18  6.75484e-06
  19  27.8264
  20  7.39199e-06
  21  0.263988
  22  0.192198
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  2.886e+01  2.416e+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:  9.801e-01  1.922e-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.087e+00  2.640e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.56
Ra Dec: 214.029 13.347
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 3.77e-08 +/- 3.16e-08
Energy Flux (Fixed Index): 1.28e-05 +/- 1.07e-05

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) = 6096.32708635
delta logL = 0.161849554079

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6096.32521911
delta logL = 0.163716796123

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.111       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9612       1.0000          .0000       10.000    
     3 'Normalizat'    1.1044       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97335       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=   6096.325     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      283 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.112        27.421        .71834E-04   -.53521E-03
   2  Index         1.9612        .68282        .99975E-02   -.18424E-03
   3  Normalizat    1.1043        .25959        .27997E-03    .90636E-04
   4  Prefactor     .97339        .18999        .21622E-03    .11531E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.1123
  Index      = 1.96119
  Normalizat = 1.10431
  Prefactor  = 0.973392
 **********
 **   18 **HESSE 
 **********

 FCN=   6096.325     FROM HESSE     STATUS=OK            23 CALLS      306 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.112        27.532        .14367E-04   -1.4592    
   2  Index         1.9612        .68547        .39990E-03   -.65324    
   3  Normalizat    1.1043        .25992        .11199E-04   -.89613    
   4  Prefactor     .97339        .19025        .86486E-05   -.93622    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00685e-09
Minuit parameter uncertainties:
  1  27.5429
  2  0.688924
  3  0.260221
  4  0.190379
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/276761': 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) = 6096.32521908
delta logL = 0.163716823215

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  3.111e+01  2.754e+01  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  1.961e+00  6.889e-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:  9.734e-01  1.904e-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.104e+00  2.602e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.88
Ra Dec: 214.029 13.347
Photon Index (Free Index): 1.96 +/- 0.69
Photon Flux (Free Index): 2.36e-08 +/- 3.00e-08
Energy Flux (Free Index): 1.80e-05 +/- 2.19e-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/276761/cmap_HighResolution_280022401_280281601_4FGL_J1416.1+1320_daily_bin157.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.77e-08', energy_flux2='1.80e-05', photon_flux_error='3.16e-08', dlogl='1.64e-01', energy_flux='1.28e-05', photon_flux2='2.36e-08', job_status='DONE', time_completed='2021-09-09 06:12:40.746583', photon_index_error2='0.69', photon_index2='1.96', ts='4.56', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='2.19e-05', EG='1.09', time_epoch_completed='1631193160.75', return_code='0', job_id='276761', GAL2='0.97', EG2='1.10', return_code2='0', energy_flux_error='1.07e-05', photon_flux_error2='3.00e-08', ts2='4.88', photon_index='2.37' WHERE bin_id='157' AND source_name='4FGL J1416.1+1320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 06:12:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 276761: <4FGL_J1416.1+1320_daily_bin157> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_daily_bin157 214.029 13.347 280022401 280281601 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 :                                   505.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             329.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   620 sec.
    Turnaround time :                            621 sec.

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

