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


Performing analysis on: 4FGL_J1517.7+6525_daily_bin653
RA = 229.436, Dec = 65.424
tmin = 408585601, tmax = 408844801
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='460407', job_status='RUN', time_executed='2021-09-11 23:43:52.047022', time_epoch_executed='1631429032.05' WHERE source_name='4FGL J1517.7+6525' and cadence='daily' and bin_id='653'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/460407

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/460407/ft1_4FGL_J1517.7+6525_daily_bin653.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/460407/ft2_4FGL_J1517.7+6525_daily_bin653.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/460407/ft1_4FGL_J1517.7+6525_daily_bin653.fits outfile=/scratch/kocevski/460407/ft1_filteredMKT_4FGL_J1517.7+6525_daily_bin653.fits ra=229.436 dec=65.424 rad=12.0 tmin=408585601.0 tmax=408844801.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 4.38
user 4.17
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/460407/ft2_4FGL_J1517.7+6525_daily_bin653.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/460407/ft1_filteredMKT_4FGL_J1517.7+6525_daily_bin653.fits evtable="EVENTS" outfile="/scratch/kocevski/460407/ft1_filtered_4FGL_J1517.7+6525_daily_bin653.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.50
user 0.35
sys 0.12

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/460407/ft1_filtered_4FGL_J1517.7+6525_daily_bin653.fits" evtable="EVENTS" scfile=/scratch/kocevski/460407/ft2_4FGL_J1517.7+6525_daily_bin653.fits sctable="SC_DATA" outfile=/scratch/kocevski/460407/ltcube_408585601_408844801_4FGL_J1517.7+6525_daily_bin653.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/460407/ft2_4FGL_J1517.7+6525_daily_bin653.fits
.....................!
real 13.64
user 13.31
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/460407/ft1_filtered_4FGL_J1517.7+6525_daily_bin653.fits evtable="EVENTS" scfile=/scratch/kocevski/460407/ft2_4FGL_J1517.7+6525_daily_bin653.fits sctable="SC_DATA" expcube=/scratch/kocevski/460407/ltcube_408585601_408844801_4FGL_J1517.7+6525_daily_bin653.fits outfile=/scratch/kocevski/460407/expmap_408585601_408844801_4FGL_J1517.7+6525_daily_bin653.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/460407/ltcube_408585601_408844801_4FGL_J1517.7+6525_daily_bin653.fits
.....................!
real 189.85
user 185.60
sys 3.83

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/460407/ft1_filtered_4FGL_J1517.7+6525_daily_bin653.fits scfile=/scratch/kocevski/460407/ft2_4FGL_J1517.7+6525_daily_bin653.fits outfile=/scratch/kocevski/460407/cmap_408585601_408844801_4FGL_J1517.7+6525_daily_bin653.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/460407/ft1_filtered_4FGL_J1517.7+6525_daily_bin653.fits scfile=/scratch/kocevski/460407/ft2_4FGL_J1517.7+6525_daily_bin653.fits outfile=/scratch/kocevski/460407/cmap_HighResolution_408585601_408844801_4FGL_J1517.7+6525_daily_bin653.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/460407/ft1_filtered_4FGL_J1517.7+6525_daily_bin653.fits evtable="EVENTS" scfile=/scratch/kocevski/460407/ft2_4FGL_J1517.7+6525_daily_bin653.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/460407/Model_4FGL_J1517.7+6525_daily_bin653.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/460407/ft1_filtered_4FGL_J1517.7+6525_daily_bin653.fits.....................!
real 23.90
user 22.52
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .34954E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    27.203       1.0000         .10000E-03   10000.    
     4 'Prefactor '    46.375       1.0000         .10000E-03   10000.    
     5 'Prefactor '    26.703       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.7550       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1140.5       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    52.252       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.734       1.0000         .10000E-03   10000.    
    14 'Prefactor '    35.508       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .15223E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.094       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    264.80       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10866E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    74.855       1.0000         .10000E-03   10000.    
    26 'norm      '    27.959       1.0000         .10000E-03   10000.    
    27 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .10617       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.7245       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1590.688     FROM MIGRAD    STATUS=CONVERGED   1387 CALLS     5333 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    777.42        .21324E-02** at limit **
   2  Prefactor     .10000E-03    41.996        .18142E-02** at limit **
   3  Prefactor     27.198        19.087        .76810E-04   -.39741E-04
   4  Prefactor     46.367        41.438        .58878E-04   -.14337E-04
   5  Prefactor     26.704        35.679        .77524E-04   -.17634E-04
   6  Prefactor     8.7528        22.336        .67734E-03   -.10444E-04
   7  Prefactor     .10000E-03    200.03        .18142E-02** at limit **
   8  Prefactor     1140.4        1328.8        .62917E-04   -.29724E-05
   9  Prefactor     .10000E-03    148.78        .18142E-02** at limit **
  10  Prefactor     .10000E-03    96.930        .18142E-02** at limit **
  11  Prefactor     52.295        93.813        .55484E-04    .10542E-04
  12  Prefactor     .10000E-03    14.327        .14748E-02** at limit **
  13  Prefactor     15.754        44.055        .10097E-03   -.36592E-06
  14  Prefactor     35.486        34.761        .67253E-04   -.17750E-04
  15  Prefactor     .10000E-03    96.043        .18142E-02** at limit **
  16  Prefactor     .10000E-03    116.40        .36285E-02** at limit **
  17  Prefactor     15.083        30.337        .10309E-03   -.14970E-04
  18  Prefactor     .10000E-03    41.262        .18142E-02** at limit **
  19  norm          .10000E-03    3.5535        .73293E-03** at limit **
  20  Prefactor     .10000E-03    128.25        .18142E-02** at limit **
  21  Prefactor     .10000E-03    16.722        .15897E-02** at limit **
  22  norm          .10000E-03    18.423        .16667E-02** at limit **
  23  Prefactor     264.85        141.58        .12457E-03    .15287E-05
  24  Prefactor     .10000E-03    536.64        .20707E-02** at limit **
  25  Prefactor     74.860        71.574        .23204E-03   -.26702E-05
  26  norm          27.961        25.587        .75766E-04   -.23183E-04
  27  norm          .10000E-03    .53076        .28334E-03** at limit **
  28  Prefactor     .10000E-03    26.334        .18142E-02** at limit **
  29  Prefactor     .10000E-03    24.083        .18142E-02** at limit **
  30  Normalizat    .10640        .54669        .70567E-02   -.10828E-04
  31  Prefactor     1.7245        .46448        .20805E-03   -.53550E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 27.1981
  Prefactor  = 46.3669
  Prefactor  = 26.7035
  Prefactor  = 8.75277
  Prefactor  = 0.0001
  Prefactor  = 1140.39
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 52.2953
  Prefactor  = 0.0001
  Prefactor  = 15.7543
  Prefactor  = 35.4863
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 15.0832
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 264.853
  Prefactor  = 0.000100003
  Prefactor  = 74.8599
  norm       = 27.9611
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.106396
  Prefactor  = 1.72446
 **********
 **   18 **HESSE 
 **********

 FCN=   1590.688     FROM HESSE     STATUS=OK           594 CALLS     5927 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    777.49        .42648E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    41.996        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     27.198        19.054        .30724E-05   -1.4664    
   4  Prefactor     46.367        41.398        .23551E-05   -1.4345    
   5  Prefactor     26.704        35.681        .31010E-05   -1.4674    
   6  Prefactor     8.7528        22.196        .27094E-04   -1.5116    
   7  Prefactor     .10000E-03    200.07        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1140.4        1328.6        .12583E-04   -.88186    
   9  Prefactor     .10000E-03    148.81        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    96.931        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     52.295        93.792        .11097E-04   -1.4260    
  12  Prefactor     .10000E-03    14.327        .29495E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     15.754        44.049        .40389E-05   -1.4914    
  14  Prefactor     35.486        34.523        .26901E-05   -1.4516    
  15  Prefactor     .10000E-03    96.044        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    116.84        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     15.083        30.318        .41237E-05   -1.4931    
  18  Prefactor     .10000E-03    41.262        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.5536        .14659E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    128.25        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.724        .31793E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    18.427        .33334E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     264.85        141.25        .49826E-05   -1.2439    
  24  Prefactor     .10000E-03    536.65        .41414E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     74.860        71.574        .92816E-05   -1.3975    
  26  norm          27.961        25.562        .30306E-05   -1.4650    
  27  norm          .10000E-03    .53076        .56668E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    26.347        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    24.084        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .10640        .48077        .28227E-03   -1.3740    
  31  Prefactor     1.7245        .43864        .83222E-05   -.71433    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.95226e-11
Minuit parameter uncertainties:
  1  0.00229061
  2  4.3058e-05
  3  19.0583
  4  41.4237
  5  35.7097
  6  22.2165
  7  0.000591944
  8  1370.72
  9  5.42344e-06
  10  0.000119311
  11  94.0579
  12  5.28983e-07
  13  44.1397
  14  34.5425
  15  0.0001152
  16  0.0008112
  17  30.3491
  18  2.35618e-06
  19  2.90096e-06
  20  0.000243279
  21  1.84648e-05
  22  2.29924e-06
  23  141.428
  24  0.00266738
  25  71.6561
  26  25.5719
  27  2.4964e-07
  28  4.74939e-05
  29  7.5394e-05
  30  0.436288
  31  0.439632
Done.

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

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  2.356e-06  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.724e+00  4.396e-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.064e-01  4.363e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 229.436 65.424
Photon Flux Upper Limit: 1.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.38e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/460407/likelihoodResults_408585601_408844801_4FGL_J1517.7+6525_daily_bin653.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): 102
logL (Free Index) = 1590.68811193
delta logL = -0.000111097749596

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1590.68800152
delta logL = -6.86909970682e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10220E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0686       1.0000          .0000       10.000    
     3 'Normalizat'    .10638       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.7243       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=   1590.688     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      254 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.222        .90712E-02** at limit **
   2  Index         2.0417        5.3010        .50000        .63884E-05
   3  Normalizat    .10640        .56642E-02    .16656        .39301E-04
   4  Prefactor     1.7245        .64594E-02    .47075E-01    .25340E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.04171
  Normalizat = 0.106399
  Prefactor  = 1.72446
 **********
 **   18 **HESSE 
 **********

 FCN=   1590.688     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      289 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    157.11        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0417        5.1271        .50000       -.63311    
   3  Normalizat    .10640        .17986E-01    .70573E-02   -1.3740    
   4  Prefactor     1.7245        .19629E-01    .20805E-03   -.71433    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.35859e-07
Minuit parameter uncertainties:
  1  0.000466004
  2  228.205
  3  0.0179872
  4  0.0196294
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/460407': 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): 102
logL (Free Index) = 1590.68800111
delta logL = -2.76390210274e-07

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  4.660e-04  1.000e-04  1.000e+04 ( 1.000e-14)
341        Index:  2.042e+00  2.282e+02  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.724e+00  1.963e-02  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.064e-01  1.799e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 229.436 65.424

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/460407/cmap_HighResolution_408585601_408844801_4FGL_J1517.7+6525_daily_bin653.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.38e-03', job_status='DONE', photon_flux_upper_limit='1.14e-07', time_completed='2021-09-11 23:53:04.972616', job_id='460407', GAL2='1.72', fit_tolerance='1e-08', EG2='0.11', EG='0.11', time_epoch_completed='1631429584.97', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.72', dlogl='-2.76e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='653' AND source_name='4FGL J1517.7+6525' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:53:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 460407: <4FGL_J1517.7+6525_daily_bin653> in cluster <slac> Done

Job <4FGL_J1517.7+6525_daily_bin653> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 11 23:41:41 2021
Job was executed on host(s) <bullet0107>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 23:41:42 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:41:42 2021
Terminated at Sat Sep 11 23:53:05 2021
Results reported at Sat Sep 11 23:53:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1517.7+6525_daily_bin653 229.436 65.424 408585601 408844801 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 :                                   548.29 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             288.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   683 sec.
    Turnaround time :                            684 sec.

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

