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


Performing analysis on: 4FGL_J0840.8+1317_daily_bin1600
RA = 130.222, Dec = 13.2871
tmin = 654048001, tmax = 654307201
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='257676', job_status='RUN', time_executed='2021-09-26 00:17:44.268481', time_epoch_executed='1632640664.27' WHERE source_name='4FGL J0840.8+1317' and cadence='daily' and bin_id='1600'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/257676

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/257676/ft1_4FGL_J0840.8+1317_daily_bin1600.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/257676/ft2_4FGL_J0840.8+1317_daily_bin1600.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/257676/ft1_4FGL_J0840.8+1317_daily_bin1600.fits outfile=/scratch/kocevski/257676/ft1_filteredMKT_4FGL_J0840.8+1317_daily_bin1600.fits ra=130.222 dec=13.2871 rad=12.0 tmin=654048001.0 tmax=654307201.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.54
user 3.30
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/257676/ft2_4FGL_J0840.8+1317_daily_bin1600.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/257676/ft1_filteredMKT_4FGL_J0840.8+1317_daily_bin1600.fits evtable="EVENTS" outfile="/scratch/kocevski/257676/ft1_filtered_4FGL_J0840.8+1317_daily_bin1600.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/257676/ft1_filtered_4FGL_J0840.8+1317_daily_bin1600.fits" evtable="EVENTS" scfile=/scratch/kocevski/257676/ft2_4FGL_J0840.8+1317_daily_bin1600.fits sctable="SC_DATA" outfile=/scratch/kocevski/257676/ltcube_654048001_654307201_4FGL_J0840.8+1317_daily_bin1600.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/257676/ft2_4FGL_J0840.8+1317_daily_bin1600.fits
.....................!
real 12.18
user 11.82
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/257676/ft1_filtered_4FGL_J0840.8+1317_daily_bin1600.fits evtable="EVENTS" scfile=/scratch/kocevski/257676/ft2_4FGL_J0840.8+1317_daily_bin1600.fits sctable="SC_DATA" expcube=/scratch/kocevski/257676/ltcube_654048001_654307201_4FGL_J0840.8+1317_daily_bin1600.fits outfile=/scratch/kocevski/257676/expmap_654048001_654307201_4FGL_J0840.8+1317_daily_bin1600.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/257676/ltcube_654048001_654307201_4FGL_J0840.8+1317_daily_bin1600.fits
.....................!
real 190.56
user 184.82
sys 5.20

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/257676/ft1_filtered_4FGL_J0840.8+1317_daily_bin1600.fits scfile=/scratch/kocevski/257676/ft2_4FGL_J0840.8+1317_daily_bin1600.fits outfile=/scratch/kocevski/257676/cmap_654048001_654307201_4FGL_J0840.8+1317_daily_bin1600.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/257676/ft1_filtered_4FGL_J0840.8+1317_daily_bin1600.fits scfile=/scratch/kocevski/257676/ft2_4FGL_J0840.8+1317_daily_bin1600.fits outfile=/scratch/kocevski/257676/cmap_HighResolution_654048001_654307201_4FGL_J0840.8+1317_daily_bin1600.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.54
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.052       1.0000         .10000E-03   10000.    
     2 'Prefactor '    142.25       1.0000         .10000E-03   10000.    
     3 'norm      '    17.280       1.0000         .10000E-03   10000.    
     4 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    52.985       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.3833       1.0000         .10000E-03   10000.    
     7 'norm      '    4.5321       1.0000         .10000E-03   10000.    
     8 'norm      '    2.8873       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .47460E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.5634       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.8615       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.2401       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .61828       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=   5302.690     FROM MIGRAD    STATUS=CONVERGED    324 CALLS     1574 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.053        14.971        .26314E-06    .35624E-04
   2  Prefactor     142.25        126.10        .26397E-05    .71205E-05
   3  norm          17.259        52.779       -.46358E-04    .46446E-06
   4  norm          .10000E-03    6.8910        .21929E-05** at limit **
   5  Prefactor     52.996        38.733        .13643E-04    .63766E-04
   6  Prefactor     7.3668        21.010       -.33597E-04   -.42148E-04
   7  norm          4.5323        1.6289       -.12093E-06    .17355E-03
   8  norm          2.8875        1.3335       -.56798E-07    .13508E-03
   9  Prefactor     .10000E-03    13.363       -.15643E-05** at limit **
  10  Prefactor     .10002E-03    3.6391        .26931E-07** at limit **
  11  Prefactor     .10000E-03    6.8132       -.23365E-05** at limit **
  12  norm          1.5633        .71597       -.97087E-07    .63256E-04
  13  Prefactor     .10000E-03    3.3071       -.92280E-07** at limit **
  14  norm          3.8615        4.4997        .26954E-07    .67570E-04
  15  norm          .10000E-03    20.465        .17933E-05** at limit **
  16  Normalizat    1.2400        .19150        .29415E-05    .22741E-04
  17  Prefactor     .61833        .15171        .11187E-05    .17022E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.0527
  Prefactor  = 142.252
  norm       = 17.259
  norm       = 0.0001
  Prefactor  = 52.9958
  Prefactor  = 7.36679
  norm       = 4.53226
  norm       = 2.88747
  Prefactor  = 0.0001
  Prefactor  = 0.000100017
  Prefactor  = 0.0001
  norm       = 1.56328
  Prefactor  = 0.0001
  norm       = 3.86148
  norm       = 0.0001
  Normalizat = 1.24005
  Prefactor  = 0.61833
 **********
 **   18 **HESSE 
 **********

 FCN=   5302.690     FROM HESSE     STATUS=OK           227 CALLS     1801 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.053        14.970        .78485E-04   -1.4687    
   2  Prefactor     142.25        126.10        .16890E-03   -1.3317    
   3  norm          17.259        52.766        .96348E-04   -1.4877    
   4  norm          .10000E-03    6.8967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     52.996        38.781        .55101E-04   -1.4251    
   6  Prefactor     7.3668        21.137        .14760E-03   -1.5165    
   7  norm          4.5323        1.6277        .53596E-04   -1.5282    
   8  norm          2.8875        1.3325        .54637E-04   -1.5368    
   9  Prefactor     .10000E-03    13.754        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10002E-03    21.271        .26638E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.8135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.5633        .71302        .40073E-04   -1.5458    
  13  Prefactor     .10000E-03    3.3104        .12933E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.8615        4.4996        .16272E-03   -1.5315    
  15  norm          .10000E-03    20.483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.2400        .22505        .22512E-03   -.85374    
  17  Prefactor     .61833        .17814        .25223E-03   -1.0682    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.43213e-10
Minuit parameter uncertainties:
  1  14.9718
  2  126.338
  3  52.9094
  4  2.07513e-05
  5  38.7992
  6  21.1584
  7  1.62775
  8  1.33253
  9  7.37559e-05
  10  0.00119672
  11  8.57561e-06
  12  0.71302
  13  4.933e-06
  14  4.49998
  15  2.07154e-05
  16  0.225222
  17  0.178301
Done.

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

Extracting fit parameters...

4FGL J0840.8+1317
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  8.576e-06  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:  6.183e-01  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:  1.240e+00  2.252e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/257676/likelihoodResults_654048001_654307201_4FGL_J0840.8+1317_daily_bin1600.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): 102
logL (Free Index) = 5302.69035958
delta logL = -0.000692291955602

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5302.68966719
delta logL = 9.53268681769e-08

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     '    2.4761       1.0000          .0000       10.000    
     3 'Normalizat'    1.2400       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61833       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=   5302.690     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      258 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    36.358        .18142E-01** at limit **
   2  Index         1.8703        5.9057        .50000        .41503E-06
   3  Normalizat    1.2401        .94144E-02    .22512E-03   -.95255E-04
   4  Prefactor     .61833        .77384E-02    .25223E-03   -.88883E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.87034
  Normalizat = 1.24005
  Prefactor  = 0.618328
 **********
 **   18 **HESSE 
 **********

 FCN=   5302.690     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      287 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    302.74        .21236E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8703        5.5857        .50000       -.67633    
   3  Normalizat    1.2401        .28212E-01    .45024E-04   -.85374    
   4  Prefactor     .61833        .23189E-01    .10089E-04   -1.0682    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.04935e-08
Minuit parameter uncertainties:
  1  0.000217752
  2  1076.96
  3  0.028212
  4  0.0231894
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/257676': 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) = 5302.68966556
delta logL = 1.73058106157e-06

Extracting fit parameters...

4FGL J0840.8+1317
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  2.178e-04  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  1.870e+00  1.077e+03  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:  6.183e-01  2.319e-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.240e+00  2.821e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 130.222 13.287

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/257676/cmap_HighResolution_654048001_654307201_4FGL_J0840.8+1317_daily_bin1600.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.52e-03', job_status='DONE', photon_flux_upper_limit='4.53e-08', time_completed='2021-09-26 00:25:59.887589', job_id='257676', GAL2='0.62', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1632641159.89', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.62', dlogl='1.73e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1600' AND source_name='4FGL J0840.8+1317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 00:25:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0182>
Subject: Job 257676: <4FGL_J0840.8+1317_daily_bin1600> in cluster <slac> Done

Job <4FGL_J0840.8+1317_daily_bin1600> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep 26 00:15:13 2021
Job was executed on host(s) <bullet0182>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 00:15:18 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 00:15:18 2021
Terminated at Sun Sep 26 00:26:00 2021
Results reported at Sun Sep 26 00:26:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0840.8+1317_daily_bin1600 130.222 13.2871 654048001 654307201 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 :                                   498.04 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             307.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   642 sec.
    Turnaround time :                            647 sec.

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

