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


Performing analysis on: 4FGL_J1517.7+6525_daily_bin1750
RA = 229.436, Dec = 65.424
tmin = 692928001, tmax = 693187201
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='16241', job_status='RUN', time_executed='2022-12-20 01:08:15.722902', time_epoch_executed='1671527295.72' WHERE source_name='4FGL J1517.7+6525' and cadence='daily' and bin_id='1750'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/16241

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/16241/ft1_4FGL_J1517.7+6525_daily_bin1750.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/16241/ft2_4FGL_J1517.7+6525_daily_bin1750.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/16241/ft1_4FGL_J1517.7+6525_daily_bin1750.fits outfile=/scratch/kocevski/16241/ft1_filteredMKT_4FGL_J1517.7+6525_daily_bin1750.fits ra=229.436 dec=65.424 rad=12.0 tmin=692928001.0 tmax=693187201.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.45
user 3.21
sys 0.21

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

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

Number of photons that the gtmktime cut: 593

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/16241/ft1_filtered_4FGL_J1517.7+6525_daily_bin1750.fits" evtable="EVENTS" scfile=/scratch/kocevski/16241/ft2_4FGL_J1517.7+6525_daily_bin1750.fits sctable="SC_DATA" outfile=/scratch/kocevski/16241/ltcube_692928001_693187201_4FGL_J1517.7+6525_daily_bin1750.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/16241/ft2_4FGL_J1517.7+6525_daily_bin1750.fits
.....................!
real 11.36
user 11.02
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/16241/ft1_filtered_4FGL_J1517.7+6525_daily_bin1750.fits evtable="EVENTS" scfile=/scratch/kocevski/16241/ft2_4FGL_J1517.7+6525_daily_bin1750.fits sctable="SC_DATA" expcube=/scratch/kocevski/16241/ltcube_692928001_693187201_4FGL_J1517.7+6525_daily_bin1750.fits outfile=/scratch/kocevski/16241/expmap_692928001_693187201_4FGL_J1517.7+6525_daily_bin1750.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/16241/ltcube_692928001_693187201_4FGL_J1517.7+6525_daily_bin1750.fits
.....................!
real 189.99
user 185.37
sys 4.32

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/16241/ft1_filtered_4FGL_J1517.7+6525_daily_bin1750.fits scfile=/scratch/kocevski/16241/ft2_4FGL_J1517.7+6525_daily_bin1750.fits outfile=/scratch/kocevski/16241/cmap_692928001_693187201_4FGL_J1517.7+6525_daily_bin1750.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.54
user 0.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/16241/ft1_filtered_4FGL_J1517.7+6525_daily_bin1750.fits evtable="EVENTS" scfile=/scratch/kocevski/16241/ft2_4FGL_J1517.7+6525_daily_bin1750.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/16241/Model_4FGL_J1517.7+6525_daily_bin1750.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/16241/ft1_filtered_4FGL_J1517.7+6525_daily_bin1750.fits.....................!
real 55.84
user 54.51
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10791E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    26.955       1.0000          .0000       .10000E+07
     3 'Prefactor '    1.2837       1.0000          .0000       .10000E+07
     4 'Prefactor '    18.066       1.0000          .0000       .10000E+07
     5 'Prefactor '    .20420E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    36.676       1.0000          .0000       .10000E+07
     7 'Prefactor '    21.165       1.0000          .0000       .10000E+07
     8 'Prefactor '    .22253E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    21.035       1.0000          .0000       .10000E+07
    10 'Prefactor '    .24923E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    .49269E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    8.6245       1.0000          .0000       .10000E+07
    13 'Prefactor '    .14176E-03   1.0000          .0000       .10000E+07
    14 'norm      '    .40254E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    25.239       1.0000          .0000       .10000E+07
    16 'Prefactor '    .15808E-03   1.0000          .0000       .10000E+07
    17 'norm      '    .10919E-01   1.0000          .0000       .10000E+07
    18 'Prefactor '    .27024       1.0000          .0000       .10000E+07
    19 'Prefactor '    .16499E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    14.005       1.0000          .0000       .10000E+07
    21 'norm      '    10.750       1.0000          .0000       .10000E+07
    22 'norm      '    1.3392       1.0000          .0000       .10000E+07
    23 'Prefactor '    8.1290       1.0000          .0000       .10000E+07
    24 'Prefactor '    .30713E-03   1.0000          .0000       .10000E+07
    25 'Normalizat'    1.2115       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .78337       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=   6399.137     FROM MIGRAD    STATUS=CONVERGED    166 CALLS     2239 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12898E-05    7.3277        .13889E-05** at limit **
   2  Prefactor     27.062        3.0918       -.11493E-06   -.59078E-02
   3  Prefactor     1.2888        3.6194        .15733E-05    .24384E-03
   4  Prefactor     18.000        5.0300       -.95416E-06   -.35976E-01
   5  Prefactor     .55234E-07    8.8366        .23695E-05** at limit **
   6  Prefactor     38.063        33.661       -.22999E-06    .13992    
   7  Prefactor     21.156        1.0238       -.63179E-08    .12697E-02
   8  Prefactor     .33723E-06    2.6020       -.52097E-06** at limit **
   9  Prefactor     20.852        2.9488       -.42049E-06    .25541E-01
  10  Prefactor     .22149E-05    15.245        .39612E-05** at limit **
  11  Prefactor     .72164E-09    17.920       -.81075E-05** at limit **
  12  Prefactor     8.7023        8.2826       -.41534E-06    .50498E-03
  13  Prefactor     .20839E-06    8.3441        .39968E-05** at limit **
  14  norm          .55511E-10    1.7834       -.40617E-07** at limit **
  15  Prefactor     24.256        37.501       -.38662E-05    .13044    
  16  Prefactor     .12967E-06    10.449       -.43654E-05** at limit **
  17  norm          .52516E-05    3.5739       -.28460E-05** at limit **
  18  Prefactor     .97025E-05    66.798       -.17526E-04** at limit **
  19  Prefactor     .68612E-06    43.782        .64198E-05** at limit **
  20  Prefactor     14.689        10.486       -.10520E-05    .49921E-01
  21  norm          10.804        9.5770       -.10452E-06    .21943E-03
  22  norm          1.3364        .84360       -.36104E-06   -.32394E-02
  23  Prefactor     8.0834        7.2555        .40656E-08   -.11171E-02
  24  Prefactor     .87613E-06    7.1445        .21996E-05** at limit **
  25  Normalizat    1.2117        .19344       -.92661E-05   -.37716E-04
  26  Prefactor     .78288        .19282        .24639E-04   -.52857E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.2898e-06
  Prefactor  = 27.0618
  Prefactor  = 1.28881
  Prefactor  = 17.9995
  Prefactor  = 5.52336e-08
  Prefactor  = 38.0632
  Prefactor  = 21.1559
  Prefactor  = 3.3723e-07
  Prefactor  = 20.8525
  Prefactor  = 2.21489e-06
  Prefactor  = 7.21645e-10
  Prefactor  = 8.70234
  Prefactor  = 2.08389e-07
  norm       = 5.55112e-11
  Prefactor  = 24.2564
  Prefactor  = 1.29674e-07
  norm       = 5.25158e-06
  Prefactor  = 9.70252e-06
  Prefactor  = 6.86118e-07
  Prefactor  = 14.6889
  norm       = 10.8042
  norm       = 1.33643
  Prefactor  = 8.08341
  Prefactor  = 8.76132e-07
  Normalizat = 1.21174
  Prefactor  = 0.782883
 **********
 **   18 **HESSE 
 **********

 FCN=   6399.137     FROM HESSE     STATUS=OK           508 CALLS     2747 TOTAL
                     EDM=   .44E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12898E-05    22.833        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     27.062        45.239        .19265E-03   -1.5604    
   3  Prefactor     1.2888        3.5804        .97858E-03   -1.5731    
   4  Prefactor     18.000        19.660        .23537E-03   -1.5623    
   5  Prefactor     .55234E-07    9.7603        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     38.063        46.067        .16514E-03   -1.5585    
   7  Prefactor     21.156        21.613        .21743E-03   -1.5616    
   8  Prefactor     .33723E-06    9.4054        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     20.852        28.776        .21810E-03   -1.5617    
  10  Prefactor     .22149E-05    20.660        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .72164E-09    26.295        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.7023        8.2970        .34109E-03   -1.5649    
  13  Prefactor     .20839E-06    9.2517        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .55511E-10    1.7763        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     24.256        58.232        .19909E-03   -1.5609    
  16  Prefactor     .12967E-06    11.217        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .52516E-05    37.975        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .97025E-05    83.569        .10639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .68612E-06    45.195        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     14.689        41.623        .26739E-03   -1.5631    
  21  norm          10.804        9.5983        .30533E-03   -1.5642    
  22  norm          1.3364        .90956        .94703E-03   -1.5685    
  23  Prefactor     8.0834        7.2763        .35141E-03   -1.5651    
  24  Prefactor     .87613E-06    22.714        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2117        .16952        .34615E-01   -.86241    
  26  Prefactor     .78288        .16917        .43500E-01   -1.0036    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.42901e-06
Minuit parameter uncertainties:
  1  0.0108537
  2  45.2398
  3  3.58041
  4  19.6596
  5  0.00146883
  6  46.0679
  7  21.6128
  8  0.00356197
  9  28.7763
  10  0.0135292
  11  0.000271469
  12  8.29704
  13  0.00277707
  14  1.92777e-05
  15  58.2331
  16  0.00241225
  17  0.0282439
  18  0.0569509
  19  0.0111371
  20  41.6241
  21  9.59834
  22  0.909556
  23  7.27634
  24  0.00892191
  25  0.169595
  26  0.169279
Done.

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

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  2.084e-07  2.777e-03  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:  7.829e-01  1.693e-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.212e+00  1.696e-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: 2.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/16241/likelihoodResults_692928001_693187201_4FGL_J1517.7+6525_daily_bin1750.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) = 6398.80394059
delta logL = 0.332785633752

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6399.13672624
delta logL = -1.11058398033e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14988E-08   1.0000          .0000       .10000E+07
     2 'Index     '    .34952E-01   1.0000          .0000       10.000    
     3 'Normalizat'    1.2117       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78289       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=   6399.137     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      297 TOTAL
                     EDM=   .15E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        10.418        .35228E-06** at limit **
   2  Index         1.6049        6.2202       -.23270E-04     .0000    
   3  Normalizat    1.2117        .18621        .83400E-06   -.98130E-06
   4  Prefactor     .78288        .18846        .55973E-05    .21031E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.60492
  Normalizat = 1.21174
  Prefactor  = 0.782883
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6399.137     FROM HESSE     STATUS=FAILED        11 CALLS      308 TOTAL
                     EDM=   .15E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        10.163        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .24505        1.5393       -.23270E-04   -.74642    
   3  Normalizat    1.2117        1.1024        .83400E-06   -.86241    
   4  Prefactor     .78288        1.1319        .55973E-05   -1.0036    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.53716e-12
Minuit parameter uncertainties:
  1  3.3191e-05
  2  1.19866
  3  1.12472
  4  1.16836
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/16241': 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) = 6399.13672621
delta logL = 1.12640918815e-08

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  0.000e+00  3.319e-05  0.000e+00  1.000e+06 ( 1.000e-14)
341        Index:  1.605e+00  1.199e+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:  7.829e-01  1.168e+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:  1.212e+00  1.125e+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/16241/cmap_HighResolution_692928001_693187201_4FGL_J1517.7+6525_daily_bin1750.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.20e-03', job_status='DONE', photon_flux_upper_limit='2.98e-08', time_completed='2022-12-20 01:20:58.341539', job_id='16241', GAL2='0.78', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1671528058.34', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='1.13e-08', ts2='0.00', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='1750' AND source_name='4FGL J1517.7+6525' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 20 01:20:58 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0161>
Subject: Job 16241: <4FGL_J1517.7+6525_daily_bin1750> in cluster <slac> Done

Job <4FGL_J1517.7+6525_daily_bin1750> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Dec 20 01:05:22 2022
Job was executed on host(s) <bullet0161>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 20 01:05:23 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 20 01:05:23 2022
Terminated at Tue Dec 20 01:20:59 2022
Results reported at Tue Dec 20 01:20:59 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1517.7+6525_daily_bin1750 229.436 65.424 692928001 693187201 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 :                                   765.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             283.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   935 sec.
    Turnaround time :                            937 sec.

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

