/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 200 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 = 7476
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0840.8+1317_daily_bin98
RA = 130.222, Dec = 13.2871
tmin = 264729601, tmax = 264988801
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='607341', job_status='RUN', time_executed='2021-08-30 03:11:30.025789', time_epoch_executed='1630318290.03' WHERE source_name='4FGL J0840.8+1317' and cadence='daily' and bin_id='98'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/607341

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/607341/ft1_4FGL_J0840.8+1317_daily_bin98.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/607341/ft2_4FGL_J0840.8+1317_daily_bin98.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/607341/ft1_4FGL_J0840.8+1317_daily_bin98.fits outfile=/scratch/kocevski/607341/ft1_filteredMKT_4FGL_J0840.8+1317_daily_bin98.fits ra=130.222 dec=13.2871 rad=12.0 tmin=264729601.0 tmax=264988801.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.67
user 1.25
sys 2.08

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/607341/ft2_4FGL_J0840.8+1317_daily_bin98.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/607341/ft1_filteredMKT_4FGL_J0840.8+1317_daily_bin98.fits evtable="EVENTS" outfile="/scratch/kocevski/607341/ft1_filtered_4FGL_J0840.8+1317_daily_bin98.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.96
user 0.32
sys 2.07

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/607341/ft1_filtered_4FGL_J0840.8+1317_daily_bin98.fits" evtable="EVENTS" scfile=/scratch/kocevski/607341/ft2_4FGL_J0840.8+1317_daily_bin98.fits sctable="SC_DATA" outfile=/scratch/kocevski/607341/ltcube_264729601_264988801_4FGL_J0840.8+1317_daily_bin98.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/607341/ft2_4FGL_J0840.8+1317_daily_bin98.fits
.....................!
real 15.04
user 12.16
sys 2.49

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/607341/ft1_filtered_4FGL_J0840.8+1317_daily_bin98.fits evtable="EVENTS" scfile=/scratch/kocevski/607341/ft2_4FGL_J0840.8+1317_daily_bin98.fits sctable="SC_DATA" expcube=/scratch/kocevski/607341/ltcube_264729601_264988801_4FGL_J0840.8+1317_daily_bin98.fits outfile=/scratch/kocevski/607341/expmap_264729601_264988801_4FGL_J0840.8+1317_daily_bin98.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/607341/ltcube_264729601_264988801_4FGL_J0840.8+1317_daily_bin98.fits
.....................!
real 193.42
user 184.81
sys 7.47

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/607341/ft1_filtered_4FGL_J0840.8+1317_daily_bin98.fits scfile=/scratch/kocevski/607341/ft2_4FGL_J0840.8+1317_daily_bin98.fits outfile=/scratch/kocevski/607341/cmap_264729601_264988801_4FGL_J0840.8+1317_daily_bin98.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 2.45
user 0.38
sys 2.01

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/607341/ft1_filtered_4FGL_J0840.8+1317_daily_bin98.fits scfile=/scratch/kocevski/607341/ft2_4FGL_J0840.8+1317_daily_bin98.fits outfile=/scratch/kocevski/607341/cmap_HighResolution_264729601_264988801_4FGL_J0840.8+1317_daily_bin98.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 2.41
user 0.38
sys 2.02

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-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      '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    25.978       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.7216       1.0000         .10000E-03   10000.    
     7 'norm      '    2.6818       1.0000         .10000E-03   10000.    
     8 'norm      '    2.4698       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.9469       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.179       1.0000         .10000E-03   10000.    
    12 'norm      '    .43505       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.8163       1.0000         .10000E-03   10000.    
    14 'norm      '    4.5540       1.0000         .10000E-03   10000.    
    15 'norm      '    28.349       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.3524       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .71483       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=   7494.871     FROM MIGRAD    STATUS=CONVERGED    321 CALLS     1556 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.0662       -.20833E-06** at limit **
   2  Prefactor     .10000E-03    27.381       -.20716E-05** at limit **
   3  norm          .10000E-03    50.085        .82909E-05** at limit **
   4  norm          .10000E-03    10.099       -.21271E-07** at limit **
   5  Prefactor     25.974        28.523       -.47042E-05    .43387E-04
   6  Prefactor     2.7158        11.593       -.22319E-05   -.13479E-03
   7  norm          2.6815        1.4416       -.16470E-06   -.22340E-05
   8  norm          2.4695        1.0778       -.27904E-06    .53114E-04
   9  Prefactor     8.9443        9.6660       -.15419E-05   -.14096E-04
  10  Prefactor     .10000E-03    3.5104        .94779E-07** at limit **
  11  Prefactor     23.138        30.718       -.47944E-04    .48347E-04
  12  norm          .43505        .37553        .20109E-07    .77855E-03
  13  Prefactor     9.8156        8.5473        .45332E-06    .67901E-04
  14  norm          4.5538        4.4034        .70870E-06    .51155E-04
  15  norm          28.321        46.466       -.42206E-04    .12939E-04
  16  Normalizat    1.3529        .17122        .71163E-05   -.31435E-03
  17  Prefactor     .71452        .13375        .12693E-05    .38678E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 25.9737
  Prefactor  = 2.71577
  norm       = 2.68153
  norm       = 2.46948
  Prefactor  = 8.94433
  Prefactor  = 0.0001
  Prefactor  = 23.1376
  norm       = 0.435049
  Prefactor  = 9.81559
  norm       = 4.5538
  norm       = 28.3213
  Normalizat = 1.35288
  Prefactor  = 0.714521
 **********
 **   18 **HESSE 
 **********

 FCN=   7494.871     FROM HESSE     STATUS=OK           229 CALLS     1785 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.1113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    27.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    50.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    10.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     25.974        28.521        .78597E-04   -1.4688    
   6  Prefactor     2.7158        11.591        .24686E-03   -1.5378    
   7  norm          2.6815        1.4361        .70874E-04   -1.5380    
   8  norm          2.4695        1.0758        .56711E-04   -1.5394    
   9  Prefactor     8.9443        9.6583        .13400E-03   -1.5110    
  10  Prefactor     .10000E-03    3.5488        .15835E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     23.138        30.743        .83199E-04   -1.4746    
  12  norm          .43505        .38770        .47453E-03   -1.5576    
  13  Prefactor     9.8156        8.5412        .12790E-03   -1.5081    
  14  norm          4.5538        4.4027        .17426E-03   -1.5281    
  15  norm          28.321        46.483        .75244E-04   -1.4643    
  16  Normalizat    1.3529        .20029        .23328E-03   -.82001    
  17  Prefactor     .71452        .15617        .25282E-03   -1.0296    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77219e-09
Minuit parameter uncertainties:
  1  2.90805e-05
  2  1.89131e-05
  3  7.22152e-05
  4  8.92823e-06
  5  28.5359
  6  11.2246
  7  1.43607
  8  1.07586
  9  9.65996
  10  2.5061e-05
  11  30.7639
  12  0.387706
  13  8.5423
  14  4.40303
  15  46.5429
  16  0.20041
  17  0.156262
Done.

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

Extracting fit parameters...

4FGL J0840.8+1317
   Spectrum: PowerLaw
297    Prefactor:  2.314e+01  3.076e+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.145e-01  1.563e-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.353e+00  2.004e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/607341/likelihoodResults_264729601_264988801_4FGL_J0840.8+1317_daily_bin98.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) = 7494.52546962
delta logL = 0.345206224541

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7494.48420305
delta logL = 0.386472797627

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1044       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9278       1.0000          .0000       10.000    
     3 'Normalizat'    1.3022       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74430       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=   7494.484     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      288 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1057        184.84        .16364E-03    .20694E-02
   2  Index         3.9282        6.9394        .71774E-02    .45923E-03
   3  Normalizat    1.3021        .19463        .23709E-03    .81799E-03
   4  Prefactor     .74434        .15441        .24819E-03    .68368E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.10567
  Index      = 3.9282
  Normalizat = 1.3021
  Prefactor  = 0.744344
 **********
 **   18 **HESSE 
 **********

 FCN=   7494.484     FROM HESSE     STATUS=OK            25 CALLS      313 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1057        16.193        .65457E-05   -1.5256    
   2  Index         3.9282        1.8724        .28710E-03   -.21604    
   3  Normalizat    1.3021        .20313        .47419E-04   -.83504    
   4  Prefactor     .74434        .16079        .49637E-04   -1.0181    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.44509e-09
Minuit parameter uncertainties:
  1  16.2065
  2  1.92164
  3  0.203253
  4  0.160893
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/607341': 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) = 7494.48420255
delta logL = 0.386473295444

Extracting fit parameters...

4FGL J0840.8+1317
   Spectrum: PowerLaw
297    Prefactor:  5.106e+00  1.621e+01  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  3.928e+00  1.922e+00  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.443e-01  1.609e-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.302e+00  2.033e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.56
Ra Dec: 130.222 13.287
Photon Index (Free Index): 3.93 +/- 1.92
Photon Flux (Free Index): 6.17e-08 +/- 5.93e-08
Energy Flux (Free Index): 9.35e-06 +/- 8.56e-06

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/607341/cmap_HighResolution_264729601_264988801_4FGL_J0840.8+1317_daily_bin98.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.28e-03', comment='SUCCESS', energy_flux2='9.35e-06', dlogl='3.86e-01', photon_flux2='6.17e-08', job_status='DONE', time_completed='2021-08-30 03:21:22.107956', photon_index_error2='1.92', photon_index2='3.93', ts='0.71', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', photon_flux_upper_limit='1.07e-07', energy_flux_error2='8.56e-06', EG='1.35', time_epoch_completed='1630318882.11', return_code='0', job_id='607341', GAL2='0.74', EG2='1.30', return_code2='0', photon_flux_error2='5.93e-08', ts2='1.56', photon_index='2.49' WHERE bin_id='98' AND source_name='4FGL J0840.8+1317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:21:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 607341: <4FGL_J0840.8+1317_daily_bin98> in cluster <slac> Done

Job <4FGL_J0840.8+1317_daily_bin98> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug 30 03:06:28 2021
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 03:06:30 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:06:30 2021
Terminated at Mon Aug 30 03:21:22 2021
Results reported at Mon Aug 30 03:21:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0840.8+1317_daily_bin98 130.222 13.2871 264729601 264988801 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 :                                   619.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             274.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            894 sec.

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

