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


Performing analysis on: 4FGL_J1517.7+6525_daily_bin1749
RA = 229.436, Dec = 65.424
tmin = 692668801, tmax = 692928001
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='955601', job_status='RUN', time_executed='2022-12-17 00:58:13.567244', time_epoch_executed='1671267493.57' WHERE source_name='4FGL J1517.7+6525' and cadence='daily' and bin_id='1749'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/955601

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/955601/ft1_4FGL_J1517.7+6525_daily_bin1749.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/955601/ft2_4FGL_J1517.7+6525_daily_bin1749.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/955601/ft1_4FGL_J1517.7+6525_daily_bin1749.fits outfile=/scratch/kocevski/955601/ft1_filteredMKT_4FGL_J1517.7+6525_daily_bin1749.fits ra=229.436 dec=65.424 rad=12.0 tmin=692668801.0 tmax=692928001.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.68
user 3.46
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/955601/ft2_4FGL_J1517.7+6525_daily_bin1749.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/955601/ft1_filteredMKT_4FGL_J1517.7+6525_daily_bin1749.fits evtable="EVENTS" outfile="/scratch/kocevski/955601/ft1_filtered_4FGL_J1517.7+6525_daily_bin1749.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.54
user 0.34
sys 0.14

Number of photons that the gtmktime cut: 613

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/955601/ft1_filtered_4FGL_J1517.7+6525_daily_bin1749.fits" evtable="EVENTS" scfile=/scratch/kocevski/955601/ft2_4FGL_J1517.7+6525_daily_bin1749.fits sctable="SC_DATA" outfile=/scratch/kocevski/955601/ltcube_692668801_692928001_4FGL_J1517.7+6525_daily_bin1749.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/955601/ft2_4FGL_J1517.7+6525_daily_bin1749.fits
.....................!
real 11.95
user 11.54
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/955601/ft1_filtered_4FGL_J1517.7+6525_daily_bin1749.fits evtable="EVENTS" scfile=/scratch/kocevski/955601/ft2_4FGL_J1517.7+6525_daily_bin1749.fits sctable="SC_DATA" expcube=/scratch/kocevski/955601/ltcube_692668801_692928001_4FGL_J1517.7+6525_daily_bin1749.fits outfile=/scratch/kocevski/955601/expmap_692668801_692928001_4FGL_J1517.7+6525_daily_bin1749.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/955601/ltcube_692668801_692928001_4FGL_J1517.7+6525_daily_bin1749.fits
.....................!
real 189.79
user 185.03
sys 4.43

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/955601/ft1_filtered_4FGL_J1517.7+6525_daily_bin1749.fits scfile=/scratch/kocevski/955601/ft2_4FGL_J1517.7+6525_daily_bin1749.fits outfile=/scratch/kocevski/955601/cmap_692668801_692928001_4FGL_J1517.7+6525_daily_bin1749.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/955601/ft1_filtered_4FGL_J1517.7+6525_daily_bin1749.fits scfile=/scratch/kocevski/955601/ft2_4FGL_J1517.7+6525_daily_bin1749.fits outfile=/scratch/kocevski/955601/cmap_HighResolution_692668801_692928001_4FGL_J1517.7+6525_daily_bin1749.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.54
user 0.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/955601/ft1_filtered_4FGL_J1517.7+6525_daily_bin1749.fits evtable="EVENTS" scfile=/scratch/kocevski/955601/ft2_4FGL_J1517.7+6525_daily_bin1749.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/955601/Model_4FGL_J1517.7+6525_daily_bin1749.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/955601/ft1_filtered_4FGL_J1517.7+6525_daily_bin1749.fits.....................!
real 56.49
user 55.19
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .59818E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    .21758E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    .10895E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .84517E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    36.309       1.0000          .0000       .10000E+07
     6 'Prefactor '    .65901E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    24.967       1.0000          .0000       .10000E+07
     8 'Prefactor '    .25617E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .23487E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .21700E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    .10005E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    3.9488       1.0000          .0000       .10000E+07
    13 'Prefactor '    16.401       1.0000          .0000       .10000E+07
    14 'norm      '    3.3568       1.0000          .0000       .10000E+07
    15 'Prefactor '    .22071E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .11707E-05   1.0000          .0000       .10000E+07
    17 'norm      '    7.2160       1.0000          .0000       .10000E+07
    18 'Prefactor '    .65939E-01   1.0000          .0000       .10000E+07
    19 'Prefactor '    .30746       1.0000          .0000       .10000E+07
    20 'Prefactor '    2.0912       1.0000          .0000       .10000E+07
    21 'norm      '    3.7678       1.0000          .0000       .10000E+07
    22 'norm      '    1.1034       1.0000          .0000       .10000E+07
    23 'Prefactor '    2.5333       1.0000          .0000       .10000E+07
    24 'Prefactor '    4.7696       1.0000          .0000       .10000E+07
    25 'Normalizat'    1.3455       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .60912       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=   6600.196     FROM MIGRAD    STATUS=CONVERGED    139 CALLS     1721 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11102E-09    30.840        .18499E-05** at limit **
   2  Prefactor     .55511E-10    10.805        .15774E-05** at limit **
   3  Prefactor     .17332E-05    5.7773       -.42109E-06** at limit **
   4  Prefactor     .12994E-05    11.651        .51999E-05** at limit **
   5  Prefactor     37.978        23.504        .31632E-05   -.19134    
   6  Prefactor     .28561E-05    14.309       -.12040E-04** at limit **
   7  Prefactor     24.952        1.1880       -.17337E-06   -.16912E-02
   8  Prefactor     .22432E-06    6.0056       -.17602E-05** at limit **
   9  Prefactor     .10011E-04    14.744       -.29947E-05** at limit **
  10  Prefactor     .17208E-08    6.1326        .23399E-06** at limit **
  11  Prefactor     .13394E-05    15.394        .31573E-05** at limit **
  12  Prefactor     3.9696        6.3908       -.11945E-05   -.23761E-02
  13  Prefactor     16.314        1.3548        .25077E-06    .12209E-01
  14  norm          3.3602        2.5682       -.11217E-05   -.26094E-02
  15  Prefactor     .18815E-04    28.910       -.80086E-06** at limit **
  16  Prefactor     .11102E-09    2.1885        .41876E-06** at limit **
  17  norm          7.1531        6.2270        .10982E-05   -.12758E-02
  18  Prefactor     .13115E-05    2.4743        .33095E-05** at limit **
  19  Prefactor     .21450E-06    62.545        .49172E-05** at limit **
  20  Prefactor     2.1224        1.5636       -.12557E-05   -.78602E-02
  21  norm          3.7924        7.2517       -.32127E-05   -.73108E-02
  22  norm          1.1038        .66032       -.49271E-08    .48439E-03
  23  Prefactor     2.5476        7.8288       -.12636E-05   -.39409E-02
  24  Prefactor     4.7748        1.4548        .28819E-06    .11604E-01
  25  Normalizat    1.3447        .17858        .15921E-04   -.64506E-03
  26  Prefactor     .60935        .17572       -.15988E-04   -.33472E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.11022e-10
  Prefactor  = 5.55112e-11
  Prefactor  = 1.73317e-06
  Prefactor  = 1.29941e-06
  Prefactor  = 37.9782
  Prefactor  = 2.8561e-06
  Prefactor  = 24.952
  Prefactor  = 2.24321e-07
  Prefactor  = 1.00113e-05
  Prefactor  = 1.72085e-09
  Prefactor  = 1.33943e-06
  Prefactor  = 3.96961
  Prefactor  = 16.3136
  norm       = 3.36016
  Prefactor  = 1.88152e-05
  Prefactor  = 1.11022e-10
  norm       = 7.15315
  Prefactor  = 1.31145e-06
  Prefactor  = 2.14495e-07
  Prefactor  = 2.12242
  norm       = 3.79238
  norm       = 1.10379
  Prefactor  = 2.54759
  Prefactor  = 4.77483
  Normalizat = 1.34467
  Prefactor  = 0.60935
 **********
 **   18 **HESSE 
 **********

 FCN=   6600.196     FROM HESSE     STATUS=OK           516 CALLS     2237 TOTAL
                     EDM=   .28E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11102E-09    30.828        .15169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .55511E-10    10.785        .16924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .17332E-05    3.7781        .49891E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .12994E-05    16.464        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     37.978        37.677        .16597E-03   -1.5585    
   6  Prefactor     .28561E-05    18.362        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     24.952        20.883        .20017E-03   -1.5608    
   8  Prefactor     .22432E-06    16.836        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10011E-04    28.581        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .17208E-08    6.1513        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .13394E-05    33.576        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.9696        6.4009        .50738E-03   -1.5668    
  13  Prefactor     16.314        16.018        .24704E-03   -1.5627    
  14  norm          3.3602        2.5735        .55211E-03   -1.5671    
  15  Prefactor     .18815E-04    44.500        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .11102E-09    2.1965        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.1531        6.2955        .37317E-03   -1.5654    
  18  Prefactor     .13115E-05    18.000        .14954E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .21450E-06    62.903        .10110E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.1224        37.078        .71358E-03   -1.5679    
  21  norm          3.7924        7.2917        .51986E-03   -1.5669    
  22  norm          1.1038        .69549        .10855E-02   -1.5687    
  23  Prefactor     2.5476        8.0518        .64144E-03   -1.5676    
  24  Prefactor     4.7748        14.971        .46045E-03   -1.5664    
  25  Normalizat    1.3447        .16009        .32037E-01   -.82243    
  26  Prefactor     .60935        .15602        .64112E-01   -1.0719    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.7616e-06
Minuit parameter uncertainties:
  1  0.000112759
  2  5.39397e-05
  3  0.00511785
  4  0.00925047
  5  37.6774
  6  0.0144838
  7  20.8826
  8  0.00388656
  9  0.0338309
  10  0.000205358
  11  0.0134126
  12  6.40089
  13  16.0183
  14  2.57355
  15  0.057872
  16  2.97843e-05
  17  6.29552
  18  0.00971728
  19  0.00734623
  20  17.7422
  21  7.29169
  22  0.695489
  23  8.05187
  24  14.9716
  25  0.160144
  26  0.156132
Done.

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

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  1.631e+01  1.602e+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:  6.094e-01  1.561e-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.345e+00  1.601e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.64
Ra Dec: 229.436 65.424
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 9.68e-09 +/- 9.50e-09
Energy Flux (Fixed Index): 1.10e-05 +/- 1.08e-05

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) = 6599.82772758
delta logL = 0.36799244236

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6599.80056475
delta logL = 0.395155272575

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.877       1.0000          .0000       .10000E+07
     2 'Index     '    1.2510       1.0000          .0000       10.000    
     3 'Normalizat'    1.3487       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60826       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=   6599.801     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      250 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.892        21.112        .87571E-05   -.20772E-04
   2  Index         1.2515        .60473        .12553E-01   -.19680E-05
   3  Normalizat    1.3487        .17367        .19924E-03   -.72228E-04
   4  Prefactor     .60831        .17342        .28389E-03    .24548E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.8917
  Index      = 1.2515
  Normalizat = 1.34869
  Prefactor  = 0.608314
 **********
 **   18 **HESSE 
 **********

 FCN=   6599.801     FROM HESSE     STATUS=OK            25 CALLS      275 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.892        21.231        .35028E-06   -1.5617    
   2  Index         1.2515        .60820        .50211E-03   -.84761    
   3  Normalizat    1.3487        .17380        .39847E-04   -.82124    
   4  Prefactor     .60831        .17355        .11356E-04   -1.0724    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.83148e-11
Minuit parameter uncertainties:
  1  21.2313
  2  0.611675
  3  0.173876
  4  0.173707
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/955601': 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) = 6599.80056422
delta logL = 0.395155800416

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  2.089e+01  2.123e+01  0.000e+00  1.000e+06 ( 1.000e-14)
341        Index:  1.251e+00  6.117e-01  0.000e+00  1.000e+01 (-1.000e+00)
342        Scale:  3.014e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  6.083e-01  1.737e-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.349e+00  1.739e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.43
Ra Dec: 229.436 65.424
Photon Index (Free Index): 1.25 +/- 0.61
Photon Flux (Free Index): 4.86e-09 +/- 6.03e-09
Energy Flux (Free Index): 3.47e-05 +/- 5.33e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/955601/cmap_HighResolution_692668801_692928001_4FGL_J1517.7+6525_daily_bin1749.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.68e-09', energy_flux2='3.47e-05', photon_flux_error='9.50e-09', dlogl='3.95e-01', energy_flux='1.10e-05', photon_flux2='4.86e-09', job_status='DONE', time_completed='2022-12-17 01:08:33.124035', photon_index_error2='0.61', photon_index2='1.25', ts='6.64', fit_tolerance='1e-08', GAL='0.61', photon_index_error='0.00', energy_flux_error2='5.33e-05', EG='1.34', time_epoch_completed='1671268113.12', return_code='0', job_id='955601', GAL2='0.61', EG2='1.35', return_code2='0', energy_flux_error='1.08e-05', photon_flux_error2='6.03e-09', ts2='7.43', photon_index='1.82' WHERE bin_id='1749' AND source_name='4FGL J1517.7+6525' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Dec 17 01:08:33 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 955601: <4FGL_J1517.7+6525_daily_bin1749> in cluster <slac> Done

Job <4FGL_J1517.7+6525_daily_bin1749> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Dec 17 00:55:20 2022
Job was executed on host(s) <bullet0227>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Dec 17 00:55:21 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Dec 17 00:55:21 2022
Terminated at Sat Dec 17 01:08:33 2022
Results reported at Sat Dec 17 01:08:33 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1517.7+6525_daily_bin1749 229.436 65.424 692668801 692928001 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 :                                   621.35 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             280.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   792 sec.
    Turnaround time :                            793 sec.

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

