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


Performing analysis on: 4FGL_J1517.7+6525_daily_bin478
RA = 229.436, Dec = 65.424
tmin = 363225601, tmax = 363484801
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='460148', job_status='RUN', time_executed='2021-09-11 23:44:22.050823', time_epoch_executed='1631429062.05' WHERE source_name='4FGL J1517.7+6525' and cadence='daily' and bin_id='478'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/460148

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/460148/ft1_4FGL_J1517.7+6525_daily_bin478.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/460148/ft2_4FGL_J1517.7+6525_daily_bin478.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/460148/ft1_4FGL_J1517.7+6525_daily_bin478.fits outfile=/scratch/kocevski/460148/ft1_filteredMKT_4FGL_J1517.7+6525_daily_bin478.fits ra=229.436 dec=65.424 rad=12.0 tmin=363225601.0 tmax=363484801.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 7.05
user 6.78
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/460148/ft1_filtered_4FGL_J1517.7+6525_daily_bin478.fits" evtable="EVENTS" scfile=/scratch/kocevski/460148/ft2_4FGL_J1517.7+6525_daily_bin478.fits sctable="SC_DATA" outfile=/scratch/kocevski/460148/ltcube_363225601_363484801_4FGL_J1517.7+6525_daily_bin478.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/460148/ft2_4FGL_J1517.7+6525_daily_bin478.fits
.....................!
real 13.34
user 13.00
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/460148/ft1_filtered_4FGL_J1517.7+6525_daily_bin478.fits evtable="EVENTS" scfile=/scratch/kocevski/460148/ft2_4FGL_J1517.7+6525_daily_bin478.fits sctable="SC_DATA" expcube=/scratch/kocevski/460148/ltcube_363225601_363484801_4FGL_J1517.7+6525_daily_bin478.fits outfile=/scratch/kocevski/460148/expmap_363225601_363484801_4FGL_J1517.7+6525_daily_bin478.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/460148/ltcube_363225601_363484801_4FGL_J1517.7+6525_daily_bin478.fits
.....................!
real 190.94
user 186.14
sys 4.44

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/460148/ft1_filtered_4FGL_J1517.7+6525_daily_bin478.fits scfile=/scratch/kocevski/460148/ft2_4FGL_J1517.7+6525_daily_bin478.fits outfile=/scratch/kocevski/460148/cmap_363225601_363484801_4FGL_J1517.7+6525_daily_bin478.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/460148/ft1_filtered_4FGL_J1517.7+6525_daily_bin478.fits scfile=/scratch/kocevski/460148/ft2_4FGL_J1517.7+6525_daily_bin478.fits outfile=/scratch/kocevski/460148/cmap_HighResolution_363225601_363484801_4FGL_J1517.7+6525_daily_bin478.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    289.27       1.0000         .10000E-03   10000.    
     2 'Prefactor '    32.046       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.5966       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.0215       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    30.495       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10943E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    29.241       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.062       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.0442       1.0000         .10000E-03   10000.    
    15 'Prefactor '    124.64       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.0846       1.0000         .10000E-03   10000.    
    20 'Prefactor '    45.362       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.5290       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    14.586       1.0000         .10000E-03   10000.    
    27 'norm      '    .86144       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .17347E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .67432       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0303       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=   3175.423     FROM MIGRAD    STATUS=CONVERGED    805 CALLS     4192 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     289.29        156.25        .11946E-04    .48016E-05
   2  Prefactor     32.048        34.299       -.74544E-06    .74367E-05
   3  Prefactor     .10000E-03    2.7720       -.19298E-07** at limit **
   4  Prefactor     3.5907        30.459       -.34677E-05   -.64640E-04
   5  Prefactor     5.0216        9.3644       -.59041E-06   -.98177E-04
   6  Prefactor     .10000E-03    6.5465        .18244E-09** at limit **
   7  Prefactor     30.495        55.999       -.44976E-06    .25661E-07
   8  Prefactor     .10000E-03    376.13       -.74271E-04** at limit **
   9  Prefactor     .10000E-03    27.779       -.50865E-05** at limit **
  10  Prefactor     29.245        92.071        .54652E-05   -.15421E-05
  11  Prefactor     .10000E-03    30.454        .17119E-04** at limit **
  12  Prefactor     19.058        30.817        .12925E-05   -.43277E-04
  13  Prefactor     .10000E-03    14.329        .87394E-05** at limit **
  14  Prefactor     5.0461        13.224       -.58014E-06   -.85696E-04
  15  Prefactor     124.62        119.01       -.93619E-05   -.13564E-05
  16  Prefactor     .10000E-03    8.9342        .95628E-07** at limit **
  17  Prefactor     .10000E-03    22.511       -.10942E-04** at limit **
  18  Prefactor     .10000E-03    92.605        .74401E-04** at limit **
  19  norm          4.0848        3.7680       -.54022E-07   -.22879E-05
  20  Prefactor     45.364        96.236        .27836E-05   -.91787E-05
  21  Prefactor     .10000E-03    6.9834        .70276E-07** at limit **
  22  norm          3.5294        6.1607       -.13778E-05   -.14633E-03
  23  Prefactor     .10000E-03    14.823       -.11856E-04** at limit **
  24  Prefactor     .10000E-03    73.991       -.58228E-04** at limit **
  25  Prefactor     .10000E-03    22.821       -.12049E-04** at limit **
  26  norm          14.585        13.416       -.90609E-06   -.74482E-03
  27  norm          .86170        1.2690       -.13769E-06   -.14910E-02
  28  Prefactor     .10000E-03    19.674        .18758E-04** at limit **
  29  Prefactor     .10001E-03    34.634       -.52723E-06** at limit **
  30  Normalizat    .67414        .21671        .24693E-06   -.18269E-03
  31  Prefactor     1.0305        .22221        .17959E-06   -.22767E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 289.292
  Prefactor  = 32.0478
  Prefactor  = 0.0001
  Prefactor  = 3.59068
  Prefactor  = 5.02159
  Prefactor  = 0.0001
  Prefactor  = 30.4949
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.2447
  Prefactor  = 0.0001
  Prefactor  = 19.0584
  Prefactor  = 0.0001
  Prefactor  = 5.04614
  Prefactor  = 124.624
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.08477
  Prefactor  = 45.3644
  Prefactor  = 0.0001
  norm       = 3.52936
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.5854
  norm       = 0.861702
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Normalizat = 0.67414
  Prefactor  = 1.03046
 **********
 **   18 **HESSE 
 **********

 FCN=   3175.423     FROM HESSE     STATUS=OK           620 CALLS     4812 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     289.29        155.97        .11933E-03   -1.2290    
   2  Prefactor     32.048        34.144        .70782E-04   -1.4575    
   3  Prefactor     .10000E-03    2.7934        .91548E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.5907        30.003        .21307E-03   -1.5329    
   5  Prefactor     5.0216        9.3373        .17945E-03   -1.5260    
   6  Prefactor     .10000E-03    6.5762        .14078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     30.495        55.963        .72555E-04   -1.4603    
   8  Prefactor     .10000E-03    376.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    27.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     29.245        92.145        .74091E-04   -1.4626    
  11  Prefactor     .10000E-03    30.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     19.058        30.820        .91736E-04   -1.4835    
  13  Prefactor     .10000E-03    14.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.0461        13.224        .17904E-03   -1.5259    
  15  Prefactor     124.62        119.05        .36055E-04   -1.3471    
  16  Prefactor     .10000E-03    8.9840        .16421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    22.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    92.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.0848        3.7696        .10049E-03   -1.5304    
  20  Prefactor     45.364        96.205        .59529E-04   -1.4360    
  21  Prefactor     .10000E-03    7.0097        .14530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.5294        6.1454        .17881E-03   -1.5332    
  23  Prefactor     .10000E-03    14.821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    73.956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    22.823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          14.585        13.437        .52437E-03   -1.4944    
  27  norm          .86170        1.1223        .67068E-03   -1.5522    
  28  Prefactor     .10000E-03    20.113        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10001E-03    337.09        .58565E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .67414        .24958        .25446E-03   -1.0492    
  31  Prefactor     1.0305        .25812        .21732E-03   -.91721    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05018e-09
Minuit parameter uncertainties:
  1  156.196
  2  34.1643
  3  8.05264e-06
  4  20.7725
  5  9.34003
  6  2.81613e-06
  7  56.06
  8  1.13262e-05
  9  6.74536e-06
  10  92.5984
  11  5.29389e-06
  12  30.8457
  13  7.31388e-07
  14  13.232
  15  119.282
  16  5.33434e-06
  17  5.74568e-05
  18  0.000333452
  19  3.76979
  20  96.5367
  21  2.38319e-05
  22  6.14651
  23  4.99987e-06
  24  4.07241e-06
  25  1.21e-06
  26  13.4398
  27  1.12231
  28  0.000196538
  29  0.00265436
  30  0.250003
  31  0.258433
Done.

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

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  3.335e-04  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  2.584e-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:  6.741e-01  2.500e-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: 8.51e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.28e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/460148/likelihoodResults_363225601_363484801_4FGL_J1517.7+6525_daily_bin478.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) = 3175.42318513
delta logL = -5.12708506903e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3175.42313384
delta logL = 1.88415469893e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10320E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9852       1.0000          .0000       10.000    
     3 'Normalizat'    .67414       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0305       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=   3175.423     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      231 TOTAL
                     EDM=   .21E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.615        .90712E-02** at limit **
   2  Index         1.9840        5.9023        .50000        .11386E-06
   3  Normalizat    .67414        .21117E-02    .41944E-01    .16281E-04
   4  Prefactor     1.0305        .22032E-02    .41223E-01    .10408E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.98398
  Normalizat = 0.67414
  Prefactor  = 1.03046
 **********
 **   18 **HESSE 
 **********

 FCN=   3175.423     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      264 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    302.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9840        5.7865        .50000       -.64751    
   3  Normalizat    .67414        .90358E-02    .25446E-03   -1.0492    
   4  Prefactor     1.0305        .94306E-02    .21732E-03   -.91721    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.74255e-11
Minuit parameter uncertainties:
  1  0.000113871
  2  234.291
  3  0.00903577
  4  0.00943062
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/460148': 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) = 3175.42313383
delta logL = 3.52865754394e-08

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  1.139e-04  1.000e-04  1.000e+04 ( 1.000e-14)
341        Index:  1.984e+00  2.343e+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.030e+00  9.431e-03  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:  6.741e-01  9.036e-03  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/460148/cmap_HighResolution_363225601_363484801_4FGL_J1517.7+6525_daily_bin478.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.28e-03', job_status='DONE', photon_flux_upper_limit='8.51e-08', time_completed='2021-09-11 23:55:47.555090', job_id='460148', GAL2='1.03', fit_tolerance='1e-08', EG2='0.67', EG='0.67', time_epoch_completed='1631429747.56', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='3.53e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='478' AND source_name='4FGL J1517.7+6525' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:55:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 460148: <4FGL_J1517.7+6525_daily_bin478> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1517.7+6525_daily_bin478 229.436 65.424 363225601 363484801 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 :                                   679.00 sec.
    Max Memory :                                 1226 MB
    Average Memory :                             290.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   865 sec.
    Turnaround time :                            867 sec.

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

