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


Performing analysis on: 4FGL_J0840.8+1317_daily_bin7
RA = 130.222, Dec = 13.2871
tmin = 241142401, tmax = 241401601
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='607208', job_status='RUN', time_executed='2021-08-30 03:07:35.409658', time_epoch_executed='1630318055.41' WHERE source_name='4FGL J0840.8+1317' and cadence='daily' and bin_id='7'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/607208

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/607208/ft1_4FGL_J0840.8+1317_daily_bin7.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/607208/ft2_4FGL_J0840.8+1317_daily_bin7.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/607208/ft1_4FGL_J0840.8+1317_daily_bin7.fits outfile=/scratch/kocevski/607208/ft1_filteredMKT_4FGL_J0840.8+1317_daily_bin7.fits ra=130.222 dec=13.2871 rad=12.0 tmin=241142401.0 tmax=241401601.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.56
user 1.29
sys 1.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/607208/ft2_4FGL_J0840.8+1317_daily_bin7.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/607208/ft1_filteredMKT_4FGL_J0840.8+1317_daily_bin7.fits evtable="EVENTS" outfile="/scratch/kocevski/607208/ft1_filtered_4FGL_J0840.8+1317_daily_bin7.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.66
user 0.33
sys 1.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/607208/ft1_filtered_4FGL_J0840.8+1317_daily_bin7.fits" evtable="EVENTS" scfile=/scratch/kocevski/607208/ft2_4FGL_J0840.8+1317_daily_bin7.fits sctable="SC_DATA" outfile=/scratch/kocevski/607208/ltcube_241142401_241401601_4FGL_J0840.8+1317_daily_bin7.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/607208/ft2_4FGL_J0840.8+1317_daily_bin7.fits
.....................!
real 13.87
user 12.40
sys 1.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/607208/ft1_filtered_4FGL_J0840.8+1317_daily_bin7.fits evtable="EVENTS" scfile=/scratch/kocevski/607208/ft2_4FGL_J0840.8+1317_daily_bin7.fits sctable="SC_DATA" expcube=/scratch/kocevski/607208/ltcube_241142401_241401601_4FGL_J0840.8+1317_daily_bin7.fits outfile=/scratch/kocevski/607208/expmap_241142401_241401601_4FGL_J0840.8+1317_daily_bin7.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/607208/ltcube_241142401_241401601_4FGL_J0840.8+1317_daily_bin7.fits
.....................!
real 194.31
user 186.90
sys 6.49

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/607208/ft1_filtered_4FGL_J0840.8+1317_daily_bin7.fits scfile=/scratch/kocevski/607208/ft2_4FGL_J0840.8+1317_daily_bin7.fits outfile=/scratch/kocevski/607208/cmap_241142401_241401601_4FGL_J0840.8+1317_daily_bin7.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 1.56
user 0.35
sys 1.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/607208/ft1_filtered_4FGL_J0840.8+1317_daily_bin7.fits scfile=/scratch/kocevski/607208/ft2_4FGL_J0840.8+1317_daily_bin7.fits outfile=/scratch/kocevski/607208/cmap_HighResolution_241142401_241401601_4FGL_J0840.8+1317_daily_bin7.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 1.55
user 0.38
sys 1.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17248E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    98.631       1.0000         .10000E-03   10000.    
     3 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.8103       1.0000         .10000E-03   10000.    
     5 'Prefactor '    42.154       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.8699       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.9112       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.8257       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.7228       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    10.524       1.0000         .10000E-03   10000.    
    15 'norm      '    33.739       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .93395       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.1532       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=   6184.711     FROM MIGRAD    STATUS=CONVERGED    326 CALLS     1602 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10007E-03    14.399        .48086E-05** at limit **
   2  Prefactor     98.605        116.82        .11319E-05   -.23308E-04
   3  norm          .10000E-03    111.54        .21002E-07** at limit **
   4  norm          5.8108        32.575       -.90462E-07    .72705E-05
   5  Prefactor     42.153        41.630        .83199E-06    .71319E-04
   6  Prefactor     .10000E-03    4.4481       -.11500E-06** at limit **
   7  norm          .10000E-03    .56902        .11015E-05** at limit **
   8  norm          1.8699        1.2106        .21987E-07   -.85753E-04
   9  Prefactor     7.9114        9.0537       -.63435E-06    .86540E-04
  10  Prefactor     1.8257        4.9467        .45981E-05   -.61612E-03
  11  Prefactor     .10000E-03    8.9220       -.39781E-07** at limit **
  12  norm          1.7228        .76355        .19125E-07    .58057E-03
  13  Prefactor     .10000E-03    4.5098       -.55513E-07** at limit **
  14  norm          10.524        9.6985       -.25282E-07   -.49806E-04
  15  norm          33.735        36.068       -.13379E-07   -.28044E-04
  16  Normalizat    .93395        .19910       -.22015E-05   -.61068E-06
  17  Prefactor     1.1532        .16525        .15359E-05    .31474E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100071
  Prefactor  = 98.6049
  norm       = 0.000100001
  norm       = 5.81079
  Prefactor  = 42.1525
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 1.86987
  Prefactor  = 7.91143
  Prefactor  = 1.82566
  Prefactor  = 0.0001
  norm       = 1.72282
  Prefactor  = 0.0001
  norm       = 10.5237
  norm       = 33.7347
  Normalizat = 0.933946
  Prefactor  = 1.1532
 **********
 **   18 **HESSE 
 **********

 FCN=   6184.711     FROM HESSE     STATUS=OK           223 CALLS     1825 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10007E-03    78.595        .50070E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     98.605        116.62        .20239E-03   -1.3719    
   3  norm          .10000E-03    111.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.8108        32.220        .16662E-03   -1.5226    
   5  Prefactor     42.153        41.472        .61743E-04   -1.4409    
   6  Prefactor     .10000E-03    4.4557        .16199E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .66814        .12279E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.8699        1.2023        .66059E-04   -1.5434    
   9  Prefactor     7.9114        9.0800        .14256E-03   -1.5145    
  10  Prefactor     1.8257        5.2410        .14723E-02   -1.5438    
  11  Prefactor     .10000E-03    8.9262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.7228        .76387        .43919E-04   -1.5445    
  13  Prefactor     .10000E-03    4.5194        .16309E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          10.524        9.7028        .12351E-03   -1.5059    
  15  norm          33.735        36.067        .68988E-04   -1.4546    
  16  Normalizat    .93395        .22814        .27905E-03   -.95277    
  17  Prefactor     1.1532        .19162        .21813E-03   -.87784    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.07362e-09
Minuit parameter uncertainties:
  1  0.00474618
  2  116.897
  3  0.000549387
  4  27.3885
  5  41.5006
  6  2.25678e-05
  7  6.24613e-05
  8  1.20229
  9  9.08162
  10  5.24227
  11  1.23241e-05
  12  0.763874
  13  1.26393e-05
  14  9.70421
  15  36.09
  16  0.228375
  17  0.191737
Done.

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

Extracting fit parameters...

4FGL J0840.8+1317
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  1.232e-05  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.153e+00  1.917e-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:  9.339e-01  2.284e-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: 5.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/607208/likelihoodResults_241142401_241401601_4FGL_J0840.8+1317_daily_bin7.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) = 6184.71103896
delta logL = -0.000532913021743

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6184.71050603
delta logL = 1.60744093591e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4808       1.0000          .0000       10.000    
     3 'Normalizat'    .93394       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1532       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=   6184.711     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      249 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    61.705        .18142E-01** at limit **
   2  Index         1.9400        5.8957        .50000        .82287E-07
   3  Normalizat    .93395        .11377E-01    .27905E-03    .51822E-04
   4  Prefactor     1.1532        .98194E-02    .21813E-03    .70830E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.94002
  Normalizat = 0.93395
  Prefactor  = 1.1532
 **********
 **   18 **HESSE 
 **********

 FCN=   6184.711     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      278 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    484.17        .25071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9400        8.5080        .50000       -.65858    
   3  Normalizat    .93395        .33615E-01    .11162E-04   -.95277    
   4  Prefactor     1.1532        .29012E-01    .43626E-04   -.87784    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.7729e-10
Minuit parameter uncertainties:
  1  0.000304755
  2  1484.53
  3  0.0336155
  4  0.0290125
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/607208': 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) = 6184.71050514
delta logL = 9.10657036002e-07

Extracting fit parameters...

4FGL J0840.8+1317
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  3.048e-04  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  1.940e+00  1.485e+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:  1.153e+00  2.901e-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:  9.340e-01  3.362e-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/607208/cmap_HighResolution_241142401_241401601_4FGL_J0840.8+1317_daily_bin7.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.26e-03', job_status='DONE', photon_flux_upper_limit='5.48e-08', time_completed='2021-08-30 03:16:32.958164', job_id='607208', GAL2='1.15', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1630318592.96', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='9.11e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='7' AND source_name='4FGL J0840.8+1317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:16:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0141>
Subject: Job 607208: <4FGL_J0840.8+1317_daily_bin7> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0840.8+1317_daily_bin7 130.222 13.2871 241142401 241401601 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 :                                   546.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             282.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   612 sec.
    Turnaround time :                            614 sec.

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

