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


Performing analysis on: 4FGL_J1656.0+2047_daily_bin1777
RA = 254.005, Dec = 20.7841
tmin = 699926401, tmax = 700185601
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='919404', job_status='RUN', time_executed='2023-03-11 01:00:46.178913', time_epoch_executed='1678525246.18' WHERE source_name='4FGL J1656.0+2047' and cadence='daily' and bin_id='1777'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/919404

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/919404/ft1_4FGL_J1656.0+2047_daily_bin1777.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/919404/ft2_4FGL_J1656.0+2047_daily_bin1777.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/919404/ft1_4FGL_J1656.0+2047_daily_bin1777.fits outfile=/scratch/kocevski/919404/ft1_filteredMKT_4FGL_J1656.0+2047_daily_bin1777.fits ra=254.005 dec=20.7841 rad=12.0 tmin=699926401.0 tmax=700185601.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.65
user 3.43
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/919404/ft2_4FGL_J1656.0+2047_daily_bin1777.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/919404/ft1_filteredMKT_4FGL_J1656.0+2047_daily_bin1777.fits evtable="EVENTS" outfile="/scratch/kocevski/919404/ft1_filtered_4FGL_J1656.0+2047_daily_bin1777.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.51
user 0.34
sys 0.15

Number of photons that the gtmktime cut: 922

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/919404/ft1_filtered_4FGL_J1656.0+2047_daily_bin1777.fits" evtable="EVENTS" scfile=/scratch/kocevski/919404/ft2_4FGL_J1656.0+2047_daily_bin1777.fits sctable="SC_DATA" outfile=/scratch/kocevski/919404/ltcube_699926401_700185601_4FGL_J1656.0+2047_daily_bin1777.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/919404/ft2_4FGL_J1656.0+2047_daily_bin1777.fits
.....................!
real 13.57
user 13.18
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/919404/ft1_filtered_4FGL_J1656.0+2047_daily_bin1777.fits evtable="EVENTS" scfile=/scratch/kocevski/919404/ft2_4FGL_J1656.0+2047_daily_bin1777.fits sctable="SC_DATA" expcube=/scratch/kocevski/919404/ltcube_699926401_700185601_4FGL_J1656.0+2047_daily_bin1777.fits outfile=/scratch/kocevski/919404/expmap_699926401_700185601_4FGL_J1656.0+2047_daily_bin1777.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/919404/ltcube_699926401_700185601_4FGL_J1656.0+2047_daily_bin1777.fits
.....................!
real 191.38
user 185.63
sys 4.93

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/919404/ft1_filtered_4FGL_J1656.0+2047_daily_bin1777.fits scfile=/scratch/kocevski/919404/ft2_4FGL_J1656.0+2047_daily_bin1777.fits outfile=/scratch/kocevski/919404/cmap_699926401_700185601_4FGL_J1656.0+2047_daily_bin1777.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/919404/ft1_filtered_4FGL_J1656.0+2047_daily_bin1777.fits scfile=/scratch/kocevski/919404/ft2_4FGL_J1656.0+2047_daily_bin1777.fits outfile=/scratch/kocevski/919404/cmap_HighResolution_699926401_700185601_4FGL_J1656.0+2047_daily_bin1777.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.55
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/919404/ft1_filtered_4FGL_J1656.0+2047_daily_bin1777.fits', '/scratch/kocevski/919404/ft2_4FGL_J1656.0+2047_daily_bin1777.fits', expMap='/scratch/kocevski/919404/expmap_699926401_700185601_4FGL_J1656.0+2047_daily_bin1777.fits', expCube='/scratch/kocevski/919404/ltcube_699926401_700185601_4FGL_J1656.0+2047_daily_bin1777.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/919404/Model_4FGL_J1656.0+2047_daily_bin1777.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/919404/ft1_filtered_4FGL_J1656.0+2047_daily_bin1777.fits
Spacecraft file(s): /scratch/kocevski/919404/ft2_4FGL_J1656.0+2047_daily_bin1777.fits
Exposure map: /scratch/kocevski/919404/expmap_699926401_700185601_4FGL_J1656.0+2047_daily_bin1777.fits
Exposure cube: /scratch/kocevski/919404/ltcube_699926401_700185601_4FGL_J1656.0+2047_daily_bin1777.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/919404/Model_4FGL_J1656.0+2047_daily_bin1777.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) = 10198.5835749

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.9310       1.0000          .0000       .10000E+07
     2 'Prefactor '    .41765       1.0000          .0000       .10000E+07
     3 'Prefactor '    14.762       1.0000          .0000       .10000E+07
     4 'Prefactor '    .10911E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    32.929       1.0000          .0000       .10000E+07
     6 'Prefactor '    .51034E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    .42217E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .53602E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .31214E-02   1.0000          .0000       .10000E+07
    10 'norm      '    .13878E-07   1.0000          .0000       .10000E+07
    11 'norm      '    13.365       1.0000          .0000       .10000E+07
    12 'Prefactor '    2.0666       1.0000          .0000       .10000E+07
    13 'norm      '    54.101       1.0000          .0000       .10000E+07
    14 'Normalizat'    .87449       1.0000         .10000E-01   10.000    
    15 'Prefactor '    1.0127       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=   10198.53     FROM MIGRAD    STATUS=CONVERGED    129 CALLS     1024 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.8402        11.134        .11974E-05   -.20564E-02
   2  Prefactor     .81857E-06    110.73       -.11079E-04** at limit **
   3  Prefactor     14.818        15.400        .62859E-08    .72552E-03
   4  Prefactor     .55511E-10    3.5270        .59234E-06** at limit **
   5  Prefactor     33.121        7.7602        .73613E-06   -.69769E-01
   6  Prefactor     .11657E-08    61.913       -.41724E-05** at limit **
   7  Prefactor     .88263E-08    22.509       -.18813E-05** at limit **
   8  Prefactor      .0000        5.2130       -.36026E-06** at limit **
   9  Prefactor     .28866E-08    81.138       -.10868E-04** at limit **
  10  norm           .0000        .94653       -.32035E-06** at limit **
  11  norm          13.360        8.8065       -.59820E-07   -.11994E-03
  12  Prefactor     2.0623        2.3269        .23000E-07    .45311E-04
  13  norm          51.297        51.046       -.97739E-06    .21645E-02
  14  Normalizat    .87415        .22964       -.10082E-04   -.15808E-03
  15  Prefactor     1.0131        .99905E-01   -.11696E-06   -.49383E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.8402
  Prefactor  = 8.18567e-07
  Prefactor  = 14.8178
  Prefactor  = 5.55112e-11
  Prefactor  = 33.1206
  Prefactor  = 1.16573e-09
  Prefactor  = 8.82627e-09
  Prefactor  = 0
  Prefactor  = 2.88658e-09
  norm       = 0
  norm       = 13.3601
  Prefactor  = 2.0623
  norm       = 51.2973
  Normalizat = 0.874146
  Prefactor  = 1.01308
 **********
 **   18 **HESSE 
 **********

 FCN=   10198.53     FROM HESSE     STATUS=OK           216 CALLS     1240 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.8402        11.140        .31773E-03   -1.5645    
   2  Prefactor     .81857E-06    116.81        .87470E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.818        15.347        .26042E-03   -1.5631    
   4  Prefactor     .55511E-10    3.5117        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     33.121        26.125        .17429E-03   -1.5593    
   6  Prefactor     .11657E-08    15.718        .15499E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .88263E-08    22.598        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        5.1875        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .28866E-08    79.924        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        .94340        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          13.360        8.8130        .27373E-03   -1.5635    
  12  Prefactor     2.0623        2.3415        .71841E-03   -1.5679    
  13  norm          51.297        51.037        .13596E-03   -1.5565    
  14  Normalizat    .87415        .19614        .86593E-01   -.97375    
  15  Prefactor     1.0131        .84438E-01    .42955E-01   -.92295    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0704e-07
Minuit parameter uncertainties:
  1  11.1402
  2  0.0195568
  3  15.3473
  4  2.04982e-05
  5  26.1251
  6  0.000268794
  7  0.000894498
  8  1.45626e-05
  9  0.000962154
  10  5.11613e-06
  11  8.81303
  12  2.34153
  13  51.0374
  14  0.196297
  15  0.0844488
Done.

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

Extracting fit parameters...

4FGL J1656.0+2047
   Spectrum: PowerLaw
287    Prefactor:  3.312e+01  2.613e+01  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:  1.013e+00  8.445e-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:  8.741e-01  1.963e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.30
Ra Dec: 254.005 20.784
Photon Index (Fixed Index): 2.48 +/- 0.00
Photon Flux (Fixed Index): 5.09e-08 +/- 4.01e-08
Energy Flux (Fixed Index): 1.52e-05 +/- 1.20e-05

TS (Fixed Index): 2.30
Ra Dec: 254.005 20.784
Photon Flux Upper Limit: 1.36e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.05e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/919404/likelihoodResults_699926401_700185601_4FGL_J1656.0+2047_daily_bin1777.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) = 10198.1844735
delta logL = 0.348316082274

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10198.183758
delta logL = 0.349031623909

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    46.362       1.0000          .0000       .10000E+07
     2 'Index     '    2.0538       1.0000          .0000       10.000    
     3 'Normalizat'    .89051       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0078       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.

 FCN=   10198.18     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      276 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     46.257        1229.0        .14688E-03    .65483E-04
   2  Index         2.0519        5.7946        .19013        .32188E-04
   3  Normalizat    .89060        .15863        .85865E-01    .38134E-04
   4  Prefactor     1.0078        .60338E-01    .43670E-01   -.43703E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 46.2567
  Index      = 2.05188
  Normalizat = 0.8906
  Prefactor  = 1.00783
 **********
 **   18 **HESSE 
 **********

 FCN=   10198.18     FROM HESSE     STATUS=OK            33 CALLS      309 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     46.257        34.700        .58751E-05   -1.5572    
   2  Index         2.0519        .47090        .95671E-02   -.63059    
   3  Normalizat    .89060        .22100        .38021E-03   -.96791    
   4  Prefactor     1.0078        .98337E-01    .15900E-03   -.92469    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.29986e-10
Minuit parameter uncertainties:
  1  34.7002
  2  0.471978
  3  0.221221
  4  0.0983543
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/919404': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10198.1837433
delta logL = 0.349046282949

Extracting fit parameters...

4FGL J1656.0+2047
   Spectrum: PowerLaw
287    Prefactor:  4.626e+01  3.470e+01  0.000e+00  1.000e+06 ( 1.000e-13)
288        Index:  2.052e+00  4.720e-01  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:  1.008e+00  9.835e-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:  8.906e-01  2.212e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.99
Ra Dec: 254.005 20.784
Photon Index (Free Index): 2.05 +/- 0.47
Photon Flux (Free Index): 3.93e-08 +/- 3.44e-08
Energy Flux (Free Index): 2.40e-05 +/- 2.32e-05

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/919404/cmap_HighResolution_699926401_700185601_4FGL_J1656.0+2047_daily_bin1777.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-02', comment='SUCCESS', photon_flux='5.09e-08', energy_flux2='2.40e-05', photon_flux_error='4.01e-08', dlogl='3.49e-01', energy_flux='1.52e-05', photon_flux2='3.93e-08', job_status='DONE', time_completed='2023-03-11 01:11:35.661996', photon_index_error2='0.47', photon_index2='2.05', ts='2.30', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.36e-07', energy_flux_error2='2.32e-05', EG='0.87', time_epoch_completed='1678525895.66', return_code='0', job_id='919404', GAL2='1.01', EG2='0.89', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='3.44e-08', ts2='2.99', photon_index='2.48' WHERE bin_id='1777' AND source_name='4FGL J1656.0+2047' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Mar 11 01:11:35 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 919404: <4FGL_J1656.0+2047_daily_bin1777> in cluster <slac> Done

Job <4FGL_J1656.0+2047_daily_bin1777> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Mar 11 01:00:15 2023
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Mar 11 01:00:17 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Mar 11 01:00:17 2023
Terminated at Sat Mar 11 01:11:36 2023
Results reported at Sat Mar 11 01:11:36 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1656.0+2047_daily_bin1777 254.005 20.7841 699926401 700185601 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 :                                   650.04 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             350.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   678 sec.
    Turnaround time :                            681 sec.

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

