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


Performing analysis on: 4FGL_J1317.6+3428_daily_bin88
RA = 199.401, Dec = 34.4676
tmin = 262137601, tmax = 262396801
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='442975', job_status='RUN', time_executed='2021-09-07 10:08:36.857862', time_epoch_executed='1631034516.86' WHERE source_name='4FGL J1317.6+3428' and cadence='daily' and bin_id='88'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/442975

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/442975/ft1_4FGL_J1317.6+3428_daily_bin88.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/442975/ft2_4FGL_J1317.6+3428_daily_bin88.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/442975/ft1_4FGL_J1317.6+3428_daily_bin88.fits outfile=/scratch/kocevski/442975/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin88.fits ra=199.401 dec=34.4676 rad=12.0 tmin=262137601.0 tmax=262396801.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.43
user 1.24
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/442975/ft1_filtered_4FGL_J1317.6+3428_daily_bin88.fits" evtable="EVENTS" scfile=/scratch/kocevski/442975/ft2_4FGL_J1317.6+3428_daily_bin88.fits sctable="SC_DATA" outfile=/scratch/kocevski/442975/ltcube_262137601_262396801_4FGL_J1317.6+3428_daily_bin88.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/442975/ft2_4FGL_J1317.6+3428_daily_bin88.fits
.....................!
real 15.06
user 14.63
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/442975/ft1_filtered_4FGL_J1317.6+3428_daily_bin88.fits evtable="EVENTS" scfile=/scratch/kocevski/442975/ft2_4FGL_J1317.6+3428_daily_bin88.fits sctable="SC_DATA" expcube=/scratch/kocevski/442975/ltcube_262137601_262396801_4FGL_J1317.6+3428_daily_bin88.fits outfile=/scratch/kocevski/442975/expmap_262137601_262396801_4FGL_J1317.6+3428_daily_bin88.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/442975/ltcube_262137601_262396801_4FGL_J1317.6+3428_daily_bin88.fits
.....................!
real 191.96
user 186.02
sys 4.68

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/442975/ft1_filtered_4FGL_J1317.6+3428_daily_bin88.fits scfile=/scratch/kocevski/442975/ft2_4FGL_J1317.6+3428_daily_bin88.fits outfile=/scratch/kocevski/442975/cmap_262137601_262396801_4FGL_J1317.6+3428_daily_bin88.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/442975/ft1_filtered_4FGL_J1317.6+3428_daily_bin88.fits scfile=/scratch/kocevski/442975/ft2_4FGL_J1317.6+3428_daily_bin88.fits outfile=/scratch/kocevski/442975/cmap_HighResolution_262137601_262396801_4FGL_J1317.6+3428_daily_bin88.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.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.4711       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.4859       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    6.0527       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    9.0085       1.0000         .10000E-03   10000.    
    13 'norm      '    10.307       1.0000         .10000E-03   10000.    
    14 'norm      '    3.4198       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-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 '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.0712       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    8.2557       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .12770       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2634       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .68094       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=   5327.870     FROM MIGRAD    STATUS=CONVERGED    691 CALLS     2853 TOTAL
                     EDM=   .47E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.7638        .79032E-08** at limit **
   2  Prefactor     4.4732        8.7625        .15032E-06    .12744E-04
   3  Prefactor     .10000E-03    12.116       -.10535E-06** at limit **
   4  Prefactor     8.4485        111.34       -.59054E-05    .10355E-04
   5  Prefactor     .10000E-03    1.9883       -.16710E-08** at limit **
   6  norm          6.0542        4.8502        .30379E-06    .10660E-03
   7  Prefactor     .10000E-03    35.583        .74451E-06** at limit **
   8  Prefactor     .10000E-03    9.9267        .51020E-07** at limit **
   9  norm          .10000E-03    3.2240       -.12566E-08** at limit **
  10  Prefactor     .10000E-03    9.5646        .69841E-07** at limit **
  11  norm          .10000E-03    2.6220       -.14157E-07** at limit **
  12  norm          9.0113        13.844       -.12029E-06   -.81141E-05
  13  norm          10.310        6.2008       -.11811E-05    .20281E-03
  14  norm          3.4188        7.8594        .43459E-05    .40476E-04
  15  norm          .10000E-03    8.5818       -.19687E-06** at limit **
  16  Prefactor     .10000E-03    1.4201        .12994E-07** at limit **
  17  Prefactor     .10000E-03    20.763       -.33925E-06** at limit **
  18  Prefactor     .10000E-03    19.250        .49772E-06** at limit **
  19  Prefactor     .10000E-03    5.2090       -.10813E-07** at limit **
  20  Prefactor     .10000E-03    8.1885        .86521E-07** at limit **
  21  Prefactor     .10000E-03    36.381       -.72127E-06** at limit **
  22  norm          1.0712        1.1389       -.32254E-07   -.61413E-04
  23  Prefactor     .10000E-03    2.2339       -.34027E-07** at limit **
  24  norm          8.2273        14.293        .11325E-05    .51255E-04
  25  Prefactor     .53891        29.489        .39066E-06   -.45287E-04
  26  Normalizat    1.2633        .17598        .66204E-06    .17743E-03
  27  Prefactor     .68082        .21529       -.39557E-06    .11658E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.47317
  Prefactor  = 0.0001
  Prefactor  = 8.44849
  Prefactor  = 0.0001
  norm       = 6.05417
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.0113
  norm       = 10.3105
  norm       = 3.41876
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.07124
  Prefactor  = 0.0001
  norm       = 8.22729
  Prefactor  = 0.538915
  Normalizat = 1.26334
  Prefactor  = 0.680822
 **********
 **   18 **HESSE 
 **********

 FCN=   5327.870     FROM HESSE     STATUS=OK           488 CALLS     3341 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.7660        .11851E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.4732        8.7533        .19042E-03   -1.5285    
   3  Prefactor     .10000E-03    12.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.4485        110.99        .13761E-03   -1.5127    
   5  Prefactor     .10000E-03    1.9931        .10051E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          6.0542        4.8392        .13371E-03   -1.5216    
   7  Prefactor     .10000E-03    35.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.9369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.3180        .25583E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.6339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.6601        .11540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          9.0113        13.842        .13354E-03   -1.5107    
  13  norm          10.310        6.2195        .10392E-03   -1.5066    
  14  norm          3.4188        7.8751        .10937E-02   -1.5338    
  15  norm          .10000E-03    8.5868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.4438        .84859E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    21.343        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    19.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.2201        .16270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.2118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    36.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.0712        1.1379        .78133E-04   -1.5501    
  23  Prefactor     .10000E-03    2.2603        .10649E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          8.2273        14.388        .13953E-03   -1.5134    
  25  Prefactor     .53891        34.130        .11052       -1.5561    
  26  Normalizat    1.2633        .20399        .19850E-03   -.84667    
  27  Prefactor     .68082        .24836        .32191E-03   -1.0428    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62633e-10
Minuit parameter uncertainties:
  1  5.19662e-07
  2  8.75578
  3  4.41442e-06
  4  61.3833
  5  3.48497e-07
  6  4.83955
  7  7.42179e-05
  8  1.41093e-06
  9  1.15811e-06
  10  1.07273e-05
  11  1.73718e-06
  12  13.847
  13  6.21993
  14  7.87751
  15  5.86734e-06
  16  6.21859e-07
  17  9.01627e-05
  18  3.08493e-05
  19  1.51119e-06
  20  7.72849e-06
  21  3.46013e-06
  22  1.13796
  23  3.52336e-06
  24  14.3938
  25  8.58183
  26  0.204116
  27  0.248768
Done.

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

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  6.219e-07  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:  6.808e-01  2.488e-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:  1.263e+00  2.041e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 199.401 34.468
Photon Flux Upper Limit: 5.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.66e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/442975/likelihoodResults_262137601_262396801_4FGL_J1317.6+3428_daily_bin88.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5327.87350338
delta logL = -0.00327228998503

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5327.87023106
delta logL = 3.23261701851e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5207       1.0000          .0000       10.000    
     3 'Normalizat'    1.2634       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68083       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5327.870     FROM MIGRAD    STATUS=FAILED        85 CALLS      234 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10098E-03    38.316        .85515E-03** at limit **
   2  Index         2.4644        5.7217        .50000        .64897E-04
   3  Normalizat    1.2633        .21427E-01    .19850E-03    .37182E-04
   4  Prefactor     .68082        .26397E-01    .32191E-03    .31749E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5327.870     FROM SIMPLEX   STATUS=UNCHANGED    130 CALLS      364 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10098E-03    38.316        .22872E-03** at limit **
   2  Index         2.4644        5.7217        .44317E-03    .64897E-04
   3  Normalizat    1.2633        .21427E-01    .32335E-05    .37182E-04
   4  Prefactor     .68082        .26397E-01    .61717E-05    .31749E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5327.870     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      409 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.658        .17103E-02** at limit **
   2  Index         2.2239        5.3865        .50000        .25361E-06
   3  Normalizat    1.2633        .18534E-01    .39699E-04   -.42406E-03
   4  Prefactor     .68082        .22833E-01    .12876E-04   -.25074E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.22386
  Normalizat = 1.26334
  Prefactor  = 0.68082
 **********
 **   18 **HESSE 
 **********

 FCN=   5327.870     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      438 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    133.04        .34206E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2239        7.0437        .50000       -.58864    
   3  Normalizat    1.2633        .42258E-01    .79399E-05   -.84667    
   4  Prefactor     .68082        .52057E-01    .25753E-05   -1.0428    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.60176e-09
Minuit parameter uncertainties:
  1  5.14682e-05
  2  560.42
  3  0.042259
  4  0.0520607
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/442975': 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): 102
logL (Free Index) = 5327.87022816
delta logL = 2.93382618111e-06

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  5.147e-05  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  2.224e+00  5.604e+02  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:  6.808e-01  5.206e-02  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:  1.263e+00  4.226e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 199.401 34.468

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/442975/cmap_HighResolution_262137601_262396801_4FGL_J1317.6+3428_daily_bin88.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.66e-03', job_status='DONE', photon_flux_upper_limit='5.98e-08', time_completed='2021-09-07 10:19:43.901922', job_id='442975', GAL2='0.68', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1631035183.9', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='2.93e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='88' AND source_name='4FGL J1317.6+3428' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 10:19:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 442975: <4FGL_J1317.6+3428_daily_bin88> in cluster <slac> Done

Job <4FGL_J1317.6+3428_daily_bin88> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep  7 10:05:20 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 10:05:26 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:05:26 2021
Terminated at Tue Sep  7 10:19:44 2021
Results reported at Tue Sep  7 10:19:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1317.6+3428_daily_bin88 199.401 34.4676 262137601 262396801 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 :                                   666.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             272.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   858 sec.
    Turnaround time :                            864 sec.

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

