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


Performing analysis on: 4FGL_J1117.0+2013_daily_bin1763
RA = 169.271, Dec = 20.2294
tmin = 696297601, tmax = 696556801
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='277859', job_status='RUN', time_executed='2023-01-28 00:49:11.462293', time_epoch_executed='1674895751.46' WHERE source_name='4FGL J1117.0+2013' and cadence='daily' and bin_id='1763'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/277859

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/277859/ft1_4FGL_J1117.0+2013_daily_bin1763.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/277859/ft2_4FGL_J1117.0+2013_daily_bin1763.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/277859/ft1_4FGL_J1117.0+2013_daily_bin1763.fits outfile=/scratch/kocevski/277859/ft1_filteredMKT_4FGL_J1117.0+2013_daily_bin1763.fits ra=169.271 dec=20.2294 rad=12.0 tmin=696297601.0 tmax=696556801.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.73
user 3.41
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/277859/ft2_4FGL_J1117.0+2013_daily_bin1763.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/277859/ft2_4FGL_J1117.0+2013_daily_bin1763.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/277859/ft1_filteredMKT_4FGL_J1117.0+2013_daily_bin1763.fits evtable="EVENTS" outfile="/scratch/kocevski/277859/ft1_filtered_4FGL_J1117.0+2013_daily_bin1763.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.17

Number of photons that the gtmktime cut: 525

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/277859/ft1_filtered_4FGL_J1117.0+2013_daily_bin1763.fits" evtable="EVENTS" scfile=/scratch/kocevski/277859/ft2_4FGL_J1117.0+2013_daily_bin1763.fits sctable="SC_DATA" outfile=/scratch/kocevski/277859/ltcube_696297601_696556801_4FGL_J1117.0+2013_daily_bin1763.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/277859/ft2_4FGL_J1117.0+2013_daily_bin1763.fits
.....................!
real 16.06
user 15.66
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/277859/ft1_filtered_4FGL_J1117.0+2013_daily_bin1763.fits evtable="EVENTS" scfile=/scratch/kocevski/277859/ft2_4FGL_J1117.0+2013_daily_bin1763.fits sctable="SC_DATA" expcube=/scratch/kocevski/277859/ltcube_696297601_696556801_4FGL_J1117.0+2013_daily_bin1763.fits outfile=/scratch/kocevski/277859/expmap_696297601_696556801_4FGL_J1117.0+2013_daily_bin1763.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/277859/ltcube_696297601_696556801_4FGL_J1117.0+2013_daily_bin1763.fits
.....................!
real 192.73
user 186.94
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 193 point sources and 0 extended sources

Setting source of interest to:
4FGL J1117.0+2013 @ 169.271 20.2294

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/277859/ft1_filtered_4FGL_J1117.0+2013_daily_bin1763.fits scfile=/scratch/kocevski/277859/ft2_4FGL_J1117.0+2013_daily_bin1763.fits outfile=/scratch/kocevski/277859/cmap_696297601_696556801_4FGL_J1117.0+2013_daily_bin1763.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=169.271 yref=20.2294 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/277859/ft1_filtered_4FGL_J1117.0+2013_daily_bin1763.fits scfile=/scratch/kocevski/277859/ft2_4FGL_J1117.0+2013_daily_bin1763.fits outfile=/scratch/kocevski/277859/cmap_HighResolution_696297601_696556801_4FGL_J1117.0+2013_daily_bin1763.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=169.271 yref=20.2294 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.60
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/277859/ft1_filtered_4FGL_J1117.0+2013_daily_bin1763.fits evtable="EVENTS" scfile=/scratch/kocevski/277859/ft2_4FGL_J1117.0+2013_daily_bin1763.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/277859/Model_4FGL_J1117.0+2013_daily_bin1763.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/277859/ft1_filtered_4FGL_J1117.0+2013_daily_bin1763.fits.....................!
real 56.50
user 55.03
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/277859/ft1_filtered_4FGL_J1117.0+2013_daily_bin1763.fits', '/scratch/kocevski/277859/ft2_4FGL_J1117.0+2013_daily_bin1763.fits', expMap='/scratch/kocevski/277859/expmap_696297601_696556801_4FGL_J1117.0+2013_daily_bin1763.fits', expCube='/scratch/kocevski/277859/ltcube_696297601_696556801_4FGL_J1117.0+2013_daily_bin1763.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/277859/Model_4FGL_J1117.0+2013_daily_bin1763.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1117.0+2013'

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  3.413e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
301        Index:  1.957e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  1.912e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/277859/ft1_filtered_4FGL_J1117.0+2013_daily_bin1763.fits
Spacecraft file(s): /scratch/kocevski/277859/ft2_4FGL_J1117.0+2013_daily_bin1763.fits
Exposure map: /scratch/kocevski/277859/expmap_696297601_696556801_4FGL_J1117.0+2013_daily_bin1763.fits
Exposure cube: /scratch/kocevski/277859/ltcube_696297601_696556801_4FGL_J1117.0+2013_daily_bin1763.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/277859/Model_4FGL_J1117.0+2013_daily_bin1763.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) = 5948.32162459

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .21490E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .55511E-10   1.0000          .0000       .10000E+07
     3 'Prefactor '    11.263       1.0000          .0000       .10000E+07
     4 'Prefactor '    .26801E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    16.238       1.0000          .0000       .10000E+07
     6 'Prefactor '    .71315E-06   1.0000          .0000       .10000E+07
     7 'Prefactor '    .44578E-04   1.0000          .0000       .10000E+07
     8 'norm      '    .62172E-07   1.0000          .0000       .10000E+07
     9 'Prefactor '    4.9876       1.0000          .0000       .10000E+07
    10 'Prefactor '    .25958E-02   1.0000          .0000       .10000E+07
    11 'norm      '    .23379       1.0000          .0000       .10000E+07
    12 'Prefactor '    3.6677       1.0000          .0000       .10000E+07
    13 'Prefactor '    .14924E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    22.993       1.0000          .0000       .10000E+07
    15 'Prefactor '    36.591       1.0000          .0000       .10000E+07
    16 'Prefactor '    .20198E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    4.6149       1.0000          .0000       .10000E+07
    18 'Prefactor '    .30137E-04   1.0000          .0000       .10000E+07
    19 'Normalizat'    1.4539       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .58785       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5948.319     FROM MIGRAD    STATUS=CONVERGED    137 CALLS     1543 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15604E-06    10.291       -.22994E-06** at limit **
   2  Prefactor      .0000        .77664        .18775E-06** at limit **
   3  Prefactor     11.208        6.9569       -.78150E-08   -.71001E-04
   4  Prefactor     .25202E-07    3.1423       -.48782E-06** at limit **
   5  Prefactor     16.328        10.167       -.26236E-06   -.81807E-02
   6  Prefactor     .14244E-06    3.2444        .14035E-06** at limit **
   7  Prefactor     .10608E-06    4.1365        .28003E-06** at limit **
   8  norm           .0000        1.1402       -.69157E-07** at limit **
   9  Prefactor     4.9827        4.0638        .39063E-07   -.98818E-03
  10  Prefactor     .88873E-07    10.193        .34065E-06** at limit **
  11  norm          .15794        45.730       -.33626E-05** at limit **
  12  Prefactor     3.6543        5.9003        .10114E-06   -.78785E-04
  13  Prefactor      .0000        23.390        .31809E-06** at limit **
  14  Prefactor     23.038        6.6581        .61037E-07    .90862E-02
  15  Prefactor     36.482        33.846       -.18113E-05    .27280E-01
  16  Prefactor     .71554E-07    2.5689       -.39540E-06** at limit **
  17  Prefactor     4.6161        2.4827        .14598E-07   -.99672E-03
  18  Prefactor     .37748E-08    5.7081        .40744E-06** at limit **
  19  Normalizat    1.4541        .22414       -.28750E-05   -.27914E-04
  20  Prefactor     .58785        .20802        .11973E-05   -.10885E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.56042e-07
  Prefactor  = 0
  Prefactor  = 11.2082
  Prefactor  = 2.52021e-08
  Prefactor  = 16.3278
  Prefactor  = 1.42442e-07
  Prefactor  = 1.06082e-07
  norm       = 0
  Prefactor  = 4.98275
  Prefactor  = 8.88734e-08
  norm       = 0.157939
  Prefactor  = 3.65431
  Prefactor  = 0
  Prefactor  = 23.0378
  Prefactor  = 36.482
  Prefactor  = 7.15539e-08
  Prefactor  = 4.61611
  Prefactor  = 3.77476e-09
  Normalizat = 1.45415
  Prefactor  = 0.587855
 **********
 **   18 **HESSE 
 **********

 FCN=   5948.319     FROM HESSE     STATUS=OK           339 CALLS     1882 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .15604E-06    12.932        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        .77463        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.208        6.9531        .29827E-03   -1.5641    
   4  Prefactor     .25202E-07    5.6967        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.328        10.191        .24828E-03   -1.5627    
   6  Prefactor     .14244E-06    6.7408        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10608E-06    6.9718        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        1.1249        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.9827        4.0419        .45006E-03   -1.5663    
  10  Prefactor     .88873E-07    12.226        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .15794        8.7975        .78477E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.6543        5.9139        .52718E-03   -1.5670    
  13  Prefactor      .0000        22.552        .17397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     23.038        17.076        .20860E-03   -1.5612    
  15  Prefactor     36.482        35.133        .16533E-03   -1.5587    
  16  Prefactor     .71554E-07    5.3718        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.6161        2.5078        .46829E-03   -1.5665    
  18  Prefactor     .37748E-08    5.6164        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.4541        .19153        .50336E-01   -.79075    
  20  Prefactor     .58785        .17909        .73865E-01   -1.0810    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23084e-07
Minuit parameter uncertainties:
  1  0.00284123
  2  1.65087e-06
  3  6.95313
  4  0.000758107
  5  10.1906
  6  0.00195961
  7  0.00172015
  8  2.32279e-06
  9  4.04191
  10  0.00208501
  11  2.35752
  12  5.91391
  13  1.99875e-05
  14  17.0758
  15  35.1332
  16  0.00123986
  17  2.50784
  18  0.000291696
  19  0.191629
  20  0.179261
Done.

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

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  8.887e-08  2.085e-03  0.000e+00  1.000e+06 ( 1.000e-13)
301        Index:  1.957e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  1.912e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  5.879e-01  1.793e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.454e+00  1.916e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 169.271 20.229
Photon Flux Upper Limit: 5.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/277859/likelihoodResults_696297601_696556801_4FGL_J1117.0+2013_daily_bin1763.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) = 5948.36539723
delta logL = -0.0468114772848

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5948.01091146
delta logL = 0.307674292411

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .25577E-03   1.0000          .0000       .10000E+07
     2 'Index     '    6.1568       1.0000          .0000       10.000    
     3 'Normalizat'    1.4079       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61897       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5948.319     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      368 TOTAL
                     EDM=   .47E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        6.1075        .42118E-03** at limit **
   2  Index         1.5853        .75179        .88235E-07     .0000    
   3  Normalizat    1.4541        1.0753        .79104E-06    .24771E-03
   4  Prefactor     .58785        .94435       -.14186E-04    .20035E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.58531
  Normalizat = 1.45415
  Prefactor  = 0.587854
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5948.319     FROM HESSE     STATUS=FAILED         9 CALLS      377 TOTAL
                     EDM=   .47E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        6.1075        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .23684        1.4216        .88235E-07   -365.18    
   3  Normalizat    1.4541        1.0753        .79104E-06   -2.3508    
   4  Prefactor     .58785        .94435       -.14186E-04   -2.0606    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.66869e-11
Minuit parameter uncertainties:
  1  4.84717e-06
  2  0.757203
  3  1.09285
  4  0.971755
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/277859': 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) = 5948.31858575
delta logL = 3.56158125214e-09

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  0.000e+00  4.847e-06  0.000e+00  1.000e+06 ( 1.000e-13)
301        Index:  1.585e+00  7.572e-01  0.000e+00  1.000e+01 (-1.000e+00)
302        Scale:  1.912e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  5.879e-01  9.718e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.454e+00  1.093e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 169.271 20.229

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/277859/cmap_HighResolution_696297601_696556801_4FGL_J1117.0+2013_daily_bin1763.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.21e-03', job_status='DONE', photon_flux_upper_limit='5.63e-08', time_completed='2023-01-28 00:58:53.043395', job_id='277859', GAL2='0.59', fit_tolerance='1e-08', EG2='1.45', EG='1.45', time_epoch_completed='1674896333.04', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.59', dlogl='3.56e-09', ts2='0.00', photon_index_error='0.00', photon_index='1.96' WHERE bin_id='1763' AND source_name='4FGL J1117.0+2013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jan 28 00:58:53 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 277859: <4FGL_J1117.0+2013_daily_bin1763> in cluster <slac> Done

Job <4FGL_J1117.0+2013_daily_bin1763> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sat Jan 28 00:45:21 2023
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jan 28 00:45:52 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jan 28 00:45:52 2023
Terminated at Sat Jan 28 00:58:53 2023
Results reported at Sat Jan 28 00:58:53 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1117.0+2013_daily_bin1763 169.271 20.2294 696297601 696556801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1117.0+2013 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   583.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   781 sec.
    Turnaround time :                            812 sec.

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

