aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 35 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7708
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1517.7+6525_daily_bin1766
RA = 229.436, Dec = 65.424
tmin = 697075201, tmax = 697334401
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='852373', job_status='RUN', time_executed='2023-02-06 01:01:42.652103', time_epoch_executed='1675674102.65' WHERE source_name='4FGL J1517.7+6525' and cadence='daily' and bin_id='1766'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/852373

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/852373/ft1_4FGL_J1517.7+6525_daily_bin1766.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/852373/ft2_4FGL_J1517.7+6525_daily_bin1766.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/852373/ft1_4FGL_J1517.7+6525_daily_bin1766.fits outfile=/scratch/kocevski/852373/ft1_filteredMKT_4FGL_J1517.7+6525_daily_bin1766.fits ra=229.436 dec=65.424 rad=12.0 tmin=697075201.0 tmax=697334401.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.76
user 3.47
sys 0.23

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

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

Number of photons that the gtmktime cut: 582

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/852373/ft1_filtered_4FGL_J1517.7+6525_daily_bin1766.fits" evtable="EVENTS" scfile=/scratch/kocevski/852373/ft2_4FGL_J1517.7+6525_daily_bin1766.fits sctable="SC_DATA" outfile=/scratch/kocevski/852373/ltcube_697075201_697334401_4FGL_J1517.7+6525_daily_bin1766.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/852373/ft2_4FGL_J1517.7+6525_daily_bin1766.fits
.....................!
real 14.07
user 13.71
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/852373/ft1_filtered_4FGL_J1517.7+6525_daily_bin1766.fits evtable="EVENTS" scfile=/scratch/kocevski/852373/ft2_4FGL_J1517.7+6525_daily_bin1766.fits sctable="SC_DATA" expcube=/scratch/kocevski/852373/ltcube_697075201_697334401_4FGL_J1517.7+6525_daily_bin1766.fits outfile=/scratch/kocevski/852373/expmap_697075201_697334401_4FGL_J1517.7+6525_daily_bin1766.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/852373/ltcube_697075201_697334401_4FGL_J1517.7+6525_daily_bin1766.fits
.....................!
real 191.99
user 186.33
sys 5.27

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/852373/ft1_filtered_4FGL_J1517.7+6525_daily_bin1766.fits scfile=/scratch/kocevski/852373/ft2_4FGL_J1517.7+6525_daily_bin1766.fits outfile=/scratch/kocevski/852373/cmap_697075201_697334401_4FGL_J1517.7+6525_daily_bin1766.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.73
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/852373/ft1_filtered_4FGL_J1517.7+6525_daily_bin1766.fits scfile=/scratch/kocevski/852373/ft2_4FGL_J1517.7+6525_daily_bin1766.fits outfile=/scratch/kocevski/852373/cmap_HighResolution_697075201_697334401_4FGL_J1517.7+6525_daily_bin1766.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/852373/ft1_filtered_4FGL_J1517.7+6525_daily_bin1766.fits evtable="EVENTS" scfile=/scratch/kocevski/852373/ft2_4FGL_J1517.7+6525_daily_bin1766.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/852373/Model_4FGL_J1517.7+6525_daily_bin1766.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/852373/ft1_filtered_4FGL_J1517.7+6525_daily_bin1766.fits.....................!
real 55.57
user 54.18
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/852373/ft1_filtered_4FGL_J1517.7+6525_daily_bin1766.fits', '/scratch/kocevski/852373/ft2_4FGL_J1517.7+6525_daily_bin1766.fits', expMap='/scratch/kocevski/852373/expmap_697075201_697334401_4FGL_J1517.7+6525_daily_bin1766.fits', expCube='/scratch/kocevski/852373/ltcube_697075201_697334401_4FGL_J1517.7+6525_daily_bin1766.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/852373/Model_4FGL_J1517.7+6525_daily_bin1766.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  0.000e+00  1.000e+06 ( 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/852373/ft1_filtered_4FGL_J1517.7+6525_daily_bin1766.fits
Spacecraft file(s): /scratch/kocevski/852373/ft2_4FGL_J1517.7+6525_daily_bin1766.fits
Exposure map: /scratch/kocevski/852373/expmap_697075201_697334401_4FGL_J1517.7+6525_daily_bin1766.fits
Exposure cube: /scratch/kocevski/852373/ltcube_697075201_697334401_4FGL_J1517.7+6525_daily_bin1766.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/852373/Model_4FGL_J1517.7+6525_daily_bin1766.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) = 6304.81927348

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.827       1.0000          .0000       .10000E+07
     2 'Prefactor '    .10741E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    .14250E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    .13619E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .57465E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .17421E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .46279E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    13.899       1.0000          .0000       .10000E+07
     9 'Prefactor '    .84426E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    5.9294       1.0000          .0000       .10000E+07
    11 'Prefactor '    .97067E-06   1.0000          .0000       .10000E+07
    12 'Prefactor '    2.3739       1.0000          .0000       .10000E+07
    13 'Prefactor '    12.562       1.0000          .0000       .10000E+07
    14 'norm      '    .30095E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    .16147E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    3.2433       1.0000          .0000       .10000E+07
    17 'norm      '    .56655E-06   1.0000          .0000       .10000E+07
    18 'Prefactor '    .50885E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    .48999       1.0000          .0000       .10000E+07
    20 'Prefactor '    .11577E-02   1.0000          .0000       .10000E+07
    21 'norm      '    8.4391       1.0000          .0000       .10000E+07
    22 'norm      '    .40476       1.0000          .0000       .10000E+07
    23 'Prefactor '    .77883E-03   1.0000          .0000       .10000E+07
    24 'Prefactor '    .21132E-04   1.0000          .0000       .10000E+07
    25 'Normalizat'    .90240       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .94043       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6304.781     FROM MIGRAD    STATUS=CONVERGED    213 CALLS     2268 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.136        91.658       -.52763E-05    .10769E-02
   2  Prefactor     .62506E-06    11.616       -.38218E-06** at limit **
   3  Prefactor      .0000        1.4197       -.53701E-07** at limit **
   4  Prefactor      .0000        6.2444       -.79236E-06** at limit **
   5  Prefactor     .46324E-06    4.5029        .50164E-06** at limit **
   6  Prefactor     .32202E-06    12.187        .95391E-07** at limit **
   7  Prefactor     .38702E-06    4.4880        .57665E-06** at limit **
   8  Prefactor     13.981        14.509        .65843E-06    .23138E-01
   9  Prefactor      .0000        7.6283       -.71983E-06** at limit **
  10  Prefactor     5.9103        8.3043       -.14693E-06   -.13622E-04
  11  Prefactor     .15821E-07    20.261       -.50058E-07** at limit **
  12  Prefactor     2.3266        5.9058       -.56117E-06   -.34734E-03
  13  Prefactor     11.846        28.389        .65246E-06    .92386E-02
  14  norm           .0000        1.7910        .25351E-06** at limit **
  15  Prefactor     .78271E-08    153.31       -.89071E-06** at limit **
  16  Prefactor     3.1982        5.3288       -.57112E-06   -.34021E-03
  17  norm           .0000        3.8363       -.48374E-06** at limit **
  18  Prefactor     .33862E-08    12.258        .72511E-06** at limit **
  19  Prefactor     .45833E-05    18.213        .23160E-06** at limit **
  20  Prefactor     .60935E-06    10.312        .12412E-05** at limit **
  21  norm          8.4343        6.3276       -.35647E-06   -.56145E-03
  22  norm          .40257        .69096       -.45658E-07   -.27659E-03
  23  Prefactor     .55511E-10    7.8024       -.59592E-06** at limit **
  24  Prefactor     .10102E-05    10.669       -.47532E-06** at limit **
  25  Normalizat    .90295        .17242       -.61025E-05   -.77267E-05
  26  Prefactor     .94109        .18113        .78707E-05    .88353E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.1359
  Prefactor  = 6.25056e-07
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 4.63241e-07
  Prefactor  = 3.2202e-07
  Prefactor  = 3.87024e-07
  Prefactor  = 13.9807
  Prefactor  = 0
  Prefactor  = 5.91034
  Prefactor  = 1.58207e-08
  Prefactor  = 2.32656
  Prefactor  = 11.846
  norm       = 0
  Prefactor  = 7.82707e-09
  Prefactor  = 3.19819
  norm       = 0
  Prefactor  = 3.38618e-09
  Prefactor  = 4.58328e-06
  Prefactor  = 6.09346e-07
  norm       = 8.43433
  norm       = 0.402569
  Prefactor  = 5.55112e-11
  Prefactor  = 1.01025e-06
  Normalizat = 0.902953
  Prefactor  = 0.941094
 **********
 **   18 **HESSE 
 **********

 FCN=   6304.781     FROM HESSE     STATUS=OK           498 CALLS     2766 TOTAL
                     EDM=   .77E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.136        92.225        .17196E-03   -1.5598    
   2  Prefactor     .62506E-06    21.087        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        1.4198        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        6.2664        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .46324E-06    15.313        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .32202E-06    16.531        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .38702E-06    15.163        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.981        14.784        .26841E-03   -1.5633    
   9  Prefactor      .0000        7.6320        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.9103        8.3945        .41215E-03   -1.5659    
  11  Prefactor     .15821E-07    25.340        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.3266        5.9709        .66468E-03   -1.5677    
  13  Prefactor     11.846        28.833        .28237E-03   -1.5639    
  14  norm           .0000        1.7808        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .78271E-08    153.13        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.1982        5.3485        .56217E-03   -1.5672    
  17  norm           .0000        3.8287        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .33862E-08    12.278        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .45833E-05    94.901        .79723E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .60935E-06    14.368        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          8.4343        6.3289        .34484E-03   -1.5650    
  22  norm          .40257        .70258        .88938E-03   -1.5695    
  23  Prefactor     .55511E-10    7.7539        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10102E-05    22.013        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .90295        .14429        .44932E-01   -.96356    
  26  Prefactor     .94109        .15175        .45518E-01   -.94720    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.70478e-07
Minuit parameter uncertainties:
  1  92.229
  2  0.00726115
  3  2.0249e-06
  4  1.49223e-05
  5  0.00532662
  6  0.0046144
  7  0.00484494
  8  14.7843
  9  1.68834e-05
  10  8.39451
  11  0.00126694
  12  5.97095
  13  28.833
  14  4.35681e-06
  15  0.00219245
  16  5.34855
  17  4.57707e-06
  18  0.000406583
  19  0.041712
  20  0.00591781
  21  6.3289
  22  0.702582
  23  3.25646e-05
  24  0.00943159
  25  0.14435
  26  0.151819
Done.

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

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  1.185e+01  2.883e+01  0.000e+00  1.000e+06 ( 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:  9.411e-01  1.518e-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.030e-01  1.444e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/852373/likelihoodResults_697075201_697334401_4FGL_J1517.7+6525_daily_bin1766.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) = 6304.62674682
delta logL = 0.154743848872

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6304.61336413
delta logL = 0.168126543606

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.4938       1.0000          .0000       .10000E+07
     2 'Index     '    2.3254       1.0000          .0000       10.000    
     3 'Normalizat'    .89377       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94339       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=   6304.613     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      237 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.4636        488.95        .34372E-03    .66997E-03
   2  Index         2.3262        3.5175        .11974        .14756E-03
   3  Normalizat    .89416        .46368E-01    .44822E-01    .30218E-04
   4  Prefactor     .94295        .45196E-01    .45556E-01    .25725E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.46359
  Index      = 2.32616
  Normalizat = 0.894158
  Prefactor  = 0.942949
 **********
 **   18 **HESSE 
 **********

 FCN=   6304.613     FROM HESSE     STATUS=OK            33 CALLS      270 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.4636        24.956        .13749E-04   -1.5650    
   2  Index         2.3262        1.0818        .73712E-02   -.56423    
   3  Normalizat    .89416        .17070        .21753E-03   -.96666    
   4  Prefactor     .94295        .17802        .22122E-03   -.94656    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.84215e-11
Minuit parameter uncertainties:
  1  24.9566
  2  1.09396
  3  0.170799
  4  0.178126
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/852373': 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) = 6304.61335963
delta logL = 0.168131042949

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  8.464e+00  2.496e+01  0.000e+00  1.000e+06 ( 1.000e-14)
341        Index:  2.326e+00  1.094e+00  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:  9.429e-01  1.781e-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:  8.942e-01  1.708e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.20
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/852373/cmap_HighResolution_697075201_697334401_4FGL_J1517.7+6525_daily_bin1766.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.79e-03', job_status='DONE', photon_flux_upper_limit='5.13e-08', time_completed='2023-02-06 01:13:54.969045', job_id='852373', GAL2='0.94', fit_tolerance='1e-08', EG2='0.89', EG='0.90', time_epoch_completed='1675674834.97', return_code2='0', ts='0.20', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='1.68e-01', ts2='0.53', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='1766' AND source_name='4FGL J1517.7+6525' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Feb  6 01:13:55 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 852373: <4FGL_J1517.7+6525_daily_bin1766> in cluster <slac> Done

Job <4FGL_J1517.7+6525_daily_bin1766> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Feb  6 01:00:23 2023
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Feb  6 01:00:59 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Feb  6 01:00:59 2023
Terminated at Mon Feb  6 01:13:55 2023
Results reported at Mon Feb  6 01:13:55 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1517.7+6525_daily_bin1766 229.436 65.424 697075201 697334401 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 :                                   734.20 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             327.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   776 sec.
    Turnaround time :                            812 sec.

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

