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


Performing analysis on: 4FGL_J1040.5+0617_daily_bin1709
RA = 160.15, Dec = 6.2848
tmin = 682300801, tmax = 682560001
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='94753', job_status='RUN', time_executed='2022-09-16 15:28:00.983282', time_epoch_executed='1663367280.98' WHERE source_name='4FGL J1040.5+0617' and cadence='daily' and bin_id='1709'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/94753

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/94753/ft1_4FGL_J1040.5+0617_daily_bin1709.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/94753/ft2_4FGL_J1040.5+0617_daily_bin1709.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/94753/ft1_4FGL_J1040.5+0617_daily_bin1709.fits outfile=/scratch/kocevski/94753/ft1_filteredMKT_4FGL_J1040.5+0617_daily_bin1709.fits ra=160.15 dec=6.2848 rad=12.0 tmin=682300801.0 tmax=682560001.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.74
user 3.48
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/94753/ft2_4FGL_J1040.5+0617_daily_bin1709.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/94753/ft1_filteredMKT_4FGL_J1040.5+0617_daily_bin1709.fits evtable="EVENTS" outfile="/scratch/kocevski/94753/ft1_filtered_4FGL_J1040.5+0617_daily_bin1709.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.35
sys 0.15

Number of photons that the gtmktime cut: 634

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/94753/ft1_filtered_4FGL_J1040.5+0617_daily_bin1709.fits" evtable="EVENTS" scfile=/scratch/kocevski/94753/ft2_4FGL_J1040.5+0617_daily_bin1709.fits sctable="SC_DATA" outfile=/scratch/kocevski/94753/ltcube_682300801_682560001_4FGL_J1040.5+0617_daily_bin1709.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/94753/ft2_4FGL_J1040.5+0617_daily_bin1709.fits
.....................!
real 13.69
user 13.26
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/94753/ft1_filtered_4FGL_J1040.5+0617_daily_bin1709.fits evtable="EVENTS" scfile=/scratch/kocevski/94753/ft2_4FGL_J1040.5+0617_daily_bin1709.fits sctable="SC_DATA" expcube=/scratch/kocevski/94753/ltcube_682300801_682560001_4FGL_J1040.5+0617_daily_bin1709.fits outfile=/scratch/kocevski/94753/expmap_682300801_682560001_4FGL_J1040.5+0617_daily_bin1709.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/94753/ltcube_682300801_682560001_4FGL_J1040.5+0617_daily_bin1709.fits
.....................!
real 192.14
user 186.33
sys 5.34

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/94753/ft1_filtered_4FGL_J1040.5+0617_daily_bin1709.fits scfile=/scratch/kocevski/94753/ft2_4FGL_J1040.5+0617_daily_bin1709.fits outfile=/scratch/kocevski/94753/cmap_682300801_682560001_4FGL_J1040.5+0617_daily_bin1709.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.57
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/94753/ft1_filtered_4FGL_J1040.5+0617_daily_bin1709.fits scfile=/scratch/kocevski/94753/ft2_4FGL_J1040.5+0617_daily_bin1709.fits outfile=/scratch/kocevski/94753/cmap_HighResolution_682300801_682560001_4FGL_J1040.5+0617_daily_bin1709.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.55
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/94753/ft1_filtered_4FGL_J1040.5+0617_daily_bin1709.fits', '/scratch/kocevski/94753/ft2_4FGL_J1040.5+0617_daily_bin1709.fits', expMap='/scratch/kocevski/94753/expmap_682300801_682560001_4FGL_J1040.5+0617_daily_bin1709.fits', expCube='/scratch/kocevski/94753/ltcube_682300801_682560001_4FGL_J1040.5+0617_daily_bin1709.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/94753/Model_4FGL_J1040.5+0617_daily_bin1709.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/94753/ft1_filtered_4FGL_J1040.5+0617_daily_bin1709.fits
Spacecraft file(s): /scratch/kocevski/94753/ft2_4FGL_J1040.5+0617_daily_bin1709.fits
Exposure map: /scratch/kocevski/94753/expmap_682300801_682560001_4FGL_J1040.5+0617_daily_bin1709.fits
Exposure cube: /scratch/kocevski/94753/ltcube_682300801_682560001_4FGL_J1040.5+0617_daily_bin1709.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/94753/Model_4FGL_J1040.5+0617_daily_bin1709.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) = 7039.32750922

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16008E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .50730E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    .13545E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    13.014       1.0000          .0000       .10000E+07
     5 'Prefactor '    30.272       1.0000          .0000       .10000E+07
     6 'Prefactor '    .46511E-04   1.0000          .0000       .10000E+07
     7 'norm      '    3.4500       1.0000          .0000       .10000E+07
     8 'Prefactor '    2.9059       1.0000          .0000       .10000E+07
     9 'Prefactor '    2.5190       1.0000          .0000       .10000E+07
    10 'Prefactor '    14.947       1.0000          .0000       .10000E+07
    11 'Prefactor '    .19409E-01   1.0000          .0000       .10000E+07
    12 'norm      '    1.5202       1.0000          .0000       .10000E+07
    13 'norm      '    .52383       1.0000          .0000       .10000E+07
    14 'Prefactor '    20.958       1.0000          .0000       .10000E+07
    15 'norm      '    .89056E-03   1.0000          .0000       .10000E+07
    16 'Normalizat'    1.3987       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .87536       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=   7039.300     FROM MIGRAD    STATUS=CONVERGED    129 CALLS      992 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .81640E-06    18.468       -.49125E-07** at limit **
   2  Prefactor     .96034E-08    10.141       -.13051E-05** at limit **
   3  Prefactor     .55511E-10    3.1670        .52854E-07** at limit **
   4  Prefactor     16.067        39.623       -.41126E-05    .28464E-01
   5  Prefactor     29.754        19.810       -.77510E-06    .17220    
   6  Prefactor     .11102E-09    9.1416        .66148E-06** at limit **
   7  norm          3.4496        1.4510       -.94980E-07    .55662E-02
   8  Prefactor     2.9276        5.5244       -.44438E-06   -.33267E-03
   9  Prefactor     2.5093        3.8310       -.69153E-07   -.15403E-02
  10  Prefactor     14.955        9.3444       -.24269E-06    .37024E-02
  11  Prefactor     .16653E-09    25.645        .67015E-06** at limit **
  12  norm          1.5211        .53674       -.11714E-06    .63520E-02
  13  norm          .52569        1.0874        .11317E-06   -.43258E-02
  14  Prefactor     20.642        16.011        .11455E-05    .14231    
  15  norm          .35875E-05    31.113        .29220E-05** at limit **
  16  Normalizat    1.3974        .23464        .66117E-06   -.63646E-04
  17  Prefactor     .87559        .18869        .19258E-05   -.89532E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.16403e-07
  Prefactor  = 9.60343e-09
  Prefactor  = 5.55112e-11
  Prefactor  = 16.0667
  Prefactor  = 29.7545
  Prefactor  = 1.11022e-10
  norm       = 3.44957
  Prefactor  = 2.92755
  Prefactor  = 2.50927
  Prefactor  = 14.9549
  Prefactor  = 1.66533e-10
  norm       = 1.52114
  norm       = 0.525687
  Prefactor  = 20.6422
  norm       = 3.58752e-06
  Normalizat = 1.3974
  Prefactor  = 0.875585
 **********
 **   18 **HESSE 
 **********

 FCN=   7039.300     FROM HESSE     STATUS=OK           267 CALLS     1259 TOTAL
                     EDM=   .20E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .81640E-06    18.843        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .96034E-08    10.138        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .55511E-10    3.1551        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.067        39.770        .27741E-03   -1.5628    
   5  Prefactor     29.754        35.511        .18178E-03   -1.5599    
   6  Prefactor     .11102E-09    9.1732        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.4496        1.4558        .54426E-03   -1.5671    
   8  Prefactor     2.9276        5.5398        .59579E-03   -1.5674    
   9  Prefactor     2.5093        3.9556        .64342E-03   -1.5676    
  10  Prefactor     14.955        9.3048        .25880E-03   -1.5631    
  11  Prefactor     .16653E-09    3.7442        .10085E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.5211        .53924        .79512E-03   -1.5683    
  13  norm          .52569        1.1051        .76347E-03   -1.5693    
  14  Prefactor     20.642        17.790        .21850E-03   -1.5617    
  15  norm          .35875E-05    32.384        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.3974        .19965        .58303E-01   -.80704    
  17  Prefactor     .87559        .16023        .44690E-01   -.97000    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02003e-06
Minuit parameter uncertainties:
  1  0.00784432
  2  0.000623524
  3  2.48528e-05
  4  39.7707
  5  35.5113
  6  6.06105e-05
  7  1.45582
  8  5.53985
  9  3.95557
  10  9.30482
  11  5.16558e-05
  12  0.539241
  13  1.10507
  14  17.7905
  15  0.0215573
  16  0.199764
  17  0.160319
Done.

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

Extracting fit parameters...

4FGL J1040.5+0617
   Spectrum: PowerLaw
216    Prefactor:  2.509e+00  3.956e+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:  8.756e-01  1.603e-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:  1.397e+00  1.998e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.51
Ra Dec: 160.150 6.285
Photon Flux Upper Limit: 1.28e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/94753/likelihoodResults_682300801_682560001_4FGL_J1040.5+0617_daily_bin1709.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) = 7038.58077808
delta logL = 0.718971143578

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7038.54825753
delta logL = 0.751491693314

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .89101       1.0000          .0000       .10000E+07
     2 'Index     '    3.6658       1.0000          .0000       10.000    
     3 'Normalizat'    1.3211       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91733       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=   7038.548     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      315 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .89111        12.843        .46384E-03    .67743E-02
   2  Index         3.6668        3.2748        .11847        .14422E-03
   3  Normalizat    1.3213        .59837E-01    .59641E-01    .46623E-04
   4  Prefactor     .91714        .49311E-01    .45225E-01    .43265E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.89111
  Index      = 3.66675
  Normalizat = 1.3213
  Prefactor  = 0.917139
 **********
 **   18 **HESSE 
 **********

 FCN=   7038.548     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      348 TOTAL
                     EDM=   .72E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .89111        24.404        .57111E-05   -1.5689    
   2  Index         3.6668        6.8292        .59488E-02   -.26991    
   3  Normalizat    1.3213        .23509        .26377E-03   -.82933    
   4  Prefactor     .91714        .19852        .25915E-03   -.95545    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.16711e-07
Minuit parameter uncertainties:
  1  9.32672
  2  5.99165
  3  0.235282
  4  0.198675
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/94753': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7038.54825362
delta logL = 0.751495602975

Extracting fit parameters...

4FGL J1040.5+0617
   Spectrum: PowerLaw
216    Prefactor:  8.911e-01  9.327e+00  0.000e+00  1.000e+06 ( 1.000e-12)
217        Index:  3.667e+00  5.992e+00  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.171e-01  1.987e-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:  1.321e+00  2.353e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.14
Ra Dec: 160.150 6.285
Photon Index (Free Index): 3.67 +/- 5.99
Photon Flux (Free Index): 9.11e-08 +/- 7.41e-08
Energy Flux (Free Index): 1.46e-05 +/- 1.97e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -9.398e-02 [aplpy.core]
INFO: Auto-setting vmax to  1.043e+00 [aplpy.core]
Saving /scratch/kocevski/94753/cmap_HighResolution_682300801_682560001_4FGL_J1040.5+0617_daily_bin1709.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.84e-03', comment='SUCCESS', energy_flux2='1.46e-05', dlogl='7.51e-01', photon_flux2='9.11e-08', job_status='DONE', time_completed='2022-09-16 15:36:47.674733', photon_index_error2='5.99', photon_index2='3.67', ts='0.51', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='1.28e-07', energy_flux_error2='1.97e-05', EG='1.40', time_epoch_completed='1663367807.67', return_code='0', job_id='94753', GAL2='0.92', EG2='1.32', return_code2='102', photon_flux_error2='7.41e-08', ts2='2.14', photon_index='2.37' WHERE bin_id='1709' AND source_name='4FGL J1040.5+0617' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 15:36:47 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 94753: <4FGL_J1040.5+0617_daily_bin1709> in cluster <slac> Done

Job <4FGL_J1040.5+0617_daily_bin1709> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 16 15:25:25 2022
Job was executed on host(s) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 15:26:42 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 15:26:42 2022
Terminated at Fri Sep 16 15:36:48 2022
Results reported at Fri Sep 16 15:36:48 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1040.5+0617_daily_bin1709 160.15 6.2848 682300801 682560001 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 :                                   529.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             355.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   605 sec.
    Turnaround time :                            683 sec.

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

