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


Performing analysis on: 4FGL_J1317.6+3428_daily_bin60
RA = 199.401, Dec = 34.4676
tmin = 254880001, tmax = 255139201
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='441941', job_status='RUN', time_executed='2021-09-07 10:02:59.084888', time_epoch_executed='1631034179.08' WHERE source_name='4FGL J1317.6+3428' and cadence='daily' and bin_id='60'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/441941

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/441941/ft1_4FGL_J1317.6+3428_daily_bin60.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/441941/ft2_4FGL_J1317.6+3428_daily_bin60.fits


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

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

Done.
real 1.46
user 1.26
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/441941/ft2_4FGL_J1317.6+3428_daily_bin60.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/441941/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin60.fits evtable="EVENTS" outfile="/scratch/kocevski/441941/ft1_filtered_4FGL_J1317.6+3428_daily_bin60.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.54
user 0.36
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/441941/ft1_filtered_4FGL_J1317.6+3428_daily_bin60.fits evtable="EVENTS" scfile=/scratch/kocevski/441941/ft2_4FGL_J1317.6+3428_daily_bin60.fits sctable="SC_DATA" expcube=/scratch/kocevski/441941/ltcube_254880001_255139201_4FGL_J1317.6+3428_daily_bin60.fits outfile=/scratch/kocevski/441941/expmap_254880001_255139201_4FGL_J1317.6+3428_daily_bin60.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/441941/ltcube_254880001_255139201_4FGL_J1317.6+3428_daily_bin60.fits
.....................!
real 191.14
user 186.13
sys 4.39

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/441941/ft1_filtered_4FGL_J1317.6+3428_daily_bin60.fits scfile=/scratch/kocevski/441941/ft2_4FGL_J1317.6+3428_daily_bin60.fits outfile=/scratch/kocevski/441941/cmap_254880001_255139201_4FGL_J1317.6+3428_daily_bin60.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/441941/ft1_filtered_4FGL_J1317.6+3428_daily_bin60.fits scfile=/scratch/kocevski/441941/ft2_4FGL_J1317.6+3428_daily_bin60.fits outfile=/scratch/kocevski/441941/cmap_HighResolution_254880001_255139201_4FGL_J1317.6+3428_daily_bin60.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.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .46020E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.9964       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.9544       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .59908       1.0000         .10000E-03   10000.    
     6 'norm      '    1.2334       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    47.843       1.0000         .10000E-03   10000.    
     9 'norm      '    2.0824       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    18.474       1.0000         .10000E-03   10000.    
    12 'norm      '    4.2373       1.0000         .10000E-03   10000.    
    13 'norm      '    1.5276       1.0000         .10000E-03   10000.    
    14 'norm      '    10.574       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.8950       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    22.347       1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.613       1.0000         .10000E-03   10000.    
    22 'norm      '    3.4200       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0509       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .98688       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=   6823.098     FROM MIGRAD    STATUS=CONVERGED    656 CALLS     2818 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.8018       -.30044E-08** at limit **
   2  Prefactor     7.9960        7.3115       -.12244E-06    .26375E-04
   3  Prefactor     .10000E-03    13.703        .47280E-06** at limit **
   4  Prefactor     5.7482        243.12       -.69056E-05   -.72837E-05
   5  Prefactor     .60040        6.8995        .39422E-05   -.82439E-04
   6  norm          1.2203        5.7542       -.89782E-05   -.78225E-04
   7  Prefactor     .10000E-03    23.204        .62612E-06** at limit **
   8  Prefactor     47.889        26.850        .24744E-05    .62871E-04
   9  norm          2.0824        2.0711       -.66283E-07    .81493E-05
  10  Prefactor     .10000E-03    6.7019       -.30490E-06** at limit **
  11  norm          18.474        6.8762       -.74118E-07   -.25103E-04
  12  norm          4.2377        7.8603        .13070E-06   -.10976E-04
  13  norm          1.5290        4.9411        .22442E-05    .28449E-03
  14  norm          10.574        9.1343       -.63339E-06    .13615E-03
  15  norm          .10000E-03    9.4694        .11840E-05** at limit **
  16  Prefactor     6.8953        3.4848       -.14447E-06    .19719E-04
  17  Prefactor     .10000E-03    3.2591       -.31103E-07** at limit **
  18  Prefactor     .10000E-03    29.248       -.62949E-06** at limit **
  19  Prefactor     .10000E-03    10.092       -.49236E-06** at limit **
  20  Prefactor     22.344        16.829       -.51463E-06    .25768E-04
  21  Prefactor     12.562        100.21       -.14109E-04   -.16564E-04
  22  norm          3.4197        1.9184       -.96248E-07    .62716E-04
  23  Prefactor     .10000E-03    1.3738        .20078E-06** at limit **
  24  norm          .10000E-03    13.254       -.51756E-06** at limit **
  25  Prefactor     .10000E-03    8.4376       -.23415E-06** at limit **
  26  Normalizat    1.0512        .17223        .51619E-05   -.19223E-03
  27  Prefactor     .98661        .20179       -.43723E-05    .32085E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 7.99596
  Prefactor  = 0.0001
  Prefactor  = 5.74821
  Prefactor  = 0.600395
  norm       = 1.2203
  Prefactor  = 0.0001
  Prefactor  = 47.8892
  norm       = 2.08239
  Prefactor  = 0.0001
  norm       = 18.474
  norm       = 4.23773
  norm       = 1.52898
  norm       = 10.5736
  norm       = 0.0001
  Prefactor  = 6.89527
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.3444
  Prefactor  = 12.5622
  norm       = 3.41969
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.05118
  Prefactor  = 0.986612
 **********
 **   18 **HESSE 
 **********

 FCN=   6823.098     FROM HESSE     STATUS=OK           490 CALLS     3308 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.302        .38645E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.9960        7.3133        .14179E-03   -1.5142    
   3  Prefactor     .10000E-03    13.741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.7482        245.70        .16456E-03   -1.5228    
   5  Prefactor     .60040        6.9231        .41233E-03   -1.5553    
   6  norm          1.2203        5.7998        .31930E-03   -1.5487    
   7  Prefactor     .10000E-03    23.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     47.889        26.676        .28986E-03   -1.4323    
   9  norm          2.0824        2.0778        .11537E-03   -1.5419    
  10  Prefactor     .10000E-03    6.7189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          18.474        6.8537        .93184E-04   -1.4848    
  12  norm          4.2377        7.8506        .19575E-03   -1.5296    
  13  norm          1.5290        4.8474        .20902E-03   -1.5461    
  14  norm          10.574        9.0047        .12321E-03   -1.5058    
  15  norm          .10000E-03    9.5178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.8953        3.4761        .10262E-03   -1.5183    
  17  Prefactor     .10000E-03    3.2615        .14561E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    29.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     22.344        16.841        .84732E-04   -1.4762    
  21  Prefactor     12.562        100.91        .11279E-03   -1.4999    
  22  norm          3.4197        1.9161        .82578E-04   -1.5338    
  23  Prefactor     .10000E-03    1.3873        .94490E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    13.371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    8.4477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0512        .19967        .22907E-03   -.91335    
  27  Prefactor     .98661        .23633        .29201E-03   -.93177    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61949e-09
Minuit parameter uncertainties:
  1  0.000307643
  2  7.31408
  3  2.1756e-05
  4  75.4952
  5  4.0778
  6  5.32133
  7  9.87328e-07
  8  26.6828
  9  2.07786
  10  4.13039e-05
  11  6.85395
  12  7.85255
  13  4.84868
  14  9.00586
  15  2.32437e-05
  16  3.47618
  17  5.5741e-06
  18  5.1183e-05
  19  5.35801e-05
  20  16.8445
  21  71.3725
  22  1.91613
  23  5.80304e-06
  24  1.0492e-05
  25  1.20746e-05
  26  0.199816
  27  0.236574
Done.

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

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  6.895e+00  3.476e+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.866e-01  2.366e-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.051e+00  1.998e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.08
Ra Dec: 199.401 34.468
Photon Index (Fixed Index): 2.53 +/- 0.00
Photon Flux (Fixed Index): 7.41e-08 +/- 3.73e-08
Energy Flux (Fixed Index): 2.07e-05 +/- 1.04e-05

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) = 6822.2160717
delta logL = 0.881492863343

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6822.2159991
delta logL = 0.881565456697

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.6783       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9766       1.0000          .0000       10.000    
     3 'Normalizat'    1.0835       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95925       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=   6822.216     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      237 TOTAL
                     EDM=   .94E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.6750        7.2581        .34017E-02    .52901E-04
   2  Index         1.9766        .54334        .17847       -.13411E-04
   3  Normalizat    1.0835        .16022        .38714E-01    .21113E-04
   4  Prefactor     .95927        .19777        .66836E-01    .23149E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.67497
  Index      = 1.97661
  Normalizat = 1.08351
  Prefactor  = 0.959272
 **********
 **   18 **HESSE 
 **********

 FCN=   6822.216     FROM HESSE     STATUS=OK            33 CALLS      270 TOTAL
                     EDM=   .40E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.6750        4.6136        .12458E-03   -1.5119    
   2  Index         1.9766        .39582        .68604E-02   -.64936    
   3  Normalizat    1.0835        .18940        .22623E-03   -.90283    
   4  Prefactor     .95927        .23364        .29563E-03   -.94100    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.04935e-13
Minuit parameter uncertainties:
  1  4.61381
  2  0.396479
  3  0.18952
  4  0.233885
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/441941': 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) = 6822.21599885
delta logL = 0.881565715677

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  8.675e+00  4.614e+00  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  1.977e+00  3.965e-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.593e-01  2.339e-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.084e+00  1.895e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.92
Ra Dec: 199.401 34.468
Photon Index (Free Index): 1.98 +/- 0.40
Photon Flux (Free Index): 4.75e-08 +/- 3.31e-08
Energy Flux (Free Index): 3.48e-05 +/- 2.66e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/441941/cmap_HighResolution_254880001_255139201_4FGL_J1317.6+3428_daily_bin60.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.41e-08', energy_flux2='3.48e-05', photon_flux_error='3.73e-08', dlogl='8.82e-01', energy_flux='2.07e-05', photon_flux2='4.75e-08', job_status='DONE', time_completed='2021-09-07 10:14:04.691255', photon_index_error2='0.40', photon_index2='1.98', ts='9.08', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='2.66e-05', EG='1.05', time_epoch_completed='1631034844.69', return_code='0', job_id='441941', GAL2='0.96', EG2='1.08', return_code2='0', energy_flux_error='1.04e-05', photon_flux_error2='3.31e-08', ts2='10.92', photon_index='2.53' WHERE bin_id='60' AND source_name='4FGL J1317.6+3428' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 10:14:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0296>
Subject: Job 441941: <4FGL_J1317.6+3428_daily_bin60> in cluster <slac> Done

Job <4FGL_J1317.6+3428_daily_bin60> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep  7 10:01:03 2021
Job was executed on host(s) <bullet0296>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 10:02:48 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:02:48 2021
Terminated at Tue Sep  7 10:14:05 2021
Results reported at Tue Sep  7 10:14:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1317.6+3428_daily_bin60 199.401 34.4676 254880001 255139201 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 :                                   664.54 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             355.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   676 sec.
    Turnaround time :                            782 sec.

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

