/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 4 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 = 7558
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0840.8+1317_daily_bin320
RA = 130.222, Dec = 13.2871
tmin = 322272001, tmax = 322531201
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='608917', job_status='RUN', time_executed='2021-08-30 03:12:04.402098', time_epoch_executed='1630318324.4' WHERE source_name='4FGL J0840.8+1317' and cadence='daily' and bin_id='320'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/608917

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/608917/ft1_4FGL_J0840.8+1317_daily_bin320.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/608917/ft2_4FGL_J0840.8+1317_daily_bin320.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/608917/ft1_4FGL_J0840.8+1317_daily_bin320.fits outfile=/scratch/kocevski/608917/ft1_filteredMKT_4FGL_J0840.8+1317_daily_bin320.fits ra=130.222 dec=13.2871 rad=12.0 tmin=322272001.0 tmax=322531201.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 4.70
user 3.18
sys 1.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/608917/ft1_filtered_4FGL_J0840.8+1317_daily_bin320.fits" evtable="EVENTS" scfile=/scratch/kocevski/608917/ft2_4FGL_J0840.8+1317_daily_bin320.fits sctable="SC_DATA" outfile=/scratch/kocevski/608917/ltcube_322272001_322531201_4FGL_J0840.8+1317_daily_bin320.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/608917/ft2_4FGL_J0840.8+1317_daily_bin320.fits
.....................!
real 13.36
user 11.46
sys 1.42

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/608917/ft1_filtered_4FGL_J0840.8+1317_daily_bin320.fits evtable="EVENTS" scfile=/scratch/kocevski/608917/ft2_4FGL_J0840.8+1317_daily_bin320.fits sctable="SC_DATA" expcube=/scratch/kocevski/608917/ltcube_322272001_322531201_4FGL_J0840.8+1317_daily_bin320.fits outfile=/scratch/kocevski/608917/expmap_322272001_322531201_4FGL_J0840.8+1317_daily_bin320.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/608917/ltcube_322272001_322531201_4FGL_J0840.8+1317_daily_bin320.fits
.....................!
real 192.91
user 185.62
sys 5.68

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/608917/ft1_filtered_4FGL_J0840.8+1317_daily_bin320.fits scfile=/scratch/kocevski/608917/ft2_4FGL_J0840.8+1317_daily_bin320.fits outfile=/scratch/kocevski/608917/cmap_322272001_322531201_4FGL_J0840.8+1317_daily_bin320.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.51
user 0.37
sys 1.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/608917/ft1_filtered_4FGL_J0840.8+1317_daily_bin320.fits scfile=/scratch/kocevski/608917/ft2_4FGL_J0840.8+1317_daily_bin320.fits outfile=/scratch/kocevski/608917/cmap_HighResolution_322272001_322531201_4FGL_J0840.8+1317_daily_bin320.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.41
user 0.40
sys 1.00

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    30.833       1.0000         .10000E-03   10000.    
     4 'norm      '    19.509       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10231E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10147E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.8854       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.9604       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .29331E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.6243       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.0914       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .86730       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=   5614.029     FROM MIGRAD    STATUS=CONVERGED    338 CALLS     1580 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.9208       -.86448E-06** at limit **
   2  Prefactor     .10000E-03    51.205        .20554E-05** at limit **
   3  norm          30.847        112.07        .24414E-04   -.97837E-06
   4  norm          19.483        22.903       -.15252E-04   -.31374E-05
   5  Prefactor     .10000E-03    10.508        .10345E-05** at limit **
   6  Prefactor     .10000E-03    9.5896       -.60714E-05** at limit **
   7  norm          .10001E-03    .61188        .13918E-06** at limit **
   8  norm          1.8856        .91446        .57309E-07    .10863E-03
   9  Prefactor     6.9563        8.1111       -.49314E-06   -.25273E-03
  10  Prefactor     .10007E-03    6.0900        .11301E-05** at limit **
  11  Prefactor     .10000E-03    11.165        .59378E-05** at limit **
  12  norm          1.6239        .84268       -.18746E-07   -.53532E-03
  13  Prefactor     .10000E-03    5.5485       -.20541E-06** at limit **
  14  norm          .10000E-03    2.0446       -.17554E-07** at limit **
  15  norm          .10000E-03    16.915       -.46931E-05** at limit **
  16  Normalizat    1.0913        .18772        .12257E-05   -.16375E-03
  17  Prefactor     .86738        .15198       -.23820E-06   -.42360E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 30.8469
  norm       = 19.4834
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100014
  norm       = 1.88558
  Prefactor  = 6.95628
  Prefactor  = 0.000100066
  Prefactor  = 0.0001
  norm       = 1.62386
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.09131
  Prefactor  = 0.867383
 **********
 **   18 **HESSE 
 **********

 FCN=   5614.029     FROM HESSE     STATUS=OK           219 CALLS     1799 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.9529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    51.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          30.847        112.17        .72158E-04   -1.4597    
   4  norm          19.483        22.931        .90679E-04   -1.4825    
   5  Prefactor     .10000E-03    10.521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.6340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10001E-03    7.8452        .11263E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.8856        .91253        .48334E-04   -1.5433    
   9  Prefactor     6.9563        8.0305        .15206E-03   -1.5180    
  10  Prefactor     .10007E-03    27.004        .35096E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.6239        .83912        .47227E-04   -1.5453    
  13  Prefactor     .10000E-03    5.5576        .17235E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.0449        .10463E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    16.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.0913        .22530        .24649E-03   -.90031    
  17  Prefactor     .86738        .18317        .22257E-03   -.97290    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.13341e-09
Minuit parameter uncertainties:
  1  7.31587e-06
  2  5.61333e-06
  3  112.954
  4  22.9409
  5  5.5651e-05
  6  2.23556e-05
  7  0.000655175
  8  0.912535
  9  8.03179
  10  0.0026646
  11  7.02666e-06
  12  0.839123
  13  2.88749e-06
  14  4.53673e-07
  15  2.22309e-06
  16  0.225495
  17  0.183303
Done.

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

Extracting fit parameters...

4FGL J0840.8+1317
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  7.027e-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:  8.674e-01  1.833e-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.091e+00  2.255e-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.96e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.63e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/608917/likelihoodResults_322272001_322531201_4FGL_J0840.8+1317_daily_bin320.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) = 5614.02943711
delta logL = -0.000426104518738

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5614.02901129
delta logL = -2.89940544462e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4753       1.0000          .0000       10.000    
     3 'Normalizat'    1.0915       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86724       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=   5614.029     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      239 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10227E-03    160.04        .18142E-02** at limit **
   2  Index         2.3893        7.6704        .50000        .11418E-04
   3  Normalizat    1.0913        .17293E-01    .24649E-03    .92707E-05
   4  Prefactor     .86738        .14164E-01    .22258E-03    .91940E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102274
  Index      = 2.38932
  Normalizat = 1.09131
  Prefactor  = 0.867381
 **********
 **   18 **HESSE 
 **********

 FCN=   5614.029     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      268 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10227E-03    639.33        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3893        5.1416        .50000       -.54935    
   3  Normalizat    1.0913        .36608E-01    .98595E-05   -.90031    
   4  Prefactor     .86738        .29984E-01    .89030E-05   -.97290    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.04683e-08
Minuit parameter uncertainties:
  1  0.0770994
  2  1161.11
  3  0.0366085
  4  0.0299849
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/608917': 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) = 5614.02901077
delta logL = 2.28703356697e-07

Extracting fit parameters...

4FGL J0840.8+1317
   Spectrum: PowerLaw
297    Prefactor:  1.023e-04  7.710e-02  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.389e+00  1.161e+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:  8.674e-01  2.998e-02  0.000e+00  1.000e+01 ( 1.000e+00)
513        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
514        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
511   Normalization:  1.091e+00  3.661e-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/608917/cmap_HighResolution_322272001_322531201_4FGL_J0840.8+1317_daily_bin320.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.63e-03', job_status='DONE', photon_flux_upper_limit='5.96e-08', time_completed='2021-08-30 03:20:43.816511', job_id='608917', GAL2='0.87', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1630318843.82', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='2.29e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='320' AND source_name='4FGL J0840.8+1317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:20:43 PDT 2021


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

Job <4FGL_J0840.8+1317_daily_bin320> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Aug 30 03:11:24 2021
Job was executed on host(s) <bullet0141>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 03:11:25 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:11:25 2021
Terminated at Mon Aug 30 03:20:44 2021
Results reported at Mon Aug 30 03:20:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0840.8+1317_daily_bin320 130.222 13.2871 322272001 322531201 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 :                                   526.39 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             329.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   559 sec.
    Turnaround time :                            560 sec.

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

