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


Performing analysis on: 4FGL_J0840.8+1317_daily_bin36
RA = 130.222, Dec = 13.2871
tmin = 248659201, tmax = 248918401
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='607250', job_status='RUN', time_executed='2021-08-30 03:09:43.529493', time_epoch_executed='1630318183.53' WHERE source_name='4FGL J0840.8+1317' and cadence='daily' and bin_id='36'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/607250

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/607250/ft1_4FGL_J0840.8+1317_daily_bin36.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/607250/ft2_4FGL_J0840.8+1317_daily_bin36.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/607250/ft1_4FGL_J0840.8+1317_daily_bin36.fits outfile=/scratch/kocevski/607250/ft1_filteredMKT_4FGL_J0840.8+1317_daily_bin36.fits ra=130.222 dec=13.2871 rad=12.0 tmin=248659201.0 tmax=248918401.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 2.46
user 1.23
sys 0.45

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/607250/ft1_filtered_4FGL_J0840.8+1317_daily_bin36.fits" evtable="EVENTS" scfile=/scratch/kocevski/607250/ft2_4FGL_J0840.8+1317_daily_bin36.fits sctable="SC_DATA" outfile=/scratch/kocevski/607250/ltcube_248659201_248918401_4FGL_J0840.8+1317_daily_bin36.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/607250/ft2_4FGL_J0840.8+1317_daily_bin36.fits
.....................!
real 13.56
user 12.12
sys 0.69

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/607250/ft1_filtered_4FGL_J0840.8+1317_daily_bin36.fits evtable="EVENTS" scfile=/scratch/kocevski/607250/ft2_4FGL_J0840.8+1317_daily_bin36.fits sctable="SC_DATA" expcube=/scratch/kocevski/607250/ltcube_248659201_248918401_4FGL_J0840.8+1317_daily_bin36.fits outfile=/scratch/kocevski/607250/expmap_248659201_248918401_4FGL_J0840.8+1317_daily_bin36.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/607250/ltcube_248659201_248918401_4FGL_J0840.8+1317_daily_bin36.fits
.....................!
real 193.73
user 185.26
sys 4.77

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/607250/ft1_filtered_4FGL_J0840.8+1317_daily_bin36.fits scfile=/scratch/kocevski/607250/ft2_4FGL_J0840.8+1317_daily_bin36.fits outfile=/scratch/kocevski/607250/cmap_248659201_248918401_4FGL_J0840.8+1317_daily_bin36.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.80
user 0.35
sys 0.45

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/607250/ft1_filtered_4FGL_J0840.8+1317_daily_bin36.fits scfile=/scratch/kocevski/607250/ft2_4FGL_J0840.8+1317_daily_bin36.fits outfile=/scratch/kocevski/607250/cmap_HighResolution_248659201_248918401_4FGL_J0840.8+1317_daily_bin36.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.87
user 0.37
sys 0.43

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.6932       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.3725       1.0000         .10000E-03   10000.    
     3 'norm      '    4.1398       1.0000         .10000E-03   10000.    
     4 'norm      '    3.1611       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .65309       1.0000         .10000E-03   10000.    
     8 'norm      '    1.1999       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.6102       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.2172       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.2806       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.5575       1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    133.60       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.2981       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.1314       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=   9484.576     FROM MIGRAD    STATUS=CONVERGED    315 CALLS     1399 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.6934        7.0544       -.31586E-07   -.21079E-04
   2  Prefactor     5.3536        304.65       -.43894E-06   -.11136E-04
   3  norm          4.0689        289.05       -.92115E-05   -.50905E-04
   4  norm          3.1597        19.346        .15514E-04   -.12126E-03
   5  Prefactor     .10000E-03    26.064       -.47015E-06** at limit **
   6  Prefactor     .10000E-03    10.737        .29008E-06** at limit **
   7  norm          .65204        1.0946        .37494E-06    .63401E-03
   8  norm          1.1999        .87727        .68455E-07   -.15755E-03
   9  Prefactor     8.6136        10.289        .12385E-07   -.11081E-03
  10  Prefactor     9.2166        7.3991        .24967E-06   -.57814E-05
  11  Prefactor     4.2808        15.371        .62777E-06   -.77978E-06
  12  norm          .10000E-03    .29434       -.98863E-07** at limit **
  13  Prefactor     1.5658        18.757        .18596E-05   -.34358E-05
  14  norm          .10000E-03    4.1571        .14112E-06** at limit **
  15  norm          133.54        58.632       -.78696E-06   -.33907E-03
  16  Normalizat    1.2980        .16741       -.15760E-05    .44483E-05
  17  Prefactor     1.1315        .13680        .33469E-06   -.17257E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.69339
  Prefactor  = 5.35361
  norm       = 4.06886
  norm       = 3.15975
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.652045
  norm       = 1.19993
  Prefactor  = 8.61358
  Prefactor  = 9.2166
  Prefactor  = 4.28076
  norm       = 0.0001
  Prefactor  = 1.56584
  norm       = 0.0001
  norm       = 133.542
  Normalizat = 1.29802
  Prefactor  = 1.13147
 **********
 **   18 **HESSE 
 **********

 FCN=   9484.576     FROM HESSE     STATUS=OK           233 CALLS     1632 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.6934        7.0538        .14458E-03   -1.5153    
   2  Prefactor     5.3536        306.74        .17338E-03   -1.5245    
   3  norm          4.0689        296.53        .19811E-03   -1.5305    
   4  norm          3.1597        19.178        .11398E-02   -1.5352    
   5  Prefactor     .10000E-03    26.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .65204        .94695        .12132E-02   -1.5546    
   8  norm          1.1999        .85801        .74567E-04   -1.5489    
   9  Prefactor     8.6136        9.9952        .13661E-03   -1.5121    
  10  Prefactor     9.2166        7.3938        .13201E-03   -1.5101    
  11  Prefactor     4.2808        15.357        .19473E-03   -1.5294    
  12  norm          .10000E-03    .52133        .10008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.5658        18.270        .34106E-03   -1.5458    
  14  norm          .10000E-03    4.1995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          133.54        58.522        .17420E-03   -1.3392    
  16  Normalizat    1.2980        .19834        .26880E-03   -.83626    
  17  Prefactor     1.1315        .16291        .23964E-03   -.88467    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01953e-09
Minuit parameter uncertainties:
  1  7.05457
  2  81.4895
  3  69.8327
  4  15.5761
  5  0.000169262
  6  2.25917e-07
  7  0.946976
  8  0.858015
  9  9.99715
  10  7.39453
  11  15.3714
  12  8.17128e-06
  13  10.7012
  14  7.33566e-07
  15  58.547
  16  0.198456
  17  0.162984
Done.

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

Extracting fit parameters...

4FGL J0840.8+1317
   Spectrum: PowerLaw
297    Prefactor:  4.281e+00  1.537e+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.131e+00  1.630e-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.298e+00  1.985e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.09
Ra Dec: 130.222 13.287
Photon Flux Upper Limit: 6.26e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.87e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/607250/likelihoodResults_248659201_248918401_4FGL_J0840.8+1317_daily_bin36.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) = 9484.57456253
delta logL = 0.00136887782901

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9484.57445044
delta logL = 0.00148097620877

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0923       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6063       1.0000          .0000       10.000    
     3 'Normalizat'    1.2971       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1318       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=   9484.574     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      279 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0904        15.709        .19929E-03   -.10998E-03
   2  Index         2.6068        2.0707        .12331E-01   -.10918E-04
   3  Normalizat    1.2973        .19131        .26887E-03   -.53749E-03
   4  Prefactor     1.1318        .16081        .23961E-03   -.57519E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.09039
  Index      = 2.60678
  Normalizat = 1.29726
  Prefactor  = 1.13182
 **********
 **   18 **HESSE 
 **********

 FCN=   9484.574     FROM HESSE     STATUS=OK            25 CALLS      304 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0904        15.269        .79717E-05   -1.5303    
   2  Index         2.6068        2.0173        .49323E-03   -.49911    
   3  Normalizat    1.2973        .19144        .53774E-04   -.83648    
   4  Prefactor     1.1318        .16091        .47922E-04   -.88456    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.74603e-10
Minuit parameter uncertainties:
  1  15.2833
  2  2.09598
  3  0.19154
  4  0.160978
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/607250': 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) = 9484.57444931
delta logL = 0.00148210627412

Extracting fit parameters...

4FGL J0840.8+1317
   Spectrum: PowerLaw
297    Prefactor:  4.090e+00  1.528e+01  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.607e+00  2.096e+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:  1.132e+00  1.610e-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.297e+00  1.915e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
Ra Dec: 130.222 13.287

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/607250/cmap_HighResolution_248659201_248918401_4FGL_J0840.8+1317_daily_bin36.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.87e-03', job_status='DONE', photon_flux_upper_limit='6.26e-08', time_completed='2021-08-30 03:20:13.167454', job_id='607250', GAL2='1.13', fit_tolerance='1e-08', EG2='1.30', EG='1.30', time_epoch_completed='1630318813.17', return_code2='0', ts='0.09', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='1.48e-03', ts2='0.10', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='36' AND source_name='4FGL J0840.8+1317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:20:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0150>
Subject: Job 607250: <4FGL_J0840.8+1317_daily_bin36> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0840.8+1317_daily_bin36 130.222 13.2871 248659201 248918401 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 :                                   624.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            832 sec.

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

