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


Performing analysis on: 4FGL_J1317.6+3428_daily_bin1043
RA = 199.401, Dec = 34.4676
tmin = 509673601, tmax = 509932801
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='447679', job_status='RUN', time_executed='2021-09-07 10:24:07.332149', time_epoch_executed='1631035447.33' WHERE source_name='4FGL J1317.6+3428' and cadence='daily' and bin_id='1043'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/447679

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/447679/ft1_4FGL_J1317.6+3428_daily_bin1043.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/447679/ft2_4FGL_J1317.6+3428_daily_bin1043.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/447679/ft1_4FGL_J1317.6+3428_daily_bin1043.fits outfile=/scratch/kocevski/447679/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin1043.fits ra=199.401 dec=34.4676 rad=12.0 tmin=509673601.0 tmax=509932801.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.58
user 3.35
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/447679/ft2_4FGL_J1317.6+3428_daily_bin1043.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/447679/ft2_4FGL_J1317.6+3428_daily_bin1043.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/447679/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin1043.fits evtable="EVENTS" outfile="/scratch/kocevski/447679/ft1_filtered_4FGL_J1317.6+3428_daily_bin1043.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.52
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/447679/ft1_filtered_4FGL_J1317.6+3428_daily_bin1043.fits" evtable="EVENTS" scfile=/scratch/kocevski/447679/ft2_4FGL_J1317.6+3428_daily_bin1043.fits sctable="SC_DATA" outfile=/scratch/kocevski/447679/ltcube_509673601_509932801_4FGL_J1317.6+3428_daily_bin1043.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/447679/ft2_4FGL_J1317.6+3428_daily_bin1043.fits
.....................!
real 15.63
user 15.26
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/447679/ft1_filtered_4FGL_J1317.6+3428_daily_bin1043.fits evtable="EVENTS" scfile=/scratch/kocevski/447679/ft2_4FGL_J1317.6+3428_daily_bin1043.fits sctable="SC_DATA" expcube=/scratch/kocevski/447679/ltcube_509673601_509932801_4FGL_J1317.6+3428_daily_bin1043.fits outfile=/scratch/kocevski/447679/expmap_509673601_509932801_4FGL_J1317.6+3428_daily_bin1043.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/447679/ltcube_509673601_509932801_4FGL_J1317.6+3428_daily_bin1043.fits
.....................!
real 192.47
user 186.75
sys 4.93

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 179 point sources and 0 extended sources

Setting source of interest to:
4FGL J1317.6+3428 @ 199.401 34.4676

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/447679/ft1_filtered_4FGL_J1317.6+3428_daily_bin1043.fits scfile=/scratch/kocevski/447679/ft2_4FGL_J1317.6+3428_daily_bin1043.fits outfile=/scratch/kocevski/447679/cmap_509673601_509932801_4FGL_J1317.6+3428_daily_bin1043.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=199.401 yref=34.4676 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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/447679/ft1_filtered_4FGL_J1317.6+3428_daily_bin1043.fits scfile=/scratch/kocevski/447679/ft2_4FGL_J1317.6+3428_daily_bin1043.fits outfile=/scratch/kocevski/447679/cmap_HighResolution_509673601_509932801_4FGL_J1317.6+3428_daily_bin1043.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=199.401 yref=34.4676 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.57
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/447679/ft1_filtered_4FGL_J1317.6+3428_daily_bin1043.fits evtable="EVENTS" scfile=/scratch/kocevski/447679/ft2_4FGL_J1317.6+3428_daily_bin1043.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/447679/Model_4FGL_J1317.6+3428_daily_bin1043.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/447679/ft1_filtered_4FGL_J1317.6+3428_daily_bin1043.fits.....................!
real 48.70
user 46.65
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/447679/ft1_filtered_4FGL_J1317.6+3428_daily_bin1043.fits', '/scratch/kocevski/447679/ft2_4FGL_J1317.6+3428_daily_bin1043.fits', expMap='/scratch/kocevski/447679/expmap_509673601_509932801_4FGL_J1317.6+3428_daily_bin1043.fits', expCube='/scratch/kocevski/447679/ltcube_509673601_509932801_4FGL_J1317.6+3428_daily_bin1043.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/447679/Model_4FGL_J1317.6+3428_daily_bin1043.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1317.6+3428'

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.307e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  2.534e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
321        Scale:  7.492e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/447679/ft1_filtered_4FGL_J1317.6+3428_daily_bin1043.fits
Spacecraft file(s): /scratch/kocevski/447679/ft2_4FGL_J1317.6+3428_daily_bin1043.fits
Exposure map: /scratch/kocevski/447679/expmap_509673601_509932801_4FGL_J1317.6+3428_daily_bin1043.fits
Exposure cube: /scratch/kocevski/447679/ltcube_509673601_509932801_4FGL_J1317.6+3428_daily_bin1043.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/447679/Model_4FGL_J1317.6+3428_daily_bin1043.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) = 5796.57543447

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3465       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .15082E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.1646       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.7134       1.0000         .10000E-03   10000.    
     9 'norm      '    3.0431       1.0000         .10000E-03   10000.    
    10 'Prefactor '    27.736       1.0000         .10000E-03   10000.    
    11 'norm      '    1.7235       1.0000         .10000E-03   10000.    
    12 'norm      '    11.801       1.0000         .10000E-03   10000.    
    13 'norm      '    3.5366       1.0000         .10000E-03   10000.    
    14 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    64.278       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.2881       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11646E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    11.940       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10843E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10681E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .62023       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.3915       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5796.557     FROM MIGRAD    STATUS=CONVERGED    660 CALLS     3342 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3459        6.6404        .18704E-06    .20913E-05
   2  Prefactor     .10000E-03    4.9337       -.22787E-07** at limit **
   3  Prefactor     .10000E-03    16.109       -.14593E-06** at limit **
   4  Prefactor     .10000E-03    155.94       -.78171E-06** at limit **
   5  Prefactor     .10000E-03    2.8390       -.14344E-06** at limit **
   6  norm          2.1568        4.4281        .70026E-06    .50396E-03
   7  Prefactor     .10000E-03    37.321        .91535E-08** at limit **
   8  Prefactor     3.7172        37.862       -.13178E-05    .10008E-04
   9  norm          3.0423        3.7317        .44207E-07   -.74708E-05
  10  Prefactor     27.736        21.920       -.23181E-05   -.14626E-03
  11  norm          1.7241        5.8579        .63384E-05   -.52839E-03
  12  norm          11.803        11.289        .24789E-07    .33818E-05
  13  norm          3.5359        3.5821       -.13423E-06   -.32868E-03
  14  norm          .10000E-03    7.4047       -.37476E-06** at limit **
  15  norm          64.278        32.671        .15153E-07   -.15935E-04
  16  Prefactor     9.2876        4.1519       -.48144E-06   -.10928E-02
  17  Prefactor     .10000E-03    6.3977        .48222E-07** at limit **
  18  Prefactor     .10035E-03    164.54       -.12052E-04** at limit **
  19  Prefactor     .10000E-03    6.2642       -.24323E-07** at limit **
  20  Prefactor     .10000E-03    17.325       -.42396E-07** at limit **
  21  Prefactor     .10001E-03    157.54        .22942E-05** at limit **
  22  norm          11.941        2.7353        .26226E-07    .26307E-03
  23  Prefactor     .10000E-03    1.8188       -.16660E-07** at limit **
  24  norm          .10000E-03    17.194        .23078E-06** at limit **
  25  Prefactor     .10000E-03    18.528       -.22698E-06** at limit **
  26  Normalizat    .61998        .17194        .48474E-06   -.11745E-03
  27  Prefactor     1.3917        .21356       -.62351E-06   -.44472E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.34591
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 2.1568
  Prefactor  = 0.0001
  Prefactor  = 3.71715
  norm       = 3.04229
  Prefactor  = 27.7364
  norm       = 1.72412
  norm       = 11.803
  norm       = 3.53586
  norm       = 0.0001
  norm       = 64.2783
  Prefactor  = 9.28755
  Prefactor  = 0.0001
  Prefactor  = 0.000100351
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100014
  norm       = 11.9409
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.619984
  Prefactor  = 1.39168
 **********
 **   18 **HESSE 
 **********

 FCN=   5796.557     FROM HESSE     STATUS=OK           484 CALLS     3826 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3459        6.6132        .26762E-03   -1.5402    
   2  Prefactor     .10000E-03    4.9546        .16516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    157.47        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.8471        .12523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.1568        4.3707        .20794E-03   -1.5414    
   7  Prefactor     .10000E-03    37.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.7172        36.688        .20956E-03   -1.5322    
   9  norm          3.0423        3.7209        .15636E-03   -1.5359    
  10  Prefactor     27.736        22.005        .76070E-04   -1.4654    
  11  norm          1.7241        5.9496        .14924E-02   -1.5445    
  12  norm          11.803        11.289        .11661E-03   -1.5021    
  13  norm          3.5359        3.5161        .13243E-03   -1.5332    
  14  norm          .10000E-03    7.4668        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          64.278        32.663        .50054E-04   -1.4103    
  16  Prefactor     9.2876        4.1613        .95089E-04   -1.5098    
  17  Prefactor     .10000E-03    6.4232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10035E-03    181.99        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.2904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    17.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    162.44        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          11.941        2.7377        .58093E-04   -1.5017    
  23  Prefactor     .10000E-03    3.2363        .19896E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    17.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    18.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .61998        .20735        .28089E-03   -1.0714    
  27  Prefactor     1.3917        .25867        .24911E-03   -.80620    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.98995e-09
Minuit parameter uncertainties:
  1  6.61527
  2  2.91691e-06
  3  6.11292e-05
  4  0.000750461
  5  1.9805e-05
  6  4.37137
  7  9.3161e-06
  8  23.3744
  9  3.72118
  10  22.0115
  11  5.95161
  12  11.2913
  13  3.51632
  14  8.50018e-05
  15  32.6721
  16  4.16138
  17  5.70078e-05
  18  0.0160406
  19  4.48903e-05
  20  3.1562e-05
  21  0.00304192
  22  2.7377
  23  5.17363e-07
  24  0.00011999
  25  0.000150085
  26  0.20761
  27  0.258912
Done.

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

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  9.288e+00  4.161e+00  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  2.534e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
321        Scale:  7.492e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  1.392e+00  2.589e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  6.200e-01  2.076e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.31
Ra Dec: 199.401 34.468
Photon Index (Fixed Index): 2.53 +/- 0.00
Photon Flux (Fixed Index): 9.97e-08 +/- 4.47e-08
Energy Flux (Fixed Index): 2.79e-05 +/- 1.25e-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) = 5796.48383991
delta logL = 0.0731864849549

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5796.47715081
delta logL = 0.0798755773676

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5796.477     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      265 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.9150        48.947        .35628E-02    .16619E-03
   2  Index         2.7502        3.2747        .12558        .12577E-03
   3  Normalizat    .59720        .99494E-01    .64567E-01    .33871E-04
   4  Prefactor     1.4121        .91114E-01    .55991E-01   -.26121E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.91496
  Index      = 2.7502
  Normalizat = 0.597203
  Prefactor  = 1.41213
 **********
 **   18 **HESSE 
 **********

 FCN=   5796.477     FROM HESSE     STATUS=OK            33 CALLS      298 TOTAL
                     EDM=   .82E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.9150        5.3377        .83186E-04   -1.5145    
   2  Index         2.7502        .58897        .48421E-02   -.46672    
   3  Normalizat    .59720        .20952        .28571E-03   -1.0810    
   4  Prefactor     1.4121        .26063        .24756E-03   -.80031    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.18334e-12
Minuit parameter uncertainties:
  1  5.33801
  2  0.590693
  3  0.209798
  4  0.260874
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/447679': 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) = 5796.47715016
delta logL = 0.0798762347449

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  7.915e+00  5.338e+00  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  2.750e+00  5.907e-01  0.000e+00  1.000e+01 (-1.000e+00)
321        Scale:  7.492e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  1.412e+00  2.609e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  5.972e-01  2.098e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.57
Ra Dec: 199.401 34.468
Photon Index (Free Index): 2.75 +/- 0.59
Photon Flux (Free Index): 1.15e-07 +/- 5.99e-08
Energy Flux (Free Index): 2.67e-05 +/- 1.14e-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/447679/cmap_HighResolution_509673601_509932801_4FGL_J1317.6+3428_daily_bin1043.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.97e-08', energy_flux2='2.67e-05', photon_flux_error='4.47e-08', dlogl='7.99e-02', energy_flux='2.79e-05', photon_flux2='1.15e-07', job_status='DONE', time_completed='2021-09-07 10:35:07.116325', photon_index_error2='0.59', photon_index2='2.75', ts='13.31', fit_tolerance='1e-08', GAL='1.39', photon_index_error='0.00', energy_flux_error2='1.14e-05', EG='0.62', time_epoch_completed='1631036107.12', return_code='0', job_id='447679', GAL2='1.41', EG2='0.60', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='5.99e-08', ts2='13.57', photon_index='2.53' WHERE bin_id='1043' AND source_name='4FGL J1317.6+3428' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 10:35:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 447679: <4FGL_J1317.6+3428_daily_bin1043> in cluster <slac> Done

Job <4FGL_J1317.6+3428_daily_bin1043> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 10:21:16 2021
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 10:22:13 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 10:22:13 2021
Terminated at Tue Sep  7 10:35:07 2021
Results reported at Tue Sep  7 10:35:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1317.6+3428_daily_bin1043 199.401 34.4676 509673601 509932801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1317.6+3428 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   658.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   774 sec.
    Turnaround time :                            831 sec.

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

