/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 5 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 = 7427
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1517.7+6525_daily_bin282
RA = 229.436, Dec = 65.424
tmin = 312422401, tmax = 312681601
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='461411', job_status='RUN', time_executed='2021-09-11 23:46:07.238266', time_epoch_executed='1631429167.24' WHERE source_name='4FGL J1517.7+6525' and cadence='daily' and bin_id='282'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/461411

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/461411/ft1_4FGL_J1517.7+6525_daily_bin282.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/461411/ft2_4FGL_J1517.7+6525_daily_bin282.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/461411/ft1_4FGL_J1517.7+6525_daily_bin282.fits outfile=/scratch/kocevski/461411/ft1_filteredMKT_4FGL_J1517.7+6525_daily_bin282.fits ra=229.436 dec=65.424 rad=12.0 tmin=312422401.0 tmax=312681601.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.90
user 3.66
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/461411/ft2_4FGL_J1517.7+6525_daily_bin282.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/461411/ft2_4FGL_J1517.7+6525_daily_bin282.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/461411/ft1_filteredMKT_4FGL_J1517.7+6525_daily_bin282.fits evtable="EVENTS" outfile="/scratch/kocevski/461411/ft1_filtered_4FGL_J1517.7+6525_daily_bin282.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.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/461411/ft1_filtered_4FGL_J1517.7+6525_daily_bin282.fits" evtable="EVENTS" scfile=/scratch/kocevski/461411/ft2_4FGL_J1517.7+6525_daily_bin282.fits sctable="SC_DATA" outfile=/scratch/kocevski/461411/ltcube_312422401_312681601_4FGL_J1517.7+6525_daily_bin282.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/461411/ft2_4FGL_J1517.7+6525_daily_bin282.fits
.....................!
real 11.73
user 11.31
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/461411/ft1_filtered_4FGL_J1517.7+6525_daily_bin282.fits evtable="EVENTS" scfile=/scratch/kocevski/461411/ft2_4FGL_J1517.7+6525_daily_bin282.fits sctable="SC_DATA" expcube=/scratch/kocevski/461411/ltcube_312422401_312681601_4FGL_J1517.7+6525_daily_bin282.fits outfile=/scratch/kocevski/461411/expmap_312422401_312681601_4FGL_J1517.7+6525_daily_bin282.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/461411/ltcube_312422401_312681601_4FGL_J1517.7+6525_daily_bin282.fits
.....................!
real 193.62
user 186.78
sys 5.90

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 212 point sources and 0 extended sources

Setting source of interest to:
4FGL J1517.7+6525 @ 229.436 65.424

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/461411/ft1_filtered_4FGL_J1517.7+6525_daily_bin282.fits scfile=/scratch/kocevski/461411/ft2_4FGL_J1517.7+6525_daily_bin282.fits outfile=/scratch/kocevski/461411/cmap_312422401_312681601_4FGL_J1517.7+6525_daily_bin282.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=229.436 yref=65.424 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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/461411/ft1_filtered_4FGL_J1517.7+6525_daily_bin282.fits scfile=/scratch/kocevski/461411/ft2_4FGL_J1517.7+6525_daily_bin282.fits outfile=/scratch/kocevski/461411/cmap_HighResolution_312422401_312681601_4FGL_J1517.7+6525_daily_bin282.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=229.436 yref=65.424 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.55
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/461411/ft1_filtered_4FGL_J1517.7+6525_daily_bin282.fits evtable="EVENTS" scfile=/scratch/kocevski/461411/ft2_4FGL_J1517.7+6525_daily_bin282.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/461411/Model_4FGL_J1517.7+6525_daily_bin282.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/461411/ft1_filtered_4FGL_J1517.7+6525_daily_bin282.fits.....................!
real 61.52
user 60.14
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/461411/ft1_filtered_4FGL_J1517.7+6525_daily_bin282.fits', '/scratch/kocevski/461411/ft2_4FGL_J1517.7+6525_daily_bin282.fits', expMap='/scratch/kocevski/461411/expmap_312422401_312681601_4FGL_J1517.7+6525_daily_bin282.fits', expCube='/scratch/kocevski/461411/ltcube_312422401_312681601_4FGL_J1517.7+6525_daily_bin282.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/461411/Model_4FGL_J1517.7+6525_daily_bin282.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1517.7+6525'

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  8.633e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
341        Index:  1.816e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
342        Scale:  3.014e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/461411/ft1_filtered_4FGL_J1517.7+6525_daily_bin282.fits
Spacecraft file(s): /scratch/kocevski/461411/ft2_4FGL_J1517.7+6525_daily_bin282.fits
Exposure map: /scratch/kocevski/461411/expmap_312422401_312681601_4FGL_J1517.7+6525_daily_bin282.fits
Exposure cube: /scratch/kocevski/461411/ltcube_312422401_312681601_4FGL_J1517.7+6525_daily_bin282.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/461411/Model_4FGL_J1517.7+6525_daily_bin282.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) = 7228.1846465

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    41.408       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11085E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .23112E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .74440       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.9894       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.864       1.0000         .10000E-03   10000.    
    15 'Prefactor '    33.448       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.0620       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.7151       1.0000         .10000E-03   10000.    
    18 'Prefactor '    60.671       1.0000         .10000E-03   10000.    
    19 'norm      '    1.8039       1.0000         .10000E-03   10000.    
    20 'Prefactor '    175.18       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.1931       1.0000         .10000E-03   10000.    
    22 'norm      '    3.1217       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    37.187       1.0000         .10000E-03   10000.    
    25 'Prefactor '    65.327       1.0000         .10000E-03   10000.    
    26 'norm      '    3.6124       1.0000         .10000E-03   10000.    
    27 'norm      '    2.7012       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .12488E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .22054E-02   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .90543       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0298       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7228.099     FROM MIGRAD    STATUS=CONVERGED    804 CALLS     4267 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.397        82.209       -.15736E-05   -.52377E-04
   2  Prefactor     .10000E-03    16.559        .24527E-06** at limit **
   3  Prefactor     .10000E-03    1.7436       -.36913E-07** at limit **
   4  Prefactor     .10000E-03    7.9177        .53428E-07** at limit **
   5  Prefactor     .10001E-03    4.2192        .11907E-05** at limit **
   6  Prefactor     .10000E-03    3.4128        .44338E-07** at limit **
   7  Prefactor     .10000E-03    12.590        .56688E-08** at limit **
   8  Prefactor     .10000E-03    111.58       -.48868E-06** at limit **
   9  Prefactor     .75154        10.621       -.77701E-07    .32454E-05
  10  Prefactor     .10000E-03    45.186       -.12187E-07** at limit **
  11  Prefactor     .10000E-03    11.256        .34538E-06** at limit **
  12  Prefactor     6.9898        13.597        .25043E-05   -.14375E-03
  13  Prefactor     .10000E-03    10.910       -.38519E-06** at limit **
  14  Prefactor     19.864        11.055       -.91836E-06   -.25221E-03
  15  Prefactor     33.450        33.434        .25476E-06    .13762E-04
  16  Prefactor     1.0614        9.5355        .47684E-05   -.16278E-03
  17  Prefactor     7.7147        9.4148        .12295E-06   -.13288E-04
  18  Prefactor     60.667        32.598       -.18388E-06   -.33785E-04
  19  norm          1.8041        1.7729       -.98543E-08    .31419E-04
  20  Prefactor     175.16        95.286       -.15284E-05   -.96011E-04
  21  Prefactor     7.1928        5.8579       -.37311E-06   -.76680E-04
  22  norm          3.1217        3.9990        .20047E-05   -.54780E-03
  23  Prefactor     .10000E-03    12.999       -.60668E-06** at limit **
  24  Prefactor     37.111        96.524       -.15047E-04   -.15047E-03
  25  Prefactor     65.331        43.490        .54173E-06   -.26475E-05
  26  norm          3.6127        5.4711       -.45047E-07   -.13291E-03
  27  norm          2.7013        .93685       -.24254E-07   -.10639E-02
  28  Prefactor     .10000E-03    4.0595        .60793E-07** at limit **
  29  Prefactor     .10021E-03    15.092        .13241E-05** at limit **
  30  Normalizat    .90560        .15746       -.93224E-06   -.25728E-03
  31  Prefactor     1.0297        .16044        .28122E-06   -.29057E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.3965
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.751541
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.98983
  Prefactor  = 0.0001
  Prefactor  = 19.8643
  Prefactor  = 33.4505
  Prefactor  = 1.06142
  Prefactor  = 7.71473
  Prefactor  = 60.6674
  norm       = 1.80408
  Prefactor  = 175.157
  Prefactor  = 7.19276
  norm       = 3.1217
  Prefactor  = 0.0001
  Prefactor  = 37.1111
  Prefactor  = 65.331
  norm       = 3.61268
  norm       = 2.70126
  Prefactor  = 0.0001
  Prefactor  = 0.000100208
  Normalizat = 0.905603
  Prefactor  = 1.02967
 **********
 **   18 **HESSE 
 **********

 FCN=   7228.099     FROM HESSE     STATUS=OK           622 CALLS     4889 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.397        82.251        .62294E-04   -1.4420    
   2  Prefactor     .10000E-03    16.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.2488        .21115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.9490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    11.634        .32375E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.4291        .15337E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    111.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .75154        77.609        .53500E-02   -1.5535    
  10  Prefactor     .10000E-03    45.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.9898        13.680        .75873E-03   -1.5179    
  13  Prefactor     .10000E-03    10.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     19.864        10.909        .89866E-04   -1.4816    
  15  Prefactor     33.450        33.438        .69287E-04   -1.4551    
  16  Prefactor     1.0614        9.7091        .47063E-03   -1.5502    
  17  Prefactor     7.7147        9.4128        .14437E-03   -1.5152    
  18  Prefactor     60.667        32.600        .51512E-04   -1.4149    
  19  norm          1.8041        1.7817        .10789E-03   -1.5439    
  20  Prefactor     175.16        95.706        .15245E-03   -1.3053    
  21  Prefactor     7.1928        5.8561        .14956E-03   -1.5172    
  22  norm          3.1217        4.0556        .94159E-03   -1.5355    
  23  Prefactor     .10000E-03    13.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     37.111        102.23        .65722E-04   -1.4489    
  25  Prefactor     65.331        43.469        .49654E-04   -1.4090    
  26  norm          3.6127        5.4637        .21259E-03   -1.5328    
  27  norm          2.7013        .89714        .43393E-04   -1.5379    
  28  Prefactor     .10000E-03    24.582        .32114E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10021E-03    123.87        .61072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .90560        .18280        .24376E-03   -.96264    
  31  Prefactor     1.0297        .18674        .23991E-03   -.91747    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.60223e-09
Minuit parameter uncertainties:
  1  82.4775
  2  3.70409e-05
  3  4.11033e-05
  4  1.10135e-05
  5  0.000716722
  6  1.25001e-07
  7  7.91251e-06
  8  0.00014808
  9  15.2937
  10  2.23672e-05
  11  3.21191e-05
  12  13.6859
  13  3.9916e-05
  14  10.9102
  15  33.457
  16  6.4215
  17  9.41457
  18  32.6092
  19  1.78179
  20  95.7913
  21  5.85661
  22  4.05592
  23  6.44955e-05
  24  102.722
  25  43.4898
  26  5.46445
  27  0.897141
  28  5.69455e-05
  29  0.0101805
  30  0.18292
  31  0.186863
Done.

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

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  6.067e+01  3.261e+01  1.000e-04  1.000e+04 ( 1.000e-14)
341        Index:  1.816e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
342        Scale:  3.014e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  1.030e+00  1.869e-01  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  9.056e-01  1.829e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.06
Ra Dec: 229.436 65.424
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 3.60e-08 +/- 1.93e-08
Energy Flux (Fixed Index): 4.10e-05 +/- 2.21e-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) = 7228.05110173
delta logL = 0.0483278745442

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7228.04756392
delta logL = 0.0518656938284

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7228.048     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      231 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     52.016        542.95        .13908E-02    .96128E-05
   2  Index         1.9344        2.5518        .12093        .13982E-03
   3  Normalizat    .90121        .88700E-01    .44916E-01    .23625E-05
   4  Prefactor     1.0319        .69466E-01    .41108E-01   -.26224E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 52.0162
  Index      = 1.93443
  Normalizat = 0.901215
  Prefactor  = 1.03189
 **********
 **   18 **HESSE 
 **********

 FCN=   7228.048     FROM HESSE     STATUS=OK            31 CALLS      262 TOTAL
                     EDM=   .61E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     52.016        40.794        .55632E-04   -1.4264    
   2  Index         1.9344        .39307        .45493E-02   -.66000    
   3  Normalizat    .90121        .17494        .24427E-03   -.96417    
   4  Prefactor     1.0319        .18284        .23965E-03   -.91674    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.061e-12
Minuit parameter uncertainties:
  1  40.8155
  2  0.393727
  3  0.17505
  4  0.182954
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/461411': 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) = 7228.04756301
delta logL = 0.0518666011903

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  5.202e+01  4.082e+01  1.000e-04  1.000e+04 ( 1.000e-14)
341        Index:  1.934e+00  3.937e-01  0.000e+00  1.000e+01 (-1.000e+00)
342        Scale:  3.014e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  1.032e+00  1.830e-01  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  9.012e-01  1.750e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.16
Ra Dec: 229.436 65.424
Photon Index (Free Index): 1.93 +/- 0.39
Photon Flux (Free Index): 4.04e-08 +/- 2.48e-08
Energy Flux (Free Index): 3.30e-05 +/- 2.91e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/461411/cmap_HighResolution_312422401_312681601_4FGL_J1517.7+6525_daily_bin282.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.60e-08', energy_flux2='3.30e-05', photon_flux_error='1.93e-08', dlogl='5.19e-02', energy_flux='4.10e-05', photon_flux2='4.04e-08', job_status='DONE', time_completed='2021-09-12 00:02:23.706277', photon_index_error2='0.39', photon_index2='1.93', ts='11.06', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='2.91e-05', EG='0.91', time_epoch_completed='1631430143.71', return_code='0', job_id='461411', GAL2='1.03', EG2='0.90', return_code2='0', energy_flux_error='2.21e-05', photon_flux_error2='2.48e-08', ts2='11.16', photon_index='1.82' WHERE bin_id='282' AND source_name='4FGL J1517.7+6525' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 00:02:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 461411: <4FGL_J1517.7+6525_daily_bin282> in cluster <slac> Done

Job <4FGL_J1517.7+6525_daily_bin282> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 11 23:45:53 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 23:45:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 23:45:54 2021
Terminated at Sun Sep 12 00:02:24 2021
Results reported at Sun Sep 12 00:02:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1517.7+6525_daily_bin282 229.436 65.424 312422401 312681601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1517.7+6525 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   975.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             305.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   989 sec.
    Turnaround time :                            991 sec.

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

