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


Performing analysis on: 4FGL_J0831.8+0429_daily_bin553
RA = 127.973, Dec = 4.4941
tmin = 382665601, tmax = 382924801
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='520932', job_status='RUN', time_executed='2021-08-29 22:44:34.871612', time_epoch_executed='1630302274.87' WHERE source_name='4FGL J0831.8+0429' and cadence='daily' and bin_id='553'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/520932

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/520932/ft1_4FGL_J0831.8+0429_daily_bin553.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/520932/ft2_4FGL_J0831.8+0429_daily_bin553.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/520932/ft1_4FGL_J0831.8+0429_daily_bin553.fits outfile=/scratch/kocevski/520932/ft1_filteredMKT_4FGL_J0831.8+0429_daily_bin553.fits ra=127.973 dec=4.4941 rad=12.0 tmin=382665601.0 tmax=382924801.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 3.92
user 3.10
sys 0.69

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/520932/ft2_4FGL_J0831.8+0429_daily_bin553.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/520932/ft1_filteredMKT_4FGL_J0831.8+0429_daily_bin553.fits evtable="EVENTS" outfile="/scratch/kocevski/520932/ft1_filtered_4FGL_J0831.8+0429_daily_bin553.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 1.45
user 0.33
sys 0.62

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/520932/ft1_filtered_4FGL_J0831.8+0429_daily_bin553.fits" evtable="EVENTS" scfile=/scratch/kocevski/520932/ft2_4FGL_J0831.8+0429_daily_bin553.fits sctable="SC_DATA" outfile=/scratch/kocevski/520932/ltcube_382665601_382924801_4FGL_J0831.8+0429_daily_bin553.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/520932/ft2_4FGL_J0831.8+0429_daily_bin553.fits
.....................!
real 12.43
user 11.41
sys 0.84

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/520932/ft1_filtered_4FGL_J0831.8+0429_daily_bin553.fits evtable="EVENTS" scfile=/scratch/kocevski/520932/ft2_4FGL_J0831.8+0429_daily_bin553.fits sctable="SC_DATA" expcube=/scratch/kocevski/520932/ltcube_382665601_382924801_4FGL_J0831.8+0429_daily_bin553.fits outfile=/scratch/kocevski/520932/expmap_382665601_382924801_4FGL_J0831.8+0429_daily_bin553.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/520932/ltcube_382665601_382924801_4FGL_J0831.8+0429_daily_bin553.fits
.....................!
real 192.44
user 185.31
sys 5.49

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/520932/ft1_filtered_4FGL_J0831.8+0429_daily_bin553.fits scfile=/scratch/kocevski/520932/ft2_4FGL_J0831.8+0429_daily_bin553.fits outfile=/scratch/kocevski/520932/cmap_382665601_382924801_4FGL_J0831.8+0429_daily_bin553.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 1.01
user 0.36
sys 0.61

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/520932/ft1_filtered_4FGL_J0831.8+0429_daily_bin553.fits scfile=/scratch/kocevski/520932/ft2_4FGL_J0831.8+0429_daily_bin553.fits outfile=/scratch/kocevski/520932/cmap_HighResolution_382665601_382924801_4FGL_J0831.8+0429_daily_bin553.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 1.04
user 0.37
sys 0.62

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/520932/ft1_filtered_4FGL_J0831.8+0429_daily_bin553.fits', '/scratch/kocevski/520932/ft2_4FGL_J0831.8+0429_daily_bin553.fits', expMap='/scratch/kocevski/520932/expmap_382665601_382924801_4FGL_J0831.8+0429_daily_bin553.fits', expCube='/scratch/kocevski/520932/ltcube_382665601_382924801_4FGL_J0831.8+0429_daily_bin553.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/520932/Model_4FGL_J0831.8+0429_daily_bin553.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/520932/ft1_filtered_4FGL_J0831.8+0429_daily_bin553.fits
Spacecraft file(s): /scratch/kocevski/520932/ft2_4FGL_J0831.8+0429_daily_bin553.fits
Exposure map: /scratch/kocevski/520932/expmap_382665601_382924801_4FGL_J0831.8+0429_daily_bin553.fits
Exposure cube: /scratch/kocevski/520932/ltcube_382665601_382924801_4FGL_J0831.8+0429_daily_bin553.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/520932/Model_4FGL_J0831.8+0429_daily_bin553.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) = 5130.58413815

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.443       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .14480E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    113.81       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.4473       1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.664       1.0000         .10000E-03   10000.    
     6 'norm      '    17.895       1.0000         .10000E-03   10000.    
     7 'norm      '    .11693E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    .43534E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.8242       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13708E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.796       1.0000         .10000E-03   10000.    
    12 'norm      '    1.6970       1.0000         .10000E-03   10000.    
    13 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.5992       1.0000         .10000E-03   10000.    
    16 'norm      '    3.9459       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .89643       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .92858       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=   5130.542     FROM MIGRAD    STATUS=CONVERGED    376 CALLS     1752 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.416        19.112        .61380E-05   -.61442E-04
   2  Prefactor     .10001E-03    24.995        .23043E-05** at limit **
   3  Prefactor     113.83        125.60        .20453E-04   -.16676E-05
   4  Prefactor     2.4482        4.4589       -.10177E-06   -.17475E-03
   5  Prefactor     20.545        38.191       -.14355E-05   -.17785E-04
   6  norm          17.897        11.895       -.10992E-06   -.33660E-03
   7  norm          .10013E-03    1.8910       -.42150E-06** at limit **
   8  norm          .10000E-03    26.245        .17114E-05** at limit **
   9  norm          1.8280        3.9774       -.36806E-06   -.62619E-03
  10  Prefactor     .10000E-03    58.612       -.19635E-05** at limit **
  11  Prefactor     16.801        17.163       -.42316E-06   -.24873E-04
  12  norm          1.6974        1.1136        .30162E-07   -.10387E-03
  13  norm          .10000E-03    4.5290        .74366E-08** at limit **
  14  Prefactor     .10000E-03    26.839       -.21733E-05** at limit **
  15  norm          5.6001        5.1766       -.47957E-07   -.30656E-03
  16  norm          3.9461        5.2197       -.86504E-08   -.25551E-04
  17  Normalizat    .89600        .21063       -.90450E-06    .33613E-04
  18  Prefactor     .92896        .15660        .19741E-06    .13783E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 19.4162
  Prefactor  = 0.000100006
  Prefactor  = 113.831
  Prefactor  = 2.44816
  Prefactor  = 20.5453
  norm       = 17.8971
  norm       = 0.000100135
  norm       = 0.0001
  norm       = 1.82797
  Prefactor  = 0.0001
  Prefactor  = 16.8013
  norm       = 1.69736
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.60008
  norm       = 3.94611
  Normalizat = 0.896
  Prefactor  = 0.928962
 **********
 **   18 **HESSE 
 **********

 FCN=   5130.542     FROM HESSE     STATUS=OK           254 CALLS     2006 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.416        18.920        .90835E-04   -1.4826    
   2  Prefactor     .10001E-03    25.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     113.83        125.26        .18855E-03   -1.3570    
   4  Prefactor     2.4482        4.4231        .19809E-03   -1.5395    
   5  Prefactor     20.545        38.059        .88112E-04   -1.4801    
   6  norm          17.897        11.892        .47339E-03   -1.4862    
   7  norm          .10013E-03    28.700        .18965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    26.378        .21224E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.8280        3.9750        .20062E-03   -1.5438    
  10  Prefactor     .10000E-03    58.863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.801        17.218        .97726E-04   -1.4888    
  12  norm          1.6974        1.1123        .58316E-04   -1.5447    
  13  norm          .10000E-03    4.5517        .14884E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    26.923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.6001        5.1896        .14829E-03   -1.5235    
  16  norm          3.9461        5.2131        .18311E-03   -1.5311    
  17  Normalizat    .89600        .24922        .27317E-03   -.96601    
  18  Prefactor     .92896        .18546        .20737E-03   -.95136    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.22902e-09
Minuit parameter uncertainties:
  1  18.9254
  2  0.000796315
  3  125.549
  4  4.42373
  5  38.1038
  6  11.8932
  7  0.00393334
  8  6.13715e-05
  9  3.97555
  10  4.23122e-06
  11  17.223
  12  1.11231
  13  3.19937e-06
  14  1.86748e-05
  15  5.19002
  16  5.21366
  17  0.249536
  18  0.185583
Done.

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

Extracting fit parameters...

4FGL J0831.8+0429
   Spectrum: LogParabola
306         norm:  1.697e+00  1.112e+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

GAL_V02
   Spectrum: PowerLaw
505    Prefactor:  9.290e-01  1.856e-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:  8.960e-01  2.495e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.35
Ra Dec: 127.973 4.494
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 6.01e-08 +/- 3.94e-08
Energy Flux (Fixed Index): 2.41e-05 +/- 1.58e-05

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) = 5130.50139961
delta logL = 0.0407106322637

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5130.49830629
delta logL = 0.0438039554128

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7566       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3761       1.0000          .0000       5.0000    
     3 'Normalizat'    .87862       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93616       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=   5130.498     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      192 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7559        28.990        .79056E-03    .15612E-02
   2  alpha         2.3760        2.8440        .38987        .11952E-04
   3  Normalizat    .87862        .17250        .44628E-01    .14334E-04
   4  Prefactor     .93617        .10162        .45464E-01    .49190E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.75594
  alpha      = 2.376
  Normalizat = 0.878616
  Prefactor  = 0.936171
 **********
 **   18 **HESSE 
 **********

 FCN=   5130.498     FROM HESSE     STATUS=OK            33 CALLS      225 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7559        1.0821        .15811E-03   -1.5443    
   2  alpha         2.3760        .63722        .14066E-01   -.49619E-01
   3  Normalizat    .87862        .24582        .27552E-03   -.97216    
   4  Prefactor     .93617        .18550        .20662E-03   -.94888    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51963e-10
Minuit parameter uncertainties:
  1  1.08214
  2  0.644352
  3  0.246131
  4  0.185628
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/520932': 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) = 5130.49830607
delta logL = 0.043804173426

Extracting fit parameters...

4FGL J0831.8+0429
   Spectrum: LogParabola
306         norm:  1.756e+00  1.082e+00  1.000e-04  1.000e+04 ( 1.000e-11)
307        alpha:  2.376e+00  6.444e-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:  9.362e-01  1.856e-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:  8.786e-01  2.461e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.43
Ra Dec: 127.973 4.494
Photon Index (Free Index): 2.38 +/- 0.64
Photon Flux (Free Index): 7.50e-08 +/- 6.58e-08
Energy Flux (Free Index): 2.38e-05 +/- 1.47e-05

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/520932/cmap_HighResolution_382665601_382924801_4FGL_J0831.8+0429_daily_bin553.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.01e-08', energy_flux2='2.38e-05', photon_flux_error='3.94e-08', dlogl='4.38e-02', energy_flux='2.41e-05', photon_flux2='7.50e-08', job_status='DONE', time_completed='2021-08-29 22:52:29.705989', photon_index_error2='0.64', photon_index2='2.38', ts='6.35', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='1.47e-05', EG='0.90', time_epoch_completed='1630302749.71', return_code='0', job_id='520932', GAL2='0.94', EG2='0.88', return_code2='0', energy_flux_error='1.58e-05', photon_flux_error2='6.58e-08', ts2='6.43', photon_index='2.18' WHERE bin_id='553' AND source_name='4FGL J0831.8+0429' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 22:52:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 520932: <4FGL_J0831.8+0429_daily_bin553> in cluster <slac> Done

Job <4FGL_J0831.8+0429_daily_bin553> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Aug 29 22:40:48 2021
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 22:40:49 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:40:49 2021
Terminated at Sun Aug 29 22:52:30 2021
Results reported at Sun Aug 29 22:52:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0831.8+0429_daily_bin553 127.973 4.4941 382665601 382924801 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 :                                   478.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             278.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   701 sec.
    Turnaround time :                            702 sec.

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

