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


Performing analysis on: 4FGL_J0840.8+1317_daily_bin909
RA = 130.222, Dec = 13.2871
tmin = 474940801, tmax = 475200001
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='612285', job_status='RUN', time_executed='2021-08-30 03:24:13.443983', time_epoch_executed='1630319053.44' WHERE source_name='4FGL J0840.8+1317' and cadence='daily' and bin_id='909'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/612285

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/612285/ft1_4FGL_J0840.8+1317_daily_bin909.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/612285/ft2_4FGL_J0840.8+1317_daily_bin909.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/612285/ft1_4FGL_J0840.8+1317_daily_bin909.fits outfile=/scratch/kocevski/612285/ft1_filteredMKT_4FGL_J0840.8+1317_daily_bin909.fits ra=130.222 dec=13.2871 rad=12.0 tmin=474940801.0 tmax=475200001.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 12.39
user 3.32
sys 8.11

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/612285/ft2_4FGL_J0840.8+1317_daily_bin909.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/612285/ft1_filteredMKT_4FGL_J0840.8+1317_daily_bin909.fits evtable="EVENTS" outfile="/scratch/kocevski/612285/ft1_filtered_4FGL_J0840.8+1317_daily_bin909.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 8.86
user 0.34
sys 8.07

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/612285/ft1_filtered_4FGL_J0840.8+1317_daily_bin909.fits" evtable="EVENTS" scfile=/scratch/kocevski/612285/ft2_4FGL_J0840.8+1317_daily_bin909.fits sctable="SC_DATA" outfile=/scratch/kocevski/612285/ltcube_474940801_475200001_4FGL_J0840.8+1317_daily_bin909.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/612285/ft2_4FGL_J0840.8+1317_daily_bin909.fits
.....................!
real 26.77
user 16.64
sys 9.60

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/612285/ft1_filtered_4FGL_J0840.8+1317_daily_bin909.fits evtable="EVENTS" scfile=/scratch/kocevski/612285/ft2_4FGL_J0840.8+1317_daily_bin909.fits sctable="SC_DATA" expcube=/scratch/kocevski/612285/ltcube_474940801_475200001_4FGL_J0840.8+1317_daily_bin909.fits outfile=/scratch/kocevski/612285/expmap_474940801_475200001_4FGL_J0840.8+1317_daily_bin909.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/612285/ltcube_474940801_475200001_4FGL_J0840.8+1317_daily_bin909.fits
.....................!
real 201.27
user 185.67
sys 14.73

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/612285/ft1_filtered_4FGL_J0840.8+1317_daily_bin909.fits scfile=/scratch/kocevski/612285/ft2_4FGL_J0840.8+1317_daily_bin909.fits outfile=/scratch/kocevski/612285/cmap_474940801_475200001_4FGL_J0840.8+1317_daily_bin909.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 8.41
user 0.39
sys 7.88

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/612285/ft1_filtered_4FGL_J0840.8+1317_daily_bin909.fits scfile=/scratch/kocevski/612285/ft2_4FGL_J0840.8+1317_daily_bin909.fits outfile=/scratch/kocevski/612285/cmap_HighResolution_474940801_475200001_4FGL_J0840.8+1317_daily_bin909.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 11.23
user 0.39
sys 7.87

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.564       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .55805E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    34.057       1.0000         .10000E-03   10000.    
     5 'Prefactor '    25.798       1.0000         .10000E-03   10000.    
     6 'Prefactor '    34.822       1.0000         .10000E-03   10000.    
     7 'norm      '    .48070       1.0000         .10000E-03   10000.    
     8 'norm      '    1.0698       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.6290       1.0000         .10000E-03   10000.    
    13 'Prefactor '    53.772       1.0000         .10000E-03   10000.    
    14 'norm      '    .10210E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .99263       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .94156       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .89865       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=   5310.696     FROM MIGRAD    STATUS=CONVERGED    329 CALLS     1620 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.563        14.572       -.11629E-04    .20197E-03
   2  Prefactor     .10002E-03    450.08       -.45627E-03** at limit **
   3  norm          .10000E-03    197.13        .11232E-03** at limit **
   4  norm          34.080        29.429        .10136E-04    .34341E-04
   5  Prefactor     25.750        46.445       -.38423E-04    .13085E-04
   6  Prefactor     34.844        20.887        .12148E-04    .10153E-03
   7  norm          .48103        .76472       -.12108E-06   -.11519E-02
   8  norm          1.0701        .83823        .32901E-07    .31553E-04
   9  Prefactor     .10000E-03    3.6532       -.25256E-07** at limit **
  10  Prefactor     .10000E-03    4.6771       -.53415E-07** at limit **
  11  Prefactor     .10000E-03    13.596       -.82903E-07** at limit **
  12  norm          2.6295        .93942       -.23760E-06   -.13134E-03
  13  Prefactor     53.775        18.205        .32657E-05   -.96589E-04
  14  norm          .10000E-03    5.9586       -.20393E-07** at limit **
  15  norm          .99265        26.084        .29830E-05   -.56058E-03
  16  Normalizat    .94140        .19257        .24878E-05    .17668E-03
  17  Prefactor     .89851        .15826       -.16316E-05    .43716E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.5631
  Prefactor  = 0.000100016
  norm       = 0.0001
  norm       = 34.0804
  Prefactor  = 25.7504
  Prefactor  = 34.8436
  norm       = 0.481025
  norm       = 1.07011
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.62951
  Prefactor  = 53.7749
  norm       = 0.0001
  norm       = 0.992648
  Normalizat = 0.941404
  Prefactor  = 0.898511
 **********
 **   18 **HESSE 
 **********

 FCN=   5310.696     FROM HESSE     STATUS=OK           227 CALLS     1847 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.563        14.562        .90551E-04   -1.4823    
   2  Prefactor     .10002E-03    449.74        .19047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    197.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          34.080        29.403        .68667E-04   -1.4540    
   5  Prefactor     25.750        46.560        .78870E-04   -1.4693    
   6  Prefactor     34.844        20.903        .67911E-04   -1.4527    
   7  norm          .48103        .65765        .77936E-03   -1.5569    
   8  norm          1.0701        .81543        .57244E-03   -1.5501    
   9  Prefactor     .10000E-03    3.6988        .13598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.8455        .30770E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.6295        .94010        .39371E-04   -1.5384    
  13  Prefactor     53.775        18.222        .54698E-04   -1.4240    
  14  norm          .10000E-03    6.0318        .17372E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .99265        137.70        .72071E-02   -1.5509    
  16  Normalizat    .94140        .22588        .25731E-03   -.95020    
  17  Prefactor     .89851        .18592        .22230E-03   -.96193    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60617e-08
Minuit parameter uncertainties:
  1  14.5651
  2  0.00533682
  3  0.000388273
  4  29.4151
  5  46.6262
  6  20.9078
  7  0.657661
  8  0.815441
  9  4.22937e-06
  10  8.93923e-06
  11  2.95544e-05
  12  0.940109
  13  18.2243
  14  5.96841e-06
  15  23.4368
  16  0.226106
  17  0.186053
Done.

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

Extracting fit parameters...

4FGL J0840.8+1317
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  2.955e-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:  8.985e-01  1.861e-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.414e-01  2.261e-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: 6.26e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.87e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/612285/likelihoodResults_474940801_475200001_4FGL_J0840.8+1317_daily_bin909.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) = 5310.69588159
delta logL = -0.000349843538061

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5310.69553178
delta logL = -3.60205376637e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4874       1.0000          .0000       10.000    
     3 'Normalizat'    .94138       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89853       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=   5310.696     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      237 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10092E-03    784.01        .18142E-02** at limit **
   2  Index         2.3848        5.6030        .50000        .30367E-05
   3  Normalizat    .94141        .38061E-01    .25731E-03    .39764E-06
   4  Prefactor     .89851        .32375E-01    .22230E-03   -.51141E-07
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100916
  Index      = 2.38481
  Normalizat = 0.941406
  Prefactor  = 0.898508
 **********
 **   18 **HESSE 
 **********

 FCN=   5310.696     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      266 TOTAL
                     EDM=   .48E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10092E-03    6248.3        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3848        5.2592        .50000       -.55041    
   3  Normalizat    .94141        .10153        .10293E-04   -.95020    
   4  Prefactor     .89851        .86280E-01    .88920E-05   -.96193    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.84915e-08
Minuit parameter uncertainties:
  1  0.10016
  2  4900.57
  3  0.101554
  4  0.0862927
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/612285': 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) = 5310.69553168
delta logL = 6.36991899228e-08

Extracting fit parameters...

4FGL J0840.8+1317
   Spectrum: PowerLaw
297    Prefactor:  1.009e-04  1.002e-01  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.385e+00  4.901e+03  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:  8.985e-01  8.629e-02  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.414e-01  1.016e-01  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/612285/cmap_HighResolution_474940801_475200001_4FGL_J0840.8+1317_daily_bin909.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.87e-03', job_status='DONE', photon_flux_upper_limit='6.26e-08', time_completed='2021-08-30 03:35:38.763696', job_id='612285', GAL2='0.90', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1630319738.76', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='6.37e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='909' AND source_name='4FGL J0840.8+1317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:35:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0186>
Subject: Job 612285: <4FGL_J0840.8+1317_daily_bin909> in cluster <slac> Done

Job <4FGL_J0840.8+1317_daily_bin909> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Aug 30 03:20:58 2021
Job was executed on host(s) <bullet0186>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 03:20:59 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 30 03:20:59 2021
Terminated at Mon Aug 30 03:35:41 2021
Results reported at Mon Aug 30 03:35:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0840.8+1317_daily_bin909 130.222 13.2871 474940801 475200001 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 :                                   742.41 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             220.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            883 sec.

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

