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


Performing analysis on: 4FGL_J1040.5+0617_daily_bin1748
RA = 160.15, Dec = 6.2848
tmin = 692409601, tmax = 692668801
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='883150', job_status='RUN', time_executed='2022-12-14 00:33:44.794338', time_epoch_executed='1671006824.79' WHERE source_name='4FGL J1040.5+0617' and cadence='daily' and bin_id='1748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/883150

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/883150/ft1_4FGL_J1040.5+0617_daily_bin1748.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/883150/ft2_4FGL_J1040.5+0617_daily_bin1748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/883150/ft1_4FGL_J1040.5+0617_daily_bin1748.fits outfile=/scratch/kocevski/883150/ft1_filteredMKT_4FGL_J1040.5+0617_daily_bin1748.fits ra=160.15 dec=6.2848 rad=12.0 tmin=692409601.0 tmax=692668801.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.41
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/883150/ft2_4FGL_J1040.5+0617_daily_bin1748.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/883150/ft2_4FGL_J1040.5+0617_daily_bin1748.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/883150/ft1_filteredMKT_4FGL_J1040.5+0617_daily_bin1748.fits evtable="EVENTS" outfile="/scratch/kocevski/883150/ft1_filtered_4FGL_J1040.5+0617_daily_bin1748.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 633

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/883150/ft1_filtered_4FGL_J1040.5+0617_daily_bin1748.fits" evtable="EVENTS" scfile=/scratch/kocevski/883150/ft2_4FGL_J1040.5+0617_daily_bin1748.fits sctable="SC_DATA" outfile=/scratch/kocevski/883150/ltcube_692409601_692668801_4FGL_J1040.5+0617_daily_bin1748.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/883150/ft2_4FGL_J1040.5+0617_daily_bin1748.fits
.....................!
real 12.34
user 11.93
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/883150/ft1_filtered_4FGL_J1040.5+0617_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/883150/ft2_4FGL_J1040.5+0617_daily_bin1748.fits sctable="SC_DATA" expcube=/scratch/kocevski/883150/ltcube_692409601_692668801_4FGL_J1040.5+0617_daily_bin1748.fits outfile=/scratch/kocevski/883150/expmap_692409601_692668801_4FGL_J1040.5+0617_daily_bin1748.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/883150/ltcube_692409601_692668801_4FGL_J1040.5+0617_daily_bin1748.fits
.....................!
real 191.89
user 185.95
sys 5.12

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

Setting source of interest to:
4FGL J1040.5+0617 @ 160.15 6.2848

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/883150/ft1_filtered_4FGL_J1040.5+0617_daily_bin1748.fits scfile=/scratch/kocevski/883150/ft2_4FGL_J1040.5+0617_daily_bin1748.fits outfile=/scratch/kocevski/883150/cmap_692409601_692668801_4FGL_J1040.5+0617_daily_bin1748.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=160.15 yref=6.2848 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/883150/ft1_filtered_4FGL_J1040.5+0617_daily_bin1748.fits scfile=/scratch/kocevski/883150/ft2_4FGL_J1040.5+0617_daily_bin1748.fits outfile=/scratch/kocevski/883150/cmap_HighResolution_692409601_692668801_4FGL_J1040.5+0617_daily_bin1748.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=160.15 yref=6.2848 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/883150/ft1_filtered_4FGL_J1040.5+0617_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/883150/ft2_4FGL_J1040.5+0617_daily_bin1748.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/883150/Model_4FGL_J1040.5+0617_daily_bin1748.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/883150/ft1_filtered_4FGL_J1040.5+0617_daily_bin1748.fits.....................!
real 68.98
user 67.52
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/883150/ft1_filtered_4FGL_J1040.5+0617_daily_bin1748.fits', '/scratch/kocevski/883150/ft2_4FGL_J1040.5+0617_daily_bin1748.fits', expMap='/scratch/kocevski/883150/expmap_692409601_692668801_4FGL_J1040.5+0617_daily_bin1748.fits', expCube='/scratch/kocevski/883150/ltcube_692409601_692668801_4FGL_J1040.5+0617_daily_bin1748.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/883150/Model_4FGL_J1040.5+0617_daily_bin1748.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1040.5+0617'

4FGL J1040.5+0617
   Spectrum: PowerLaw
216    Prefactor:  2.877e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
217        Index:  2.368e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
218        Scale:  8.643e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/883150/ft1_filtered_4FGL_J1040.5+0617_daily_bin1748.fits
Spacecraft file(s): /scratch/kocevski/883150/ft2_4FGL_J1040.5+0617_daily_bin1748.fits
Exposure map: /scratch/kocevski/883150/expmap_692409601_692668801_4FGL_J1040.5+0617_daily_bin1748.fits
Exposure cube: /scratch/kocevski/883150/ltcube_692409601_692668801_4FGL_J1040.5+0617_daily_bin1748.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/883150/Model_4FGL_J1040.5+0617_daily_bin1748.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) = 7068.69199747

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8155       1.0000          .0000       .10000E+07
     2 'Prefactor '    .53320E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    8.3575       1.0000          .0000       .10000E+07
     4 'Prefactor '    40.466       1.0000          .0000       .10000E+07
     5 'Prefactor '    .31054E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    6.3883       1.0000          .0000       .10000E+07
     7 'norm      '    2.8849       1.0000          .0000       .10000E+07
     8 'Prefactor '    2.8837       1.0000          .0000       .10000E+07
     9 'Prefactor '    4.4978       1.0000          .0000       .10000E+07
    10 'Prefactor '    27.731       1.0000          .0000       .10000E+07
    11 'Prefactor '    12.456       1.0000          .0000       .10000E+07
    12 'norm      '    .64165       1.0000          .0000       .10000E+07
    13 'norm      '    .23925E-07   1.0000          .0000       .10000E+07
    14 'Prefactor '    .40849E-04   1.0000          .0000       .10000E+07
    15 'norm      '    4.5620       1.0000          .0000       .10000E+07
    16 'Normalizat'    .85390       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .90481       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7068.661     FROM MIGRAD    STATUS=CONVERGED    123 CALLS     1182 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8226        13.642       -.12628E-06   -.13922E-01
   2  Prefactor     .70423E-05    17.775       -.64745E-06** at limit **
   3  Prefactor     8.4290        10.850        .25826E-06    .16412E-01
   4  Prefactor     40.748        33.941        .15511E-06   -.69772E-01
   5  Prefactor     .60389E-05    17.632       -.56565E-06** at limit **
   6  Prefactor     6.1818        15.276        .18249E-06   -.41811E-02
   7  norm          2.8854        1.2579        .17174E-07    .59981E-03
   8  Prefactor     2.8266        4.9759       -.68886E-07   -.16943E-03
   9  Prefactor     4.4935        2.6771        .74667E-07    .86364E-03
  10  Prefactor     27.657        8.7123       -.10405E-06    .14528E-01
  11  Prefactor     12.509        7.8411       -.24600E-06   -.91257E-02
  12  norm          .64110        .38789        .53575E-07    .20552E-02
  13  norm           .0000        .88355       -.30161E-06** at limit **
  14  Prefactor      .0000        4.7422        .14275E-06** at limit **
  15  norm          4.5593        7.8166        .20079E-07   -.14066E-02
  16  Normalizat    .85383        .19817       -.23418E-05   -.11993E-04
  17  Prefactor     .90506        .16284        .14134E-05   -.62765E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.82255
  Prefactor  = 7.04231e-06
  Prefactor  = 8.42895
  Prefactor  = 40.7476
  Prefactor  = 6.03895e-06
  Prefactor  = 6.18178
  norm       = 2.88536
  Prefactor  = 2.82658
  Prefactor  = 4.49348
  Prefactor  = 27.657
  Prefactor  = 12.5093
  norm       = 0.641096
  norm       = 0
  Prefactor  = 0
  norm       = 4.55926
  Normalizat = 0.853832
  Prefactor  = 0.905055
 **********
 **   18 **HESSE 
 **********

 FCN=   7068.661     FROM HESSE     STATUS=OK           263 CALLS     1445 TOTAL
                     EDM=   .70E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8226        13.833        .51648E-03   -1.5669    
   2  Prefactor     .70423E-05    28.167        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.4290        11.223        .34653E-03   -1.5650    
   4  Prefactor     40.748        39.607        .15722E-03   -1.5580    
   5  Prefactor     .60389E-05    26.583        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.1818        15.409        .39687E-03   -1.5658    
   7  norm          2.8854        1.2631        .59810E-03   -1.5674    
   8  Prefactor     2.8266        4.9951        .59824E-03   -1.5674    
   9  Prefactor     4.4935        2.6722        .47450E-03   -1.5666    
  10  Prefactor     27.657        8.6780        .18993E-03   -1.5603    
  11  Prefactor     12.509        7.8515        .28357E-03   -1.5637    
  12  norm          .64110        .38723        .65577E-03   -1.5692    
  13  norm           .0000        .86060        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        4.7493        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.5593        7.8252        .47107E-03   -1.5665    
  16  Normalizat    .85383        .17043        .44310E-01   -.98102    
  17  Prefactor     .90506        .13972        .45066E-01   -.95965    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.95398e-07
Minuit parameter uncertainties:
  1  13.8328
  2  0.0281681
  3  11.2226
  4  39.607
  5  0.0253403
  6  15.4094
  7  1.26307
  8  4.99506
  9  2.67224
  10  8.67801
  11  7.85148
  12  0.387233
  13  3.92936e-06
  14  9.91058e-06
  15  7.8252
  16  0.170542
  17  0.139774
Done.

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

Extracting fit parameters...

4FGL J1040.5+0617
   Spectrum: PowerLaw
216    Prefactor:  4.493e+00  2.672e+00  0.000e+00  1.000e+06 ( 1.000e-12)
217        Index:  2.368e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
218        Scale:  8.643e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
533    Prefactor:  9.051e-01  1.398e-01  0.000e+00  1.000e+01 ( 1.000e+00)
534        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
535        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
532   Normalization:  8.538e-01  1.705e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.05
Ra Dec: 160.150 6.285
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 5.43e-08 +/- 3.23e-08
Energy Flux (Fixed Index): 1.86e-05 +/- 1.11e-05

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) = 7068.64298799
delta logL = 0.0184293141629

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7068.63837991
delta logL = 0.0230373940176

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7649       1.0000          .0000       .10000E+07
     2 'Index     '    2.2592       1.0000          .0000       10.000    
     3 'Normalizat'    .85976       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90175       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7068.638     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      206 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7658        60.914        .46069E-03    .17693E-02
   2  Index         2.2593        6.1275        .20367        .58570E-04
   3  Normalizat    .85971        .81619E-01    .44385E-01    .20678E-04
   4  Prefactor     .90182        .55507E-01    .45027E-01    .12085E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.76577
  Index      = 2.25934
  Normalizat = 0.859715
  Prefactor  = 0.901822
 **********
 **   18 **HESSE 
 **********

 FCN=   7068.638     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .14E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7658        3.0674        .10527E-04   -1.5664    
   2  Index         2.2593        .50745        .69337E-02   -.58013    
   3  Normalizat    .85971        .18870        .26435E-03   -.97891    
   4  Prefactor     .90182        .16134        .22240E-03   -.96077    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35902e-12
Minuit parameter uncertainties:
  1  3.06737
  2  0.508703
  3  0.188845
  4  0.161429
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/883150': 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) = 7068.63837964
delta logL = 0.0230376612926

Extracting fit parameters...

4FGL J1040.5+0617
   Spectrum: PowerLaw
216    Prefactor:  4.766e+00  3.067e+00  0.000e+00  1.000e+06 ( 1.000e-12)
217        Index:  2.259e+00  5.087e-01  0.000e+00  1.000e+01 (-1.000e+00)
218        Scale:  8.643e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
533    Prefactor:  9.018e-01  1.614e-01  0.000e+00  1.000e+01 ( 1.000e+00)
534        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
535        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
532   Normalization:  8.597e-01  1.888e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.09
Ra Dec: 160.150 6.285
Photon Index (Free Index): 2.26 +/- 0.51
Photon Flux (Free Index): 4.95e-08 +/- 3.70e-08
Energy Flux (Free Index): 2.00e-05 +/- 1.44e-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/883150/cmap_HighResolution_692409601_692668801_4FGL_J1040.5+0617_daily_bin1748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.43e-08', energy_flux2='2.00e-05', photon_flux_error='3.23e-08', dlogl='2.30e-02', energy_flux='1.86e-05', photon_flux2='4.95e-08', job_status='DONE', time_completed='2022-12-14 00:42:04.161648', photon_index_error2='0.51', photon_index2='2.26', ts='6.05', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='1.44e-05', EG='0.85', time_epoch_completed='1671007324.16', return_code='0', job_id='883150', GAL2='0.90', EG2='0.86', return_code2='0', energy_flux_error='1.11e-05', photon_flux_error2='3.70e-08', ts2='6.09', photon_index='2.37' WHERE bin_id='1748' AND source_name='4FGL J1040.5+0617' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec 14 00:42:04 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 883150: <4FGL_J1040.5+0617_daily_bin1748> in cluster <slac> Done

Job <4FGL_J1040.5+0617_daily_bin1748> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Dec 14 00:30:13 2022
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec 14 00:30:14 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec 14 00:30:14 2022
Terminated at Wed Dec 14 00:42:05 2022
Results reported at Wed Dec 14 00:42:05 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1040.5+0617_daily_bin1748 160.15 6.2848 692409601 692668801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1040.5+0617 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   500.46 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             286.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   710 sec.
    Turnaround time :                            712 sec.

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

