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


Performing analysis on: 4FGL_J1656.0+2047_daily_bin1765
RA = 254.005, Dec = 20.7841
tmin = 696816001, tmax = 697075201
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='640035', job_status='RUN', time_executed='2023-02-03 01:17:26.463635', time_epoch_executed='1675415846.46' WHERE source_name='4FGL J1656.0+2047' and cadence='daily' and bin_id='1765'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/640035

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/640035/ft1_4FGL_J1656.0+2047_daily_bin1765.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/640035/ft2_4FGL_J1656.0+2047_daily_bin1765.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/640035/ft1_4FGL_J1656.0+2047_daily_bin1765.fits outfile=/scratch/kocevski/640035/ft1_filteredMKT_4FGL_J1656.0+2047_daily_bin1765.fits ra=254.005 dec=20.7841 rad=12.0 tmin=696816001.0 tmax=697075201.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.75
user 3.51
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/640035/ft2_4FGL_J1656.0+2047_daily_bin1765.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/640035/ft2_4FGL_J1656.0+2047_daily_bin1765.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/640035/ft1_filteredMKT_4FGL_J1656.0+2047_daily_bin1765.fits evtable="EVENTS" outfile="/scratch/kocevski/640035/ft1_filtered_4FGL_J1656.0+2047_daily_bin1765.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.35
sys 0.16

Number of photons that the gtmktime cut: 804

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/640035/ft1_filtered_4FGL_J1656.0+2047_daily_bin1765.fits" evtable="EVENTS" scfile=/scratch/kocevski/640035/ft2_4FGL_J1656.0+2047_daily_bin1765.fits sctable="SC_DATA" outfile=/scratch/kocevski/640035/ltcube_696816001_697075201_4FGL_J1656.0+2047_daily_bin1765.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/640035/ft2_4FGL_J1656.0+2047_daily_bin1765.fits
.....................!
real 16.25
user 15.82
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/640035/ft1_filtered_4FGL_J1656.0+2047_daily_bin1765.fits evtable="EVENTS" scfile=/scratch/kocevski/640035/ft2_4FGL_J1656.0+2047_daily_bin1765.fits sctable="SC_DATA" expcube=/scratch/kocevski/640035/ltcube_696816001_697075201_4FGL_J1656.0+2047_daily_bin1765.fits outfile=/scratch/kocevski/640035/expmap_696816001_697075201_4FGL_J1656.0+2047_daily_bin1765.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/640035/ltcube_696816001_697075201_4FGL_J1656.0+2047_daily_bin1765.fits
.....................!
real 192.40
user 187.64
sys 4.35

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 191 point sources and 0 extended sources

Setting source of interest to:
4FGL J1656.0+2047 @ 254.005 20.7841

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/640035/ft1_filtered_4FGL_J1656.0+2047_daily_bin1765.fits scfile=/scratch/kocevski/640035/ft2_4FGL_J1656.0+2047_daily_bin1765.fits outfile=/scratch/kocevski/640035/cmap_696816001_697075201_4FGL_J1656.0+2047_daily_bin1765.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=254.005 yref=20.7841 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.59
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/640035/ft1_filtered_4FGL_J1656.0+2047_daily_bin1765.fits scfile=/scratch/kocevski/640035/ft2_4FGL_J1656.0+2047_daily_bin1765.fits outfile=/scratch/kocevski/640035/cmap_HighResolution_696816001_697075201_4FGL_J1656.0+2047_daily_bin1765.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=254.005 yref=20.7841 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.61
user 0.41
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/640035/ft1_filtered_4FGL_J1656.0+2047_daily_bin1765.fits evtable="EVENTS" scfile=/scratch/kocevski/640035/ft2_4FGL_J1656.0+2047_daily_bin1765.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/640035/Model_4FGL_J1656.0+2047_daily_bin1765.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/640035/ft1_filtered_4FGL_J1656.0+2047_daily_bin1765.fits.....................!
real 67.28
user 65.79
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/640035/ft1_filtered_4FGL_J1656.0+2047_daily_bin1765.fits', '/scratch/kocevski/640035/ft2_4FGL_J1656.0+2047_daily_bin1765.fits', expMap='/scratch/kocevski/640035/expmap_696816001_697075201_4FGL_J1656.0+2047_daily_bin1765.fits', expCube='/scratch/kocevski/640035/ltcube_696816001_697075201_4FGL_J1656.0+2047_daily_bin1765.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/640035/Model_4FGL_J1656.0+2047_daily_bin1765.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1656.0+2047'

4FGL J1656.0+2047
   Spectrum: PowerLaw
287    Prefactor:  6.103e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
288        Index:  2.477e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
289        Scale:  8.932e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/640035/ft1_filtered_4FGL_J1656.0+2047_daily_bin1765.fits
Spacecraft file(s): /scratch/kocevski/640035/ft2_4FGL_J1656.0+2047_daily_bin1765.fits
Exposure map: /scratch/kocevski/640035/expmap_696816001_697075201_4FGL_J1656.0+2047_daily_bin1765.fits
Exposure cube: /scratch/kocevski/640035/ltcube_696816001_697075201_4FGL_J1656.0+2047_daily_bin1765.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/640035/Model_4FGL_J1656.0+2047_daily_bin1765.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) = 8494.63395016

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.219       1.0000          .0000       .10000E+07
     2 'Prefactor '    .45817E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    4.5567       1.0000          .0000       .10000E+07
     4 'Prefactor '    .83267E-09   1.0000          .0000       .10000E+07
     5 'Prefactor '    .18103E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .17351E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    4.1947       1.0000          .0000       .10000E+07
     8 'Prefactor '    3.9291       1.0000          .0000       .10000E+07
     9 'Prefactor '    .33120E-03   1.0000          .0000       .10000E+07
    10 'norm      '    1.8386       1.0000          .0000       .10000E+07
    11 'norm      '    10.015       1.0000          .0000       .10000E+07
    12 'Prefactor '    7.2117       1.0000          .0000       .10000E+07
    13 'norm      '    .33777E-03   1.0000          .0000       .10000E+07
    14 'Normalizat'    1.3082       1.0000         .10000E-01   10.000    
    15 'Prefactor '    .79550       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8494.625     FROM MIGRAD    STATUS=CONVERGED    110 CALLS     1010 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.268        12.451       -.44518E-07   -.46550E-02
   2  Prefactor     .57732E-08    21.012       -.32654E-07** at limit **
   3  Prefactor     4.6020        11.039       -.35735E-06    .27167E-03
   4  Prefactor      .0000        1.1974        .64250E-07** at limit **
   5  Prefactor     .38858E-09    9.7761       -.45783E-07** at limit **
   6  Prefactor     .29976E-08    15.891       -.45299E-08** at limit **
   7  Prefactor     3.5491        6.0125        .44726E-07    .44263E-01
   8  Prefactor     4.0210        7.6963       -.51431E-07   -.13733E-02
   9  Prefactor     .55511E-10    8.3626        .22491E-06** at limit **
  10  norm          1.8387        1.6303       -.42204E-07   -.27147E-03
  11  norm          9.9960        1.8697       -.11269E-07   -.93805E-02
  12  Prefactor     7.2124        3.6557        .47297E-07    .10194E-02
  13  norm          .14777E-05    74.936        .31949E-06** at limit **
  14  Normalizat    1.3078        .23890        .97314E-06   -.40894E-06
  15  Prefactor     .79561        .10523        .37580E-06   -.43016E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.2676
  Prefactor  = 5.77316e-09
  Prefactor  = 4.602
  Prefactor  = 0
  Prefactor  = 3.88578e-10
  Prefactor  = 2.9976e-09
  Prefactor  = 3.54909
  Prefactor  = 4.02101
  Prefactor  = 5.55112e-11
  norm       = 1.83868
  norm       = 9.99602
  Prefactor  = 7.21242
  norm       = 1.47765e-06
  Normalizat = 1.30777
  Prefactor  = 0.795614
 **********
 **   18 **HESSE 
 **********

 FCN=   8494.625     FROM HESSE     STATUS=OK           212 CALLS     1222 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.268        12.506        .22246E-03   -1.5618    
   2  Prefactor     .57732E-08    21.048        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.6020        11.017        .47134E-03   -1.5665    
   4  Prefactor      .0000        1.1979        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .38858E-09    9.8071        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .29976E-08    15.897        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.5491        129.35        .49182E-03   -1.5670    
   8  Prefactor     4.0210        7.8289        .50870E-03   -1.5668    
   9  Prefactor     .55511E-10    8.3525        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.8387        1.6284        .76906E-03   -1.5681    
  11  norm          9.9960        12.317        .31639E-03   -1.5645    
  12  Prefactor     7.2124        3.8588        .37328E-03   -1.5654    
  13  norm          .14777E-05    76.552        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Normalizat    1.3078        .19951        .69367E-01   -.83335    
  15  Prefactor     .79561        .88104E-01    .43659E-01   -.99890    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01886e-06
Minuit parameter uncertainties:
  1  12.5061
  2  0.00069601
  3  11.0171
  4  8.24355e-08
  5  0.000120073
  6  0.000437228
  7  42.8527
  8  7.82891
  9  5.16517e-05
  10  1.62842
  11  12.3174
  12  3.85878
  13  0.0212716
  14  0.199626
  15  0.0881192
Done.

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

Extracting fit parameters...

4FGL J1656.0+2047
   Spectrum: PowerLaw
287    Prefactor:  3.886e-10  1.201e-04  0.000e+00  1.000e+06 ( 1.000e-13)
288        Index:  2.477e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
289        Scale:  8.932e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
626    Prefactor:  7.956e-01  8.812e-02  0.000e+00  1.000e+01 ( 1.000e+00)
627        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
628        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
625   Normalization:  1.308e+00  1.996e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 254.005 20.784
Photon Flux Upper Limit: 5.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.54e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/640035/likelihoodResults_696816001_697075201_4FGL_J1656.0+2047_daily_bin1765.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) = 8494.62511391
delta logL = -6.13146767137e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8494.62505269
delta logL = -1.00782926893e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12984E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.3406       1.0000          .0000       10.000    
     3 'Normalizat'    1.3077       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79561       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   8494.625     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      254 TOTAL
                     EDM=   .33E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        3.9864        .42118E-03** at limit **
   2  Index         3.3003        1.4764        .19731E-03     .0000    
   3  Normalizat    1.3078        1.0778        .16841E-05    .17272E-03
   4  Prefactor     .79561        1.1443        .12197E-05    .31551E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.30028
  Normalizat = 1.30777
  Prefactor  = 0.795614
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8494.625     FROM HESSE     STATUS=FAILED         9 CALLS      263 TOTAL
                     EDM=   .33E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.9864        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.2211        2.1652        .19731E-03   -.34686    
   3  Normalizat    1.3078        1.0778        .16841E-05   -.83335    
   4  Prefactor     .79561        1.1443        .12197E-05   -.99890    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.31153e-11
Minuit parameter uncertainties:
  1  1.329e-05
  2  1.50177
  3  1.0972
  4  1.1815
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/640035': 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) = 8494.62505259
delta logL = 0.0

Extracting fit parameters...

4FGL J1656.0+2047
   Spectrum: PowerLaw
287    Prefactor:  0.000e+00  1.329e-05  0.000e+00  1.000e+06 ( 1.000e-13)
288        Index:  3.300e+00  1.502e+00  0.000e+00  1.000e+01 (-1.000e+00)
289        Scale:  8.932e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
626    Prefactor:  7.956e-01  1.181e+00  0.000e+00  1.000e+01 ( 1.000e+00)
627        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
628        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
625   Normalization:  1.308e+00  1.097e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 254.005 20.784

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/640035/cmap_HighResolution_696816001_697075201_4FGL_J1656.0+2047_daily_bin1765.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.54e-03', job_status='DONE', photon_flux_upper_limit='5.84e-08', time_completed='2023-02-03 01:27:32.709053', job_id='640035', GAL2='0.80', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1675416452.71', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='1765' AND source_name='4FGL J1656.0+2047' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb  3 01:27:32 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 640035: <4FGL_J1656.0+2047_daily_bin1765> in cluster <slac> Done

Job <4FGL_J1656.0+2047_daily_bin1765> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Feb  3 01:15:19 2023
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb  3 01:15:57 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb  3 01:15:57 2023
Terminated at Fri Feb  3 01:27:33 2023
Results reported at Fri Feb  3 01:27:33 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1656.0+2047_daily_bin1765 254.005 20.7841 696816001 697075201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1656.0+2047 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   608.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   696 sec.
    Turnaround time :                            734 sec.

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

