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


Performing analysis on: 4FGL_J0840.8+1317_daily_bin1764
RA = 130.222, Dec = 13.2871
tmin = 696556801, tmax = 696816001
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='440793', job_status='RUN', time_executed='2023-01-31 00:34:55.715510', time_epoch_executed='1675154095.72' WHERE source_name='4FGL J0840.8+1317' and cadence='daily' and bin_id='1764'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/440793

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/440793/ft1_4FGL_J0840.8+1317_daily_bin1764.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/440793/ft2_4FGL_J0840.8+1317_daily_bin1764.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/440793/ft1_4FGL_J0840.8+1317_daily_bin1764.fits outfile=/scratch/kocevski/440793/ft1_filteredMKT_4FGL_J0840.8+1317_daily_bin1764.fits ra=130.222 dec=13.2871 rad=12.0 tmin=696556801.0 tmax=696816001.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.71
user 3.45
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/440793/ft2_4FGL_J0840.8+1317_daily_bin1764.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/440793/ft2_4FGL_J0840.8+1317_daily_bin1764.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/440793/ft1_filteredMKT_4FGL_J0840.8+1317_daily_bin1764.fits evtable="EVENTS" outfile="/scratch/kocevski/440793/ft1_filtered_4FGL_J0840.8+1317_daily_bin1764.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.50
user 0.32
sys 0.17

Number of photons that the gtmktime cut: 517

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/440793/ft1_filtered_4FGL_J0840.8+1317_daily_bin1764.fits" evtable="EVENTS" scfile=/scratch/kocevski/440793/ft2_4FGL_J0840.8+1317_daily_bin1764.fits sctable="SC_DATA" outfile=/scratch/kocevski/440793/ltcube_696556801_696816001_4FGL_J0840.8+1317_daily_bin1764.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/440793/ft2_4FGL_J0840.8+1317_daily_bin1764.fits
.....................!
real 15.28
user 14.87
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/440793/ft1_filtered_4FGL_J0840.8+1317_daily_bin1764.fits evtable="EVENTS" scfile=/scratch/kocevski/440793/ft2_4FGL_J0840.8+1317_daily_bin1764.fits sctable="SC_DATA" expcube=/scratch/kocevski/440793/ltcube_696556801_696816001_4FGL_J0840.8+1317_daily_bin1764.fits outfile=/scratch/kocevski/440793/expmap_696556801_696816001_4FGL_J0840.8+1317_daily_bin1764.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/440793/ltcube_696556801_696816001_4FGL_J0840.8+1317_daily_bin1764.fits
.....................!
real 193.92
user 187.30
sys 6.07

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

Setting source of interest to:
4FGL J0840.8+1317 @ 130.222 13.2871

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/440793/ft1_filtered_4FGL_J0840.8+1317_daily_bin1764.fits scfile=/scratch/kocevski/440793/ft2_4FGL_J0840.8+1317_daily_bin1764.fits outfile=/scratch/kocevski/440793/cmap_696556801_696816001_4FGL_J0840.8+1317_daily_bin1764.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=130.222 yref=13.2871 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/440793/ft1_filtered_4FGL_J0840.8+1317_daily_bin1764.fits scfile=/scratch/kocevski/440793/ft2_4FGL_J0840.8+1317_daily_bin1764.fits outfile=/scratch/kocevski/440793/cmap_HighResolution_696556801_696816001_4FGL_J0840.8+1317_daily_bin1764.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=130.222 yref=13.2871 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.58
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/440793/ft1_filtered_4FGL_J0840.8+1317_daily_bin1764.fits evtable="EVENTS" scfile=/scratch/kocevski/440793/ft2_4FGL_J0840.8+1317_daily_bin1764.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/440793/Model_4FGL_J0840.8+1317_daily_bin1764.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/440793/ft1_filtered_4FGL_J0840.8+1317_daily_bin1764.fits.....................!
real 60.99
user 59.30
sys 1.45

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/440793/ft1_filtered_4FGL_J0840.8+1317_daily_bin1764.fits', '/scratch/kocevski/440793/ft2_4FGL_J0840.8+1317_daily_bin1764.fits', expMap='/scratch/kocevski/440793/expmap_696556801_696816001_4FGL_J0840.8+1317_daily_bin1764.fits', expCube='/scratch/kocevski/440793/ltcube_696556801_696816001_4FGL_J0840.8+1317_daily_bin1764.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/440793/Model_4FGL_J0840.8+1317_daily_bin1764.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0840.8+1317'

4FGL J0840.8+1317
   Spectrum: PowerLaw
297    Prefactor:  5.096e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
298        Index:  2.494e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  7.999e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/440793/ft1_filtered_4FGL_J0840.8+1317_daily_bin1764.fits
Spacecraft file(s): /scratch/kocevski/440793/ft2_4FGL_J0840.8+1317_daily_bin1764.fits
Exposure map: /scratch/kocevski/440793/expmap_696556801_696816001_4FGL_J0840.8+1317_daily_bin1764.fits
Exposure cube: /scratch/kocevski/440793/ltcube_696556801_696816001_4FGL_J0840.8+1317_daily_bin1764.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/440793/Model_4FGL_J0840.8+1317_daily_bin1764.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) = 5967.68485951

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .34417E-06   1.0000          .0000       .10000E+07
     2 'norm      '    106.33       1.0000          .0000       .10000E+07
     3 'norm      '    .53559E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    13.556       1.0000          .0000       .10000E+07
     5 'norm      '    1.2919       1.0000          .0000       .10000E+07
     6 'norm      '    .48739E-07   1.0000          .0000       .10000E+07
     7 'Prefactor '    6.4956       1.0000          .0000       .10000E+07
     8 'Prefactor '    40.381       1.0000          .0000       .10000E+07
     9 'norm      '    .67092       1.0000          .0000       .10000E+07
    10 'Prefactor '    .70596E-02   1.0000          .0000       .10000E+07
    11 'norm      '    3.2589       1.0000          .0000       .10000E+07
    12 'norm      '    27.328       1.0000          .0000       .10000E+07
    13 'Normalizat'    .63021       1.0000         .10000E-01   10.000    
    14 'Prefactor '    1.1537       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5967.607     FROM MIGRAD    STATUS=CONVERGED    132 CALLS      983 TOTAL
                     EDM=   .62E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        9.8019        .65768E-07** at limit **
   2  norm          119.42        120.55        .12155E-06    .44644E-05
   3  norm           .0000        20.572        .62195E-07** at limit **
   4  Prefactor     13.554        12.884        .75684E-08   -.88722E-05
   5  norm          1.2898        1.5732       -.60293E-08    .49462E-04
   6  norm           .0000        .86936       -.25614E-07** at limit **
   7  Prefactor     6.6397        13.608       -.11718E-06    .33907E-04
   8  Prefactor     42.747        40.420        .20855E-06    .14067E-04
   9  norm          .67347        .71878       -.31199E-07    .21344E-03
  10  Prefactor      .0000        26.759        .39057E-06** at limit **
  11  norm          3.2854        5.9291       -.65379E-07    .78492E-05
  12  norm          26.910        45.502        .13129E-06    .12460E-03
  13  Normalizat    .62855        .21568       -.30686E-06    .17062E-05
  14  Prefactor     1.1522        .17495        .31366E-07    .22705E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 119.418
  norm       = 0
  Prefactor  = 13.5535
  norm       = 1.28979
  norm       = 0
  Prefactor  = 6.63965
  Prefactor  = 42.7472
  norm       = 0.673471
  Prefactor  = 0
  norm       = 3.28535
  norm       = 26.9101
  Normalizat = 0.628551
  Prefactor  = 1.15216
 **********
 **   18 **HESSE 
 **********

 FCN=   5967.607     FROM HESSE     STATUS=OK           200 CALLS     1183 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        9.7877        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          119.42        119.63        .96985E-04   -1.5489    
   3  norm           .0000        20.684        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.554        12.869        .27179E-03   -1.5634    
   5  norm          1.2898        1.6391        .97363E-03   -1.5685    
   6  norm           .0000        .44523        .18384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.6397        13.924        .39354E-03   -1.5656    
   8  Prefactor     42.747        40.453        .15738E-03   -1.5577    
   9  norm          .67347        .73038        .63101E-03   -1.5692    
  10  Prefactor      .0000        26.725        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.2854        5.9019        .56075E-03   -1.5672    
  12  norm          26.910        45.521        .19133E-03   -1.5604    
  13  Normalizat    .62855        .18630        .67728E-01   -1.0678    
  14  Prefactor     1.1522        .15031        .35831E-01   -.87816    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.98617e-10
Minuit parameter uncertainties:
  1  1.10259e-06
  2  119.63
  3  2.81402e-07
  4  12.8691
  5  1.63915
  6  1.27635e-08
  7  13.9245
  8  40.4529
  9  0.73038
  10  3.43758e-06
  11  5.90195
  12  45.5219
  13  0.186486
  14  0.150368
Done.

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

Extracting fit parameters...

4FGL J0840.8+1317
   Spectrum: PowerLaw
297    Prefactor:  4.275e+01  4.045e+01  0.000e+00  1.000e+06 ( 1.000e-13)
298        Index:  2.494e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  7.999e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  1.152e+00  1.504e-01  0.000e+00  1.000e+01 ( 1.000e+00)
513        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
514        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
511   Normalization:  6.286e-01  1.865e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.41
Ra Dec: 130.222 13.287
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 5.12e-08 +/- 4.84e-08
Energy Flux (Fixed Index): 1.50e-05 +/- 1.42e-05

TS (Fixed Index): 1.41
Ra Dec: 130.222 13.287
Photon Flux Upper Limit: 1.47e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.14e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/440793/likelihoodResults_696556801_696816001_4FGL_J0840.8+1317_daily_bin1764.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) = 5966.13804529
delta logL = 1.46855250316

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5966.12645336
delta logL = 1.4801444371

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5966.126     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      288 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.4669        108.84        .11070E-04    .25946E-01
   2  Index         4.0907        3.7837        .41651E-02    .65025E-03
   3  Normalizat    .53556        .20254        .32289E-03    .69761E-03
   4  Prefactor     1.2074        .17348        .18891E-03    .10410E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.46686
  Index      = 4.09071
  Normalizat = 0.535564
  Prefactor  = 1.20742
 **********
 **   18 **HESSE 
 **********

 FCN=   5966.126     FROM HESSE     STATUS=OK            23 CALLS      311 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.4669        16.796        .44280E-06   -1.5653    
   2  Index         4.0907        1.2568        .16660E-03   -.18288    
   3  Normalizat    .53556        .21161        .64579E-04   -1.1079    
   4  Prefactor     1.2074        .17592        .37783E-04   -.86103    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88623e-09
Minuit parameter uncertainties:
  1  16.7958
  2  1.2709
  3  0.211926
  4  0.176006
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/440793': 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) = 5966.12645305
delta logL = 1.4801447433

Extracting fit parameters...

4FGL J0840.8+1317
   Spectrum: PowerLaw
297    Prefactor:  7.467e+00  1.680e+01  0.000e+00  1.000e+06 ( 1.000e-13)
298        Index:  4.091e+00  1.271e+00  0.000e+00  1.000e+01 (-1.000e+00)
299        Scale:  7.999e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  1.207e+00  1.760e-01  0.000e+00  1.000e+01 ( 1.000e+00)
513        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
514        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
511   Normalization:  5.356e-01  2.119e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.76
Ra Dec: 130.222 13.287
Photon Index (Free Index): 4.09 +/- 1.27
Photon Flux (Free Index): 1.20e-07 +/- 6.92e-08
Energy Flux (Free Index): 1.77e-05 +/- 1.05e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/440793/cmap_HighResolution_696556801_696816001_4FGL_J0840.8+1317_daily_bin1764.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-02', comment='SUCCESS', photon_flux='5.12e-08', energy_flux2='1.77e-05', photon_flux_error='4.84e-08', dlogl='1.48e+00', energy_flux='1.50e-05', photon_flux2='1.20e-07', job_status='DONE', time_completed='2023-01-31 00:42:48.502110', photon_index_error2='1.27', photon_index2='4.09', ts='1.41', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', photon_flux_upper_limit='1.47e-07', energy_flux_error2='1.05e-05', EG='0.63', time_epoch_completed='1675154568.5', return_code='0', job_id='440793', GAL2='1.21', EG2='0.54', return_code2='0', energy_flux_error='1.42e-05', photon_flux_error2='6.92e-08', ts2='4.76', photon_index='2.49' WHERE bin_id='1764' AND source_name='4FGL J0840.8+1317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jan 31 00:42:48 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0128>
Subject: Job 440793: <4FGL_J0840.8+1317_daily_bin1764> in cluster <slac> Done

Job <4FGL_J0840.8+1317_daily_bin1764> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Jan 31 00:30:30 2023
Job was executed on host(s) <bullet0128>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jan 31 00:31:24 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jan 31 00:31:24 2023
Terminated at Tue Jan 31 00:42:49 2023
Results reported at Tue Jan 31 00:42:49 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0840.8+1317_daily_bin1764 130.222 13.2871 696556801 696816001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0840.8+1317 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   474.32 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             262.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   684 sec.
    Turnaround time :                            739 sec.

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

