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


Performing analysis on: 4FGL_J1317.6+3428_daily_bin1003
RA = 199.401, Dec = 34.4676
tmin = 499305601, tmax = 499564801
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='447616', job_status='RUN', time_executed='2021-09-07 10:25:50.269068', time_epoch_executed='1631035550.27' WHERE source_name='4FGL J1317.6+3428' and cadence='daily' and bin_id='1003'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/447616

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/447616/ft1_4FGL_J1317.6+3428_daily_bin1003.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/447616/ft2_4FGL_J1317.6+3428_daily_bin1003.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/447616/ft1_4FGL_J1317.6+3428_daily_bin1003.fits outfile=/scratch/kocevski/447616/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin1003.fits ra=199.401 dec=34.4676 rad=12.0 tmin=499305601.0 tmax=499564801.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 5.44
user 5.13
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/447616/ft1_filtered_4FGL_J1317.6+3428_daily_bin1003.fits" evtable="EVENTS" scfile=/scratch/kocevski/447616/ft2_4FGL_J1317.6+3428_daily_bin1003.fits sctable="SC_DATA" outfile=/scratch/kocevski/447616/ltcube_499305601_499564801_4FGL_J1317.6+3428_daily_bin1003.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/447616/ft2_4FGL_J1317.6+3428_daily_bin1003.fits
.....................!
real 15.01
user 14.47
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/447616/ft1_filtered_4FGL_J1317.6+3428_daily_bin1003.fits evtable="EVENTS" scfile=/scratch/kocevski/447616/ft2_4FGL_J1317.6+3428_daily_bin1003.fits sctable="SC_DATA" expcube=/scratch/kocevski/447616/ltcube_499305601_499564801_4FGL_J1317.6+3428_daily_bin1003.fits outfile=/scratch/kocevski/447616/expmap_499305601_499564801_4FGL_J1317.6+3428_daily_bin1003.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/447616/ltcube_499305601_499564801_4FGL_J1317.6+3428_daily_bin1003.fits
.....................!
real 193.83
user 186.46
sys 6.34

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/447616/ft1_filtered_4FGL_J1317.6+3428_daily_bin1003.fits scfile=/scratch/kocevski/447616/ft2_4FGL_J1317.6+3428_daily_bin1003.fits outfile=/scratch/kocevski/447616/cmap_499305601_499564801_4FGL_J1317.6+3428_daily_bin1003.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/447616/ft1_filtered_4FGL_J1317.6+3428_daily_bin1003.fits scfile=/scratch/kocevski/447616/ft2_4FGL_J1317.6+3428_daily_bin1003.fits outfile=/scratch/kocevski/447616/cmap_HighResolution_499305601_499564801_4FGL_J1317.6+3428_daily_bin1003.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.36
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .15110E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    218.79       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.1511       1.0000         .10000E-03   10000.    
     6 'norm      '    9.9493       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .14375E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    8.1766       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    21.618       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.3023       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.653       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    10.619       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .98297       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .98841       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=   4392.843     FROM MIGRAD    STATUS=CONVERGED    644 CALLS     3299 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.2715       -.83970E-06** at limit **
   2  Prefactor     .10042E-03    16.858        .49765E-05** at limit **
   3  Prefactor     .10000E-03    43.844       -.37566E-05** at limit **
   4  Prefactor     218.77        147.44        .27563E-05    .51713E-05
   5  Prefactor     3.1468        9.6728        .55177E-05    .26041E-03
   6  norm          9.9480        7.6548       -.20917E-06    .51066E-04
   7  Prefactor     .10000E-03    25.128        .18660E-05** at limit **
   8  Prefactor     .10000E-03    21.572       -.17594E-05** at limit **
   9  norm          .10000E-03    3.8694       -.17422E-05** at limit **
  10  Prefactor     .10000E-03    14.383        .88779E-06** at limit **
  11  norm          .10000E-03    3.8834        .23479E-06** at limit **
  12  norm          8.1761        11.987        .63180E-07   -.43665E-05
  13  norm          .10000E-03    2.7603        .32104E-07** at limit **
  14  norm          .10000E-03    3.1896        .11123E-07** at limit **
  15  norm          21.624        21.213       -.13810E-06   -.10744E-04
  16  Prefactor     5.3017        4.5655       -.39715E-06   -.17365E-03
  17  Prefactor     .10000E-03    9.5716        .17713E-06** at limit **
  18  Prefactor     .10000E-03    90.591        .48185E-05** at limit **
  19  Prefactor     20.644        26.789        .91620E-06   -.10246E-04
  20  Prefactor     .10000E-03    36.946        .56406E-06** at limit **
  21  Prefactor     .10000E-03    21.620       -.18160E-05** at limit **
  22  norm          10.619        3.2369        .32798E-07   -.63074E-05
  23  Prefactor     .10000E-03    2.3774       -.25165E-07** at limit **
  24  norm          .10000E-03    6.0472       -.16041E-06** at limit **
  25  Prefactor     .10000E-03    27.041        .31007E-05** at limit **
  26  Normalizat    .98306        .21584       -.49508E-06   -.94769E-04
  27  Prefactor     .98835        .25021       -.68310E-06   -.88653E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100425
  Prefactor  = 0.0001
  Prefactor  = 218.772
  Prefactor  = 3.14679
  norm       = 9.94802
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 8.17611
  norm       = 0.0001
  norm       = 0.0001
  norm       = 21.6243
  Prefactor  = 5.30167
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 20.6435
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.6187
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.983059
  Prefactor  = 0.98835
 **********
 **   18 **HESSE 
 **********

 FCN=   4392.843     FROM HESSE     STATUS=OK           484 CALLS     3783 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.2866        .17456E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10042E-03    82.470        .42854E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    44.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     218.77        147.52        .13672E-03   -1.2739    
   5  Prefactor     3.1468        10.138        .11417E-02   -1.5353    
   6  norm          9.9480        7.6433        .12704E-03   -1.5077    
   7  Prefactor     .10000E-03    25.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    21.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    6.9072        .23834E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.9022        .12755E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          8.1761        11.984        .14021E-03   -1.5136    
  13  norm          .10000E-03    2.7842        .10741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.1996        .11558E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          21.624        21.185        .86147E-04   -1.4778    
  16  Prefactor     5.3017        4.5750        .12494E-03   -1.5247    
  17  Prefactor     .10000E-03    9.5872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    91.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     20.644        26.861        .88133E-04   -1.4799    
  20  Prefactor     .10000E-03    37.138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    21.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          10.619        3.2386        .63513E-04   -1.5056    
  23  Prefactor     .10000E-03    2.4077        .99737E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    6.0552        .15918E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    27.202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .98306        .25777        .24315E-03   -.93600    
  27  Prefactor     .98835        .29688        .28893E-03   -.93119    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.26941e-09
Minuit parameter uncertainties:
  1  1.28159e-05
  2  0.0118563
  3  4.35893e-05
  4  147.77
  5  10.1435
  6  7.644
  7  5.02391e-05
  8  4.20063e-05
  9  5.22694e-05
  10  3.7923e-05
  11  1.33011e-05
  12  11.9878
  13  3.15694e-06
  14  2.68187e-06
  15  21.1928
  16  4.57535
  17  1.73568e-05
  18  0.000438091
  19  26.8769
  20  7.92675e-05
  21  4.20281e-05
  22  3.23868
  23  2.73389e-06
  24  1.94788e-06
  25  3.82804e-05
  26  0.258092
  27  0.297374
Done.

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

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  5.302e+00  4.575e+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:  9.884e-01  2.974e-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.831e-01  2.581e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.24
Ra Dec: 199.401 34.468
Photon Index (Fixed Index): 2.53 +/- 0.00
Photon Flux (Fixed Index): 5.69e-08 +/- 4.91e-08
Energy Flux (Fixed Index): 1.59e-05 +/- 1.37e-05

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

Saving results to:
/scratch/kocevski/447616/likelihoodResults_499305601_499564801_4FGL_J1317.6+3428_daily_bin1003.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) = 4392.79023787
delta logL = 0.0528056417943

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4392.78788286
delta logL = 0.0551606538811

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5116       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7731       1.0000          .0000       10.000    
     3 'Normalizat'    .97117       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99808       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4392.788     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      280 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5115        4.9685        .11091E-03    .40877E-03
   2  Index         2.7730        .76861        .65979E-02    .65736E-04
   3  Normalizat    .97109        .25296        .24445E-03   -.81247E-04
   4  Prefactor     .99818        .29788        .28767E-03   -.77460E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.51146
  Index      = 2.773
  Normalizat = 0.971088
  Prefactor  = 0.998181
 **********
 **   18 **HESSE 
 **********

 FCN=   4392.788     FROM HESSE     STATUS=OK            25 CALLS      305 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5115        4.7603        .44366E-05   -1.5283    
   2  Index         2.7730        .73599        .26392E-03   -.46162    
   3  Normalizat    .97109        .25322        .97781E-05   -.94005    
   4  Prefactor     .99818        .29814        .11507E-04   -.92790    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.02499e-11
Minuit parameter uncertainties:
  1  4.76072
  2  0.739347
  3  0.253531
  4  0.298632
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/447616': 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) = 4392.78788278
delta logL = 0.0551607385596

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  4.511e+00  4.761e+00  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  2.773e+00  7.393e-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:  9.982e-01  2.986e-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.711e-01  2.535e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.35
Ra Dec: 199.401 34.468
Photon Index (Free Index): 2.77 +/- 0.74
Photon Flux (Free Index): 6.78e-08 +/- 6.34e-08
Energy Flux (Free Index): 1.55e-05 +/- 1.30e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/447616/cmap_HighResolution_499305601_499564801_4FGL_J1317.6+3428_daily_bin1003.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.30e-02', comment='SUCCESS', photon_flux='5.69e-08', energy_flux2='1.55e-05', photon_flux_error='4.91e-08', dlogl='5.52e-02', energy_flux='1.59e-05', photon_flux2='6.78e-08', job_status='DONE', time_completed='2021-09-07 10:36:21.301804', photon_index_error2='0.74', photon_index2='2.77', ts='2.24', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.67e-07', energy_flux_error2='1.30e-05', EG='0.98', time_epoch_completed='1631036181.3', return_code='0', job_id='447616', GAL2='1.00', EG2='0.97', return_code2='0', energy_flux_error='1.37e-05', photon_flux_error2='6.34e-08', ts2='2.35', photon_index='2.53' WHERE bin_id='1003' AND source_name='4FGL J1317.6+3428' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 10:36:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 447616: <4FGL_J1317.6+3428_daily_bin1003> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1317.6+3428_daily_bin1003 199.401 34.4676 499305601 499564801 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 :                                   628.32 sec.
    Max Memory :                                 1229 MB
    Average Memory :                             282.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   858 sec.
    Turnaround time :                            912 sec.

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

