/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 126 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 = 7446
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1317.6+3428_daily_bin3
RA = 199.401, Dec = 34.4676
tmin = 240105601, tmax = 240364801
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='441855', job_status='RUN', time_executed='2021-09-07 10:04:39.419220', time_epoch_executed='1631034279.42' WHERE source_name='4FGL J1317.6+3428' and cadence='daily' and bin_id='3'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/441855

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/441855/ft1_4FGL_J1317.6+3428_daily_bin3.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/441855/ft2_4FGL_J1317.6+3428_daily_bin3.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/441855/ft1_4FGL_J1317.6+3428_daily_bin3.fits outfile=/scratch/kocevski/441855/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin3.fits ra=199.401 dec=34.4676 rad=12.0 tmin=240105601.0 tmax=240364801.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 1.48
user 1.27
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/441855/ft2_4FGL_J1317.6+3428_daily_bin3.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/441855/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin3.fits evtable="EVENTS" outfile="/scratch/kocevski/441855/ft1_filtered_4FGL_J1317.6+3428_daily_bin3.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.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/441855/ft1_filtered_4FGL_J1317.6+3428_daily_bin3.fits" evtable="EVENTS" scfile=/scratch/kocevski/441855/ft2_4FGL_J1317.6+3428_daily_bin3.fits sctable="SC_DATA" outfile=/scratch/kocevski/441855/ltcube_240105601_240364801_4FGL_J1317.6+3428_daily_bin3.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/441855/ft2_4FGL_J1317.6+3428_daily_bin3.fits
.....................!
real 16.15
user 15.72
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/441855/ft1_filtered_4FGL_J1317.6+3428_daily_bin3.fits evtable="EVENTS" scfile=/scratch/kocevski/441855/ft2_4FGL_J1317.6+3428_daily_bin3.fits sctable="SC_DATA" expcube=/scratch/kocevski/441855/ltcube_240105601_240364801_4FGL_J1317.6+3428_daily_bin3.fits outfile=/scratch/kocevski/441855/expmap_240105601_240364801_4FGL_J1317.6+3428_daily_bin3.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/441855/ltcube_240105601_240364801_4FGL_J1317.6+3428_daily_bin3.fits
.....................!
real 193.95
user 189.03
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 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/441855/ft1_filtered_4FGL_J1317.6+3428_daily_bin3.fits scfile=/scratch/kocevski/441855/ft2_4FGL_J1317.6+3428_daily_bin3.fits outfile=/scratch/kocevski/441855/cmap_240105601_240364801_4FGL_J1317.6+3428_daily_bin3.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/441855/ft1_filtered_4FGL_J1317.6+3428_daily_bin3.fits scfile=/scratch/kocevski/441855/ft2_4FGL_J1317.6+3428_daily_bin3.fits outfile=/scratch/kocevski/441855/cmap_HighResolution_240105601_240364801_4FGL_J1317.6+3428_daily_bin3.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.56
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/441855/ft1_filtered_4FGL_J1317.6+3428_daily_bin3.fits', '/scratch/kocevski/441855/ft2_4FGL_J1317.6+3428_daily_bin3.fits', expMap='/scratch/kocevski/441855/expmap_240105601_240364801_4FGL_J1317.6+3428_daily_bin3.fits', expCube='/scratch/kocevski/441855/ltcube_240105601_240364801_4FGL_J1317.6+3428_daily_bin3.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/441855/Model_4FGL_J1317.6+3428_daily_bin3.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/441855/ft1_filtered_4FGL_J1317.6+3428_daily_bin3.fits
Spacecraft file(s): /scratch/kocevski/441855/ft2_4FGL_J1317.6+3428_daily_bin3.fits
Exposure map: /scratch/kocevski/441855/expmap_240105601_240364801_4FGL_J1317.6+3428_daily_bin3.fits
Exposure cube: /scratch/kocevski/441855/ltcube_240105601_240364801_4FGL_J1317.6+3428_daily_bin3.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/441855/Model_4FGL_J1317.6+3428_daily_bin3.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) = 4678.75773154

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .18814E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    29.026       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10699E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .24649E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12709E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    1.7868       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10724E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.1762       1.0000         .10000E-03   10000.    
    12 'norm      '    .10234E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    14.384       1.0000         .10000E-03   10000.    
    14 'norm      '    .75971E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.6814       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.3706       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.0785       1.0000         .10000E-03   10000.    
    18 'Prefactor '    33.565       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10305E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10854E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.7016       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.6671       1.0000         .10000E-03   10000.    
    24 'norm      '    12.056       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .89078       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1931       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4678.749     FROM MIGRAD    STATUS=CONVERGED   1157 CALLS     3796 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.5746        .14272E-02** at limit **
   2  Prefactor     .10000E-03    18.928        .36285E-03** at limit **
   3  Prefactor     29.030        24.031        .74364E-04   -.10518E-04
   4  Prefactor     .10000E-03    43.584        .18142E-02** at limit **
   5  Prefactor     .10000E-03    5.2105        .15166E-02** at limit **
   6  norm          .10000E-03    6.8290        .23370E-02** at limit **
   7  Prefactor     .10000E-03    21.326        .18142E-02** at limit **
   8  Prefactor     .10001E-03    25.849        .97947E-01** at limit **
   9  norm          1.7869        2.4146        .12104E-03    .16624E-04
  10  Prefactor     .10000E-03    10.767        .18142E-02** at limit **
  11  norm          5.1768        6.2751        .17669E-03    .53403E-04
  12  norm          .10000E-03    9.1779        .18142E-02** at limit **
  13  norm          14.391        5.5826        .92175E-04    .98288E-03
  14  norm          .10015E-03    58.308        .39679E-02** at limit **
  15  norm          8.6837        15.961        .13604E-03    .35098E-05
  16  Prefactor     9.3609        5.8553        .10493E-03    .44853E-04
  17  Prefactor     4.1299        22.300        .19964E-03    .90488E-04
  18  Prefactor     33.642        65.447        .69166E-04    .13149E-04
  19  Prefactor     .10000E-03    7.4709        .18142E-02** at limit **
  20  Prefactor     .10000E-03    36.281        .18142E-02** at limit **
  21  Prefactor     .10000E-03    65.133        .18142E-02** at limit **
  22  norm          1.7018        1.6525        .84722E-04    .81989E-04
  23  Prefactor     5.6683        4.5102        .12372E-03    .41167E-04
  24  norm          12.061        13.690        .11537E-03   -.22664E-05
  25  Prefactor     .10000E-03    7.4580        .18142E-02** at limit **
  26  Normalizat    .89085        .23671        .24554E-03   -.75239E-04
  27  Prefactor     1.1929        .29194        .27152E-03    .73023E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.0305
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  norm       = 1.78686
  Prefactor  = 0.0001
  norm       = 5.17684
  norm       = 0.0001
  norm       = 14.3905
  norm       = 0.000100152
  norm       = 8.68373
  Prefactor  = 9.36091
  Prefactor  = 4.12988
  Prefactor  = 33.6423
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.70185
  Prefactor  = 5.66831
  norm       = 12.061
  Prefactor  = 0.0001
  Normalizat = 0.890847
  Prefactor  = 1.19286
 **********
 **   18 **HESSE 
 **********

 FCN=   4678.749     FROM HESSE     STATUS=OK           470 CALLS     4266 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.5748        .28545E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.929        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     29.030        24.030        .14873E-04   -1.4630    
   4  Prefactor     .10000E-03    43.588        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.2118        .30331E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    6.8622        .46741E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    21.326        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    25.459        .99063E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.7869        2.4146        .48418E-05   -1.5441    
  10  Prefactor     .10000E-03    10.768        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.1768        6.2746        .70678E-05   -1.5253    
  12  norm          .10000E-03    9.1784        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          14.391        5.5356        .18435E-04   -1.4949    
  14  norm          .10015E-03    58.616        .79358E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.6837        15.962        .54418E-05   -1.5119    
  16  Prefactor     9.3609        5.8531        .41974E-05   -1.5096    
  17  Prefactor     4.1299        22.272        .79855E-05   -1.5301    
  18  Prefactor     33.642        65.476        .27666E-05   -1.4547    
  19  Prefactor     .10000E-03    7.4717        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    36.294        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    65.137        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.7018        1.6525        .33889E-05   -1.5447    
  23  Prefactor     5.6683        4.5101        .49488E-05   -1.5232    
  24  norm          12.061        13.691        .46148E-05   -1.5013    
  25  Prefactor     .10000E-03    7.4581        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .89085        .23699        .98215E-05   -.96783    
  27  Prefactor     1.1929        .29229        .10861E-04   -.86551    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.00873e-09
Minuit parameter uncertainties:
  1  1.63169e-06
  2  6.842e-06
  3  24.0382
  4  2.45537e-05
  5  1.84013e-06
  6  0.000100683
  7  7.3539e-06
  8  0.00115053
  9  2.4147
  10  1.44279e-05
  11  6.27544
  12  5.51617e-06
  13  5.53578
  14  0.00597918
  15  15.97
  16  5.85351
  17  19.192
  18  65.6165
  19  5.95925e-06
  20  7.60057e-06
  21  2.17759e-05
  22  1.65258
  23  4.51041
  24  13.6949
  25  1.50084e-06
  26  0.237265
  27  0.292686
Done.

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

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  9.361e+00  5.854e+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.193e+00  2.927e-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:  8.908e-01  2.373e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.73
Ra Dec: 199.401 34.468
Photon Index (Fixed Index): 2.53 +/- 0.00
Photon Flux (Fixed Index): 1.01e-07 +/- 6.28e-08
Energy Flux (Fixed Index): 2.81e-05 +/- 1.76e-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) = 4678.74879236
delta logL = 8.72402033565e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4678.74875438
delta logL = 0.000125228075376

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.3982       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5250       1.0000          .0000       10.000    
     3 'Normalizat'    .89194       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1920       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=   4678.749     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      225 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.4004        92.319        .32682E-02    .10674E-03
   2  Index         2.5253        6.2623        .16261        .68196E-04
   3  Normalizat    .89185        .11181        .44798E-01    .10897E-04
   4  Prefactor     1.1920        .97372E-01    .61410E-01    .47919E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.40039
  Index      = 2.52535
  Normalizat = 0.891855
  Prefactor  = 1.19204
 **********
 **   18 **HESSE 
 **********

 FCN=   4678.749     FROM HESSE     STATUS=OK            33 CALLS      258 TOTAL
                     EDM=   .23E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.4004        5.7075        .10553E-03   -1.5095    
   2  Index         2.5253        .57641        .56274E-02   -.51775    
   3  Normalizat    .89185        .24139        .24542E-03   -.96747    
   4  Prefactor     1.1920        .29492        .27160E-03   -.86577    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33832e-12
Minuit parameter uncertainties:
  1  5.70788
  2  0.57811
  3  0.241683
  4  0.29533
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/441855': 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) = 4678.74875372
delta logL = 0.000125883056171

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  9.400e+00  5.708e+00  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  2.525e+00  5.781e-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.192e+00  2.953e-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:  8.919e-01  2.417e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.83
Ra Dec: 199.401 34.468
Photon Index (Free Index): 2.53 +/- 0.58
Photon Flux (Free Index): 9.97e-08 +/- 7.23e-08
Energy Flux (Free Index): 2.82e-05 +/- 1.54e-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/441855/cmap_HighResolution_240105601_240364801_4FGL_J1317.6+3428_daily_bin3.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.01e-07', energy_flux2='2.82e-05', photon_flux_error='6.28e-08', dlogl='1.26e-04', energy_flux='2.81e-05', photon_flux2='9.97e-08', job_status='DONE', time_completed='2021-09-07 10:14:47.966325', photon_index_error2='0.58', photon_index2='2.53', ts='10.73', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', energy_flux_error2='1.54e-05', EG='0.89', time_epoch_completed='1631034887.97', return_code='0', job_id='441855', GAL2='1.19', EG2='0.89', return_code2='0', energy_flux_error='1.76e-05', photon_flux_error2='7.23e-08', ts2='10.83', photon_index='2.53' WHERE bin_id='3' AND source_name='4FGL J1317.6+3428' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 10:14:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 441855: <4FGL_J1317.6+3428_daily_bin3> in cluster <slac> Done

Job <4FGL_J1317.6+3428_daily_bin3> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep  7 10:00:55 2021
Job was executed on host(s) <bullet0080>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 10:02:23 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:02:23 2021
Terminated at Tue Sep  7 10:14:48 2021
Results reported at Tue Sep  7 10:14:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1317.6+3428_daily_bin3 199.401 34.4676 240105601 240364801 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 :                                   609.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   745 sec.
    Turnaround time :                            833 sec.

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

