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


Performing analysis on: 4FGL_J0840.8+1317_daily_bin491
RA = 130.222, Dec = 13.2871
tmin = 366595201, tmax = 366854401
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='610292', job_status='RUN', time_executed='2021-08-30 03:16:00.807528', time_epoch_executed='1630318560.81' WHERE source_name='4FGL J0840.8+1317' and cadence='daily' and bin_id='491'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/610292

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/610292/ft1_4FGL_J0840.8+1317_daily_bin491.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/610292/ft2_4FGL_J0840.8+1317_daily_bin491.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/610292/ft1_4FGL_J0840.8+1317_daily_bin491.fits outfile=/scratch/kocevski/610292/ft1_filteredMKT_4FGL_J0840.8+1317_daily_bin491.fits ra=130.222 dec=13.2871 rad=12.0 tmin=366595201.0 tmax=366854401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 6.29
user 4.92
sys 0.46

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/610292/ft1_filtered_4FGL_J0840.8+1317_daily_bin491.fits" evtable="EVENTS" scfile=/scratch/kocevski/610292/ft2_4FGL_J0840.8+1317_daily_bin491.fits sctable="SC_DATA" outfile=/scratch/kocevski/610292/ltcube_366595201_366854401_4FGL_J0840.8+1317_daily_bin491.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/610292/ft2_4FGL_J0840.8+1317_daily_bin491.fits
.....................!
real 11.95
user 11.06
sys 0.58

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/610292/ft1_filtered_4FGL_J0840.8+1317_daily_bin491.fits evtable="EVENTS" scfile=/scratch/kocevski/610292/ft2_4FGL_J0840.8+1317_daily_bin491.fits sctable="SC_DATA" expcube=/scratch/kocevski/610292/ltcube_366595201_366854401_4FGL_J0840.8+1317_daily_bin491.fits outfile=/scratch/kocevski/610292/expmap_366595201_366854401_4FGL_J0840.8+1317_daily_bin491.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/610292/ltcube_366595201_366854401_4FGL_J0840.8+1317_daily_bin491.fits
.....................!
real 190.74
user 185.48
sys 4.17

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/610292/ft1_filtered_4FGL_J0840.8+1317_daily_bin491.fits scfile=/scratch/kocevski/610292/ft2_4FGL_J0840.8+1317_daily_bin491.fits outfile=/scratch/kocevski/610292/cmap_366595201_366854401_4FGL_J0840.8+1317_daily_bin491.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.38
sys 0.36

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    17.777       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10742E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.0326       1.0000         .10000E-03   10000.    
     7 'norm      '    .21368       1.0000         .10000E-03   10000.    
     8 'norm      '    1.6775       1.0000         .10000E-03   10000.    
     9 'Prefactor '    31.001       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.253       1.0000         .10000E-03   10000.    
    12 'norm      '    .63343E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.4184       1.0000         .10000E-03   10000.    
    14 'norm      '    .10480E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.5943       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.1382       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=   7319.940     FROM MIGRAD    STATUS=CONVERGED    342 CALLS     1642 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.453       -.41190E-06** at limit **
   2  Prefactor     .10000E-03    87.525        .51705E-04** at limit **
   3  norm          .10000E-03    32.384       -.10487E-04** at limit **
   4  norm          17.754        27.902       -.11629E-04   -.27390E-04
   5  Prefactor     .10000E-03    29.792        .16072E-04** at limit **
   6  Prefactor     3.0291        9.1581       -.31268E-05   -.16168E-03
   7  norm          .21226        1.2111       -.15639E-05   -.44850E-03
   8  norm          1.6774        1.0474       -.20746E-06    .11753E-03
   9  Prefactor     30.991        14.945       -.76590E-06    .76166E-03
  10  Prefactor     .10000E-03    5.2338        .11250E-06** at limit **
  11  Prefactor     12.158        39.122       -.11878E-03    .50556E-04
  12  norm          .10000E-03    .37588       -.88752E-08** at limit **
  13  Prefactor     3.4045        18.972       -.64037E-05   -.35993E-04
  14  norm          .10000E-03    20.741       -.23954E-05** at limit **
  15  norm          .10000E-03    47.727       -.19907E-04** at limit **
  16  Normalizat    1.5949        .22214        .11276E-04   -.67701E-04
  17  Prefactor     1.1378        .17323        .73311E-06    .75784E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 17.7545
  Prefactor  = 0.0001
  Prefactor  = 3.02913
  norm       = 0.212262
  norm       = 1.67738
  Prefactor  = 30.9909
  Prefactor  = 0.0001
  Prefactor  = 12.1577
  norm       = 0.0001
  Prefactor  = 3.40452
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.5949
  Prefactor  = 1.1378
 **********
 **   18 **HESSE 
 **********

 FCN=   7319.940     FROM HESSE     STATUS=OK           225 CALLS     1867 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    87.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    32.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          17.754        27.920        .94992E-04   -1.4865    
   5  Prefactor     .10000E-03    29.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.0291        9.1459        .23302E-03   -1.5360    
   7  norm          .21226        2.4188        .16948E-02   -1.5616    
   8  norm          1.6774        1.0474        .32531E-04   -1.5449    
   9  Prefactor     30.991        14.645        .71962E-04   -1.4594    
  10  Prefactor     .10000E-03    5.2802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.158        39.191        .11444E-03   -1.5010    
  12  norm          .10000E-03    5.5310        .97232E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.4045        17.720        .21879E-03   -1.5339    
  14  norm          .10000E-03    21.503        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    47.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.5949        .27041        .28147E-03   -.75145    
  17  Prefactor     1.1378        .21132        .26280E-03   -.88268    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.58155e-08
Minuit parameter uncertainties:
  1  0.000120301
  2  0.000196742
  3  1.81215e-05
  4  27.9409
  5  5.6632e-05
  6  9.15012
  7  1.4328
  8  1.04738
  9  14.6463
  10  5.6371e-05
  11  39.2742
  12  5.28582e-06
  13  15.5412
  14  0.000198997
  15  9.96423e-05
  16  0.270663
  17  0.211479
Done.

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

Extracting fit parameters...

4FGL J0840.8+1317
   Spectrum: PowerLaw
297    Prefactor:  1.216e+01  3.927e+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.138e+00  2.115e-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.595e+00  2.707e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/610292/likelihoodResults_366595201_366854401_4FGL_J0840.8+1317_daily_bin491.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) = 7319.59362499
delta logL = 0.346446920083

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7319.53926214
delta logL = 0.400809776995

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.3094       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8067       1.0000          .0000       10.000    
     3 'Normalizat'    1.5364       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1670       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=   7319.539     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      260 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3052        373.73        .15980E-03   -.55975E-03
   2  Index         3.8096        6.5934        .80692E-02   -.16089E-03
   3  Normalizat    1.5363        .24663        .28575E-03    .95032E-03
   4  Prefactor     1.1669        .20378        .25993E-03    .10515E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.30524
  Index      = 3.80963
  Normalizat = 1.53634
  Prefactor  = 1.16689
 **********
 **   18 **HESSE 
 **********

 FCN=   7319.539     FROM HESSE     STATUS=OK            25 CALLS      285 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3052        20.147        .63921E-05   -1.5206    
   2  Index         3.8096        1.7942        .32277E-03   -.24038    
   3  Normalizat    1.5363        .27029        .57150E-04   -.76762    
   4  Prefactor     1.1669        .21417        .51987E-04   -.87357    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46367e-09
Minuit parameter uncertainties:
  1  20.1689
  2  1.83777
  3  0.270542
  4  0.214327
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/610292': 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) = 7319.53925321
delta logL = 0.4008186991

Extracting fit parameters...

4FGL J0840.8+1317
   Spectrum: PowerLaw
297    Prefactor:  6.305e+00  2.017e+01  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  3.810e+00  1.838e+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.167e+00  2.143e-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.536e+00  2.705e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.11
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/610292/cmap_HighResolution_366595201_366854401_4FGL_J0840.8+1317_daily_bin491.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.50e-03', job_status='DONE', photon_flux_upper_limit='1.22e-07', time_completed='2021-08-30 03:27:48.584677', job_id='610292', GAL2='1.17', fit_tolerance='1e-08', EG2='1.54', EG='1.59', time_epoch_completed='1630319268.58', return_code2='0', ts='0.11', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='4.01e-01', ts2='0.97', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='491' AND source_name='4FGL J0840.8+1317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:27:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 610292: <4FGL_J0840.8+1317_daily_bin491> in cluster <slac> Done

Job <4FGL_J0840.8+1317_daily_bin491> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Aug 30 03:15:41 2021
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 03:15:43 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:15:43 2021
Terminated at Mon Aug 30 03:27:49 2021
Results reported at Mon Aug 30 03:27:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0840.8+1317_daily_bin491 130.222 13.2871 366595201 366854401 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 :                                   582.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             318.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   725 sec.
    Turnaround time :                            728 sec.

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

