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


Performing analysis on: 4FGL_J0840.8+1317_daily_bin79
RA = 130.222, Dec = 13.2871
tmin = 259804801, tmax = 260064001
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='607313', job_status='RUN', time_executed='2021-08-30 03:10:45.240375', time_epoch_executed='1630318245.24' WHERE source_name='4FGL J0840.8+1317' and cadence='daily' and bin_id='79'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/607313

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/607313/ft1_4FGL_J0840.8+1317_daily_bin79.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/607313/ft2_4FGL_J0840.8+1317_daily_bin79.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/607313/ft1_4FGL_J0840.8+1317_daily_bin79.fits outfile=/scratch/kocevski/607313/ft1_filteredMKT_4FGL_J0840.8+1317_daily_bin79.fits ra=130.222 dec=13.2871 rad=12.0 tmin=259804801.0 tmax=260064001.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 6.26
user 2.47
sys 3.73

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/607313/ft1_filtered_4FGL_J0840.8+1317_daily_bin79.fits" evtable="EVENTS" scfile=/scratch/kocevski/607313/ft2_4FGL_J0840.8+1317_daily_bin79.fits sctable="SC_DATA" outfile=/scratch/kocevski/607313/ltcube_259804801_260064001_4FGL_J0840.8+1317_daily_bin79.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/607313/ft2_4FGL_J0840.8+1317_daily_bin79.fits
.....................!
real 16.78
user 12.27
sys 4.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/607313/ft1_filtered_4FGL_J0840.8+1317_daily_bin79.fits evtable="EVENTS" scfile=/scratch/kocevski/607313/ft2_4FGL_J0840.8+1317_daily_bin79.fits sctable="SC_DATA" expcube=/scratch/kocevski/607313/ltcube_259804801_260064001_4FGL_J0840.8+1317_daily_bin79.fits outfile=/scratch/kocevski/607313/expmap_259804801_260064001_4FGL_J0840.8+1317_daily_bin79.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/607313/ltcube_259804801_260064001_4FGL_J0840.8+1317_daily_bin79.fits
.....................!
real 199.42
user 187.96
sys 9.34

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/607313/ft1_filtered_4FGL_J0840.8+1317_daily_bin79.fits scfile=/scratch/kocevski/607313/ft2_4FGL_J0840.8+1317_daily_bin79.fits outfile=/scratch/kocevski/607313/cmap_259804801_260064001_4FGL_J0840.8+1317_daily_bin79.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 4.03
user 0.37
sys 3.60

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/607313/ft1_filtered_4FGL_J0840.8+1317_daily_bin79.fits scfile=/scratch/kocevski/607313/ft2_4FGL_J0840.8+1317_daily_bin79.fits outfile=/scratch/kocevski/607313/cmap_HighResolution_259804801_260064001_4FGL_J0840.8+1317_daily_bin79.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 4.01
user 0.38
sys 3.59

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    93.742       1.0000         .10000E-03   10000.    
     3 'norm      '    .15547E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .24122E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.9707       1.0000         .10000E-03   10000.    
     7 'norm      '    2.7932       1.0000         .10000E-03   10000.    
     8 'norm      '    .43462       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.7262       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    48.700       1.0000         .10000E-03   10000.    
    12 'norm      '    .25871       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.571       1.0000         .10000E-03   10000.    
    14 'norm      '    5.5815       1.0000         .10000E-03   10000.    
    15 'norm      '    .72944E-01   1.0000         .10000E-03   10000.    
    16 'Normalizat'    .88407       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0269       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=   5840.625     FROM MIGRAD    STATUS=CONVERGED    370 CALLS     1930 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.9152       -.20828E-07** at limit **
   2  Prefactor     93.754        84.838        .36574E-06    .97491E-05
   3  norm          .10001E-03    76.116       -.50634E-05** at limit **
   4  norm          .10072E-03    20.038        .22549E-05** at limit **
   5  Prefactor     .10000E-03    74.461        .44453E-05** at limit **
   6  Prefactor     7.9710        11.675       -.81131E-06   -.25807E-03
   7  norm          2.7932        1.4144       -.12238E-07   -.33311E-04
   8  norm          .43475        .50380        .40435E-08   -.10417E-03
   9  Prefactor     9.7295        9.9030        .47418E-06    .13012E-03
  10  Prefactor     .10000E-03    6.5667        .15304E-06** at limit **
  11  Prefactor     48.692        37.837        .68959E-06    .56682E-04
  12  norm          .25886        .40751        .13529E-06    .48212E-03
  13  Prefactor     11.569        9.8100        .29272E-06    .18683E-03
  14  norm          5.5785        7.0238        .25293E-05   -.12019E-03
  15  norm          .10192E-03    42.943       -.12483E-05** at limit **
  16  Normalizat    .88369        .18563       -.44631E-06   -.11353E-03
  17  Prefactor     1.0272        .15202        .24762E-07   -.13473E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 93.7542
  norm       = 0.000100007
  norm       = 0.000100722
  Prefactor  = 0.000100005
  Prefactor  = 7.97102
  norm       = 2.79318
  norm       = 0.434745
  Prefactor  = 9.72948
  Prefactor  = 0.0001
  Prefactor  = 48.692
  norm       = 0.258858
  Prefactor  = 11.5692
  norm       = 5.57849
  norm       = 0.000101923
  Normalizat = 0.883689
  Prefactor  = 1.02722
 **********
 **   18 **HESSE 
 **********

 FCN=   5840.625     FROM HESSE     STATUS=OK           239 CALLS     2169 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.9330        .16547E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     93.754        84.861        .41509E-04   -1.3768    
   3  norm          .10001E-03    78.498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10072E-03    162.35        .63601E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    77.328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.9710        11.879        .14202E-03   -1.5143    
   7  norm          2.7932        1.4112        .61250E-04   -1.5374    
   8  norm          .43475        .48307        .56660E-03   -1.5576    
   9  Prefactor     9.7295        9.9192        .12849E-03   -1.5084    
  10  Prefactor     .10000E-03    6.7442        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     48.692        38.037        .57462E-04   -1.4311    
  12  norm          .25886        .36482        .59410E-03   -1.5606    
  13  Prefactor     11.569        9.8210        .11777E-03   -1.5028    
  14  norm          5.5785        7.1408        .85025E-03   -1.5236    
  15  norm          .10192E-03    42.113        .15306       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .88369        .21659        .26233E-03   -.97036    
  17  Prefactor     1.0272        .17823        .20845E-03   -.91828    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.54947e-09
Minuit parameter uncertainties:
  1  5.23422e-07
  2  84.9709
  3  0.00147135
  4  0.0217089
  5  0.00118277
  6  11.8828
  7  1.41121
  8  0.48307
  9  9.92086
  10  6.44342e-06
  11  38.0562
  12  0.364827
  13  9.82238
  14  7.14191
  15  0.0180097
  16  0.216807
  17  0.178328
Done.

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

Extracting fit parameters...

4FGL J0840.8+1317
   Spectrum: PowerLaw
297    Prefactor:  4.869e+01  3.806e+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.027e+00  1.783e-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.837e-01  2.168e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.20
Ra Dec: 130.222 13.287
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 5.83e-08 +/- 4.56e-08
Energy Flux (Fixed Index): 1.70e-05 +/- 1.33e-05

TS (Fixed Index): 2.20
Ra Dec: 130.222 13.287
Photon Flux Upper Limit: 1.49e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.16e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/607313/likelihoodResults_259804801_260064001_4FGL_J0840.8+1317_daily_bin79.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) = 5839.57401488
delta logL = 1.0510777197

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5839.55649257
delta logL = 1.068600035

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.703       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6694       1.0000          .0000       10.000    
     3 'Normalizat'    .81478       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0684       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=   5839.556     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      285 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.707        42.412        .10820E-03    .31878E-03
   2  Index         3.6695        1.7834        .43792E-02    .18661E-03
   3  Normalizat    .81476        .21812        .27189E-03   -.84882E-05
   4  Prefactor     1.0684        .18279        .20478E-03    .41638E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.7072
  Index      = 3.66946
  Normalizat = 0.814762
  Prefactor  = 1.06838
 **********
 **   18 **HESSE 
 **********

 FCN=   5839.556     FROM HESSE     STATUS=OK            25 CALLS      310 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.707        22.845        .43281E-05   -1.4967    
   2  Index         3.6695        .97458        .17517E-03   -.26935    
   3  Normalizat    .81476        .21684        .10876E-04   -.99523    
   4  Prefactor     1.0684        .18088        .81911E-05   -.90484    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.80474e-10
Minuit parameter uncertainties:
  1  22.8591
  2  0.981346
  3  0.217075
  4  0.180986
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/607313': 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) = 5839.55649233
delta logL = 1.0686002691

Extracting fit parameters...

4FGL J0840.8+1317
   Spectrum: PowerLaw
297    Prefactor:  1.371e+01  2.286e+01  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  3.669e+00  9.813e-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.068e+00  1.810e-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.148e-01  2.171e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.55
Ra Dec: 130.222 13.287
Photon Index (Free Index): 3.67 +/- 0.98
Photon Flux (Free Index): 1.06e-07 +/- 6.20e-08
Energy Flux (Free Index): 1.69e-05 +/- 9.92e-06

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/607313/cmap_HighResolution_259804801_260064001_4FGL_J0840.8+1317_daily_bin79.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.16e-02', comment='SUCCESS', photon_flux='5.83e-08', energy_flux2='1.69e-05', photon_flux_error='4.56e-08', dlogl='1.07e+00', energy_flux='1.70e-05', photon_flux2='1.06e-07', job_status='DONE', time_completed='2021-08-30 03:20:43.966552', photon_index_error2='0.98', photon_index2='3.67', ts='2.20', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.49e-07', energy_flux_error2='9.92e-06', EG='0.88', time_epoch_completed='1630318843.97', return_code='0', job_id='607313', GAL2='1.07', EG2='0.81', return_code2='0', energy_flux_error='1.33e-05', photon_flux_error2='6.20e-08', ts2='4.55', photon_index='2.49' WHERE bin_id='79' AND source_name='4FGL J0840.8+1317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:20:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 607313: <4FGL_J0840.8+1317_daily_bin79> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0840.8+1317_daily_bin79 130.222 13.2871 259804801 260064001 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 :                                   644.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             249.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   856 sec.
    Turnaround time :                            860 sec.

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

