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


Performing analysis on: 4FGL_J0840.8+1317_daily_bin1319
RA = 130.222, Dec = 13.2871
tmin = 581212801, tmax = 581472001
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='614350', job_status='RUN', time_executed='2021-08-30 03:26:35.087863', time_epoch_executed='1630319195.09' WHERE source_name='4FGL J0840.8+1317' and cadence='daily' and bin_id='1319'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/614350

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/614350/ft1_4FGL_J0840.8+1317_daily_bin1319.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/614350/ft2_4FGL_J0840.8+1317_daily_bin1319.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/614350/ft1_4FGL_J0840.8+1317_daily_bin1319.fits outfile=/scratch/kocevski/614350/ft1_filteredMKT_4FGL_J0840.8+1317_daily_bin1319.fits ra=130.222 dec=13.2871 rad=12.0 tmin=581212801.0 tmax=581472001.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.08
user 2.75
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/614350/ft2_4FGL_J0840.8+1317_daily_bin1319.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/614350/ft1_filteredMKT_4FGL_J0840.8+1317_daily_bin1319.fits evtable="EVENTS" outfile="/scratch/kocevski/614350/ft1_filtered_4FGL_J0840.8+1317_daily_bin1319.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.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/614350/ft1_filtered_4FGL_J0840.8+1317_daily_bin1319.fits" evtable="EVENTS" scfile=/scratch/kocevski/614350/ft2_4FGL_J0840.8+1317_daily_bin1319.fits sctable="SC_DATA" outfile=/scratch/kocevski/614350/ltcube_581212801_581472001_4FGL_J0840.8+1317_daily_bin1319.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/614350/ft2_4FGL_J0840.8+1317_daily_bin1319.fits
.....................!
real 14.38
user 13.99
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/614350/ft1_filtered_4FGL_J0840.8+1317_daily_bin1319.fits evtable="EVENTS" scfile=/scratch/kocevski/614350/ft2_4FGL_J0840.8+1317_daily_bin1319.fits sctable="SC_DATA" expcube=/scratch/kocevski/614350/ltcube_581212801_581472001_4FGL_J0840.8+1317_daily_bin1319.fits outfile=/scratch/kocevski/614350/expmap_581212801_581472001_4FGL_J0840.8+1317_daily_bin1319.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/614350/ltcube_581212801_581472001_4FGL_J0840.8+1317_daily_bin1319.fits
.....................!
real 192.36
user 186.67
sys 5.24

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/614350/ft1_filtered_4FGL_J0840.8+1317_daily_bin1319.fits scfile=/scratch/kocevski/614350/ft2_4FGL_J0840.8+1317_daily_bin1319.fits outfile=/scratch/kocevski/614350/cmap_581212801_581472001_4FGL_J0840.8+1317_daily_bin1319.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.87
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/614350/ft1_filtered_4FGL_J0840.8+1317_daily_bin1319.fits scfile=/scratch/kocevski/614350/ft2_4FGL_J0840.8+1317_daily_bin1319.fits outfile=/scratch/kocevski/614350/cmap_HighResolution_581212801_581472001_4FGL_J0840.8+1317_daily_bin1319.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.59
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.5266       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .49984       1.0000         .10000E-03   10000.    
     8 'norm      '    3.3150       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.1195       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.8493       1.0000         .10000E-03   10000.    
    11 'Prefactor '    31.598       1.0000         .10000E-03   10000.    
    12 'norm      '    .60585       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    32.365       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .71665       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.3286       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8164.588     FROM MIGRAD    STATUS=CONVERGED    344 CALLS     1625 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.4711         .0000    ** at limit **
   2  Prefactor     .10000E-03    33.495         .0000    ** at limit **
   3  norm          .10000E-03    157.56         .0000    ** at limit **
   4  norm          2.5258        27.626         .0000        .20165E-02
   5  Prefactor     .10000E-03    7.5086         .0000    ** at limit **
   6  Prefactor     .10000E-03    16.907         .0000    ** at limit **
   7  norm          .50147        .86200         .0000        .97464E-03
   8  norm          3.3150        1.0735         .0000        .11387E-03
   9  Prefactor     3.1116        8.2710         .0000        .41124E-03
  10  Prefactor     3.8508        6.3070         .0000        .11591E-02
  11  Prefactor     31.598        25.521         .0000        .26016E-04
  12  norm          .60595        .60425         .0000        .11221E-02
  13  Prefactor     .10000E-03    6.5642         .0000    ** at limit **
  14  norm          .10000E-03    1.5357         .0000    ** at limit **
  15  norm          32.365        26.105         .0000       -.14617E-04
  16  Normalizat    .71660        .16828         .0000        .39273E-04
  17  Prefactor     1.3286        .14200         .0000        .11847E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.52584
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.501466
  norm       = 3.31503
  Prefactor  = 3.11161
  Prefactor  = 3.85083
  Prefactor  = 31.5978
  norm       = 0.605954
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 32.3649
  Normalizat = 0.716598
  Prefactor  = 1.32865
 **********
 **   18 **HESSE 
 **********

 FCN=   8164.588     FROM HESSE     STATUS=OK           227 CALLS     1852 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.5084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    33.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    158.27        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.5258        27.645        .12849E-02   -1.5390    
   5  Prefactor     .10000E-03    7.5129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    17.621        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .50147        .69760        .10166E-02   -1.5566    
   8  norm          3.3150        1.0727        .51323E-04   -1.5344    
   9  Prefactor     3.1116        8.0313        .22956E-03   -1.5355    
  10  Prefactor     3.8508        6.2744        .20569E-03   -1.5315    
  11  Prefactor     31.598        25.541        .71281E-04   -1.4583    
  12  norm          .60595        .57680        .65825E-03   -1.5552    
  13  Prefactor     .10000E-03    6.7382        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.5365        .10936E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          32.365        26.100        .70433E-04   -1.4570    
  16  Normalizat    .71660        .19154        .30376E-03   -1.0324    
  17  Prefactor     1.3286        .16299        .20244E-03   -.82459    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.2191e-09
Minuit parameter uncertainties:
  1  1.22402e-06
  2  2.84667e-05
  3  0.000278778
  4  16.7219
  5  4.54962e-06
  6  1.24214e-05
  7  0.697614
  8  1.07267
  9  8.03411
  10  6.27548
  11  25.5502
  12  0.576806
  13  2.64789e-07
  14  2.68934e-07
  15  26.1095
  16  0.19172
  17  0.163058
Done.

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

Extracting fit parameters...

4FGL J0840.8+1317
   Spectrum: PowerLaw
297    Prefactor:  3.160e+01  2.555e+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.329e+00  1.631e-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:  7.166e-01  1.917e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.60
Ra Dec: 130.222 13.287
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 3.79e-08 +/- 3.06e-08
Energy Flux (Fixed Index): 1.11e-05 +/- 8.94e-06

TS (Fixed Index): 2.60
Ra Dec: 130.222 13.287
Photon Flux Upper Limit: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/614350/likelihoodResults_581212801_581472001_4FGL_J0840.8+1317_daily_bin1319.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) = 8164.15147178
delta logL = 0.436982440554

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8164.13127408
delta logL = 0.457180139102

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    37.383       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8628       1.0000          .0000       10.000    
     3 'Normalizat'    .74309       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3138       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=   8164.131     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      211 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.383        124.12        .16388E-02    .35977E-04
   2  Index         1.8628        1.6912        .26644       -.65986E-04
   3  Normalizat    .74311        .18144        .67503E-01    .45304E-04
   4  Prefactor     1.3138        .15321        .32373E-01   -.10480E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.383
  Index      = 1.86277
  Normalizat = 0.74311
  Prefactor  = 1.31381
 **********
 **   18 **HESSE 
 **********

 FCN=   8164.131     FROM HESSE     STATUS=OK            31 CALLS      242 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.383        31.951        .65550E-04   -1.4484    
   2  Index         1.8628        .58899        .94768E-02   -.67827    
   3  Normalizat    .74311        .18427        .29868E-03   -1.0221    
   4  Prefactor     1.3138        .16231        .20333E-03   -.82897    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89716e-11
Minuit parameter uncertainties:
  1  31.9656
  2  0.591263
  3  0.184427
  4  0.162374
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/614350': 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) = 8164.13127407
delta logL = 0.45718015426

Extracting fit parameters...

4FGL J0840.8+1317
   Spectrum: PowerLaw
297    Prefactor:  3.738e+01  3.197e+01  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  1.863e+00  5.913e-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.314e+00  1.624e-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:  7.431e-01  1.844e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.51
Ra Dec: 130.222 13.287
Photon Index (Free Index): 1.86 +/- 0.59
Photon Flux (Free Index): 2.08e-08 +/- 2.39e-08
Energy Flux (Free Index): 2.07e-05 +/- 2.47e-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/614350/cmap_HighResolution_581212801_581472001_4FGL_J0840.8+1317_daily_bin1319.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.18e-03', comment='SUCCESS', photon_flux='3.79e-08', energy_flux2='2.07e-05', photon_flux_error='3.06e-08', dlogl='4.57e-01', energy_flux='1.11e-05', photon_flux2='2.08e-08', job_status='DONE', time_completed='2021-08-30 03:36:36.940795', photon_index_error2='0.59', photon_index2='1.86', ts='2.60', fit_tolerance='1e-08', GAL='1.33', photon_index_error='0.00', photon_flux_upper_limit='1.05e-07', energy_flux_error2='2.47e-05', EG='0.72', time_epoch_completed='1630319796.94', return_code='0', job_id='614350', GAL2='1.31', EG2='0.74', return_code2='0', energy_flux_error='8.94e-06', photon_flux_error2='2.39e-08', ts2='3.51', photon_index='2.49' WHERE bin_id='1319' AND source_name='4FGL J0840.8+1317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:36:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 614350: <4FGL_J0840.8+1317_daily_bin1319> in cluster <slac> Done

Job <4FGL_J0840.8+1317_daily_bin1319> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Aug 30 03:26:16 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 03:26:17 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:26:17 2021
Terminated at Mon Aug 30 03:36:37 2021
Results reported at Mon Aug 30 03:36:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0840.8+1317_daily_bin1319 130.222 13.2871 581212801 581472001 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 :                                   591.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             373.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   620 sec.
    Turnaround time :                            621 sec.

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

