aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 30 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 = 17293
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0840.8+1317_weekly_bin496
RA = 130.222, Dec = 13.2871
tmin = 538963201, tmax = 539568001
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='249319', job_status='RUN', time_executed='2021-07-14 02:25:24.282769', time_epoch_executed='1626254724.28' WHERE source_name='4FGL J0840.8+1317' and cadence='weekly' and bin_id='496'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/249319

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/249319/ft1_4FGL_J0840.8+1317_weekly_bin496.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/249319/ft2_4FGL_J0840.8+1317_weekly_bin496.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/249319/ft1_4FGL_J0840.8+1317_weekly_bin496.fits outfile=/scratch/kocevski/249319/ft1_filteredMKT_4FGL_J0840.8+1317_weekly_bin496.fits ra=130.222 dec=13.2871 rad=12.0 tmin=538963201.0 tmax=539568001.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.71
user 10.97
sys 0.50

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/249319/ft2_4FGL_J0840.8+1317_weekly_bin496.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/249319/ft1_filteredMKT_4FGL_J0840.8+1317_weekly_bin496.fits evtable="EVENTS" outfile="/scratch/kocevski/249319/ft1_filtered_4FGL_J0840.8+1317_weekly_bin496.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.62
user 0.38
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/249319/ft1_filtered_4FGL_J0840.8+1317_weekly_bin496.fits" evtable="EVENTS" scfile=/scratch/kocevski/249319/ft2_4FGL_J0840.8+1317_weekly_bin496.fits sctable="SC_DATA" outfile=/scratch/kocevski/249319/ltcube_538963201_539568001_4FGL_J0840.8+1317_weekly_bin496.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/249319/ft2_4FGL_J0840.8+1317_weekly_bin496.fits
.....................!
real 36.53
user 35.75
sys 0.48

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/249319/ft1_filtered_4FGL_J0840.8+1317_weekly_bin496.fits evtable="EVENTS" scfile=/scratch/kocevski/249319/ft2_4FGL_J0840.8+1317_weekly_bin496.fits sctable="SC_DATA" expcube=/scratch/kocevski/249319/ltcube_538963201_539568001_4FGL_J0840.8+1317_weekly_bin496.fits outfile=/scratch/kocevski/249319/expmap_538963201_539568001_4FGL_J0840.8+1317_weekly_bin496.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/249319/ltcube_538963201_539568001_4FGL_J0840.8+1317_weekly_bin496.fits
.....................!
real 193.82
user 187.20
sys 5.51

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/249319/ft1_filtered_4FGL_J0840.8+1317_weekly_bin496.fits scfile=/scratch/kocevski/249319/ft2_4FGL_J0840.8+1317_weekly_bin496.fits outfile=/scratch/kocevski/249319/cmap_538963201_539568001_4FGL_J0840.8+1317_weekly_bin496.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.58
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/249319/ft1_filtered_4FGL_J0840.8+1317_weekly_bin496.fits scfile=/scratch/kocevski/249319/ft2_4FGL_J0840.8+1317_weekly_bin496.fits outfile=/scratch/kocevski/249319/cmap_HighResolution_538963201_539568001_4FGL_J0840.8+1317_weekly_bin496.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/249319/ft1_filtered_4FGL_J0840.8+1317_weekly_bin496.fits evtable="EVENTS" scfile=/scratch/kocevski/249319/ft2_4FGL_J0840.8+1317_weekly_bin496.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/249319/Model_4FGL_J0840.8+1317_weekly_bin496.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/249319/ft1_filtered_4FGL_J0840.8+1317_weekly_bin496.fits.....................!
real 81.70
user 78.31
sys 1.38

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/249319/ft1_filtered_4FGL_J0840.8+1317_weekly_bin496.fits', '/scratch/kocevski/249319/ft2_4FGL_J0840.8+1317_weekly_bin496.fits', expMap='/scratch/kocevski/249319/expmap_538963201_539568001_4FGL_J0840.8+1317_weekly_bin496.fits', expCube='/scratch/kocevski/249319/ltcube_538963201_539568001_4FGL_J0840.8+1317_weekly_bin496.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/249319/Model_4FGL_J0840.8+1317_weekly_bin496.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/249319/ft1_filtered_4FGL_J0840.8+1317_weekly_bin496.fits
Spacecraft file(s): /scratch/kocevski/249319/ft2_4FGL_J0840.8+1317_weekly_bin496.fits
Exposure map: /scratch/kocevski/249319/expmap_538963201_539568001_4FGL_J0840.8+1317_weekly_bin496.fits
Exposure cube: /scratch/kocevski/249319/ltcube_538963201_539568001_4FGL_J0840.8+1317_weekly_bin496.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/249319/Model_4FGL_J0840.8+1317_weekly_bin496.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) = 8254.00538002

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    91.978       1.0000         .10000E-03   10000.    
     3 'norm      '    11.385       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.9254       1.0000         .10000E-03   10000.    
     7 'norm      '    1.6671       1.0000         .10000E-03   10000.    
     8 'norm      '    .24762       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.2143       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.869       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.960       1.0000         .10000E-03   10000.    
    12 'norm      '    2.2483       1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.918       1.0000         .10000E-03   10000.    
    14 'norm      '    9.6046       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    .94815       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.1150       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=   8253.645     FROM MIGRAD    STATUS=CONVERGED    307 CALLS     1616 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.6118        .27858E-09** at limit **
   2  Prefactor     91.971        98.452       -.72508E-05   -.49275E-05
   3  norm          11.383        35.553       -.34632E-05   -.25860E-05
   4  norm          .10000E-03    6.8848       -.74195E-08** at limit **
   5  Prefactor     .10000E-03    9.2741       -.13886E-06** at limit **
   6  Prefactor     1.9250        3.7621        .11901E-06   -.83870E-03
   7  norm          1.6671        1.0851        .62514E-09   -.20707E-04
   8  norm          .24744        .65017        .36855E-07   -.20819E-03
   9  Prefactor     4.2143        6.8256        .17100E-06   -.58465E-03
  10  Prefactor     13.869        7.7469       -.13870E-06   -.25944E-04
  11  Prefactor     11.966        20.168        .98705E-05    .17291E-04
  12  norm          2.2483        .73575       -.74336E-09   -.54677E-04
  13  Prefactor     17.918        10.426        .39130E-07   -.34796E-05
  14  norm          9.6045        6.4154       -.17736E-09    .12404E-03
  15  norm          .10000E-03    14.416        .11781E-06** at limit **
  16  Normalizat    .94804        .16651       -.42398E-06   -.10420E-04
  17  Prefactor     1.1151        .14246       -.16155E-06   -.18719E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 91.9707
  norm       = 11.3832
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.92497
  norm       = 1.66715
  norm       = 0.24744
  Prefactor  = 4.21427
  Prefactor  = 13.869
  Prefactor  = 11.9663
  norm       = 2.24831
  Prefactor  = 17.9176
  norm       = 9.60447
  norm       = 0.0001
  Normalizat = 0.948043
  Prefactor  = 1.11512
 **********
 **   18 **HESSE 
 **********

 FCN=   8253.645     FROM HESSE     STATUS=OK           229 CALLS     1845 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.6274        .16862E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     91.971        98.493        .41902E-04   -1.3787    
   3  norm          11.383        35.569        .11873E-03   -1.5033    
   4  norm          .10000E-03    6.9003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.2871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.9250        7.7131        .14970E-02   -1.5430    
   7  norm          1.6671        1.0855        .32658E-04   -1.5450    
   8  norm          .24744        .64481        .11391E-03   -1.5608    
   9  Prefactor     4.2143        7.5105        .98149E-03   -1.5297    
  10  Prefactor     13.869        7.7413        .10755E-03   -1.4963    
  11  Prefactor     11.966        20.168        .11583E-03   -1.5016    
  12  norm          2.2483        .73625        .42201E-04   -1.5408    
  13  Prefactor     17.918        10.428        .94619E-04   -1.4861    
  14  norm          9.6045        6.4213        .64653E-03   -1.5088    
  15  norm          .10000E-03    14.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .94804        .19372        .27361E-03   -.94792    
  17  Prefactor     1.1151        .16458        .21976E-03   -.88985    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.58361e-09
Minuit parameter uncertainties:
  1  3.51358e-06
  2  98.6685
  3  35.6355
  4  1.94053e-06
  5  2.30421e-06
  6  7.70802
  7  1.08547
  8  0.64483
  9  7.5122
  10  7.7419
  11  20.1798
  12  0.736248
  13  10.4292
  14  6.42176
  15  1.50854e-06
  16  0.193863
  17  0.16465
Done.

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

Extracting fit parameters...

4FGL J0840.8+1317
   Spectrum: PowerLaw
297    Prefactor:  1.197e+01  2.018e+01  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:  1.115e+00  1.647e-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:  9.480e-01  1.939e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/249319/likelihoodResults_538963201_539568001_4FGL_J0840.8+1317_weekly_bin496.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) = 8253.20196485
delta logL = 0.443210076413

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8253.12472853
delta logL = 0.520446396244

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.138       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7542       1.0000          .0000       10.000    
     3 'Normalizat'    .95914       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1060       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=   8253.125     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      238 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.143        25.749        .87118E-04   -.64257E-04
   2  Index         1.7542        .62767        .10944E-01   -.23646E-04
   3  Normalizat    .95914        .18746        .27216E-03   -.61367E-03
   4  Prefactor     1.1060        .16280        .22043E-03   -.64195E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.1426
  Index      = 1.75425
  Normalizat = 0.959142
  Prefactor  = 1.10604
 **********
 **   18 **HESSE 
 **********

 FCN=   8253.125     FROM HESSE     STATUS=OK            25 CALLS      263 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.143        26.144        .17424E-04   -1.4788    
   2  Index         1.7542        .63746        .43774E-03   -.70647    
   3  Normalizat    .95914        .18761        .54433E-04   -.94412    
   4  Prefactor     1.1060        .16294        .44085E-04   -.89274    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.6823e-10
Minuit parameter uncertainties:
  1  26.1584
  2  0.640488
  3  0.187742
  4  0.163018
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/249319': 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) = 8253.12472851
delta logL = 0.520446413901

Extracting fit parameters...

4FGL J0840.8+1317
   Spectrum: PowerLaw
297    Prefactor:  2.114e+01  2.616e+01  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  1.754e+00  6.405e-01  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.106e+00  1.630e-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:  9.591e-01  1.877e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.51
Ra Dec: 130.222 13.287
Photon Index (Free Index): 1.75 +/- 0.64
Photon Flux (Free Index): 1.07e-08 +/- 1.59e-08
Energy Flux (Free Index): 1.47e-05 +/- 2.31e-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/249319/cmap_HighResolution_538963201_539568001_4FGL_J0840.8+1317_weekly_bin496.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.89e-03', comment='SUCCESS', energy_flux2='1.47e-05', dlogl='5.20e-01', photon_flux2='1.07e-08', job_status='DONE', time_completed='2021-07-14 02:37:39.229268', photon_index_error2='0.64', photon_index2='1.75', ts='0.47', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='7.58e-08', energy_flux_error2='2.31e-05', EG='0.95', time_epoch_completed='1626255459.23', return_code='0', job_id='249319', GAL2='1.11', EG2='0.96', return_code2='0', photon_flux_error2='1.59e-08', ts2='1.51', photon_index='2.49' WHERE bin_id='496' AND source_name='4FGL J0840.8+1317' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Wed Jul 14 02:37:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 249319: <4FGL_J0840.8+1317_weekly_bin496> in cluster <slac> Done

Job <4FGL_J0840.8+1317_weekly_bin496> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Wed Jul 14 02:22:33 2021
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jul 14 02:24:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jul 14 02:24:35 2021
Terminated at Wed Jul 14 02:37:40 2021
Results reported at Wed Jul 14 02:37:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0840.8+1317_weekly_bin496 130.222 13.2871 538963201 539568001 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 :                                   681.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             290.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   784 sec.
    Turnaround time :                            907 sec.

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

