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


Performing analysis on: 4FGL_J0831.8+0429_daily_bin651
RA = 127.973, Dec = 4.4941
tmin = 408067201, tmax = 408326401
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='522607', job_status='RUN', time_executed='2021-08-29 22:49:52.124971', time_epoch_executed='1630302592.12' WHERE source_name='4FGL J0831.8+0429' and cadence='daily' and bin_id='651'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/522607

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/522607/ft1_4FGL_J0831.8+0429_daily_bin651.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/522607/ft2_4FGL_J0831.8+0429_daily_bin651.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/522607/ft1_4FGL_J0831.8+0429_daily_bin651.fits outfile=/scratch/kocevski/522607/ft1_filteredMKT_4FGL_J0831.8+0429_daily_bin651.fits ra=127.973 dec=4.4941 rad=12.0 tmin=408067201.0 tmax=408326401.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 5.60
user 3.65
sys 1.90

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/522607/ft2_4FGL_J0831.8+0429_daily_bin651.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/522607/ft2_4FGL_J0831.8+0429_daily_bin651.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/522607/ft1_filteredMKT_4FGL_J0831.8+0429_daily_bin651.fits evtable="EVENTS" outfile="/scratch/kocevski/522607/ft1_filtered_4FGL_J0831.8+0429_daily_bin651.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.38
user 0.31
sys 2.04

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/522607/ft1_filtered_4FGL_J0831.8+0429_daily_bin651.fits" evtable="EVENTS" scfile=/scratch/kocevski/522607/ft2_4FGL_J0831.8+0429_daily_bin651.fits sctable="SC_DATA" outfile=/scratch/kocevski/522607/ltcube_408067201_408326401_4FGL_J0831.8+0429_daily_bin651.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/522607/ft2_4FGL_J0831.8+0429_daily_bin651.fits
.....................!
real 13.72
user 11.17
sys 2.43

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/522607/ft1_filtered_4FGL_J0831.8+0429_daily_bin651.fits evtable="EVENTS" scfile=/scratch/kocevski/522607/ft2_4FGL_J0831.8+0429_daily_bin651.fits sctable="SC_DATA" expcube=/scratch/kocevski/522607/ltcube_408067201_408326401_4FGL_J0831.8+0429_daily_bin651.fits outfile=/scratch/kocevski/522607/expmap_408067201_408326401_4FGL_J0831.8+0429_daily_bin651.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/522607/ltcube_408067201_408326401_4FGL_J0831.8+0429_daily_bin651.fits
.....................!
real 193.18
user 185.38
sys 7.32

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 155 point sources and 0 extended sources

Setting source of interest to:
4FGL J0831.8+0429 @ 127.973 4.4941

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/522607/ft1_filtered_4FGL_J0831.8+0429_daily_bin651.fits scfile=/scratch/kocevski/522607/ft2_4FGL_J0831.8+0429_daily_bin651.fits outfile=/scratch/kocevski/522607/cmap_408067201_408326401_4FGL_J0831.8+0429_daily_bin651.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=127.973 yref=4.4941 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 2.63
user 0.38
sys 1.79

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/522607/ft1_filtered_4FGL_J0831.8+0429_daily_bin651.fits scfile=/scratch/kocevski/522607/ft2_4FGL_J0831.8+0429_daily_bin651.fits outfile=/scratch/kocevski/522607/cmap_HighResolution_408067201_408326401_4FGL_J0831.8+0429_daily_bin651.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=127.973 yref=4.4941 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 2.46
user 0.38
sys 1.97

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/522607/ft1_filtered_4FGL_J0831.8+0429_daily_bin651.fits evtable="EVENTS" scfile=/scratch/kocevski/522607/ft2_4FGL_J0831.8+0429_daily_bin651.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/522607/Model_4FGL_J0831.8+0429_daily_bin651.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/522607/ft1_filtered_4FGL_J0831.8+0429_daily_bin651.fits.....................!
real 84.47
user 78.56
sys 3.58

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/522607/ft1_filtered_4FGL_J0831.8+0429_daily_bin651.fits', '/scratch/kocevski/522607/ft2_4FGL_J0831.8+0429_daily_bin651.fits', expMap='/scratch/kocevski/522607/expmap_408067201_408326401_4FGL_J0831.8+0429_daily_bin651.fits', expCube='/scratch/kocevski/522607/ltcube_408067201_408326401_4FGL_J0831.8+0429_daily_bin651.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/522607/Model_4FGL_J0831.8+0429_daily_bin651.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0831.8+0429'

4FGL J0831.8+0429
   Spectrum: LogParabola
306         norm:  1.397e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
307        alpha:  2.181e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
308         beta:  7.610e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
309           Eb:  5.835e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/522607/ft1_filtered_4FGL_J0831.8+0429_daily_bin651.fits
Spacecraft file(s): /scratch/kocevski/522607/ft2_4FGL_J0831.8+0429_daily_bin651.fits
Exposure map: /scratch/kocevski/522607/expmap_408067201_408326401_4FGL_J0831.8+0429_daily_bin651.fits
Exposure cube: /scratch/kocevski/522607/ltcube_408067201_408326401_4FGL_J0831.8+0429_daily_bin651.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/522607/Model_4FGL_J0831.8+0429_daily_bin651.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) = 7816.63827934

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.123       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .16391E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.8108       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    10.339       1.0000         .10000E-03   10000.    
     9 'norm      '    8.6578       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.985       1.0000         .10000E-03   10000.    
    12 'norm      '    .30213       1.0000         .10000E-03   10000.    
    13 'norm      '    4.5684       1.0000         .10000E-03   10000.    
    14 'Prefactor '    37.419       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.6743       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.0664       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0254       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7816.635     FROM MIGRAD    STATUS=CONVERGED    365 CALLS     1714 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.2247        .88696E-07** at limit **
   2  Prefactor     12.115        10.659       -.39389E-05    .18812E-04
   3  Prefactor     .10000E-03    456.69       -.72889E-04** at limit **
   4  Prefactor     .10000E-03    1.8992       -.72421E-08** at limit **
   5  Prefactor     .10000E-03    9.8208        .41208E-06** at limit **
   6  norm          3.8112        5.9885       -.74390E-06   -.27412E-03
   7  norm          .10000E-03    1.0105       -.29130E-08** at limit **
   8  norm          10.345        18.039       -.22872E-04   -.23019E-04
   9  norm          8.6569        4.1682        .16259E-06   -.19549E-02
  10  Prefactor     .10000E-03    11.770        .45647E-06** at limit **
  11  Prefactor     10.979        11.777        .83186E-06    .12546E-04
  12  norm          .30229        .52992       -.16875E-07   -.51914E-03
  13  norm          4.5691        5.0997        .98790E-06   -.26569E-03
  14  Prefactor     37.440        46.014        .77005E-05    .64144E-05
  15  norm          .10000E-03    1.2553       -.41905E-08** at limit **
  16  norm          6.6752        5.5123       -.27818E-05   -.13825E-03
  17  Normalizat    1.0664        .17897        .17739E-05   -.11879E-05
  18  Prefactor     1.0254        .13632        .23694E-06    .13228E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 12.1153
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.81122
  norm       = 0.0001
  norm       = 10.3451
  norm       = 8.65689
  Prefactor  = 0.0001
  Prefactor  = 10.9792
  norm       = 0.302289
  norm       = 4.56909
  Prefactor  = 37.4405
  norm       = 0.0001
  norm       = 6.67517
  Normalizat = 1.06635
  Prefactor  = 1.02537
 **********
 **   18 **HESSE 
 **********

 FCN=   7816.635     FROM HESSE     STATUS=OK           250 CALLS     1964 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.2346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.115        10.654        .11505E-03   -1.5012    
   3  Prefactor     .10000E-03    457.29        .20400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.9040        .11898E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.8311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.8112        5.9824        .20677E-03   -1.5317    
   7  norm          .10000E-03    1.0250        .86772E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          10.345        17.984        .12461E-03   -1.5065    
   9  norm          8.6569        4.1676        .60035E-03   -1.5119    
  10  Prefactor     .10000E-03    11.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.979        11.788        .12088E-03   -1.5045    
  12  norm          .30229        .40462        .82050E-03   -1.5598    
  13  norm          4.5691        5.0869        .18833E-03   -1.5280    
  14  Prefactor     37.440        46.078        .65519E-04   -1.4483    
  15  norm          .10000E-03    1.2812        .96685E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.6752        5.5215        .15532E-03   -1.5191    
  17  Normalizat    1.0664        .21360        .27532E-03   -.90840    
  18  Prefactor     1.0254        .16326        .21690E-03   -.91889    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03385e-09
Minuit parameter uncertainties:
  1  5.69481e-05
  2  10.6557
  3  0.000505852
  4  4.69937e-07
  5  0.000128206
  6  5.9833
  7  1.67178e-06
  8  17.9932
  9  4.16773
  10  0.000113145
  11  11.7908
  12  0.404624
  13  5.0874
  14  46.1215
  15  9.02436e-07
  16  5.52191
  17  0.213768
  18  0.163334
Done.

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

Extracting fit parameters...

4FGL J0831.8+0429
   Spectrum: LogParabola
306         norm:  3.023e-01  4.046e-01  1.000e-04  1.000e+04 ( 1.000e-11)
307        alpha:  2.181e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
308         beta:  7.610e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
309           Eb:  5.835e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
505    Prefactor:  1.025e+00  1.633e-01  0.000e+00  1.000e+01 ( 1.000e+00)
506        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
507        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
504   Normalization:  1.066e+00  2.138e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.16
Ra Dec: 127.973 4.494
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 1.07e-08 +/- 1.43e-08
Energy Flux (Fixed Index): 4.29e-06 +/- 5.74e-06

TS (Fixed Index): 1.16
Ra Dec: 127.973 4.494
Photon Flux Upper Limit: 5.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.31e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/522607/likelihoodResults_408067201_408326401_4FGL_J0831.8+0429_daily_bin651.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): 0
logL (Free Index) = 7816.14021859
delta logL = 0.494550483931

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7816.09931932
delta logL = 0.535449759188

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .20355       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.0258       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0680       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0251       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7816.099     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      212 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .20366        .24567        .86654E-02   -.10409E-04
   2  alpha         1.0256        .41802        .43758       -.70290E-04
   3  Normalizat    1.0680        .17427        .62173E-01    .14527E-04
   4  Prefactor     1.0251        .13564        .41666E-01    .41874E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.203663
  alpha      = 1.02561
  Normalizat = 1.06798
  Prefactor  = 1.02508
 **********
 **   18 **HESSE 
 **********

 FCN=   7816.099     FROM HESSE     STATUS=OK            35 CALLS      247 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .20366        .30004        .43337E-03   -1.5618    
   2  alpha         1.0256        .66814        .16607E-01   -.63076    
   3  Normalizat    1.0680        .20847        .27499E-03   -.90786    
   4  Prefactor     1.0251        .16242        .21687E-03   -.91898    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00922e-08
Minuit parameter uncertainties:
  1  0.300045
  2  0.680983
  3  0.208633
  4  0.162497
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/522607': 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) = 7816.09931883
delta logL = 0.535450244154

Extracting fit parameters...

4FGL J0831.8+0429
   Spectrum: LogParabola
306         norm:  2.037e-01  3.000e-01  1.000e-04  1.000e+04 ( 1.000e-11)
307        alpha:  1.026e+00  6.810e-01  0.000e+00  5.000e+00 ( 1.000e+00)
308         beta:  7.610e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
309           Eb:  5.835e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
505    Prefactor:  1.025e+00  1.625e-01  0.000e+00  1.000e+01 ( 1.000e+00)
506        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
507        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
504   Normalization:  1.068e+00  2.086e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.23
Ra Dec: 127.973 4.494
Photon Index (Free Index): 1.03 +/- 0.68
Photon Flux (Free Index): 5.46e-09 +/- 6.08e-09
Energy Flux (Free Index): 3.14e-05 +/- 5.09e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/522607/cmap_HighResolution_408067201_408326401_4FGL_J0831.8+0429_daily_bin651.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.31e-05', comment='SUCCESS', photon_flux='1.07e-08', energy_flux2='3.14e-05', photon_flux_error='1.43e-08', dlogl='5.35e-01', energy_flux='4.29e-06', photon_flux2='5.46e-09', job_status='DONE', time_completed='2021-08-29 23:00:11.039430', photon_index_error2='0.68', photon_index2='1.03', ts='1.16', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='5.76e-08', energy_flux_error2='5.09e-05', EG='1.07', time_epoch_completed='1630303211.04', return_code='0', job_id='522607', GAL2='1.03', EG2='1.07', return_code2='0', energy_flux_error='5.74e-06', photon_flux_error2='6.08e-09', ts2='2.23', photon_index='2.18' WHERE bin_id='651' AND source_name='4FGL J0831.8+0429' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 23:00:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 522607: <4FGL_J0831.8+0429_daily_bin651> in cluster <slac> Done

Job <4FGL_J0831.8+0429_daily_bin651> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sun Aug 29 22:45:41 2021
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 22:45:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 22:45:42 2021
Terminated at Sun Aug 29 23:00:12 2021
Results reported at Sun Aug 29 23:00:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0831.8+0429_daily_bin651 127.973 4.4941 408067201 408326401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0831.8+0429 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   644.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            871 sec.

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

