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


Performing analysis on: 4FGL_J0840.8+1317_daily_bin1204
RA = 130.222, Dec = 13.2871
tmin = 551404801, tmax = 551664001
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='614158', job_status='RUN', time_executed='2021-08-30 03:29:24.088187', time_epoch_executed='1630319364.09' WHERE source_name='4FGL J0840.8+1317' and cadence='daily' and bin_id='1204'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/614158

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/614158/ft1_4FGL_J0840.8+1317_daily_bin1204.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/614158/ft2_4FGL_J0840.8+1317_daily_bin1204.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/614158/ft1_4FGL_J0840.8+1317_daily_bin1204.fits outfile=/scratch/kocevski/614158/ft1_filteredMKT_4FGL_J0840.8+1317_daily_bin1204.fits ra=130.222 dec=13.2871 rad=12.0 tmin=551404801.0 tmax=551664001.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.87
user 3.36
sys 2.99

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/614158/ft1_filtered_4FGL_J0840.8+1317_daily_bin1204.fits" evtable="EVENTS" scfile=/scratch/kocevski/614158/ft2_4FGL_J0840.8+1317_daily_bin1204.fits sctable="SC_DATA" outfile=/scratch/kocevski/614158/ltcube_551404801_551664001_4FGL_J0840.8+1317_daily_bin1204.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/614158/ft2_4FGL_J0840.8+1317_daily_bin1204.fits
.....................!
real 15.60
user 11.32
sys 2.98

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/614158/ft1_filtered_4FGL_J0840.8+1317_daily_bin1204.fits evtable="EVENTS" scfile=/scratch/kocevski/614158/ft2_4FGL_J0840.8+1317_daily_bin1204.fits sctable="SC_DATA" expcube=/scratch/kocevski/614158/ltcube_551404801_551664001_4FGL_J0840.8+1317_daily_bin1204.fits outfile=/scratch/kocevski/614158/expmap_551404801_551664001_4FGL_J0840.8+1317_daily_bin1204.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/614158/ltcube_551404801_551664001_4FGL_J0840.8+1317_daily_bin1204.fits
.....................!
real 194.45
user 184.87
sys 7.88

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/614158/ft1_filtered_4FGL_J0840.8+1317_daily_bin1204.fits scfile=/scratch/kocevski/614158/ft2_4FGL_J0840.8+1317_daily_bin1204.fits outfile=/scratch/kocevski/614158/cmap_551404801_551664001_4FGL_J0840.8+1317_daily_bin1204.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 3.33
user 0.38
sys 2.52

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/614158/ft1_filtered_4FGL_J0840.8+1317_daily_bin1204.fits scfile=/scratch/kocevski/614158/ft2_4FGL_J0840.8+1317_daily_bin1204.fits outfile=/scratch/kocevski/614158/cmap_HighResolution_551404801_551664001_4FGL_J0840.8+1317_daily_bin1204.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 3.02
user 0.39
sys 2.51

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    77.160       1.0000         .10000E-03   10000.    
     4 'norm      '    .10388E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    38.929       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.9191       1.0000         .10000E-03   10000.    
     7 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.538       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .65897E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .73298       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.4331       1.0000         .10000E-03   10000.    
    15 'norm      '    .29641E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    .99346       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .99549       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=   4869.858     FROM MIGRAD    STATUS=CONVERGED    575 CALLS     1871 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.0821        .18142E-02** at limit **
   2  Prefactor     .10000E-03    132.89        .18142E-02** at limit **
   3  norm          77.165        85.064        .45715E-04   -.47748E-05
   4  norm          .10000E-03    20.273        .18142E-02** at limit **
   5  Prefactor     38.896        56.350        .64240E-04    .10066E-03
   6  Prefactor     8.9238        18.698        .13421E-03   -.20330E-05
   7  norm          .10000E-03    .71908        .95393E-03** at limit **
   8  norm          .10000E-03    1.4025        .15755E-03** at limit **
   9  Prefactor     10.537        9.7028        .12342E-03    .72317E-03
  10  Prefactor     .10000E-03    11.857        .25606E-02** at limit **
  11  Prefactor     .10000E-03    19.758        .18142E-02** at limit **
  12  norm          .73289        .49784        .39525E-04    .54995E-03
  13  Prefactor     .10000E-03    2.7341        .11264E-02** at limit **
  14  norm          4.4334        6.8275        .19126E-03   -.14076E-03
  15  norm          .10005E-03    36.770        .12096    ** at limit **
  16  Normalizat    .99340        .24880        .26070E-03    .71846E-03
  17  Prefactor     .99545        .20168        .21525E-03    .30534E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 77.1651
  norm       = 0.0001
  Prefactor  = 38.8957
  Prefactor  = 8.92381
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 10.5375
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.732893
  Prefactor  = 0.0001
  norm       = 4.43343
  norm       = 0.000100053
  Normalizat = 0.993399
  Prefactor  = 0.995447
 **********
 **   18 **HESSE 
 **********

 FCN=   4869.858     FROM HESSE     STATUS=OK           215 CALLS     2086 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.0824        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    132.89        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          77.165        85.068        .91429E-05   -1.3949    
   4  norm          .10000E-03    20.273        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     38.896        56.351        .12848E-04   -1.4460    
   6  Prefactor     8.9238        18.699        .53683E-05   -1.5110    
   7  norm          .10000E-03    .71958        .19079E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.4025        .31510E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.537        9.7028        .49369E-05   -1.5059    
  10  Prefactor     .10000E-03    11.909        .51213E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    19.760        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .73289        .49783        .15810E-05   -1.5537    
  13  Prefactor     .10000E-03    2.7341        .22529E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.4334        6.8275        .76504E-05   -1.5287    
  15  norm          .10005E-03    35.467        .12424       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .99340        .24903        .52141E-04   -.93252    
  17  Prefactor     .99545        .20187        .43051E-04   -.92881    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.38147e-09
Minuit parameter uncertainties:
  1  9.34104e-06
  2  0.000256092
  3  85.2025
  4  0.000101656
  5  56.4286
  6  18.7115
  7  2.51814e-05
  8  2.30737e-05
  9  9.70422
  10  0.000296482
  11  6.13573e-05
  12  0.497837
  13  4.3013e-06
  14  6.82872
  15  0.00274235
  16  0.249323
  17  0.202023
Done.

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

Extracting fit parameters...

4FGL J0840.8+1317
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  6.136e-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:  9.954e-01  2.020e-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.934e-01  2.493e-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: 8.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.45e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/614158/likelihoodResults_551404801_551664001_4FGL_J0840.8+1317_daily_bin1204.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) = 4869.85848205
delta logL = -0.000241145646214

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4869.85824343
delta logL = -2.52993686445e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11558E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9755       1.0000          .0000       10.000    
     3 'Normalizat'    .99339       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99545       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=   4869.858     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      282 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    55.580        .18142E-01** at limit **
   2  Index         2.1268        7.4663        .50000        .83787E-07
   3  Normalizat    .99339        .79046E-02    .26070E-03   -.23207E-03
   4  Prefactor     .99545        .65664E-02    .21525E-03   -.34337E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100019
  Index      = 2.12676
  Normalizat = 0.99339
  Prefactor  = 0.995452
 **********
 **   18 **HESSE 
 **********

 FCN=   4869.858     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      311 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    324.55        .32784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1268        7.4943        .50000       -.61217    
   3  Normalizat    .99339        .19358E-01    .52140E-04   -.93252    
   4  Prefactor     .99545        .16081E-01    .43051E-04   -.92881    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.98551e-09
Minuit parameter uncertainties:
  1  0.00498297
  2  860.595
  3  0.0193584
  4  0.0160811
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/614158': 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) = 4869.85824052
delta logL = 3.8331381802e-07

Extracting fit parameters...

4FGL J0840.8+1317
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  4.983e-03  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.127e+00  8.606e+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:  9.955e-01  1.608e-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.934e-01  1.936e-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/614158/cmap_HighResolution_551404801_551664001_4FGL_J0840.8+1317_daily_bin1204.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.45e-03', job_status='DONE', photon_flux_upper_limit='8.30e-08', time_completed='2021-08-30 03:38:18.448531', job_id='614158', GAL2='1.00', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1630319898.45', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='3.83e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1204' AND source_name='4FGL J0840.8+1317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:38:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0137>
Subject: Job 614158: <4FGL_J0840.8+1317_daily_bin1204> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0840.8+1317_daily_bin1204 130.222 13.2871 551404801 551664001 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 :                                   556.51 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             265.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   733 sec.
    Turnaround time :                            734 sec.

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

