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


Performing analysis on: 4FGL_J0840.8+1317_daily_bin1626
RA = 130.222, Dec = 13.2871
tmin = 660787201, tmax = 661046401
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='162628', job_status='RUN', time_executed='2021-12-13 00:13:59.202213', time_epoch_executed='1639383239.2' WHERE source_name='4FGL J0840.8+1317' and cadence='daily' and bin_id='1626'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/162628

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/162628/ft1_4FGL_J0840.8+1317_daily_bin1626.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/162628/ft2_4FGL_J0840.8+1317_daily_bin1626.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/162628/ft1_4FGL_J0840.8+1317_daily_bin1626.fits outfile=/scratch/kocevski/162628/ft1_filteredMKT_4FGL_J0840.8+1317_daily_bin1626.fits ra=130.222 dec=13.2871 rad=12.0 tmin=660787201.0 tmax=661046401.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 3.53
user 3.26
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/162628/ft2_4FGL_J0840.8+1317_daily_bin1626.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/162628/ft1_filteredMKT_4FGL_J0840.8+1317_daily_bin1626.fits evtable="EVENTS" outfile="/scratch/kocevski/162628/ft1_filtered_4FGL_J0840.8+1317_daily_bin1626.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.51
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/162628/ft1_filtered_4FGL_J0840.8+1317_daily_bin1626.fits" evtable="EVENTS" scfile=/scratch/kocevski/162628/ft2_4FGL_J0840.8+1317_daily_bin1626.fits sctable="SC_DATA" outfile=/scratch/kocevski/162628/ltcube_660787201_661046401_4FGL_J0840.8+1317_daily_bin1626.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/162628/ft2_4FGL_J0840.8+1317_daily_bin1626.fits
.....................!
real 16.66
user 16.21
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/162628/ft1_filtered_4FGL_J0840.8+1317_daily_bin1626.fits evtable="EVENTS" scfile=/scratch/kocevski/162628/ft2_4FGL_J0840.8+1317_daily_bin1626.fits sctable="SC_DATA" expcube=/scratch/kocevski/162628/ltcube_660787201_661046401_4FGL_J0840.8+1317_daily_bin1626.fits outfile=/scratch/kocevski/162628/expmap_660787201_661046401_4FGL_J0840.8+1317_daily_bin1626.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/162628/ltcube_660787201_661046401_4FGL_J0840.8+1317_daily_bin1626.fits
.....................!
real 191.18
user 186.83
sys 3.93

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/162628/ft1_filtered_4FGL_J0840.8+1317_daily_bin1626.fits scfile=/scratch/kocevski/162628/ft2_4FGL_J0840.8+1317_daily_bin1626.fits outfile=/scratch/kocevski/162628/cmap_660787201_661046401_4FGL_J0840.8+1317_daily_bin1626.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.56
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/162628/ft1_filtered_4FGL_J0840.8+1317_daily_bin1626.fits scfile=/scratch/kocevski/162628/ft2_4FGL_J0840.8+1317_daily_bin1626.fits outfile=/scratch/kocevski/162628/cmap_HighResolution_660787201_661046401_4FGL_J0840.8+1317_daily_bin1626.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.57
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1036       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    89.513       1.0000         .10000E-03   10000.    
     4 'norm      '    12.894       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10977E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .43765E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.1407       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .75799       1.0000         .10000E-03   10000.    
    11 'Prefactor '    60.676       1.0000         .10000E-03   10000.    
    12 'norm      '    .10091E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.565       1.0000         .10000E-03   10000.    
    14 'norm      '    5.9238       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.1872       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .79406       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=   6495.415     FROM MIGRAD    STATUS=CONVERGED    342 CALLS     1653 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1050        9.9384        .31837E-05   -.53263E-04
   2  Prefactor     .10000E-03    37.069       -.14436E-05** at limit **
   3  norm          89.524        75.458        .14754E-05    .53649E-04
   4  norm          12.890        20.490       -.69592E-07   -.47554E-04
   5  Prefactor     .10000E-03    24.961        .23007E-05** at limit **
   6  Prefactor     .10000E-03    6.9454       -.15301E-08** at limit **
   7  norm          .10000E-03    .38861        .39545E-07** at limit **
   8  norm          .78888E-02    .37552       -.40810E-07    .57789E-03
   9  Prefactor     4.1409        6.2130        .62440E-06    .12847E-03
  10  Prefactor     .79607        4.1939       -.40968E-06    .18361E-03
  11  Prefactor     60.682        36.046        .70506E-06    .81249E-04
  12  norm          .10000E-03    .39047        .73411E-07** at limit **
  13  Prefactor     19.572        15.366        .56328E-07    .14355E-04
  14  norm          5.9244        5.9479       -.69835E-07   -.38117E-04
  15  norm          .10000E-03    21.382       -.14973E-05** at limit **
  16  Normalizat    1.1868        .17329       -.82180E-06    .12704E-04
  17  Prefactor     .79419        .13676        .10675E-06   -.52721E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.10498
  Prefactor  = 0.0001
  norm       = 89.5239
  norm       = 12.8897
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.00788881
  Prefactor  = 4.14087
  Prefactor  = 0.796071
  Prefactor  = 60.6816
  norm       = 0.0001
  Prefactor  = 19.5722
  norm       = 5.92444
  norm       = 0.0001
  Normalizat = 1.18679
  Prefactor  = 0.794192
 **********
 **   18 **HESSE 
 **********

 FCN=   6495.415     FROM HESSE     STATUS=OK           235 CALLS     1888 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1050        10.740        .45149E-03   -1.5498    
   2  Prefactor     .10000E-03    37.349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          89.524        76.167        .21235E-03   -1.3813    
   4  norm          12.890        20.546        .11155E-03   -1.4990    
   5  Prefactor     .10000E-03    25.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.9867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .40281        .98052E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .78888E-02    1.4271        .16478E-01   -1.5690    
   9  Prefactor     4.1409        6.2124        .19809E-03   -1.5301    
  10  Prefactor     .79607        17.643        .30118E-02   -1.5530    
  11  Prefactor     60.682        36.306        .51509E-04   -1.4148    
  12  norm          .10000E-03    2.8609        .90804E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     19.572        14.691        .90550E-04   -1.4823    
  14  norm          5.9244        5.9513        .16499E-03   -1.5221    
  15  norm          .10000E-03    21.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.1868        .20414        .23482E-03   -.87012    
  17  Prefactor     .79419        .16136        .22848E-03   -.99943    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95201e-09
Minuit parameter uncertainties:
  1  6.89119
  2  0.000214762
  3  76.2499
  4  20.5575
  5  0.000311498
  6  3.77772e-06
  7  8.03842e-08
  8  0.210867
  9  6.21338
  10  7.49744
  11  36.3194
  12  3.18724e-05
  13  14.6942
  14  5.95189
  15  0.000172669
  16  0.204277
  17  0.161459
Done.

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

Extracting fit parameters...

4FGL J0840.8+1317
   Spectrum: PowerLaw
297    Prefactor:  6.068e+01  3.632e+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:  7.942e-01  1.615e-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.187e+00  2.043e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.08
Ra Dec: 130.222 13.287
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 7.27e-08 +/- 4.35e-08
Energy Flux (Fixed Index): 2.12e-05 +/- 1.27e-05

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) = 6495.41330751
delta logL = 0.00150969508468

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6495.4125332
delta logL = 0.00228400457036

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    59.343       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5401       1.0000          .0000       10.000    
     3 'Normalizat'    1.1827       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79637       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=   6495.413     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      270 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     59.362        42.583        .52082E-04    .49682E-04
   2  Index         2.5397        .69884        .77960E-02    .40932E-03
   3  Normalizat    1.1828        .20850        .23515E-03   -.91373E-05
   4  Prefactor     .79625        .16385        .22821E-03   -.88424E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 59.3617
  Index      = 2.53965
  Normalizat = 1.18277
  Prefactor  = 0.796254
 **********
 **   18 **HESSE 
 **********

 FCN=   6495.413     FROM HESSE     STATUS=OK            25 CALLS      295 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     59.362        41.100        .10416E-04   -1.4166    
   2  Index         2.5397        .67304        .15592E-02   -.51447    
   3  Normalizat    1.1828        .20812        .94062E-05   -.87137    
   4  Prefactor     .79625        .16374        .91285E-05   -.99867    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.66655e-11
Minuit parameter uncertainties:
  1  41.1198
  2  0.675752
  3  0.208266
  4  0.16384
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/162628': 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) = 6495.41253275
delta logL = 0.00228445301582

Extracting fit parameters...

4FGL J0840.8+1317
   Spectrum: PowerLaw
297    Prefactor:  5.936e+01  4.112e+01  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.540e+00  6.758e-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:  7.963e-01  1.638e-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.183e+00  2.083e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.08
Ra Dec: 130.222 13.287
Photon Index (Free Index): 2.54 +/- 0.68
Photon Flux (Free Index): 7.58e-08 +/- 6.39e-08
Energy Flux (Free Index): 2.11e-05 +/- 1.26e-05

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/162628/cmap_HighResolution_660787201_661046401_4FGL_J0840.8+1317_daily_bin1626.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.27e-08', energy_flux2='2.11e-05', photon_flux_error='4.35e-08', dlogl='2.28e-03', energy_flux='2.12e-05', photon_flux2='7.58e-08', job_status='DONE', time_completed='2021-12-13 00:22:36.682507', photon_index_error2='0.68', photon_index2='2.54', ts='5.08', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', energy_flux_error2='1.26e-05', EG='1.19', time_epoch_completed='1639383756.68', return_code='0', job_id='162628', GAL2='0.80', EG2='1.18', return_code2='0', energy_flux_error='1.27e-05', photon_flux_error2='6.39e-08', ts2='5.08', photon_index='2.49' WHERE bin_id='1626' AND source_name='4FGL J0840.8+1317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec 13 00:22:36 PST 2021



------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 162694: <4FGL_J0840.8+1317_daily_bin1626> in cluster <slac> Done

Job <4FGL_J0840.8+1317_daily_bin1626> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Dec 13 00:06:50 2021
Job was executed on host(s) <bullet0288>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec 13 00:06:51 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec 13 00:06:51 2021
Terminated at Mon Dec 13 00:18:19 2021
Results reported at Mon Dec 13 00:18:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0840.8+1317_daily_bin1626 130.222 13.2871 660787201 661046401 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 :                                   502.07 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   688 sec.
    Turnaround time :                            689 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 162628: <4FGL_J0840.8+1317_daily_bin1626> in cluster <slac> Done

Job <4FGL_J0840.8+1317_daily_bin1626> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Dec 13 00:06:45 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec 13 00:06:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec 13 00:06:48 2021
Terminated at Mon Dec 13 00:22:37 2021
Results reported at Mon Dec 13 00:22:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0840.8+1317_daily_bin1626 130.222 13.2871 660787201 661046401 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 :                                   507.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             246.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            952 sec.

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

