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


Performing analysis on: 4FGL_J0840.8+1317_daily_bin25
RA = 130.222, Dec = 13.2871
tmin = 245808001, tmax = 246067201
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='607234', job_status='RUN', time_executed='2021-08-30 03:06:42.344953', time_epoch_executed='1630318002.34' WHERE source_name='4FGL J0840.8+1317' and cadence='daily' and bin_id='25'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/607234

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/607234/ft1_4FGL_J0840.8+1317_daily_bin25.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/607234/ft2_4FGL_J0840.8+1317_daily_bin25.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/607234/ft1_4FGL_J0840.8+1317_daily_bin25.fits outfile=/scratch/kocevski/607234/ft1_filteredMKT_4FGL_J0840.8+1317_daily_bin25.fits ra=130.222 dec=13.2871 rad=12.0 tmin=245808001.0 tmax=246067201.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 1.76
user 1.30
sys 0.43

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/607234/ft1_filtered_4FGL_J0840.8+1317_daily_bin25.fits" evtable="EVENTS" scfile=/scratch/kocevski/607234/ft2_4FGL_J0840.8+1317_daily_bin25.fits sctable="SC_DATA" outfile=/scratch/kocevski/607234/ltcube_245808001_246067201_4FGL_J0840.8+1317_daily_bin25.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/607234/ft2_4FGL_J0840.8+1317_daily_bin25.fits
.....................!
real 12.57
user 11.85
sys 0.65

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/607234/ft1_filtered_4FGL_J0840.8+1317_daily_bin25.fits evtable="EVENTS" scfile=/scratch/kocevski/607234/ft2_4FGL_J0840.8+1317_daily_bin25.fits sctable="SC_DATA" expcube=/scratch/kocevski/607234/ltcube_245808001_246067201_4FGL_J0840.8+1317_daily_bin25.fits outfile=/scratch/kocevski/607234/expmap_245808001_246067201_4FGL_J0840.8+1317_daily_bin25.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/607234/ltcube_245808001_246067201_4FGL_J0840.8+1317_daily_bin25.fits
.....................!
real 191.14
user 186.05
sys 4.70

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/607234/ft1_filtered_4FGL_J0840.8+1317_daily_bin25.fits scfile=/scratch/kocevski/607234/ft2_4FGL_J0840.8+1317_daily_bin25.fits outfile=/scratch/kocevski/607234/cmap_245808001_246067201_4FGL_J0840.8+1317_daily_bin25.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.13
user 0.37
sys 0.42

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/607234/ft1_filtered_4FGL_J0840.8+1317_daily_bin25.fits scfile=/scratch/kocevski/607234/ft2_4FGL_J0840.8+1317_daily_bin25.fits outfile=/scratch/kocevski/607234/cmap_HighResolution_245808001_246067201_4FGL_J0840.8+1317_daily_bin25.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.13
user 0.39
sys 0.42

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.737       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10065E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.7350       1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.598       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12795E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.8323       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.906       1.0000         .10000E-03   10000.    
    14 'norm      '    5.1667       1.0000         .10000E-03   10000.    
    15 'norm      '    156.88       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .82629       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.2221       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=   6071.481     FROM MIGRAD    STATUS=CONVERGED    329 CALLS     1578 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.737        12.215        .23244E-06   -.15326E-04
   2  Prefactor     .10000E-03    46.623        .43045E-04** at limit **
   3  norm          .10000E-03    37.375       -.20414E-04** at limit **
   4  norm          .10000E-03    11.002       -.14844E-06** at limit **
   5  Prefactor     .10000E-03    14.438        .53990E-06** at limit **
   6  Prefactor     .10000E-03    4.6207        .16802E-07** at limit **
   7  norm          .10000E-03    .57916        .11306E-06** at limit **
   8  norm          1.7350        .90584        .20929E-07   -.32185E-04
   9  Prefactor     21.596        11.775       -.64280E-06    .13456E-03
  10  Prefactor     .10199E-03    5.1696       -.19095E-05** at limit **
  11  Prefactor     .10000E-03    7.1824        .22388E-07** at limit **
  12  norm          1.8323        .76847       -.35852E-07    .36573E-03
  13  Prefactor     11.906        8.9009       -.52172E-06    .21729E-04
  14  norm          5.1665        5.4883        .10883E-05    .89806E-04
  15  norm          156.90        70.798        .17671E-04    .41628E-05
  16  Normalizat    .82620        .19517       -.37311E-06    .11388E-03
  17  Prefactor     1.2222        .16484       -.53367E-06    .16616E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.7374
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.73502
  Prefactor  = 21.5962
  Prefactor  = 0.000101987
  Prefactor  = 0.0001
  norm       = 1.83231
  Prefactor  = 11.9057
  norm       = 5.16647
  norm       = 156.902
  Normalizat = 0.826197
  Prefactor  = 1.22221
 **********
 **   18 **HESSE 
 **********

 FCN=   6071.481     FROM HESSE     STATUS=OK           233 CALLS     1811 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.737        12.217        .97899E-04   -1.4890    
   2  Prefactor     .10000E-03    46.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    37.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    11.034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.6366        .16357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .84272        .11278E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.7350        .90434        .51820E-04   -1.5445    
   9  Prefactor     21.596        11.575        .86187E-04   -1.4778    
  10  Prefactor     .10199E-03    5.8425        .55696E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.1840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.8323        .76684        .42482E-04   -1.5437    
  13  Prefactor     11.906        8.9015        .11610E-03   -1.5018    
  14  norm          5.1665        5.4930        .17686E-03   -1.5253    
  15  norm          156.90        70.794        .16095E-03   -1.3196    
  16  Normalizat    .82620        .22610        .29463E-03   -.99104    
  17  Prefactor     1.2222        .19132        .21347E-03   -.85651    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.40902e-09
Minuit parameter uncertainties:
  1  12.219
  2  1.89037e-06
  3  3.64646e-06
  4  4.73847e-06
  5  5.32869e-06
  6  2.71683e-06
  7  1.00703e-05
  8  0.904345
  9  11.5764
  10  0.00681471
  11  2.99589e-06
  12  0.76684
  13  8.90246
  14  5.49358
  15  70.832
  16  0.226355
  17  0.191434
Done.

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

Extracting fit parameters...

4FGL J0840.8+1317
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  2.996e-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:  1.222e+00  1.914e-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:  8.262e-01  2.264e-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.79e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.73e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/607234/likelihoodResults_245808001_246067201_4FGL_J0840.8+1317_daily_bin25.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) = 6071.48204702
delta logL = -0.000659178149363

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6071.48138843
delta logL = -5.86539499636e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10510E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4715       1.0000          .0000       10.000    
     3 'Normalizat'    .82639       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2221       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=   6071.481     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      258 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.973        .18142E-01** at limit **
   2  Index         1.8607        5.7378        .50000       -.29857E-06
   3  Normalizat    .82620        .83607E-02    .29463E-03   -.22866E-03
   4  Prefactor     1.2222        .72624E-02    .21347E-03   -.31363E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.86066
  Normalizat = 0.826197
  Prefactor  = 1.22221
 **********
 **   18 **HESSE 
 **********

 FCN=   6071.481     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      285 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    227.11        .24025E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8607        5.9257        .50000       -.67881    
   3  Normalizat    .82620        .23196E-01    .11785E-04   -.99104    
   4  Prefactor     1.2222        .20149E-01    .42693E-04   -.85651    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.95741e-09
Minuit parameter uncertainties:
  1  1.31208e-05
  2  810.613
  3  0.0231965
  4  0.0201493
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/607234': 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) = 6071.4813859
delta logL = 1.94407493836e-06

Extracting fit parameters...

4FGL J0840.8+1317
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  1.312e-05  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  1.861e+00  8.106e+02  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.222e+00  2.015e-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:  8.262e-01  2.320e-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/607234/cmap_HighResolution_245808001_246067201_4FGL_J0840.8+1317_daily_bin25.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.73e-03', job_status='DONE', photon_flux_upper_limit='4.79e-08', time_completed='2021-08-30 03:15:18.477281', job_id='607234', GAL2='1.22', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1630318518.48', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='1.94e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='25' AND source_name='4FGL J0840.8+1317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:15:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 607234: <4FGL_J0840.8+1317_daily_bin25> in cluster <slac> Done

Job <4FGL_J0840.8+1317_daily_bin25> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug 30 03:06:20 2021
Job was executed on host(s) <bullet0250>, 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:15:19 2021
Results reported at Mon Aug 30 03:15:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0840.8+1317_daily_bin25 130.222 13.2871 245808001 246067201 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 :                                   514.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             391.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   537 sec.
    Turnaround time :                            539 sec.

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

