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


Performing analysis on: 4FGL_J1517.7+6525_daily_bin1715
RA = 229.436, Dec = 65.424
tmin = 683856001, tmax = 684115201
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='159754', job_status='RUN', time_executed='2022-09-16 19:02:18.327623', time_epoch_executed='1663380138.33' WHERE source_name='4FGL J1517.7+6525' and cadence='daily' and bin_id='1715'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/159754

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/159754/ft1_4FGL_J1517.7+6525_daily_bin1715.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/159754/ft2_4FGL_J1517.7+6525_daily_bin1715.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/159754/ft1_4FGL_J1517.7+6525_daily_bin1715.fits outfile=/scratch/kocevski/159754/ft1_filteredMKT_4FGL_J1517.7+6525_daily_bin1715.fits ra=229.436 dec=65.424 rad=12.0 tmin=683856001.0 tmax=684115201.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.44
user 3.21
sys 0.21

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

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

Number of photons that the gtmktime cut: 543

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/159754/ft1_filtered_4FGL_J1517.7+6525_daily_bin1715.fits" evtable="EVENTS" scfile=/scratch/kocevski/159754/ft2_4FGL_J1517.7+6525_daily_bin1715.fits sctable="SC_DATA" outfile=/scratch/kocevski/159754/ltcube_683856001_684115201_4FGL_J1517.7+6525_daily_bin1715.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/159754/ft2_4FGL_J1517.7+6525_daily_bin1715.fits
.....................!
real 13.97
user 13.58
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/159754/ft1_filtered_4FGL_J1517.7+6525_daily_bin1715.fits evtable="EVENTS" scfile=/scratch/kocevski/159754/ft2_4FGL_J1517.7+6525_daily_bin1715.fits sctable="SC_DATA" expcube=/scratch/kocevski/159754/ltcube_683856001_684115201_4FGL_J1517.7+6525_daily_bin1715.fits outfile=/scratch/kocevski/159754/expmap_683856001_684115201_4FGL_J1517.7+6525_daily_bin1715.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/159754/ltcube_683856001_684115201_4FGL_J1517.7+6525_daily_bin1715.fits
.....................!
real 191.55
user 185.90
sys 5.09

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/159754/ft1_filtered_4FGL_J1517.7+6525_daily_bin1715.fits scfile=/scratch/kocevski/159754/ft2_4FGL_J1517.7+6525_daily_bin1715.fits outfile=/scratch/kocevski/159754/cmap_683856001_684115201_4FGL_J1517.7+6525_daily_bin1715.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.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/159754/ft1_filtered_4FGL_J1517.7+6525_daily_bin1715.fits scfile=/scratch/kocevski/159754/ft2_4FGL_J1517.7+6525_daily_bin1715.fits outfile=/scratch/kocevski/159754/cmap_HighResolution_683856001_684115201_4FGL_J1517.7+6525_daily_bin1715.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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/159754/ft1_filtered_4FGL_J1517.7+6525_daily_bin1715.fits evtable="EVENTS" scfile=/scratch/kocevski/159754/ft2_4FGL_J1517.7+6525_daily_bin1715.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/159754/Model_4FGL_J1517.7+6525_daily_bin1715.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/159754/ft1_filtered_4FGL_J1517.7+6525_daily_bin1715.fits.....................!
real 53.80
user 52.34
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.064       1.0000          .0000       .10000E+07
     2 'Prefactor '    .30166E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .35300E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    .34627E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .55502E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    35.758       1.0000          .0000       .10000E+07
     7 'Prefactor '    17.172       1.0000          .0000       .10000E+07
     8 'Prefactor '    .21304E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .89773E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    3.3831       1.0000          .0000       .10000E+07
    11 'Prefactor '    .41787E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    5.2785       1.0000          .0000       .10000E+07
    13 'Prefactor '    .23704E-03   1.0000          .0000       .10000E+07
    14 'norm      '    2.5952       1.0000          .0000       .10000E+07
    15 'Prefactor '    85.356       1.0000          .0000       .10000E+07
    16 'Prefactor '    .26126E-04   1.0000          .0000       .10000E+07
    17 'norm      '    2.2126       1.0000          .0000       .10000E+07
    18 'Prefactor '    30.992       1.0000          .0000       .10000E+07
    19 'Prefactor '    .69165E-01   1.0000          .0000       .10000E+07
    20 'Prefactor '    .69551E-01   1.0000          .0000       .10000E+07
    21 'norm      '    20.776       1.0000          .0000       .10000E+07
    22 'norm      '    .58842E-08   1.0000          .0000       .10000E+07
    23 'Prefactor '    .70761E-04   1.0000          .0000       .10000E+07
    24 'Prefactor '    .66930E-03   1.0000          .0000       .10000E+07
    25 'Normalizat'    .88383       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .93460       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=   5951.380     FROM MIGRAD    STATUS=CONVERGED    196 CALLS     2275 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.469        27.270       -.25834E-05   -.24072E-01
   2  Prefactor     .28211E-05    12.124       -.20820E-05** at limit **
   3  Prefactor      .0000        2.1419       -.14485E-07** at limit **
   4  Prefactor     .25757E-06    6.6131        .78070E-06** at limit **
   5  Prefactor     .61062E-09    8.8413        .56509E-07** at limit **
   6  Prefactor     34.884        47.153        .40551E-05   -.56803E-01
   7  Prefactor     17.177        1.3015        .11541E-06    .10002E-02
   8  Prefactor     .46909E-05    10.102        .79691E-06** at limit **
   9  Prefactor     .25924E-07    32.011       -.42551E-06** at limit **
  10  Prefactor     3.3812        5.9969        .21684E-07    .48549E-04
  11  Prefactor     .60008E-07    17.343        .96162E-06** at limit **
  12  Prefactor     5.2968        6.9097        .79958E-07    .35710E-03
  13  Prefactor     .15377E-07    10.538       -.35926E-06** at limit **
  14  norm          2.5820        2.4103       -.24616E-06   -.87525E-03
  15  Prefactor     87.199        92.141        .64905E-05   -.27130E-01
  16  Prefactor      .0000        1.8396       -.18505E-07** at limit **
  17  norm          2.2136        4.8704       -.11360E-06   -.11246E-02
  18  Prefactor     30.954        19.098        .80095E-06    .20187    
  19  Prefactor     .55511E-10    45.914        .24550E-06** at limit **
  20  Prefactor     .73507E-05    48.701        .32461E-05** at limit **
  21  norm          20.759        11.113       -.29460E-07   -.52824E-03
  22  norm           .0000        .59086       -.15386E-07** at limit **
  23  Prefactor     .11102E-09    5.0141       -.48972E-07** at limit **
  24  Prefactor     .20151E-06    5.8476        .68680E-06** at limit **
  25  Normalizat    .88336        .17871       -.50570E-05    .53406E-05
  26  Prefactor     .93488        .18284       -.90995E-06    .11474E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.4687
  Prefactor  = 2.82108e-06
  Prefactor  = 0
  Prefactor  = 2.57572e-07
  Prefactor  = 6.10623e-10
  Prefactor  = 34.8841
  Prefactor  = 17.1769
  Prefactor  = 4.69086e-06
  Prefactor  = 2.59237e-08
  Prefactor  = 3.38123
  Prefactor  = 6.00076e-08
  Prefactor  = 5.29676
  Prefactor  = 1.53766e-08
  norm       = 2.582
  Prefactor  = 87.1988
  Prefactor  = 0
  norm       = 2.2136
  Prefactor  = 30.9542
  Prefactor  = 5.55112e-11
  Prefactor  = 7.35068e-06
  norm       = 20.7593
  norm       = 0
  Prefactor  = 1.11022e-10
  Prefactor  = 2.01505e-07
  Normalizat = 0.883365
  Prefactor  = 0.934876
 **********
 **   18 **HESSE 
 **********

 FCN=   5951.380     FROM HESSE     STATUS=OK           508 CALLS     2783 TOTAL
                     EDM=   .26E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.469        54.633        .16890E-03   -1.5589    
   2  Prefactor     .28211E-05    14.305        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        2.1301        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .25757E-06    12.665        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .61062E-09    8.8440        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     34.884        56.324        .16725E-03   -1.5590    
   7  Prefactor     17.177        25.426        .24142E-03   -1.5625    
   8  Prefactor     .46909E-05    13.294        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .25924E-07    32.059        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.3812        6.0398        .54986E-03   -1.5671    
  11  Prefactor     .60008E-07    17.524        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.2968        6.9240        .43724E-03   -1.5662    
  13  Prefactor     .15377E-07    10.554        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.5820        2.4250        .63309E-03   -1.5676    
  15  Prefactor     87.199        94.311        .10825E-03   -1.5521    
  16  Prefactor      .0000        1.8397        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.2136        4.9517        .69119E-03   -1.5678    
  18  Prefactor     30.954        34.404        .17965E-03   -1.5597    
  19  Prefactor     .55511E-10    45.918        .14846E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .73507E-05    27.334        .14833E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          20.759        11.113        .21946E-03   -1.5617    
  22  norm           .0000        .56916        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .11102E-09    5.0058        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .20151E-06    12.508        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .88336        .15185        .44695E-01   -.97047    
  26  Prefactor     .93488        .15638        .45444E-01   -.94933    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.57517e-06
Minuit parameter uncertainties:
  1  54.6334
  2  0.0127051
  3  4.88741e-06
  4  0.00361228
  5  0.000149063
  6  56.3247
  7  25.426
  8  0.0157935
  9  0.00182327
  10  6.03979
  11  0.00205096
  12  6.92403
  13  0.000805541
  14  2.42503
  15  94.3125
  16  3.6699e-06
  17  4.95168
  18  34.4043
  19  9.69293e-05
  20  0.0283494
  21  11.113
  22  6.51062e-07
  23  4.9817e-05
  24  0.0031751
  25  0.151921
  26  0.156458
Done.

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

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  1.538e-08  8.055e-04  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.349e-01  1.565e-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.834e-01  1.519e-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: 3.10e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.29e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/159754/likelihoodResults_683856001_684115201_4FGL_J1517.7+6525_daily_bin1715.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) = 5951.42513072
delta logL = -0.0453354259262

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5951.37979572
delta logL = -4.20611286245e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17697E-06   1.0000          .0000       .10000E+07
     2 'Index     '    .21451       1.0000          .0000       10.000    
     3 'Normalizat'    .88347       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93484       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5951.380     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      215 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        7.7454        .42118E-03** at limit **
   2  Index         2.1594        1.4302        .25908E-03     .0000    
   3  Normalizat    .88337        1.2195        .17469E-04   -.28922E-03
   4  Prefactor     .93487        1.2780       -.14557E-04   -.40650E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.15938
  Normalizat = 0.883366
  Prefactor  = 0.934874
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5951.380     FROM HESSE     STATUS=FAILED         9 CALLS      224 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        7.7454        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .51216        1.8243        .25908E-03   -.60422    
   3  Normalizat    .88337        1.2195        .17469E-04   -.97047    
   4  Prefactor     .93487        1.2780       -.14557E-04   -.94933    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.01099e-10
Minuit parameter uncertainties:
  1  2.46453e-05
  2  1.46069
  3  1.26103
  4  1.32304
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/159754': 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): 101
logL (Free Index) = 5951.3797953
delta logL = 6.43922248855e-10

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  0.000e+00  2.465e-05  0.000e+00  1.000e+06 ( 1.000e-14)
341        Index:  2.159e+00  1.461e+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.349e-01  1.323e+00  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.834e-01  1.261e+00  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/159754/cmap_HighResolution_683856001_684115201_4FGL_J1517.7+6525_daily_bin1715.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.29e-03', job_status='DONE', photon_flux_upper_limit='3.10e-08', time_completed='2022-09-16 19:14:02.365376', job_id='159754', GAL2='0.93', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1663380842.37', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='6.44e-10', ts2='0.00', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='1715' AND source_name='4FGL J1517.7+6525' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 19:14:02 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 159754: <4FGL_J1517.7+6525_daily_bin1715> in cluster <slac> Done

Job <4FGL_J1517.7+6525_daily_bin1715> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 16 19:00:23 2022
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 19:01:49 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 19:01:49 2022
Terminated at Fri Sep 16 19:14:03 2022
Results reported at Fri Sep 16 19:14:03 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1517.7+6525_daily_bin1715 229.436 65.424 683856001 684115201 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 :                                   705.42 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             326.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   733 sec.
    Turnaround time :                            820 sec.

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

