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


Performing analysis on: 4FGL_J0840.8+1317_daily_bin1131
RA = 130.222, Dec = 13.2871
tmin = 532483201, tmax = 532742401
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='612642', job_status='RUN', time_executed='2021-08-30 03:25:50.212011', time_epoch_executed='1630319150.21' WHERE source_name='4FGL J0840.8+1317' and cadence='daily' and bin_id='1131'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/612642

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/612642/ft1_4FGL_J0840.8+1317_daily_bin1131.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/612642/ft2_4FGL_J0840.8+1317_daily_bin1131.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/612642/ft1_4FGL_J0840.8+1317_daily_bin1131.fits outfile=/scratch/kocevski/612642/ft1_filteredMKT_4FGL_J0840.8+1317_daily_bin1131.fits ra=130.222 dec=13.2871 rad=12.0 tmin=532483201.0 tmax=532742401.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 7.96
user 3.26
sys 4.59

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/612642/ft2_4FGL_J0840.8+1317_daily_bin1131.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/612642/ft1_filteredMKT_4FGL_J0840.8+1317_daily_bin1131.fits evtable="EVENTS" outfile="/scratch/kocevski/612642/ft1_filtered_4FGL_J0840.8+1317_daily_bin1131.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 5.03
user 0.34
sys 4.56

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/612642/ft1_filtered_4FGL_J0840.8+1317_daily_bin1131.fits" evtable="EVENTS" scfile=/scratch/kocevski/612642/ft2_4FGL_J0840.8+1317_daily_bin1131.fits sctable="SC_DATA" outfile=/scratch/kocevski/612642/ltcube_532483201_532742401_4FGL_J0840.8+1317_daily_bin1131.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/612642/ft2_4FGL_J0840.8+1317_daily_bin1131.fits
.....................!
real 17.14
user 11.84
sys 5.24

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/612642/ft1_filtered_4FGL_J0840.8+1317_daily_bin1131.fits evtable="EVENTS" scfile=/scratch/kocevski/612642/ft2_4FGL_J0840.8+1317_daily_bin1131.fits sctable="SC_DATA" expcube=/scratch/kocevski/612642/ltcube_532483201_532742401_4FGL_J0840.8+1317_daily_bin1131.fits outfile=/scratch/kocevski/612642/expmap_532483201_532742401_4FGL_J0840.8+1317_daily_bin1131.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/612642/ltcube_532483201_532742401_4FGL_J0840.8+1317_daily_bin1131.fits
.....................!
real 198.31
user 186.56
sys 10.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/612642/ft1_filtered_4FGL_J0840.8+1317_daily_bin1131.fits scfile=/scratch/kocevski/612642/ft2_4FGL_J0840.8+1317_daily_bin1131.fits outfile=/scratch/kocevski/612642/cmap_532483201_532742401_4FGL_J0840.8+1317_daily_bin1131.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 5.06
user 0.40
sys 4.38

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/612642/ft1_filtered_4FGL_J0840.8+1317_daily_bin1131.fits scfile=/scratch/kocevski/612642/ft2_4FGL_J0840.8+1317_daily_bin1131.fits outfile=/scratch/kocevski/612642/cmap_HighResolution_532483201_532742401_4FGL_J0840.8+1317_daily_bin1131.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.86
user 0.38
sys 4.40

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.761       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .34876E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    70.611       1.0000         .10000E-03   10000.    
     4 'norm      '    .10256E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12998E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.1407       1.0000         .10000E-03   10000.    
     7 'norm      '    .95749       1.0000         .10000E-03   10000.    
     8 'norm      '    .73276       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .59465       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.3072       1.0000         .10000E-03   10000.    
    12 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10222E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.3129       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .87853       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=   7405.259     FROM MIGRAD    STATUS=CONVERGED    354 CALLS     1633 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.755        9.7368        .22530E-06    .62928E-04
   2  Prefactor     .10000E-03    259.87        .91258E-06** at limit **
   3  norm          70.542        98.464       -.59551E-05   -.14052E-03
   4  norm          .10000E-03    9.3651        .68712E-07** at limit **
   5  Prefactor     .10000E-03    73.100        .57320E-06** at limit **
   6  Prefactor     3.1457        11.073        .12760E-05    .35509E-04
   7  norm          .95834        1.2556        .18302E-06    .10005E-03
   8  norm          .73276        .66490        .53416E-07    .34316E-04
   9  Prefactor     .10000E-03    3.5521       -.63674E-07** at limit **
  10  Prefactor     .58914        7.1343        .48646E-05   -.10535E-03
  11  Prefactor     8.2783        35.644       -.49597E-06   -.29294E-04
  12  norm          .10000E-03    .34830       -.11483E-07** at limit **
  13  Prefactor     .10000E-03    9.1008        .49256E-07** at limit **
  14  norm          .10000E-03    3.6267        .38624E-07** at limit **
  15  norm          .10000E-03    12.713        .10510E-07** at limit **
  16  Normalizat    1.3130        .17062       -.11115E-05   -.97929E-04
  17  Prefactor     .87847        .13720        .43436E-06   -.20375E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.7553
  Prefactor  = 0.0001
  norm       = 70.5418
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.14568
  norm       = 0.958342
  norm       = 0.732759
  Prefactor  = 0.0001
  Prefactor  = 0.589138
  Prefactor  = 8.27826
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.31295
  Prefactor  = 0.878473
 **********
 **   18 **HESSE 
 **********

 FCN=   7405.259     FROM HESSE     STATUS=OK           223 CALLS     1856 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.755        9.7441        .11681E-03   -1.5022    
   2  Prefactor     .10000E-03    262.53        .19659E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          70.542        103.53        .23886E-03   -1.4026    
   4  norm          .10000E-03    9.3968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    74.630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.1457        11.068        .22874E-03   -1.5353    
   7  norm          .95834        1.1587        .10600E-02   -1.5512    
   8  norm          .73276        .65160        .64502E-04   -1.5537    
   9  Prefactor     .10000E-03    3.5731        .15833E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .58914        7.3843        .44502E-03   -1.5554    
  11  Prefactor     8.2783        35.830        .13909E-03   -1.5132    
  12  norm          .10000E-03    .69889        .97839E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.1592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.6520        .16004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    12.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.3130        .19894        .23943E-03   -.83181    
  17  Prefactor     .87847        .16111        .23529E-03   -.96897    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.85268e-10
Minuit parameter uncertainties:
  1  9.74537
  2  0.00033956
  3  103.796
  4  2.67359e-06
  5  2.74945e-05
  6  11.0751
  7  1.15869
  8  0.651611
  9  5.35139e-06
  10  4.17179
  11  34.4796
  12  2.14313e-06
  13  3.36164e-06
  14  5.00099e-07
  15  9.59278e-07
  16  0.199052
  17  0.161201
Done.

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

Extracting fit parameters...

4FGL J0840.8+1317
   Spectrum: PowerLaw
297    Prefactor:  8.278e+00  3.448e+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:  8.785e-01  1.612e-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.313e+00  1.991e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/612642/likelihoodResults_532483201_532742401_4FGL_J0840.8+1317_daily_bin1131.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) = 7403.98008625
delta logL = 1.27939784927

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7403.71587984
delta logL = 1.54360426522

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    9.7964       1.0000          .0000       10.000    
     3 'Normalizat'    1.2148       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93765       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=   7403.716     FROM MIGRAD    STATUS=CONVERGED    289 CALLS      663 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .88004E-04    .20792E-03** at limit **
   2  Index         9.7964        .67523        .46865       -.14195E-03
   3  Normalizat    1.2148        .20108        .23883E-02    .51429E-04
   4  Prefactor     .93761        .16329        .23533E-02    .55083E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 9.79643
  Normalizat = 1.2148
  Prefactor  = 0.937609
 **********
 **   18 **HESSE 
 **********

 FCN=   7403.716     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      700 TOTAL
                     EDM=   .34E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .13651E-01    .16926E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.7964        9.7080        .33051E-01    1.2845    
   3  Normalizat    1.2148        .99791E-01    .95532E-04   -.86147    
   4  Prefactor     .93761        .81995E-01    .94131E-04   -.94839    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.43525e-06
Minuit parameter uncertainties:
  1  2.10663e-08
  2  4.58665
  3  0.0998065
  4  0.0820063
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/612642': 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): 102
logL (Free Index) = 7403.71586564
delta logL = 1.54361846126

Extracting fit parameters...

4FGL J0840.8+1317
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  2.107e-08  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  9.796e+00  4.587e+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:  9.376e-01  8.201e-02  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.215e+00  9.981e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.37
Ra Dec: 130.222 13.287
Photon Index (Free Index): 9.80 +/- 4.59
Photon Flux (Free Index): 8.23e-08 +/- 7.20e-07
Energy Flux (Free Index): 9.23e-06 +/- 8.06e-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/612642/cmap_HighResolution_532483201_532742401_4FGL_J0840.8+1317_daily_bin1131.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.05e-03', comment='SUCCESS', energy_flux2='9.23e-06', dlogl='1.54e+00', photon_flux2='8.23e-08', job_status='DONE', time_completed='2021-08-30 03:37:31.058218', photon_index_error2='4.59', photon_index2='9.80', ts='0.06', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='1.04e-07', energy_flux_error2='8.06e-05', EG='1.31', time_epoch_completed='1630319851.06', return_code='0', job_id='612642', GAL2='0.94', EG2='1.21', return_code2='102', photon_flux_error2='7.20e-07', ts2='3.37', photon_index='2.49' WHERE bin_id='1131' AND source_name='4FGL J0840.8+1317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:37:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 612642: <4FGL_J0840.8+1317_daily_bin1131> in cluster <slac> Done

Job <4FGL_J0840.8+1317_daily_bin1131> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Aug 30 03:21:29 2021
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 03:21: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:21:30 2021
Terminated at Mon Aug 30 03:37:32 2021
Results reported at Mon Aug 30 03:37:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0840.8+1317_daily_bin1131 130.222 13.2871 532483201 532742401 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 :                                   739.41 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             207.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   961 sec.
    Turnaround time :                            963 sec.

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

