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


Performing analysis on: 4FGL_J1317.6+3428_daily_bin1125
RA = 199.401, Dec = 34.4676
tmin = 530928001, tmax = 531187201
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='448795', job_status='RUN', time_executed='2021-09-07 10:29:05.529892', time_epoch_executed='1631035745.53' WHERE source_name='4FGL J1317.6+3428' and cadence='daily' and bin_id='1125'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/448795

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/448795/ft1_4FGL_J1317.6+3428_daily_bin1125.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/448795/ft2_4FGL_J1317.6+3428_daily_bin1125.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/448795/ft1_4FGL_J1317.6+3428_daily_bin1125.fits outfile=/scratch/kocevski/448795/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin1125.fits ra=199.401 dec=34.4676 rad=12.0 tmin=530928001.0 tmax=531187201.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.69
user 3.43
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/448795/ft1_filtered_4FGL_J1317.6+3428_daily_bin1125.fits" evtable="EVENTS" scfile=/scratch/kocevski/448795/ft2_4FGL_J1317.6+3428_daily_bin1125.fits sctable="SC_DATA" outfile=/scratch/kocevski/448795/ltcube_530928001_531187201_4FGL_J1317.6+3428_daily_bin1125.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/448795/ft2_4FGL_J1317.6+3428_daily_bin1125.fits
.....................!
real 16.16
user 15.73
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/448795/ft1_filtered_4FGL_J1317.6+3428_daily_bin1125.fits evtable="EVENTS" scfile=/scratch/kocevski/448795/ft2_4FGL_J1317.6+3428_daily_bin1125.fits sctable="SC_DATA" expcube=/scratch/kocevski/448795/ltcube_530928001_531187201_4FGL_J1317.6+3428_daily_bin1125.fits outfile=/scratch/kocevski/448795/expmap_530928001_531187201_4FGL_J1317.6+3428_daily_bin1125.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/448795/ltcube_530928001_531187201_4FGL_J1317.6+3428_daily_bin1125.fits
.....................!
real 192.36
user 187.23
sys 4.52

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/448795/ft1_filtered_4FGL_J1317.6+3428_daily_bin1125.fits scfile=/scratch/kocevski/448795/ft2_4FGL_J1317.6+3428_daily_bin1125.fits outfile=/scratch/kocevski/448795/cmap_530928001_531187201_4FGL_J1317.6+3428_daily_bin1125.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=199.401 yref=34.4676 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/448795/ft1_filtered_4FGL_J1317.6+3428_daily_bin1125.fits scfile=/scratch/kocevski/448795/ft2_4FGL_J1317.6+3428_daily_bin1125.fits outfile=/scratch/kocevski/448795/cmap_HighResolution_530928001_531187201_4FGL_J1317.6+3428_daily_bin1125.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.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9127       1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.687       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.7556       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.1127       1.0000         .10000E-03   10000.    
     6 'norm      '    .10088E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    55.834       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .59852E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10560E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.1275       1.0000         .10000E-03   10000.    
    14 'norm      '    .37527E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .14663E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.9956       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.207       1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.337       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.5123       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .93829       1.0000         .10000E-03   10000.    
    24 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2051       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .79984       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=   5633.443     FROM MIGRAD    STATUS=CONVERGED    657 CALLS     3322 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9121        8.1884        .28770E-06   -.26068E-04
   2  Prefactor     16.686        13.853        .16842E-06   -.64335E-04
   3  Prefactor     .10000E-03    9.5497        .28208E-06** at limit **
   4  Prefactor     8.7046        167.36        .64644E-05   -.10956E-03
   5  Prefactor     1.1137        4.7796        .14447E-04   -.35172E-04
   6  norm          .10000E-03    2.4848       -.10004E-05** at limit **
   7  Prefactor     55.775        56.605        .28680E-05   -.48435E-03
   8  Prefactor     .10000E-03    11.043       -.33724E-06** at limit **
   9  norm          .10000E-03    .94599        .54578E-07** at limit **
  10  Prefactor     .10000E-03    7.6647        .20464E-06** at limit **
  11  norm          .10000E-03    2.5294       -.48549E-06** at limit **
  12  norm          .10000E-03    8.1062       -.13144E-05** at limit **
  13  norm          5.1156        4.2266       -.83312E-07   -.41720E-03
  14  norm          .10000E-03    6.3062        .41466E-06** at limit **
  15  norm          .10014E-03    17.140        .62233E-05** at limit **
  16  Prefactor     4.9984        3.8049       -.22752E-07   -.14681E-03
  17  Prefactor     .10000E-03    21.880        .13138E-06** at limit **
  18  Prefactor     .10000E-03    21.246        .16319E-06** at limit **
  19  Prefactor     19.207        19.307        .52521E-07   -.72976E-04
  20  Prefactor     21.324        27.384        .76304E-06   -.15888E-03
  21  Prefactor     .10000E-03    14.706       -.92702E-07** at limit **
  22  norm          5.5120        2.1176        .37622E-07   -.22970E-03
  23  Prefactor     .93877        4.8850        .20520E-05    .22137E-03
  24  norm          .10000E-03    18.070        .10973E-05** at limit **
  25  Prefactor     .10000E-03    7.7565        .10865E-06** at limit **
  26  Normalizat    1.2054        .18377        .10952E-05   -.35617E-03
  27  Prefactor     .79955        .21166       -.57195E-05   -.51058E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.91208
  Prefactor  = 16.6857
  Prefactor  = 0.0001
  Prefactor  = 8.70456
  Prefactor  = 1.11369
  norm       = 0.000100001
  Prefactor  = 55.7748
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100002
  norm       = 0.000100001
  norm       = 5.11557
  norm       = 0.0001
  norm       = 0.00010014
  Prefactor  = 4.99839
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.2073
  Prefactor  = 21.3242
  Prefactor  = 0.0001
  norm       = 5.51197
  Prefactor  = 0.938769
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.20542
  Prefactor  = 0.799554
 **********
 **   18 **HESSE 
 **********

 FCN=   5633.443     FROM HESSE     STATUS=OK           482 CALLS     3804 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9121        8.1729        .20396E-03   -1.5312    
   2  Prefactor     16.686        13.849        .98046E-04   -1.4891    
   3  Prefactor     .10000E-03    9.5659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.7046        169.64        .13546E-03   -1.5118    
   5  Prefactor     1.1137        4.8338        .15981E-02   -1.5497    
   6  norm          .10000E-03    2.5194        .11567E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     55.775        57.141        .53684E-04   -1.4213    
   8  Prefactor     .10000E-03    11.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .94849        .71290E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.6795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    20.244        .22949E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    8.1492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.1156        3.6028        .11273E-03   -1.5256    
  14  norm          .10000E-03    15.650        .31052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10014E-03    104.03        .58897E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.9984        3.7733        .11826E-03   -1.5261    
  17  Prefactor     .10000E-03    22.257        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    21.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     19.207        19.274        .91389E-04   -1.4831    
  20  Prefactor     21.324        27.367        .86711E-04   -1.4784    
  21  Prefactor     .10000E-03    14.709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.5120        2.1188        .65476E-04   -1.5238    
  23  Prefactor     .93877        4.9299        .30949E-03   -1.5514    
  24  norm          .10000E-03    18.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    7.7626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.2054        .21319        .21747E-03   -.86436    
  27  Prefactor     .79955        .24423        .31310E-03   -.99745    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.62781e-09
Minuit parameter uncertainties:
  1  8.17524
  2  13.8519
  3  3.98585e-05
  4  77.1067
  5  4.64084
  6  9.42783e-05
  7  57.1971
  8  6.79817e-05
  9  2.95369e-06
  10  2.18369e-05
  11  0.000371835
  12  0.000143834
  13  3.60293
  14  5.05397e-05
  15  0.00765291
  16  3.77349
  17  0.000187275
  18  7.67907e-06
  19  19.2798
  20  27.3832
  21  0.000116761
  22  2.11886
  23  4.3029
  24  7.06944e-05
  25  1.76086e-05
  26  0.213346
  27  0.244563
Done.

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

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  4.998e+00  3.773e+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:  7.996e-01  2.446e-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.205e+00  2.133e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.72
Ra Dec: 199.401 34.468
Photon Index (Fixed Index): 2.53 +/- 0.00
Photon Flux (Fixed Index): 5.37e-08 +/- 4.05e-08
Energy Flux (Fixed Index): 1.50e-05 +/- 1.13e-05

TS (Fixed Index): 2.72
Ra Dec: 199.401 34.468
Photon Flux Upper Limit: 1.37e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.07e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/448795/likelihoodResults_530928001_531187201_4FGL_J1317.6+3428_daily_bin1125.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) = 5632.77938608
delta logL = 0.663820300434

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5632.77680499
delta logL = 0.666401385423

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4473       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3462       1.0000          .0000       10.000    
     3 'Normalizat'    1.1645       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83234       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=   5632.777     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      243 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4473        26.269        .65374E-02   -.51253E-03
   2  Index         3.3462        3.2881        .13100        .46874E-04
   3  Normalizat    1.1645        .61371E-01    .35826E-01    .29580E-04
   4  Prefactor     .83234        .71746E-01    .69492E-01   -.49059E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.4473
  Index      = 3.34624
  Normalizat = 1.16453
  Prefactor  = 0.832342
 **********
 **   18 **HESSE 
 **********

 FCN=   5632.777     FROM HESSE     STATUS=OK            33 CALLS      276 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4473        3.6073        .66869E-04   -1.5395    
   2  Index         3.3462        .94561        .50200E-02   -.33710    
   3  Normalizat    1.1645        .20939        .22055E-03   -.87706    
   4  Prefactor     .83234        .24675        .30747E-03   -.98547    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63271e-10
Minuit parameter uncertainties:
  1  3.60758
  2  0.952061
  3  0.209544
  4  0.247079
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/448795': 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) = 5632.77680499
delta logL = 0.666401386176

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  2.447e+00  3.608e+00  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  3.346e+00  9.521e-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:  8.323e-01  2.471e-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.165e+00  2.095e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.14
Ra Dec: 199.401 34.468
Photon Index (Free Index): 3.35 +/- 0.95
Photon Flux (Free Index): 8.83e-08 +/- 5.54e-08
Energy Flux (Free Index): 1.54e-05 +/- 9.53e-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/448795/cmap_HighResolution_530928001_531187201_4FGL_J1317.6+3428_daily_bin1125.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.07e-02', comment='SUCCESS', photon_flux='5.37e-08', energy_flux2='1.54e-05', photon_flux_error='4.05e-08', dlogl='6.66e-01', energy_flux='1.50e-05', photon_flux2='8.83e-08', job_status='DONE', time_completed='2021-09-07 10:41:05.923765', photon_index_error2='0.95', photon_index2='3.35', ts='2.72', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='1.37e-07', energy_flux_error2='9.53e-06', EG='1.21', time_epoch_completed='1631036465.92', return_code='0', job_id='448795', GAL2='0.83', EG2='1.16', return_code2='0', energy_flux_error='1.13e-05', photon_flux_error2='5.54e-08', ts2='4.14', photon_index='2.53' WHERE bin_id='1125' AND source_name='4FGL J1317.6+3428' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 10:41:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 448795: <4FGL_J1317.6+3428_daily_bin1125> in cluster <slac> Done

Job <4FGL_J1317.6+3428_daily_bin1125> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep  7 10:25:32 2021
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 10:25:38 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:25:38 2021
Terminated at Tue Sep  7 10:41:06 2021
Results reported at Tue Sep  7 10:41:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1317.6+3428_daily_bin1125 199.401 34.4676 530928001 531187201 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 :                                   719.01 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             251.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            934 sec.

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

