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/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 1 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 = 17181
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0840.8+1317_weekly_bin463
RA = 130.222, Dec = 13.2871
tmin = 519004801, tmax = 519609601
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='249272', job_status='RUN', time_executed='2021-07-14 02:24:44.820312', time_epoch_executed='1626254684.82' WHERE source_name='4FGL J0840.8+1317' and cadence='weekly' and bin_id='463'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/249272

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/249272/ft1_4FGL_J0840.8+1317_weekly_bin463.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/249272/ft2_4FGL_J0840.8+1317_weekly_bin463.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/249272/ft1_4FGL_J0840.8+1317_weekly_bin463.fits outfile=/scratch/kocevski/249272/ft1_filteredMKT_4FGL_J0840.8+1317_weekly_bin463.fits ra=130.222 dec=13.2871 rad=12.0 tmin=519004801.0 tmax=519609601.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 7.78
user 7.24
sys 0.36

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/249272/ft1_filtered_4FGL_J0840.8+1317_weekly_bin463.fits" evtable="EVENTS" scfile=/scratch/kocevski/249272/ft2_4FGL_J0840.8+1317_weekly_bin463.fits sctable="SC_DATA" outfile=/scratch/kocevski/249272/ltcube_519004801_519609601_4FGL_J0840.8+1317_weekly_bin463.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/249272/ft2_4FGL_J0840.8+1317_weekly_bin463.fits
.....................!
real 32.85
user 31.43
sys 0.61

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/249272/ft1_filtered_4FGL_J0840.8+1317_weekly_bin463.fits evtable="EVENTS" scfile=/scratch/kocevski/249272/ft2_4FGL_J0840.8+1317_weekly_bin463.fits sctable="SC_DATA" expcube=/scratch/kocevski/249272/ltcube_519004801_519609601_4FGL_J0840.8+1317_weekly_bin463.fits outfile=/scratch/kocevski/249272/expmap_519004801_519609601_4FGL_J0840.8+1317_weekly_bin463.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/249272/ltcube_519004801_519609601_4FGL_J0840.8+1317_weekly_bin463.fits
.....................!
real 193.22
user 185.59
sys 6.69

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/249272/ft1_filtered_4FGL_J0840.8+1317_weekly_bin463.fits scfile=/scratch/kocevski/249272/ft2_4FGL_J0840.8+1317_weekly_bin463.fits outfile=/scratch/kocevski/249272/cmap_519004801_519609601_4FGL_J0840.8+1317_weekly_bin463.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.98
user 0.43
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/249272/ft1_filtered_4FGL_J0840.8+1317_weekly_bin463.fits scfile=/scratch/kocevski/249272/ft2_4FGL_J0840.8+1317_weekly_bin463.fits outfile=/scratch/kocevski/249272/cmap_HighResolution_519004801_519609601_4FGL_J0840.8+1317_weekly_bin463.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.85
user 0.43
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.7670       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.4851       1.0000         .10000E-03   10000.    
     3 'norm      '    .51485E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    18.503       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .54077       1.0000         .10000E-03   10000.    
     8 'norm      '    .50799       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.0030       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .62887       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.728       1.0000         .10000E-03   10000.    
    12 'norm      '    .35545       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.2853       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    54.863       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.0390       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0051       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=   14330.20     FROM MIGRAD    STATUS=CONVERGED    334 CALLS     1414 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7672        5.4826        .55219E-06   -.43039E-04
   2  Prefactor     6.4418        86.314       -.13690E-03    .97477E-05
   3  norm          .10000E-03    87.432        .10675E-04** at limit **
   4  norm          18.503        12.593       -.17423E-05    .55899E-05
   5  Prefactor     .10000E-03    13.111       -.61434E-06** at limit **
   6  Prefactor     .10000E-03    2.5622       -.18086E-06** at limit **
   7  norm          .53865        .82386       -.11648E-06   -.14793E-02
   8  norm          .50803        .40486       -.10030E-06   -.83354E-03
   9  Prefactor     1.0084        3.3679       -.14966E-05    .48590E-03
  10  Prefactor     .63942        2.1511       -.75881E-06   -.23072E-03
  11  Prefactor     14.721        18.154       -.56031E-06    .52069E-04
  12  norm          .35550        .30860       -.57624E-07    .37725E-03
  13  Prefactor     9.2845        6.8560       -.76024E-06    .99631E-04
  14  norm          .10000E-03    1.1657       -.77608E-07** at limit **
  15  norm          54.864        32.375        .20001E-06    .38265E-04
  16  Normalizat    1.0391        .12510        .11776E-05    .78838E-03
  17  Prefactor     1.0049        .99990E-01    .10968E-05    .65520E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.76724
  Prefactor  = 6.44178
  norm       = 0.0001
  norm       = 18.5031
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.53865
  norm       = 0.508031
  Prefactor  = 1.00845
  Prefactor  = 0.639421
  Prefactor  = 14.7211
  norm       = 0.355502
  Prefactor  = 9.28446
  norm       = 0.0001
  norm       = 54.8639
  Normalizat = 1.03906
  Prefactor  = 1.00493
 **********
 **   18 **HESSE 
 **********

 FCN=   14330.20     FROM HESSE     STATUS=OK           233 CALLS     1647 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.7672        5.4792        .16725E-03   -1.5228    
   2  Prefactor     6.4418        86.724        .15760E-03   -1.5200    
   3  norm          .10000E-03    88.458        .21143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          18.503        12.594        .93112E-04   -1.4847    
   5  Prefactor     .10000E-03    13.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.5687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .53865        .67331        .12015E-02   -1.5561    
   8  norm          .50803        .40415        .65674E-04   -1.5565    
   9  Prefactor     1.0084        10.871        .34178E-02   -1.5507    
  10  Prefactor     .63942        6.0877        .29860E-02   -1.5548    
  11  Prefactor     14.721        18.149        .10437E-03   -1.4940    
  12  norm          .35550        .28984        .59202E-03   -1.5589    
  13  Prefactor     9.2845        6.8339        .13152E-03   -1.5098    
  14  norm          .10000E-03    1.1689        .12622E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          54.864        32.367        .54154E-04   -1.4225    
  16  Normalizat    1.0391        .14559        .25974E-03   -.91733    
  17  Prefactor     1.0049        .11723        .21762E-03   -.92565    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.91225e-08
Minuit parameter uncertainties:
  1  5.47966
  2  47.3555
  3  0.000235168
  4  12.5956
  5  1.58709e-06
  6  2.17185e-06
  7  0.673317
  8  0.404149
  9  6.62309
  10  3.94617
  11  18.156
  12  0.289837
  13  6.83446
  14  1.62537e-06
  15  32.377
  16  0.145649
  17  0.117262
Done.

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

Extracting fit parameters...

4FGL J0840.8+1317
   Spectrum: PowerLaw
297    Prefactor:  1.472e+01  1.816e+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.005e+00  1.173e-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.039e+00  1.456e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/249272/likelihoodResults_519004801_519609601_4FGL_J0840.8+1317_weekly_bin463.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) = 14329.9885947
delta logL = 0.215984505297

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14329.9754045
delta logL = 0.229174724334

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.822       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0056       1.0000          .0000       10.000    
     3 'Normalizat'    1.0483       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99916       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=   14329.98     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      282 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.825        20.584        .92318E-04   -.26353E-04
   2  Index         2.0058        .65694        .14354E-01   -.16898E-03
   3  Normalizat    1.0483        .14105        .25887E-03   -.21607E-04
   4  Prefactor     .99915        .11686        .21814E-03   -.42110E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.8248
  Index      = 2.00583
  Normalizat = 1.04831
  Prefactor  = 0.99915
 **********
 **   18 **HESSE 
 **********

 FCN=   14329.98     FROM HESSE     STATUS=OK            25 CALLS      307 TOTAL
                     EDM=   .26E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.825        20.761        .36927E-05   -1.4840    
   2  Index         2.0058        .66283        .28707E-02   -.64204    
   3  Normalizat    1.0483        .14118        .10355E-04   -.91429    
   4  Prefactor     .99915        .11697        .87256E-05   -.92758    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.56005e-12
Minuit parameter uncertainties:
  1  20.769
  2  0.665891
  3  0.141227
  4  0.117
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/249272': 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) = 14329.9754044
delta logL = 0.229174814773

Extracting fit parameters...

4FGL J0840.8+1317
   Spectrum: PowerLaw
297    Prefactor:  1.882e+01  2.077e+01  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.006e+00  6.659e-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:  9.991e-01  1.170e-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.048e+00  1.412e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.29
Ra Dec: 130.222 13.287
Photon Index (Free Index): 2.01 +/- 0.67
Photon Flux (Free Index): 1.21e-08 +/- 1.74e-08
Energy Flux (Free Index): 8.25e-06 +/- 1.06e-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/249272/cmap_HighResolution_519004801_519609601_4FGL_J0840.8+1317_weekly_bin463.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.09e-03', comment='SUCCESS', energy_flux2='8.25e-06', dlogl='2.29e-01', photon_flux2='1.21e-08', job_status='DONE', time_completed='2021-07-14 02:39:14.175565', photon_index_error2='0.67', photon_index2='2.01', ts='0.83', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='6.55e-08', energy_flux_error2='1.06e-05', EG='1.04', time_epoch_completed='1626255554.18', return_code='0', job_id='249272', GAL2='1.00', EG2='1.05', return_code2='0', photon_flux_error2='1.74e-08', ts2='1.29', photon_index='2.49' WHERE bin_id='463' AND source_name='4FGL J0840.8+1317' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Wed Jul 14 02:39:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 249272: <4FGL_J0840.8+1317_weekly_bin463> in cluster <slac> Done

Job <4FGL_J0840.8+1317_weekly_bin463> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Wed Jul 14 02:22:30 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jul 14 02:23:59 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:23:59 2021
Terminated at Wed Jul 14 02:39:15 2021
Results reported at Wed Jul 14 02:39:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0840.8+1317_weekly_bin463 130.222 13.2871 519004801 519609601 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 :                                   843.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             363.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            1005 sec.

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

