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


Performing analysis on: 4FGL_J0840.8+1317_daily_bin1051
RA = 130.222, Dec = 13.2871
tmin = 511747201, tmax = 512006401
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='612511', job_status='RUN', time_executed='2021-08-30 03:23:58.792019', time_epoch_executed='1630319038.79' WHERE source_name='4FGL J0840.8+1317' and cadence='daily' and bin_id='1051'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/612511

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/612511/ft1_4FGL_J0840.8+1317_daily_bin1051.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/612511/ft2_4FGL_J0840.8+1317_daily_bin1051.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/612511/ft1_4FGL_J0840.8+1317_daily_bin1051.fits outfile=/scratch/kocevski/612511/ft1_filteredMKT_4FGL_J0840.8+1317_daily_bin1051.fits ra=130.222 dec=13.2871 rad=12.0 tmin=511747201.0 tmax=512006401.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 5.16
user 3.34
sys 1.31

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/612511/ft1_filtered_4FGL_J0840.8+1317_daily_bin1051.fits" evtable="EVENTS" scfile=/scratch/kocevski/612511/ft2_4FGL_J0840.8+1317_daily_bin1051.fits sctable="SC_DATA" outfile=/scratch/kocevski/612511/ltcube_511747201_512006401_4FGL_J0840.8+1317_daily_bin1051.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/612511/ft2_4FGL_J0840.8+1317_daily_bin1051.fits
.....................!
real 13.61
user 11.33
sys 1.56

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/612511/ft1_filtered_4FGL_J0840.8+1317_daily_bin1051.fits evtable="EVENTS" scfile=/scratch/kocevski/612511/ft2_4FGL_J0840.8+1317_daily_bin1051.fits sctable="SC_DATA" expcube=/scratch/kocevski/612511/ltcube_511747201_512006401_4FGL_J0840.8+1317_daily_bin1051.fits outfile=/scratch/kocevski/612511/expmap_511747201_512006401_4FGL_J0840.8+1317_daily_bin1051.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/612511/ltcube_511747201_512006401_4FGL_J0840.8+1317_daily_bin1051.fits
.....................!
real 194.54
user 185.74
sys 6.15

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/612511/ft1_filtered_4FGL_J0840.8+1317_daily_bin1051.fits scfile=/scratch/kocevski/612511/ft2_4FGL_J0840.8+1317_daily_bin1051.fits outfile=/scratch/kocevski/612511/cmap_511747201_512006401_4FGL_J0840.8+1317_daily_bin1051.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 1.75
user 0.41
sys 1.24

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/612511/ft1_filtered_4FGL_J0840.8+1317_daily_bin1051.fits scfile=/scratch/kocevski/612511/ft2_4FGL_J0840.8+1317_daily_bin1051.fits outfile=/scratch/kocevski/612511/cmap_HighResolution_511747201_512006401_4FGL_J0840.8+1317_daily_bin1051.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 1.75
user 0.41
sys 1.28

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8711       1.0000         .10000E-03   10000.    
     2 'Prefactor '    197.26       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    7.2495       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.3524       1.0000         .10000E-03   10000.    
     7 'norm      '    1.9965       1.0000         .10000E-03   10000.    
     8 'norm      '    .96414       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.5055       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    17.170       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .89462       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.2033       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=   6019.677     FROM MIGRAD    STATUS=CONVERGED    317 CALLS     1337 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8772        13.049        .32745E-05   -.89476E-03
   2  Prefactor     197.22        121.10       -.19007E-04   -.12377E-03
   3  norm          .10000E-03    25.023        .67691E-05** at limit **
   4  norm          7.2496        12.943        .26186E-07   -.15491E-03
   5  Prefactor     .10000E-03    18.504       -.11156E-05** at limit **
   6  Prefactor     2.3511        8.7971        .20356E-06   -.10820E-02
   7  norm          1.9966        1.3842       -.13496E-07   -.86072E-04
   8  norm          .96389        .92228       -.22256E-07   -.79580E-04
   9  Prefactor     .10000E-03    4.1028        .32032E-07** at limit **
  10  Prefactor     .10000E-03    4.4198        .26388E-07** at limit **
  11  Prefactor     .10000E-03    26.842       -.56661E-05** at limit **
  12  norm          3.5054        .98765        .18069E-08    .31493E-04
  13  Prefactor     .10000E-03    9.1581        .86436E-07** at limit **
  14  norm          .10000E-03    2.6484        .22629E-07** at limit **
  15  norm          17.165        24.187       -.56820E-05   -.82698E-04
  16  Normalizat    .89485        .19019        .69323E-07    .35462E-04
  17  Prefactor     1.2031        .16353        .41640E-06    .19304E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.87716
  Prefactor  = 197.223
  norm       = 0.0001
  norm       = 7.24957
  Prefactor  = 0.0001
  Prefactor  = 2.35107
  norm       = 1.99655
  norm       = 0.963888
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.50538
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 17.165
  Normalizat = 0.894851
  Prefactor  = 1.20309
 **********
 **   18 **HESSE 
 **********

 FCN=   6019.677     FROM HESSE     STATUS=OK           221 CALLS     1558 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8772        24.134        .15224E-02   -1.5434    
   2  Prefactor     197.22        121.33        .14383E-03   -1.2890    
   3  norm          .10000E-03    25.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          7.2496        12.951        .74486E-03   -1.5169    
   5  Prefactor     .10000E-03    18.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.3511        12.663        .13363E-02   -1.5401    
   7  norm          1.9966        1.3771        .73086E-04   -1.5425    
   8  norm          .96389        .90846        .70150E-04   -1.5512    
   9  Prefactor     .10000E-03    4.1296        .15341E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.5034        .15925E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    26.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.5054        .98993        .39109E-04   -1.5333    
  13  Prefactor     .10000E-03    9.2217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.6509        .12331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          17.165        24.211        .96656E-04   -1.4879    
  16  Normalizat    .89485        .21634        .28245E-03   -.96641    
  17  Prefactor     1.2031        .18512        .21556E-03   -.86236    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37321e-08
Minuit parameter uncertainties:
  1  13.4679
  2  121.485
  3  0.00016867
  4  12.9559
  5  2.38068e-05
  6  10.9159
  7  1.37708
  8  0.908469
  9  1.84487e-06
  10  3.5216e-06
  11  0.000146007
  12  0.989933
  13  5.30878e-06
  14  4.57368e-07
  15  24.225
  16  0.216547
  17  0.18522
Done.

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

Extracting fit parameters...

4FGL J0840.8+1317
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  1.460e-04  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.203e+00  1.852e-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:  8.949e-01  2.165e-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: 7.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.01e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/612511/likelihoodResults_511747201_512006401_4FGL_J0840.8+1317_daily_bin1051.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) = 6019.6775975
delta logL = -0.000176553336132

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6019.67742106
delta logL = -1.13901478471e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4129       1.0000          .0000       10.000    
     3 'Normalizat'    .89486       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2031       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.

 FCN=   6019.677     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      229 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6218.9        .90712E-02** at limit **
   2  Index         2.4284        8.7266        .50000       -.54441E-05
   3  Normalizat    .89485        .55873E-01    .44836E-01    .27821E-04
   4  Prefactor     1.2031        .48820E-01    .34558E-01    .13694E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.42843
  Normalizat = 0.894851
  Prefactor  = 1.20309
 **********
 **   18 **HESSE 
 **********

 FCN=   6019.677     FROM HESSE     STATUS=OK            33 CALLS      262 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    834.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4284        6.1498        .50000       -.54021    
   3  Normalizat    .89485        .20976        .28245E-03   -.96641    
   4  Prefactor     1.2031        .18368        .21556E-03   -.86236    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.28097e-10
Minuit parameter uncertainties:
  1  0.000241207
  2  24.8593
  3  0.209955
  4  0.183782
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/612511': 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) = 6019.67742103
delta logL = -8.56771293911e-08

Extracting fit parameters...

4FGL J0840.8+1317
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  2.412e-04  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.428e+00  2.486e+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.203e+00  1.838e-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:  8.949e-01  2.100e-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/612511/cmap_HighResolution_511747201_512006401_4FGL_J0840.8+1317_daily_bin1051.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.01e-03', job_status='DONE', photon_flux_upper_limit='7.72e-08', time_completed='2021-08-30 03:33:13.373256', job_id='612511', GAL2='1.20', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1630319593.37', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='-8.57e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1051' AND source_name='4FGL J0840.8+1317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:33:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 612511: <4FGL_J0840.8+1317_daily_bin1051> in cluster <slac> Done

Job <4FGL_J0840.8+1317_daily_bin1051> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Aug 30 03:21:19 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 03:21:20 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:21:20 2021
Terminated at Mon Aug 30 03:33:14 2021
Results reported at Mon Aug 30 03:33:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0840.8+1317_daily_bin1051 130.222 13.2871 511747201 512006401 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 :                                   532.26 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             230.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   713 sec.
    Turnaround time :                            715 sec.

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

