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 15 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J0840.8+1317_weekly_bin714
RA = 130.222, Dec = 13.2871
tmin = 670809601, tmax = 671414401
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='421761', job_status='RUN', time_executed='2022-04-12 01:01:00.518938', time_epoch_executed='1649750460.52' WHERE source_name='4FGL J0840.8+1317' and cadence='weekly' and bin_id='714'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/421761

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/421761/ft1_4FGL_J0840.8+1317_weekly_bin714.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/421761/ft2_4FGL_J0840.8+1317_weekly_bin714.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/421761/ft1_4FGL_J0840.8+1317_weekly_bin714.fits outfile=/scratch/kocevski/421761/ft1_filteredMKT_4FGL_J0840.8+1317_weekly_bin714.fits ra=130.222 dec=13.2871 rad=12.0 tmin=670809601.0 tmax=671414401.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 11.63
user 11.24
sys 0.34

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/421761/ft2_4FGL_J0840.8+1317_weekly_bin714.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/421761/ft1_filteredMKT_4FGL_J0840.8+1317_weekly_bin714.fits evtable="EVENTS" outfile="/scratch/kocevski/421761/ft1_filtered_4FGL_J0840.8+1317_weekly_bin714.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.54
user 0.37
sys 0.16

Number of photons that the gtmktime cut: 1171

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/421761/ft1_filtered_4FGL_J0840.8+1317_weekly_bin714.fits" evtable="EVENTS" scfile=/scratch/kocevski/421761/ft2_4FGL_J0840.8+1317_weekly_bin714.fits sctable="SC_DATA" outfile=/scratch/kocevski/421761/ltcube_670809601_671414401_4FGL_J0840.8+1317_weekly_bin714.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/421761/ft2_4FGL_J0840.8+1317_weekly_bin714.fits
.....................!
real 26.15
user 25.78
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/421761/ft1_filtered_4FGL_J0840.8+1317_weekly_bin714.fits evtable="EVENTS" scfile=/scratch/kocevski/421761/ft2_4FGL_J0840.8+1317_weekly_bin714.fits sctable="SC_DATA" expcube=/scratch/kocevski/421761/ltcube_670809601_671414401_4FGL_J0840.8+1317_weekly_bin714.fits outfile=/scratch/kocevski/421761/expmap_670809601_671414401_4FGL_J0840.8+1317_weekly_bin714.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/421761/ltcube_670809601_671414401_4FGL_J0840.8+1317_weekly_bin714.fits
.....................!
real 191.34
user 186.68
sys 4.22

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/421761/ft1_filtered_4FGL_J0840.8+1317_weekly_bin714.fits scfile=/scratch/kocevski/421761/ft2_4FGL_J0840.8+1317_weekly_bin714.fits outfile=/scratch/kocevski/421761/cmap_670809601_671414401_4FGL_J0840.8+1317_weekly_bin714.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.59
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/421761/ft1_filtered_4FGL_J0840.8+1317_weekly_bin714.fits scfile=/scratch/kocevski/421761/ft2_4FGL_J0840.8+1317_weekly_bin714.fits outfile=/scratch/kocevski/421761/cmap_HighResolution_670809601_671414401_4FGL_J0840.8+1317_weekly_bin714.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.41
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/421761/ft1_filtered_4FGL_J0840.8+1317_weekly_bin714.fits', '/scratch/kocevski/421761/ft2_4FGL_J0840.8+1317_weekly_bin714.fits', expMap='/scratch/kocevski/421761/expmap_670809601_671414401_4FGL_J0840.8+1317_weekly_bin714.fits', expCube='/scratch/kocevski/421761/ltcube_670809601_671414401_4FGL_J0840.8+1317_weekly_bin714.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/421761/Model_4FGL_J0840.8+1317_weekly_bin714.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  1.000e-04  1.000e+04 ( 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/421761/ft1_filtered_4FGL_J0840.8+1317_weekly_bin714.fits
Spacecraft file(s): /scratch/kocevski/421761/ft2_4FGL_J0840.8+1317_weekly_bin714.fits
Exposure map: /scratch/kocevski/421761/expmap_670809601_671414401_4FGL_J0840.8+1317_weekly_bin714.fits
Exposure cube: /scratch/kocevski/421761/ltcube_670809601_671414401_4FGL_J0840.8+1317_weekly_bin714.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/421761/Model_4FGL_J0840.8+1317_weekly_bin714.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) = 12837.4522582

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8448       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.6532       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.654       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.5943       1.0000         .10000E-03   10000.    
     8 'norm      '    1.1742       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.3765       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10638E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .63601       1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.894       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    28.422       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.1589       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .99914       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.

 FCN=   12837.45     FROM MIGRAD    STATUS=CONVERGED    334 CALLS     1600 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8448        5.9021       -.88700E-06   -.20255E-03
   2  Prefactor     .10000E-03    105.85       -.38347E-06** at limit **
   3  norm          .10000E-03    19.540       -.32141E-07** at limit **
   4  norm          4.6535        10.189        .17217E-05   -.49811E-03
   5  Prefactor     10.655        13.062        .19391E-06    .30360E-04
   6  Prefactor     .10000E-03    2.5021       -.47291E-09** at limit **
   7  norm          1.5945        .95596        .82681E-07   -.15634E-03
   8  norm          1.1742        .76952       -.15972E-07   -.41909E-03
   9  Prefactor     9.3762        6.8980       -.84620E-06   -.28944E-03
  10  Prefactor     .10000E-03    2.2969        .13949E-07** at limit **
  11  Prefactor     .10000E-03    42.686        .19255E-06** at limit **
  12  norm          .63609        .33619        .30950E-07    .29650E-03
  13  Prefactor     18.894        8.6214       -.76610E-06   -.28577E-03
  14  norm          .10000E-03    .94565        .66094E-08** at limit **
  15  norm          28.420        38.086       -.12767E-05   -.45150E-04
  16  Normalizat    1.1589        .13146        .42647E-06   -.43787E-04
  17  Prefactor     .99918        .10798       -.71692E-07    .41302E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.84475
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.65347
  Prefactor  = 10.655
  Prefactor  = 0.0001
  norm       = 1.59451
  norm       = 1.1742
  Prefactor  = 9.3762
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.636094
  Prefactor  = 18.8943
  norm       = 0.0001
  norm       = 28.4201
  Normalizat = 1.15885
  Prefactor  = 0.999183
 **********
 **   18 **HESSE 
 **********

 FCN=   12837.45     FROM HESSE     STATUS=OK           225 CALLS     1825 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8448        5.9652        .20582E-03   -1.5316    
   2  Prefactor     .10000E-03    106.10        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    19.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.6535        15.579        .93284E-03   -1.5276    
   5  Prefactor     10.655        13.174        .12275E-03   -1.5055    
   6  Prefactor     .10000E-03    2.5118        .17502E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.5945        .94232        .78965E-04   -1.5455    
   8  norm          1.1742        .75724        .77315E-04   -1.5491    
   9  Prefactor     9.3762        6.9941        .13088E-03   -1.5095    
  10  Prefactor     .10000E-03    2.3954        .33523E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    44.373        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .63609        .33829        .45786E-04   -1.5548    
  13  Prefactor     18.894        8.7071        .92143E-04   -1.4838    
  14  norm          .10000E-03    .94582        .10760E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          28.420        38.201        .75148E-04   -1.4641    
  16  Normalizat    1.1589        .15609        .25517E-03   -.87884    
  17  Prefactor     .99918        .12853        .22959E-03   -.92757    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45212e-09
Minuit parameter uncertainties:
  1  5.96615
  2  6.2737e-05
  3  3.09355e-06
  4  15.593
  5  13.1779
  6  1.09112e-06
  7  0.942333
  8  0.757245
  9  6.99469
  10  2.15931e-06
  11  2.98556e-05
  12  0.338289
  13  8.70767
  14  1.80641e-08
  15  38.2339
  16  0.156152
  17  0.128574
Done.

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

Extracting fit parameters...

4FGL J0840.8+1317
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  2.986e-05  1.000e-04  1.000e+04 ( 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:  9.992e-01  1.286e-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:  1.159e+00  1.562e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 130.222 13.287
Photon Flux Upper Limit: 4.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.45e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/421761/likelihoodResults_670809601_671414401_4FGL_J0840.8+1317_weekly_bin714.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12837.4474279
delta logL = -0.000107493211544

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12837.4473213
delta logL = -8.62184606376e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6771       1.0000          .0000       10.000    
     3 'Normalizat'    1.1589       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99918       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=   12837.45     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      285 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10911E-03    101.61        .36285E-02** at limit **
   2  Index         2.5406        7.9934        .50000        .18562E-04
   3  Normalizat    1.1588        .53452E-02    .25517E-03    .44227E-03
   4  Prefactor     .99918        .45271E-02    .22959E-03    .78509E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000109111
  Index      = 2.54056
  Normalizat = 1.15885
  Prefactor  = 0.999185
 **********
 **   18 **HESSE 
 **********

 FCN=   12837.45     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      314 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10911E-03    444.40        .72569E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5406        8.5830        .50000       -.51426    
   3  Normalizat    1.1588        .11316E-01    .51034E-04   -.87884    
   4  Prefactor     .99918        .95838E-02    .45918E-04   -.92757    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.87314e-09
Minuit parameter uncertainties:
  1  0.128225
  2  375.358
  3  0.0113157
  4  0.0095838
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/421761': 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) = 12837.4473207
delta logL = -2.79200321529e-07

Extracting fit parameters...

4FGL J0840.8+1317
   Spectrum: PowerLaw
297    Prefactor:  1.091e-04  1.282e-01  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.541e+00  3.754e+02  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:  9.992e-01  9.584e-03  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:  1.159e+00  1.132e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 130.222 13.287

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/421761/cmap_HighResolution_670809601_671414401_4FGL_J0840.8+1317_weekly_bin714.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.45e-03', job_status='DONE', photon_flux_upper_limit='4.44e-08', time_completed='2022-04-12 01:14:43.943064', job_id='421761', GAL2='1.00', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1649751283.94', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='-2.79e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='714' AND source_name='4FGL J0840.8+1317' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Apr 12 01:14:43 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 421761: <4FGL_J0840.8+1317_weekly_bin714> in cluster <slac> Done

Job <4FGL_J0840.8+1317_weekly_bin714> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Apr 12 01:00:36 2022
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 12 01:00:37 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 12 01:00:37 2022
Terminated at Tue Apr 12 01:14:44 2022
Results reported at Tue Apr 12 01:14:44 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0840.8+1317_weekly_bin714 130.222 13.2871 670809601 671414401 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 :                                   824.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             333.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   847 sec.
    Turnaround time :                            848 sec.

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

