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


Performing analysis on: 4FGL_J1517.7+6525_daily_bin1761
RA = 229.436, Dec = 65.424
tmin = 695779201, tmax = 696038401
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='926270', job_status='RUN', time_executed='2023-01-22 01:13:32.097254', time_epoch_executed='1674378812.1' WHERE source_name='4FGL J1517.7+6525' and cadence='daily' and bin_id='1761'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/926270

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/926270/ft1_4FGL_J1517.7+6525_daily_bin1761.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/926270/ft2_4FGL_J1517.7+6525_daily_bin1761.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/926270/ft1_4FGL_J1517.7+6525_daily_bin1761.fits outfile=/scratch/kocevski/926270/ft1_filteredMKT_4FGL_J1517.7+6525_daily_bin1761.fits ra=229.436 dec=65.424 rad=12.0 tmin=695779201.0 tmax=696038401.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 5.13
user 4.84
sys 0.23

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

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

Number of photons that the gtmktime cut: 605

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/926270/ft1_filtered_4FGL_J1517.7+6525_daily_bin1761.fits" evtable="EVENTS" scfile=/scratch/kocevski/926270/ft2_4FGL_J1517.7+6525_daily_bin1761.fits sctable="SC_DATA" outfile=/scratch/kocevski/926270/ltcube_695779201_696038401_4FGL_J1517.7+6525_daily_bin1761.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/926270/ft2_4FGL_J1517.7+6525_daily_bin1761.fits
.....................!
real 15.71
user 15.20
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/926270/ft1_filtered_4FGL_J1517.7+6525_daily_bin1761.fits evtable="EVENTS" scfile=/scratch/kocevski/926270/ft2_4FGL_J1517.7+6525_daily_bin1761.fits sctable="SC_DATA" expcube=/scratch/kocevski/926270/ltcube_695779201_696038401_4FGL_J1517.7+6525_daily_bin1761.fits outfile=/scratch/kocevski/926270/expmap_695779201_696038401_4FGL_J1517.7+6525_daily_bin1761.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/926270/ltcube_695779201_696038401_4FGL_J1517.7+6525_daily_bin1761.fits
.....................!
real 193.03
user 186.96
sys 4.88

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/926270/ft1_filtered_4FGL_J1517.7+6525_daily_bin1761.fits scfile=/scratch/kocevski/926270/ft2_4FGL_J1517.7+6525_daily_bin1761.fits outfile=/scratch/kocevski/926270/cmap_695779201_696038401_4FGL_J1517.7+6525_daily_bin1761.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/926270/ft1_filtered_4FGL_J1517.7+6525_daily_bin1761.fits scfile=/scratch/kocevski/926270/ft2_4FGL_J1517.7+6525_daily_bin1761.fits outfile=/scratch/kocevski/926270/cmap_HighResolution_695779201_696038401_4FGL_J1517.7+6525_daily_bin1761.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.57
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/926270/ft1_filtered_4FGL_J1517.7+6525_daily_bin1761.fits evtable="EVENTS" scfile=/scratch/kocevski/926270/ft2_4FGL_J1517.7+6525_daily_bin1761.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/926270/Model_4FGL_J1517.7+6525_daily_bin1761.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/926270/ft1_filtered_4FGL_J1517.7+6525_daily_bin1761.fits.....................!
real 57.67
user 55.85
sys 1.36

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .43514E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .41970E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    2.7658       1.0000          .0000       .10000E+07
     4 'Prefactor '    .19285E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .17533E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .41734E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    .63592E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .36309E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .37971E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    .12029E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    .34075E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    7.3584       1.0000          .0000       .10000E+07
    13 'Prefactor '    .10892E-02   1.0000          .0000       .10000E+07
    14 'norm      '    2.1724       1.0000          .0000       .10000E+07
    15 'Prefactor '    42.613       1.0000          .0000       .10000E+07
    16 'Prefactor '    .15854E-04   1.0000          .0000       .10000E+07
    17 'norm      '    .57729E-05   1.0000          .0000       .10000E+07
    18 'Prefactor '    18.293       1.0000          .0000       .10000E+07
    19 'Prefactor '    .98346E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    47.765       1.0000          .0000       .10000E+07
    21 'norm      '    5.7636       1.0000          .0000       .10000E+07
    22 'norm      '    .18757E-06   1.0000          .0000       .10000E+07
    23 'Prefactor '    .73213       1.0000          .0000       .10000E+07
    24 'Prefactor '    8.0124       1.0000          .0000       .10000E+07
    25 'Normalizat'    .95390       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .87992       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=   6557.539     FROM MIGRAD    STATUS=CONVERGED    220 CALLS     2330 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15060E-05    30.053        .14530E-06** at limit **
   2  Prefactor     .66613E-09    5.9825       -.19296E-06** at limit **
   3  Prefactor     2.7509        3.8707        .35792E-07    .22552E-03
   4  Prefactor     .13600E-06    19.042        .84819E-07** at limit **
   5  Prefactor     .54956E-08    10.203       -.79210E-07** at limit **
   6  Prefactor      .0000        33.375        .18754E-06** at limit **
   7  Prefactor     .65947E-07    18.193       -.16389E-06** at limit **
   8  Prefactor     .60507E-08    14.918        .90724E-07** at limit **
   9  Prefactor     .88263E-08    5.8265       -.18762E-06** at limit **
  10  Prefactor     .10270E-07    8.0197       -.21811E-06** at limit **
  11  Prefactor     .33584E-07    21.118       -.66161E-07** at limit **
  12  Prefactor     7.3259        7.8466        .13450E-06   -.11300E-03
  13  Prefactor     .27311E-07    7.8766        .64192E-07** at limit **
  14  norm          2.2016        2.2348        .45670E-07    .64180E-05
  15  Prefactor     38.078        82.369       -.98658E-06    .24042E-02
  16  Prefactor     .11102E-09    3.7960       -.12691E-06** at limit **
  17  norm          .48850E-08    10.197       -.53895E-07** at limit **
  18  Prefactor     18.089        1.2479        .69275E-09    .15040E-02
  19  Prefactor     .21283E-06    89.714       -.31891E-07** at limit **
  20  Prefactor     46.699        7.7666        .50163E-08    .14008    
  21  norm          5.8494        6.4790        .15445E-07   -.39304E-03
  22  norm           .0000        2.7486       -.20058E-06** at limit **
  23  Prefactor     .73923        10.747        .99773E-06    .35734E-02
  24  Prefactor     7.9652        7.1019        .31690E-06   -.17505E-01
  25  Normalizat    .95547        .18063        .30089E-06    .12000E-04
  26  Prefactor     .87980        .17612       -.14143E-05    .15243E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.50602e-06
  Prefactor  = 6.66134e-10
  Prefactor  = 2.75088
  Prefactor  = 1.36002e-07
  Prefactor  = 5.4956e-09
  Prefactor  = 0
  Prefactor  = 6.59472e-08
  Prefactor  = 6.05072e-09
  Prefactor  = 8.82627e-09
  Prefactor  = 1.02696e-08
  Prefactor  = 3.35842e-08
  Prefactor  = 7.32586
  Prefactor  = 2.73115e-08
  norm       = 2.20157
  Prefactor  = 38.0785
  Prefactor  = 1.11022e-10
  norm       = 4.88498e-09
  Prefactor  = 18.0885
  Prefactor  = 2.1283e-07
  Prefactor  = 46.6986
  norm       = 5.84941
  norm       = 0
  Prefactor  = 0.739227
  Prefactor  = 7.96525
  Normalizat = 0.955466
  Prefactor  = 0.879797
 **********
 **   18 **HESSE 
 **********

 FCN=   6557.539     FROM HESSE     STATUS=OK           508 CALLS     2838 TOTAL
                     EDM=   .59E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .15060E-05    48.515        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .66613E-09    11.827        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.7509        3.8843        .61173E-03   -1.5675    
   4  Prefactor     .13600E-06    51.371        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .54956E-08    10.276        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        33.182        .15886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .65947E-07    18.445        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .60507E-08    15.398        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .88263E-08    11.752        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10270E-07    8.0382        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .33584E-07    21.275        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.3259        7.7947        .36950E-03   -1.5654    
  13  Prefactor     .27311E-07    7.9767        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.2016        2.2495        .69834E-03   -1.5678    
  15  Prefactor     38.078        82.372        .15320E-03   -1.5585    
  16  Prefactor     .11102E-09    3.7813        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .48850E-08    9.9727        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     18.089        23.121        .23389E-03   -1.5623    
  19  Prefactor     .21283E-06    90.403        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     46.699        34.541        .14470E-03   -1.5571    
  21  norm          5.8494        6.5182        .41812E-03   -1.5660    
  22  norm           .0000        .32350        .25591E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .73923        17.340        .58137E-03   -1.5691    
  24  Prefactor     7.9652        17.677        .35397E-03   -1.5652    
  25  Normalizat    .95547        .15037        .45587E-01   -.94538    
  26  Prefactor     .87980        .14825        .44749E-01   -.96851    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.9232e-07
Minuit parameter uncertainties:
  1  0.0170955
  2  0.000178936
  3  3.88426
  4  0.00528676
  5  0.000475064
  6  7.6227e-06
  7  0.00220611
  8  0.000610021
  9  0.000644789
  10  0.000574148
  11  0.00169068
  12  7.7947
  13  0.000933742
  14  2.24949
  15  82.3741
  16  3.56204e-05
  17  0.000442547
  18  23.1212
  19  0.0087734
  20  34.5416
  21  6.51816
  22  2.48981e-06
  23  7.16043
  24  17.6774
  25  0.150435
  26  0.148316
Done.

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

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  2.731e-08  9.337e-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:  8.798e-01  1.483e-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.555e-01  1.504e-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.49e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.83e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/926270/likelihoodResults_695779201_696038401_4FGL_J1517.7+6525_daily_bin1761.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) = 6557.59890652
delta logL = -0.0599073056819

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6557.53899925
delta logL = -3.84497980122e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .56621E-08   1.0000          .0000       .10000E+07
     2 'Index     '    .77240       1.0000          .0000       10.000    
     3 'Normalizat'    .95546       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87978       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=   6557.539     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      219 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .84932E-08    .36853        .42118E-03** at limit **
   2  Index         1.8228        5.7839        .43357        .17830E-08
   3  Normalizat    .95547        .77059E-03    .45606E-01    .10678E-02
   4  Prefactor     .87979        .78856E-03    .44747E-01    .64817E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.49321e-09
  Index      = 1.82283
  Normalizat = 0.95547
  Prefactor  = 0.879794
 **********
 **   18 **HESSE 
 **********

 FCN=   6557.539     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      248 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .84932E-08    1.3616        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8228        7.1807        .50000       -.68857    
   3  Normalizat    .95547        .14802E-02    .21632E-03   -.94538    
   4  Prefactor     .87979        .15147E-02    .22853E-03   -.96851    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.3864e-10
Minuit parameter uncertainties:
  1  0.000214848
  2  3843.16
  3  0.00148016
  4  0.00151469
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/926270': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6557.53899921
delta logL = 6.44831743557e-10

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  8.493e-09  2.148e-04  0.000e+00  1.000e+06 ( 1.000e-14)
341        Index:  1.823e+00  3.843e+03  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:  8.798e-01  1.515e-03  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  9.555e-01  1.480e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 229.436 65.424

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/926270/cmap_HighResolution_695779201_696038401_4FGL_J1517.7+6525_daily_bin1761.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.83e-03', job_status='DONE', photon_flux_upper_limit='2.49e-08', time_completed='2023-01-22 01:26:25.917413', job_id='926270', GAL2='0.88', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1674379585.92', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='6.45e-10', ts2='-0.00', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='1761' AND source_name='4FGL J1517.7+6525' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jan 22 01:26:25 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 926270: <4FGL_J1517.7+6525_daily_bin1761> in cluster <slac> Done

Job <4FGL_J1517.7+6525_daily_bin1761> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Jan 22 01:10:20 2023
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jan 22 01:10:39 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jan 22 01:10:39 2023
Terminated at Sun Jan 22 01:26:26 2023
Results reported at Sun Jan 22 01:26:26 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1517.7+6525_daily_bin1761 229.436 65.424 695779201 696038401 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 :                                   773.18 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             277.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   947 sec.
    Turnaround time :                            966 sec.

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

