/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 174 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 = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1317.6+3428_daily_bin1025
RA = 199.401, Dec = 34.4676
tmin = 505008001, tmax = 505267201
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='447650', job_status='RUN', time_executed='2021-09-07 10:25:11.709537', time_epoch_executed='1631035511.71' WHERE source_name='4FGL J1317.6+3428' and cadence='daily' and bin_id='1025'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/447650

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/447650/ft1_4FGL_J1317.6+3428_daily_bin1025.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/447650/ft2_4FGL_J1317.6+3428_daily_bin1025.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/447650/ft1_4FGL_J1317.6+3428_daily_bin1025.fits outfile=/scratch/kocevski/447650/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin1025.fits ra=199.401 dec=34.4676 rad=12.0 tmin=505008001.0 tmax=505267201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.58
user 4.32
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/447650/ft1_filtered_4FGL_J1317.6+3428_daily_bin1025.fits" evtable="EVENTS" scfile=/scratch/kocevski/447650/ft2_4FGL_J1317.6+3428_daily_bin1025.fits sctable="SC_DATA" outfile=/scratch/kocevski/447650/ltcube_505008001_505267201_4FGL_J1317.6+3428_daily_bin1025.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/447650/ft2_4FGL_J1317.6+3428_daily_bin1025.fits
.....................!
real 17.02
user 16.63
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/447650/ft1_filtered_4FGL_J1317.6+3428_daily_bin1025.fits evtable="EVENTS" scfile=/scratch/kocevski/447650/ft2_4FGL_J1317.6+3428_daily_bin1025.fits sctable="SC_DATA" expcube=/scratch/kocevski/447650/ltcube_505008001_505267201_4FGL_J1317.6+3428_daily_bin1025.fits outfile=/scratch/kocevski/447650/expmap_505008001_505267201_4FGL_J1317.6+3428_daily_bin1025.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/447650/ltcube_505008001_505267201_4FGL_J1317.6+3428_daily_bin1025.fits
.....................!
real 192.10
user 186.91
sys 4.50

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/447650/ft1_filtered_4FGL_J1317.6+3428_daily_bin1025.fits scfile=/scratch/kocevski/447650/ft2_4FGL_J1317.6+3428_daily_bin1025.fits outfile=/scratch/kocevski/447650/cmap_505008001_505267201_4FGL_J1317.6+3428_daily_bin1025.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.61
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/447650/ft1_filtered_4FGL_J1317.6+3428_daily_bin1025.fits scfile=/scratch/kocevski/447650/ft2_4FGL_J1317.6+3428_daily_bin1025.fits outfile=/scratch/kocevski/447650/cmap_HighResolution_505008001_505267201_4FGL_J1317.6+3428_daily_bin1025.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.60
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.7005       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.8460       1.0000         .10000E-03   10000.    
     6 'norm      '    2.2368       1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.732       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.5416       1.0000         .10000E-03   10000.    
     9 'norm      '    8.7093       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10323E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.5560       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10260E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .16874E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    8.4737       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    14.280       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0371       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .84764       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=   5229.522     FROM MIGRAD    STATUS=CONVERGED    631 CALLS     3232 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7020        9.0575        .41194E-05   -.53288E-04
   2  Prefactor     .10000E-03    3.3446        .12534E-07** at limit **
   3  Prefactor     .10000E-03    10.023        .52171E-07** at limit **
   4  Prefactor     .10000E-03    31.933        .40049E-06** at limit **
   5  Prefactor     3.8468        4.8281        .24027E-06   -.10166E-04
   6  norm          2.2369        3.0217        .11144E-06   -.49525E-04
   7  Prefactor     17.743        44.504        .12891E-05    .23944E-04
   8  Prefactor     9.5399        21.017        .37294E-06   -.53007E-04
   9  norm          8.7098        5.0351        .78090E-06   -.62424E-04
  10  Prefactor     .10000E-03    5.6793        .13619E-06** at limit **
  11  norm          .10000E-03    2.0185        .81012E-07** at limit **
  12  norm          .10000E-03    7.2463        .13849E-06** at limit **
  13  norm          .10000E-03    2.3654        .59491E-06** at limit **
  14  norm          .10000E-03    9.9893        .17989E-06** at limit **
  15  norm          .10000E-03    23.253       -.28493E-06** at limit **
  16  Prefactor     3.5439        3.4746       -.18160E-05   -.67683E-04
  17  Prefactor     .10000E-03    23.557        .48448E-06** at limit **
  18  Prefactor     .10003E-03    426.07       -.17732E-04** at limit **
  19  Prefactor     .10000E-03    6.2215       -.24880E-07** at limit **
  20  Prefactor     .10000E-03    41.848       -.28765E-06** at limit **
  21  Prefactor     .10000E-03    35.201        .35984E-06** at limit **
  22  norm          8.4740        2.4806        .70083E-07   -.18391E-04
  23  Prefactor     .10000E-03    1.0947        .27701E-07** at limit **
  24  norm          .10000E-03    9.4334        .18487E-06** at limit **
  25  Prefactor     14.282        17.571        .26644E-06    .11734E-05
  26  Normalizat    1.0371        .16670       -.11613E-05   -.88520E-04
  27  Prefactor     .84749        .19877       -.13271E-05   -.66472E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.702
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.84681
  norm       = 2.23688
  Prefactor  = 17.7434
  Prefactor  = 9.53986
  norm       = 8.70978
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100003
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.54389
  Prefactor  = 0.000100002
  Prefactor  = 0.000100027
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.47403
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.2821
  Normalizat = 1.03708
  Prefactor  = 0.847494
 **********
 **   18 **HESSE 
 **********

 FCN=   5229.522     FROM HESSE     STATUS=OK           484 CALLS     3716 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.7020        9.0271        .84118E-03   -1.5230    
   2  Prefactor     .10000E-03    3.3491        .12916E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    31.983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.8468        4.8200        .17207E-03   -1.5316    
   6  norm          2.2369        2.9988        .13810E-03   -1.5409    
   7  Prefactor     17.743        44.516        .95113E-04   -1.4865    
   8  Prefactor     9.5399        20.673        .12973E-03   -1.5090    
   9  norm          8.7098        5.0325        .59431E-03   -1.5118    
  10  Prefactor     .10000E-03    5.6892        .16834E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.0270        .10033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    7.2626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.8139        .21121E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    10.343        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    23.357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.5439        3.4564        .12439E-03   -1.5331    
  17  Prefactor     .10000E-03    24.104        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10003E-03    430.82        .40751E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.2359        .17616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    42.510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    35.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          8.4740        2.4857        .59466E-04   -1.5126    
  23  Prefactor     .10000E-03    1.1003        .73888E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    9.4742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     14.282        17.570        .10599E-03   -1.4952    
  26  Normalizat    1.0371        .19784        .21358E-03   -.91798    
  27  Prefactor     .84749        .23489        .28421E-03   -.98001    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.58516e-10
Minuit parameter uncertainties:
  1  9.0292
  2  1.89096e-06
  3  1.33564e-05
  4  0.000215489
  5  4.82045
  6  2.99904
  7  44.5993
  8  20.6885
  9  5.03278
  10  3.14173e-05
  11  1.22648e-05
  12  4.67843e-06
  13  0.000235749
  14  8.77311e-05
  15  9.02316e-05
  16  3.45655
  17  0.000488961
  18  0.00686242
  19  3.11901e-06
  20  1.09917e-05
  21  0.000220073
  22  2.48576
  23  3.03573e-06
  24  4.2323e-05
  25  17.5764
  26  0.197982
  27  0.23517
Done.

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

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  3.544e+00  3.457e+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:  8.475e-01  2.352e-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.037e+00  1.980e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.60
Ra Dec: 199.401 34.468
Photon Index (Fixed Index): 2.53 +/- 0.00
Photon Flux (Fixed Index): 3.81e-08 +/- 3.71e-08
Energy Flux (Fixed Index): 1.06e-05 +/- 1.04e-05

TS (Fixed Index): 1.60
Ra Dec: 199.401 34.468
Photon Flux Upper Limit: 1.18e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/447650/likelihoodResults_505008001_505267201_4FGL_J1317.6+3428_daily_bin1025.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): 0
logL (Free Index) = 5228.95681922
delta logL = 0.564945215849

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5228.93134164
delta logL = 0.590422794887

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1517       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6905       1.0000          .0000       10.000    
     3 'Normalizat'    .98792       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89027       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5228.931     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      284 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1452        26.659        .25825E-03   -.57995E-03
   2  Index         3.6935        6.8435        .50598E-02   -.35136E-04
   3  Normalizat    .98804        .20067        .21809E-03   -.11296E-03
   4  Prefactor     .89010        .24504        .27791E-03   -.91143E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.14525
  Index      = 3.69354
  Normalizat = 0.988036
  Prefactor  = 0.8901
 **********
 **   18 **HESSE 
 **********

 FCN=   5228.931     FROM HESSE     STATUS=OK            25 CALLS      309 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1452        2.3871        .10330E-04   -1.5494    
   2  Index         3.6935        1.2919        .20239E-03   -.26436    
   3  Normalizat    .98804        .20028        .87236E-05   -.93432    
   4  Prefactor     .89010        .23914        .11116E-04   -.96488    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.97467e-11
Minuit parameter uncertainties:
  1  2.3873
  2  1.3078
  3  0.200437
  4  0.239422
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/447650': 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) = 5228.93133716
delta logL = 0.590427270568

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.145e+00  2.387e+00  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  3.694e+00  1.308e+00  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:  8.901e-01  2.394e-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:  9.880e-01  2.004e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.89
Ra Dec: 199.401 34.468
Photon Index (Free Index): 3.69 +/- 1.31
Photon Flux (Free Index): 7.25e-08 +/- 5.24e-08
Energy Flux (Free Index): 1.15e-05 +/- 8.14e-06

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/447650/cmap_HighResolution_505008001_505267201_4FGL_J1317.6+3428_daily_bin1025.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.18e-03', comment='SUCCESS', photon_flux='3.81e-08', energy_flux2='1.15e-05', photon_flux_error='3.71e-08', dlogl='5.90e-01', energy_flux='1.06e-05', photon_flux2='7.25e-08', job_status='DONE', time_completed='2021-09-07 10:36:45.133679', photon_index_error2='1.31', photon_index2='3.69', ts='1.60', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='1.18e-07', energy_flux_error2='8.14e-06', EG='1.04', time_epoch_completed='1631036205.13', return_code='0', job_id='447650', GAL2='0.89', EG2='0.99', return_code2='0', energy_flux_error='1.04e-05', photon_flux_error2='5.24e-08', ts2='2.89', photon_index='2.53' WHERE bin_id='1025' AND source_name='4FGL J1317.6+3428' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 10:36:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 447650: <4FGL_J1317.6+3428_daily_bin1025> in cluster <slac> Done

Job <4FGL_J1317.6+3428_daily_bin1025> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 10:21:13 2021
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 10:22:08 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:08 2021
Terminated at Tue Sep  7 10:36:45 2021
Results reported at Tue Sep  7 10:36:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1317.6+3428_daily_bin1025 199.401 34.4676 505008001 505267201 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 :                                   692.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             276.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            932 sec.

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

