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


Performing analysis on: 4FGL_J1317.6+3428_daily_bin698
RA = 199.401, Dec = 34.4676
tmin = 420249601, tmax = 420508801
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='445974', job_status='RUN', time_executed='2021-09-07 10:16:32.087677', time_epoch_executed='1631034992.09' WHERE source_name='4FGL J1317.6+3428' and cadence='daily' and bin_id='698'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/445974

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/445974/ft1_4FGL_J1317.6+3428_daily_bin698.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/445974/ft2_4FGL_J1317.6+3428_daily_bin698.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/445974/ft1_4FGL_J1317.6+3428_daily_bin698.fits outfile=/scratch/kocevski/445974/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin698.fits ra=199.401 dec=34.4676 rad=12.0 tmin=420249601.0 tmax=420508801.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.43
user 3.20
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/445974/ft1_filtered_4FGL_J1317.6+3428_daily_bin698.fits evtable="EVENTS" scfile=/scratch/kocevski/445974/ft2_4FGL_J1317.6+3428_daily_bin698.fits sctable="SC_DATA" expcube=/scratch/kocevski/445974/ltcube_420249601_420508801_4FGL_J1317.6+3428_daily_bin698.fits outfile=/scratch/kocevski/445974/expmap_420249601_420508801_4FGL_J1317.6+3428_daily_bin698.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/445974/ltcube_420249601_420508801_4FGL_J1317.6+3428_daily_bin698.fits
.....................!
real 191.79
user 186.73
sys 4.55

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/445974/ft1_filtered_4FGL_J1317.6+3428_daily_bin698.fits scfile=/scratch/kocevski/445974/ft2_4FGL_J1317.6+3428_daily_bin698.fits outfile=/scratch/kocevski/445974/cmap_420249601_420508801_4FGL_J1317.6+3428_daily_bin698.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.57
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/445974/ft1_filtered_4FGL_J1317.6+3428_daily_bin698.fits scfile=/scratch/kocevski/445974/ft2_4FGL_J1317.6+3428_daily_bin698.fits outfile=/scratch/kocevski/445974/cmap_HighResolution_420249601_420508801_4FGL_J1317.6+3428_daily_bin698.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.58
user 0.42
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.4536       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10310E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.0703       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    32.855       1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.924       1.0000         .10000E-03   10000.    
     9 'norm      '    .15180E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.4842       1.0000         .10000E-03   10000.    
    12 'norm      '    9.7788       1.0000         .10000E-03   10000.    
    13 'norm      '    36.969       1.0000         .10000E-03   10000.    
    14 'norm      '    .42445       1.0000         .10000E-03   10000.    
    15 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.201       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.566       1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.538       1.0000         .10000E-03   10000.    
    22 'norm      '    6.5726       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10212E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    9.7510       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .66237       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1416       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=   5620.080     FROM MIGRAD    STATUS=CONVERGED    683 CALLS     3349 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4536        5.1238        .95283E-07    .23256E-04
   2  Prefactor     .10000E-03    10.678        .57957E-06** at limit **
   3  Prefactor     .10000E-03    16.230       -.10868E-05** at limit **
   4  Prefactor     .10000E-03    44.991       -.13531E-06** at limit **
   5  Prefactor     1.0690        7.7389        .15393E-05   -.84062E-04
   6  norm          .10000E-03    1.7728       -.86258E-07** at limit **
   7  Prefactor     32.848        39.936        .26743E-07   -.39994E-05
   8  Prefactor     16.878        26.888       -.54508E-06   -.58892E-04
   9  norm          .10000E-03    2.1971        .29272E-06** at limit **
  10  Prefactor     .10000E-03    6.8199       -.45275E-06** at limit **
  11  norm          2.4833        4.5701       -.13512E-06   -.10936E-03
  12  norm          9.7782        10.414       -.10099E-06    .79447E-04
  13  norm          37.051        9.3923        .21021E-06    .11712E-03
  14  norm          .26684        163.64        .10428E-04   -.71312E-05
  15  norm          .10000E-03    20.010        .80595E-06** at limit **
  16  Prefactor     .10000E-03    2.4373       -.48358E-07** at limit **
  17  Prefactor     11.192        13.479        .44208E-06    .44868E-04
  18  Prefactor     .10000E-03    137.10       -.72984E-06** at limit **
  19  Prefactor     .10000E-03    24.876        .44510E-06** at limit **
  20  Prefactor     10.568        17.920       -.12173E-06   -.20139E-04
  21  Prefactor     11.430        134.72       -.17972E-05   -.10256E-04
  22  norm          6.5730        2.2730        .66804E-07    .96953E-04
  23  Prefactor     .10000E-03    2.0009        .41944E-06** at limit **
  24  norm          9.7582        16.339        .68493E-06    .29565E-04
  25  Prefactor     .10000E-03    7.3764        .13884E-06** at limit **
  26  Normalizat    .66196        .20315       -.61098E-05   -.19932E-03
  27  Prefactor     1.1422        .24944        .44998E-05   -.22184E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.45355
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.06896
  norm       = 0.0001
  Prefactor  = 32.8479
  Prefactor  = 16.8781
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.48331
  norm       = 9.77823
  norm       = 37.0507
  norm       = 0.266844
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.1924
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 10.5679
  Prefactor  = 11.4302
  norm       = 6.57305
  Prefactor  = 0.000100004
  norm       = 9.75823
  Prefactor  = 0.0001
  Normalizat = 0.661956
  Prefactor  = 1.14215
 **********
 **   18 **HESSE 
 **********

 FCN=   5620.080     FROM HESSE     STATUS=OK           492 CALLS     3841 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4536        5.1241        .17750E-03   -1.5286    
   2  Prefactor     .10000E-03    10.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    45.061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.0690        7.8699        .39241E-03   -1.5501    
   6  norm          .10000E-03    1.7778        .97304E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     32.848        39.931        .69907E-04   -1.4561    
   8  Prefactor     16.878        27.004        .97357E-04   -1.4886    
   9  norm          .10000E-03    9.9168        .21359E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.8330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.4833        4.5270        .20589E-03   -1.5393    
  12  norm          9.7782        10.408        .64072E-03   -1.5082    
  13  norm          37.051        11.608        .65915E-04   -1.4490    
  14  norm          .26684        244.79        .42682E-02   -1.5605    
  15  norm          .10000E-03    20.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.5069        .22807E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     11.192        13.446        .11971E-03   -1.5039    
  18  Prefactor     .10000E-03    137.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    25.892        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.568        17.901        .12326E-03   -1.5058    
  21  Prefactor     11.430        136.50        .11794E-03   -1.5032    
  22  norm          6.5730        2.2728        .63975E-04   -1.5195    
  23  Prefactor     .10000E-03    7.4460        .19540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          9.7582        16.331        .12833E-03   -1.5083    
  25  Prefactor     .10000E-03    7.3805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .66196        .20621        .25235E-03   -1.0541    
  27  Prefactor     1.1422        .25124        .25295E-03   -.88130    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.99926e-08
Minuit parameter uncertainties:
  1  5.12458
  2  1.15142e-06
  3  0.000133654
  4  4.37873e-05
  5  5.80169
  6  2.23919e-05
  7  39.9631
  8  27.0231
  9  4.54848e-05
  10  6.30299e-06
  11  4.52761
  12  10.4097
  13  11.6085
  14  16.2282
  15  1.36232e-05
  16  3.24777e-05
  17  13.45
  18  0.000735355
  19  9.5653e-05
  20  17.9097
  21  79.2248
  22  2.27286
  23  0.000326889
  24  16.3389
  25  9.83653e-06
  26  0.206452
  27  0.251501
Done.

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

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  3.248e-05  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.142e+00  2.515e-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.620e-01  2.065e-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: 7.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/445974/likelihoodResults_420249601_420508801_4FGL_J1317.6+3428_daily_bin698.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) = 5620.08215093
delta logL = -0.00190104493868

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5620.08025008
delta logL = -1.99816895474e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5336       1.0000          .0000       10.000    
     3 'Normalizat'    .66196       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1422       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=   5620.080     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      208 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.6059        .90712E-02** at limit **
   2  Index         2.5330        5.3485        .50000        .20901E-05
   3  Normalizat    .66196        .46399E-02    .41780E-01   -.97189E-05
   4  Prefactor     1.1422        .59958E-02    .57204E-01   -.12635E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.53298
  Normalizat = 0.661956
  Prefactor  = 1.14215
 **********
 **   18 **HESSE 
 **********

 FCN=   5620.080     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      241 TOTAL
                     EDM=   .73E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    225.37        .22809E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5330        8.6617        .50000       -.51600    
   3  Normalizat    .66196        .40739E-01    .25234E-03   -1.0541    
   4  Prefactor     1.1422        .52625E-01    .25295E-03   -.88130    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.27822e-08
Minuit parameter uncertainties:
  1  0.000203618
  2  645.693
  3  0.040741
  4  0.052627
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/445974': 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) = 5620.08024988
delta logL = 6.37555785943e-10

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  2.036e-04  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  2.533e+00  6.457e+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:  1.142e+00  5.263e-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:  6.620e-01  4.074e-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/445974/cmap_HighResolution_420249601_420508801_4FGL_J1317.6+3428_daily_bin698.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.72e-03', job_status='DONE', photon_flux_upper_limit='7.33e-08', time_completed='2021-09-07 10:28:43.125374', job_id='445974', GAL2='1.14', fit_tolerance='1e-08', EG2='0.66', EG='0.66', time_epoch_completed='1631035723.13', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='6.38e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='698' AND source_name='4FGL J1317.6+3428' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 10:28:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 445974: <4FGL_J1317.6+3428_daily_bin698> in cluster <slac> Done

Job <4FGL_J1317.6+3428_daily_bin698> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep  7 10:15:30 2021
Job was executed on host(s) <bullet0288>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 10:16:14 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:16:14 2021
Terminated at Tue Sep  7 10:28:43 2021
Results reported at Tue Sep  7 10:28:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1317.6+3428_daily_bin698 199.401 34.4676 420249601 420508801 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 :                                   730.29 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             318.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   752 sec.
    Turnaround time :                            793 sec.

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

