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


Performing analysis on: 4FGL_J1517.7+6525_daily_bin89
RA = 229.436, Dec = 65.424
tmin = 262396801, tmax = 262656001
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='458580', job_status='RUN', time_executed='2021-09-11 23:36:34.000065', time_epoch_executed='1631428594.0' WHERE source_name='4FGL J1517.7+6525' and cadence='daily' and bin_id='89'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/458580

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/458580/ft1_4FGL_J1517.7+6525_daily_bin89.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/458580/ft2_4FGL_J1517.7+6525_daily_bin89.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/458580/ft1_4FGL_J1517.7+6525_daily_bin89.fits outfile=/scratch/kocevski/458580/ft1_filteredMKT_4FGL_J1517.7+6525_daily_bin89.fits ra=229.436 dec=65.424 rad=12.0 tmin=262396801.0 tmax=262656001.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.43
user 1.24
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/458580/ft2_4FGL_J1517.7+6525_daily_bin89.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/458580/ft1_filteredMKT_4FGL_J1517.7+6525_daily_bin89.fits evtable="EVENTS" outfile="/scratch/kocevski/458580/ft1_filtered_4FGL_J1517.7+6525_daily_bin89.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.48
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/458580/ft1_filtered_4FGL_J1517.7+6525_daily_bin89.fits" evtable="EVENTS" scfile=/scratch/kocevski/458580/ft2_4FGL_J1517.7+6525_daily_bin89.fits sctable="SC_DATA" outfile=/scratch/kocevski/458580/ltcube_262396801_262656001_4FGL_J1517.7+6525_daily_bin89.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/458580/ft2_4FGL_J1517.7+6525_daily_bin89.fits
.....................!
real 12.64
user 12.28
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/458580/ft1_filtered_4FGL_J1517.7+6525_daily_bin89.fits evtable="EVENTS" scfile=/scratch/kocevski/458580/ft2_4FGL_J1517.7+6525_daily_bin89.fits sctable="SC_DATA" expcube=/scratch/kocevski/458580/ltcube_262396801_262656001_4FGL_J1517.7+6525_daily_bin89.fits outfile=/scratch/kocevski/458580/expmap_262396801_262656001_4FGL_J1517.7+6525_daily_bin89.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/458580/ltcube_262396801_262656001_4FGL_J1517.7+6525_daily_bin89.fits
.....................!
real 191.88
user 186.87
sys 4.64

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/458580/ft1_filtered_4FGL_J1517.7+6525_daily_bin89.fits scfile=/scratch/kocevski/458580/ft2_4FGL_J1517.7+6525_daily_bin89.fits outfile=/scratch/kocevski/458580/cmap_262396801_262656001_4FGL_J1517.7+6525_daily_bin89.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/458580/ft1_filtered_4FGL_J1517.7+6525_daily_bin89.fits scfile=/scratch/kocevski/458580/ft2_4FGL_J1517.7+6525_daily_bin89.fits outfile=/scratch/kocevski/458580/cmap_HighResolution_262396801_262656001_4FGL_J1517.7+6525_daily_bin89.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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/458580/ft1_filtered_4FGL_J1517.7+6525_daily_bin89.fits evtable="EVENTS" scfile=/scratch/kocevski/458580/ft2_4FGL_J1517.7+6525_daily_bin89.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/458580/Model_4FGL_J1517.7+6525_daily_bin89.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/458580/ft1_filtered_4FGL_J1517.7+6525_daily_bin89.fits.....................!
real 51.80
user 50.28
sys 1.38

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/458580/ft1_filtered_4FGL_J1517.7+6525_daily_bin89.fits', '/scratch/kocevski/458580/ft2_4FGL_J1517.7+6525_daily_bin89.fits', expMap='/scratch/kocevski/458580/expmap_262396801_262656001_4FGL_J1517.7+6525_daily_bin89.fits', expCube='/scratch/kocevski/458580/ltcube_262396801_262656001_4FGL_J1517.7+6525_daily_bin89.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/458580/Model_4FGL_J1517.7+6525_daily_bin89.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/458580/ft1_filtered_4FGL_J1517.7+6525_daily_bin89.fits
Spacecraft file(s): /scratch/kocevski/458580/ft2_4FGL_J1517.7+6525_daily_bin89.fits
Exposure map: /scratch/kocevski/458580/expmap_262396801_262656001_4FGL_J1517.7+6525_daily_bin89.fits
Exposure cube: /scratch/kocevski/458580/ltcube_262396801_262656001_4FGL_J1517.7+6525_daily_bin89.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/458580/Model_4FGL_J1517.7+6525_daily_bin89.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) = 5333.86977916

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10203E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.9409       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.9490       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.2963       1.0000         .10000E-03   10000.    
     7 'Prefactor '    56.713       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .18854E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    36.616       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.534       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .22886E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.289       1.0000         .10000E-03   10000.    
    19 'norm      '    12.495       1.0000         .10000E-03   10000.    
    20 'Prefactor '    82.051       1.0000         .10000E-03   10000.    
    21 'Prefactor '    23.160       1.0000         .10000E-03   10000.    
    22 'norm      '    13.534       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.3463       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    1.8298       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    9.2048       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.6988       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .43631       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=   5333.846     FROM MIGRAD    STATUS=CONVERGED    827 CALLS     4147 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    102.99       -.66047E-06** at limit **
   2  Prefactor     .10000E-03    10.501       -.51904E-07** at limit **
   3  Prefactor     3.9473        8.5345        .20464E-05    .20588E-03
   4  Prefactor     .10000E-03    6.2244       -.15817E-06** at limit **
   5  Prefactor     7.9494        15.665       -.90211E-06   -.14681E-04
   6  Prefactor     5.3020        9.9732        .11951E-05    .52367E-04
   7  Prefactor     56.737        55.703       -.26001E-06   -.16126E-04
   8  Prefactor     .10000E-03    809.34       -.14189E-06** at limit **
   9  Prefactor     36.607        53.126        .30100E-05   -.38870E-04
  10  Prefactor     .10000E-03    49.337       -.66390E-06** at limit **
  11  Prefactor     16.545        58.012       -.11944E-05   -.16177E-04
  12  Prefactor     .10000E-03    6.4189       -.58743E-07** at limit **
  13  Prefactor     .10000E-03    8.8334       -.14652E-06** at limit **
  14  Prefactor     .10071E-03    15.241        .62868E-05** at limit **
  15  Prefactor     .10000E-03    27.997       -.29393E-06** at limit **
  16  Prefactor     .10000E-03    5.0177       -.10174E-06** at limit **
  17  Prefactor     .10000E-03    8.2161        .54510E-06** at limit **
  18  Prefactor     24.293        27.290        .22004E-06   -.51945E-05
  19  norm          12.494        5.5216        .56717E-07   -.84444E-04
  20  Prefactor     82.467        153.97        .45918E-05    .35468E-04
  21  Prefactor     23.168        19.961        .68972E-07   -.48985E-04
  22  norm          13.536        15.811        .39236E-06   -.27538E-04
  23  Prefactor     .10000E-03    26.090        .37603E-06** at limit **
  24  Prefactor     5.4816        947.43       -.18995E-04   -.34897E-05
  25  Prefactor     .10000E-03    81.948       -.20135E-05** at limit **
  26  norm          .10000E-03    5.9007       -.74091E-07** at limit **
  27  norm          1.8298        .86075       -.27964E-07    .59174E-04
  28  Prefactor     .10000E-03    12.457       -.59044E-06** at limit **
  29  Prefactor     9.2057        13.763       -.16611E-06   -.19034E-05
  30  Normalizat    1.6978        .25128       -.95473E-05   -.13575E-03
  31  Prefactor     .43703        .22053        .16279E-04    .14249E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.94734
  Prefactor  = 0.0001
  Prefactor  = 7.94936
  Prefactor  = 5.30198
  Prefactor  = 56.7371
  Prefactor  = 0.000100001
  Prefactor  = 36.6073
  Prefactor  = 0.0001
  Prefactor  = 16.5449
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100712
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.293
  norm       = 12.4943
  Prefactor  = 82.4674
  Prefactor  = 23.1684
  norm       = 13.5357
  Prefactor  = 0.0001
  Prefactor  = 5.4816
  Prefactor  = 0.000100003
  norm       = 0.0001
  norm       = 1.82975
  Prefactor  = 0.0001
  Prefactor  = 9.20565
  Normalizat = 1.69783
  Prefactor  = 0.437029
 **********
 **   18 **HESSE 
 **********

 FCN=   5333.846     FROM HESSE     STATUS=OK           620 CALLS     4767 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    103.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.9473        8.3438        .20321E-03   -1.5311    
   4  Prefactor     .10000E-03    6.2321        .17796E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.9494        15.281        .14221E-03   -1.5144    
   6  Prefactor     5.3020        9.9622        .17464E-03   -1.5247    
   7  Prefactor     56.737        55.660        .53269E-04   -1.4200    
   8  Prefactor     .10000E-03    809.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     36.607        52.865        .66231E-04   -1.4497    
  10  Prefactor     .10000E-03    49.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.545        57.748        .98499E-04   -1.4894    
  12  Prefactor     .10000E-03    6.4203        .18072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.8357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10071E-03    59.346        .44519E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    28.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.0320        .15971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.2379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     24.293        27.288        .81278E-04   -1.4722    
  19  norm          12.494        5.5209        .10719E-03   -1.5001    
  20  Prefactor     82.467        154.07        .22171E-03   -1.3889    
  21  Prefactor     23.168        19.973        .83234E-04   -1.4745    
  22  norm          13.536        15.819        .10888E-03   -1.4972    
  23  Prefactor     .10000E-03    26.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     5.4816        928.70        .17381E-03   -1.5240    
  25  Prefactor     .10000E-03    82.867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    5.9257        .17325E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          1.8298        .86095        .44548E-04   -1.5437    
  28  Prefactor     .10000E-03    12.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     9.2057        13.758        .13210E-03   -1.5101    
  30  Normalizat    1.6978        .25756        .21759E-03   -.72361    
  31  Prefactor     .43703        .22524        .36884E-03   -1.1496    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24442e-08
Minuit parameter uncertainties:
  1  0.000235622
  2  6.6063e-06
  3  8.34624
  4  1.33798e-05
  5  15.2883
  6  9.96527
  7  55.7113
  8  0.00155652
  9  52.9328
  10  0.000264201
  11  57.9446
  12  4.83857e-06
  13  1.28106e-05
  14  0.0130155
  15  6.32775e-05
  16  1.76903e-05
  17  6.64472e-05
  18  27.3018
  19  5.52109
  20  154.822
  21  19.9786
  22  15.824
  23  7.23822e-05
  24  145.047
  25  0.000930983
  26  7.65871e-06
  27  0.860953
  28  5.33065e-05
  29  13.7627
  30  0.257766
  31  0.225699
Done.

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

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  2.429e+01  2.730e+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:  4.370e-01  2.257e-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:  1.698e+00  2.578e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.35
Ra Dec: 229.436 65.424
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 1.44e-08 +/- 1.62e-08
Energy Flux (Fixed Index): 1.64e-05 +/- 1.85e-05

TS (Fixed Index): 2.35
Ra Dec: 229.436 65.424
Photon Flux Upper Limit: 6.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.05e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/458580/likelihoodResults_262396801_262656001_4FGL_J1517.7+6525_daily_bin89.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) = 5333.16311394
delta logL = 0.683107967444

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5333.16119594
delta logL = 0.685025965066

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.134       1.0000         .10000E-03   10000.    
     2 'Index     '    1.0209       1.0000          .0000       10.000    
     3 'Normalizat'    1.7042       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .43546       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=   5333.161     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      218 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.134        28.863        .19591E-02   -.19545E-03
   2  Index         1.0204        .55612        .29768       -.22215E-04
   3  Normalizat    1.7046        .20888        .49135E-01    .33374E-05
   4  Prefactor     .43538        .19305        .83380E-01    .38563E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.1336
  Index      = 1.0204
  Normalizat = 1.7046
  Prefactor  = 0.435378
 **********
 **   18 **HESSE 
 **********

 FCN=   5333.161     FROM HESSE     STATUS=OK            31 CALLS      249 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.134        31.573        .78363E-04   -1.4685    
   2  Index         1.0204        .63198        .12630E-01   -.92053    
   3  Normalizat    1.7046        .23313        .21719E-03   -.72181    
   4  Prefactor     .43538        .21494        .36942E-03   -1.1504    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53683e-10
Minuit parameter uncertainties:
  1  31.593
  2  0.636661
  3  0.233281
  4  0.21534
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/458580': 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) = 5333.16119257
delta logL = 0.685029328624

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  2.613e+01  3.159e+01  1.000e-04  1.000e+04 ( 1.000e-14)
341        Index:  1.020e+00  6.367e-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:  4.354e-01  2.153e-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:  1.705e+00  2.333e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.72
Ra Dec: 229.436 65.424
Photon Index (Free Index): 1.02 +/- 0.64
Photon Flux (Free Index): 5.44e-09 +/- 6.63e-09
Energy Flux (Free Index): 7.48e-05 +/- 1.09e-04

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/458580/cmap_HighResolution_262396801_262656001_4FGL_J1517.7+6525_daily_bin89.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.05e-03', comment='SUCCESS', photon_flux='1.44e-08', energy_flux2='7.48e-05', photon_flux_error='1.62e-08', dlogl='6.85e-01', energy_flux='1.64e-05', photon_flux2='5.44e-09', job_status='DONE', time_completed='2021-09-11 23:51:23.615056', photon_index_error2='0.64', photon_index2='1.02', ts='2.35', fit_tolerance='1e-08', GAL='0.44', photon_index_error='0.00', photon_flux_upper_limit='6.85e-08', energy_flux_error2='1.09e-04', EG='1.70', time_epoch_completed='1631429483.62', return_code='0', job_id='458580', GAL2='0.44', EG2='1.70', return_code2='0', energy_flux_error='1.85e-05', photon_flux_error2='6.63e-09', ts2='3.72', photon_index='1.82' WHERE bin_id='89' AND source_name='4FGL J1517.7+6525' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:51:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 458580: <4FGL_J1517.7+6525_daily_bin89> in cluster <slac> Done

Job <4FGL_J1517.7+6525_daily_bin89> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep 11 23:36:19 2021
Job was executed on host(s) <bullet0125>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 23:36:21 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:36:21 2021
Terminated at Sat Sep 11 23:51:24 2021
Results reported at Sat Sep 11 23:51:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1517.7+6525_daily_bin89 229.436 65.424 262396801 262656001 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 :                                   886.18 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             338.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            905 sec.

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

