/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 22 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 = 7364
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0840.8+1317_daily_bin460
RA = 130.222, Dec = 13.2871
tmin = 358560001, tmax = 358819201
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='610248', job_status='RUN', time_executed='2021-08-30 03:17:18.745932', time_epoch_executed='1630318638.75' WHERE source_name='4FGL J0840.8+1317' and cadence='daily' and bin_id='460'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/610248

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/610248/ft1_4FGL_J0840.8+1317_daily_bin460.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/610248/ft2_4FGL_J0840.8+1317_daily_bin460.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/610248/ft1_4FGL_J0840.8+1317_daily_bin460.fits outfile=/scratch/kocevski/610248/ft1_filteredMKT_4FGL_J0840.8+1317_daily_bin460.fits ra=130.222 dec=13.2871 rad=12.0 tmin=358560001.0 tmax=358819201.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 9.16
user 5.02
sys 4.10

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/610248/ft1_filtered_4FGL_J0840.8+1317_daily_bin460.fits" evtable="EVENTS" scfile=/scratch/kocevski/610248/ft2_4FGL_J0840.8+1317_daily_bin460.fits sctable="SC_DATA" outfile=/scratch/kocevski/610248/ltcube_358560001_358819201_4FGL_J0840.8+1317_daily_bin460.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/610248/ft2_4FGL_J0840.8+1317_daily_bin460.fits
.....................!
real 16.43
user 11.75
sys 4.63

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/610248/ft1_filtered_4FGL_J0840.8+1317_daily_bin460.fits evtable="EVENTS" scfile=/scratch/kocevski/610248/ft2_4FGL_J0840.8+1317_daily_bin460.fits sctable="SC_DATA" expcube=/scratch/kocevski/610248/ltcube_358560001_358819201_4FGL_J0840.8+1317_daily_bin460.fits outfile=/scratch/kocevski/610248/expmap_358560001_358819201_4FGL_J0840.8+1317_daily_bin460.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/610248/ltcube_358560001_358819201_4FGL_J0840.8+1317_daily_bin460.fits
.....................!
real 195.98
user 185.81
sys 9.78

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/610248/ft1_filtered_4FGL_J0840.8+1317_daily_bin460.fits scfile=/scratch/kocevski/610248/ft2_4FGL_J0840.8+1317_daily_bin460.fits outfile=/scratch/kocevski/610248/cmap_358560001_358819201_4FGL_J0840.8+1317_daily_bin460.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 4.40
user 0.38
sys 4.00

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/610248/ft1_filtered_4FGL_J0840.8+1317_daily_bin460.fits scfile=/scratch/kocevski/610248/ft2_4FGL_J0840.8+1317_daily_bin460.fits outfile=/scratch/kocevski/610248/cmap_HighResolution_358560001_358819201_4FGL_J0840.8+1317_daily_bin460.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 4.41
user 0.39
sys 3.98

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.082       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .23999E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .52433       1.0000         .10000E-03   10000.    
     8 'norm      '    2.3053       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.2753       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .72695       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.8746       1.0000         .10000E-03   10000.    
    13 'Prefactor '    56.082       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.0413       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .96871       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=   6486.556     FROM MIGRAD    STATUS=CONVERGED    334 CALLS     1406 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.076        11.688       -.10452E-05   -.76230E-04
   2  Prefactor     .10000E-03    104.72       -.60628E-04** at limit **
   3  norm          .10000E-03    46.003       -.22311E-04** at limit **
   4  norm          .10000E-03    8.8605       -.33523E-06** at limit **
   5  Prefactor     .10000E-03    67.440        .63686E-04** at limit **
   6  Prefactor     .10000E-03    15.314       -.15164E-05** at limit **
   7  norm          .52481        1.3614       -.82770E-06   -.19233E-02
   8  norm          2.3054        1.1090       -.82274E-08   -.63250E-03
   9  Prefactor     6.2775        12.657        .23237E-05   -.11424E-04
  10  Prefactor     .69202        4.4373        .14934E-07   -.48299E-03
  11  Prefactor     .10000E-03    21.604        .10788E-04** at limit **
  12  norm          4.8744        1.3117       -.12080E-06   -.15629E-04
  13  Prefactor     56.087        21.047       -.25753E-07    .18334E-04
  14  norm          .10000E-03    4.8988        .82330E-06** at limit **
  15  norm          .10000E-03    22.767       -.91854E-05** at limit **
  16  Normalizat    1.0411        .19001       -.22256E-06   -.22385E-03
  17  Prefactor     .96883        .15235        .65547E-06   -.23334E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.0759
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.524806
  norm       = 2.30538
  Prefactor  = 6.27749
  Prefactor  = 0.692015
  Prefactor  = 0.0001
  norm       = 4.87437
  Prefactor  = 56.0869
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.04112
  Prefactor  = 0.968825
 **********
 **   18 **HESSE 
 **********

 FCN=   6486.556     FROM HESSE     STATUS=OK           221 CALLS     1627 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.076        11.694        .11525E-03   -1.5013    
   2  Prefactor     .10000E-03    104.60        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    45.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    8.9001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    67.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .52481        1.3162        .13579E-03   -1.5563    
   8  norm          2.3054        1.1062        .56274E-04   -1.5404    
   9  Prefactor     6.2775        12.274        .16024E-03   -1.5207    
  10  Prefactor     .69202        23.862        .31485E-02   -1.5542    
  11  Prefactor     .10000E-03    21.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.8744        1.3136        .43505E-04   -1.5266    
  13  Prefactor     56.087        21.098        .53566E-04   -1.4209    
  14  norm          .10000E-03    4.9803        .17407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    22.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.0411        .22595        .27518E-03   -.91665    
  17  Prefactor     .96883        .18139        .23235E-03   -.93776    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.02986e-09
Minuit parameter uncertainties:
  1  11.6964
  2  4.14846e-05
  3  6.35382e-08
  4  1.8275e-05
  5  0.000595905
  6  4.00477e-05
  7  1.31623
  8  1.10617
  9  12.2789
  10  8.13013
  11  2.3369e-05
  12  1.31358
  13  21.1004
  14  5.70787e-06
  15  2.11575e-06
  16  0.226162
  17  0.181505
Done.

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

Extracting fit parameters...

4FGL J0840.8+1317
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  2.337e-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.688e-01  1.815e-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.041e+00  2.262e-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.01e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/610248/likelihoodResults_358560001_358819201_4FGL_J0840.8+1317_daily_bin460.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) = 6486.55641204
delta logL = -0.000220192991037

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6486.55619267
delta logL = -8.21740286483e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6352       1.0000          .0000       10.000    
     3 'Normalizat'    1.0411       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96883       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6486.530     FROM MIGRAD    STATUS=FAILED       220 CALLS      414 TOTAL
                     EDM=   .77E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5387        7569.1        .18142E-01    .37288E-03
   2  Index         1.5345        9.0027        .31709       -.76030E-04
   3  Normalizat    1.0452        .23658        .27518E-03    .34290E-04
   4  Prefactor     .96322        .29787        .23235E-03    .43400E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6486.530     FROM SIMPLEX   STATUS=UNCHANGED     93 CALLS      507 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5387        7569.1        .64572E-03    .37288E-03
   2  Index         1.5345        9.0027        .15908E-02   -.76030E-04
   3  Normalizat    1.0452        .23658        .66552E-04    .34290E-04
   4  Prefactor     .96322        .29787        .36992E-04    .43400E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6486.530     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      541 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5386        31.137        .72569E-03   -.33635E-04
   2  Index         1.5345        1.2018        .18459E-01   -.22261E-04
   3  Normalizat    1.0452        .22035        .11007E-04    .33671E-04
   4  Prefactor     .96322        .18220        .92940E-05    .39877E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.53856
  Index      = 1.53447
  Normalizat = 1.04517
  Prefactor  = 0.963224
 **********
 **   18 **HESSE 
 **********

 FCN=   6486.530     FROM HESSE     STATUS=OK            25 CALLS      566 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5386        33.207        .29028E-04   -1.5237    
   2  Index         1.5345        1.2416        .73838E-03   -.76579    
   3  Normalizat    1.0452        .21990        .22014E-05   -.91532    
   4  Prefactor     .96322        .18184        .18588E-05   -.93966    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.57018e-11
Minuit parameter uncertainties:
  1  27.1457
  2  1.26759
  3  0.220087
  4  0.181955
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/610248': 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) = 6486.53028577
delta logL = 0.0259060848502

Extracting fit parameters...

4FGL J0840.8+1317
   Spectrum: PowerLaw
297    Prefactor:  5.539e+00  2.715e+01  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  1.534e+00  1.268e+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:  9.632e-01  1.820e-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.045e+00  2.201e-01  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/610248/cmap_HighResolution_358560001_358819201_4FGL_J0840.8+1317_daily_bin460.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.23e-03', job_status='DONE', photon_flux_upper_limit='8.01e-08', time_completed='2021-08-30 03:29:46.995992', job_id='610248', GAL2='0.96', fit_tolerance='1e-08', EG2='1.05', EG='1.04', time_epoch_completed='1630319387.0', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='2.59e-02', ts2='0.05', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='460' AND source_name='4FGL J0840.8+1317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:29:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 610248: <4FGL_J0840.8+1317_daily_bin460> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0840.8+1317_daily_bin460 130.222 13.2871 358560001 358819201 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 :                                   665.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             268.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   848 sec.
    Turnaround time :                            850 sec.

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

