/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 128 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7346
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0831.8+0429_daily_bin119
RA = 127.973, Dec = 4.4941
tmin = 270172801, tmax = 270432001
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='519232', job_status='RUN', time_executed='2021-08-29 22:38:20.592279', time_epoch_executed='1630301900.59' WHERE source_name='4FGL J0831.8+0429' and cadence='daily' and bin_id='119'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/519232

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/519232/ft1_4FGL_J0831.8+0429_daily_bin119.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/519232/ft2_4FGL_J0831.8+0429_daily_bin119.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/519232/ft1_4FGL_J0831.8+0429_daily_bin119.fits outfile=/scratch/kocevski/519232/ft1_filteredMKT_4FGL_J0831.8+0429_daily_bin119.fits ra=127.973 dec=4.4941 rad=12.0 tmin=270172801.0 tmax=270432001.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.03
user 1.45
sys 1.55

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/519232/ft2_4FGL_J0831.8+0429_daily_bin119.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/519232/ft1_filteredMKT_4FGL_J0831.8+0429_daily_bin119.fits evtable="EVENTS" outfile="/scratch/kocevski/519232/ft1_filtered_4FGL_J0831.8+0429_daily_bin119.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.84
user 0.32
sys 1.49

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/519232/ft1_filtered_4FGL_J0831.8+0429_daily_bin119.fits" evtable="EVENTS" scfile=/scratch/kocevski/519232/ft2_4FGL_J0831.8+0429_daily_bin119.fits sctable="SC_DATA" outfile=/scratch/kocevski/519232/ltcube_270172801_270432001_4FGL_J0831.8+0429_daily_bin119.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/519232/ft2_4FGL_J0831.8+0429_daily_bin119.fits
.....................!
real 13.84
user 11.92
sys 1.85

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/519232/ft1_filtered_4FGL_J0831.8+0429_daily_bin119.fits evtable="EVENTS" scfile=/scratch/kocevski/519232/ft2_4FGL_J0831.8+0429_daily_bin119.fits sctable="SC_DATA" expcube=/scratch/kocevski/519232/ltcube_270172801_270432001_4FGL_J0831.8+0429_daily_bin119.fits outfile=/scratch/kocevski/519232/expmap_270172801_270432001_4FGL_J0831.8+0429_daily_bin119.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/519232/ltcube_270172801_270432001_4FGL_J0831.8+0429_daily_bin119.fits
.....................!
real 191.95
user 185.66
sys 5.90

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/519232/ft1_filtered_4FGL_J0831.8+0429_daily_bin119.fits scfile=/scratch/kocevski/519232/ft2_4FGL_J0831.8+0429_daily_bin119.fits outfile=/scratch/kocevski/519232/cmap_270172801_270432001_4FGL_J0831.8+0429_daily_bin119.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.39
user 0.35
sys 1.47

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/519232/ft1_filtered_4FGL_J0831.8+0429_daily_bin119.fits scfile=/scratch/kocevski/519232/ft2_4FGL_J0831.8+0429_daily_bin119.fits outfile=/scratch/kocevski/519232/cmap_HighResolution_270172801_270432001_4FGL_J0831.8+0429_daily_bin119.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.97
user 0.36
sys 1.50

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.0088       1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.653       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.6651       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10087E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.0614       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.0002       1.0000         .10000E-03   10000.    
    11 'Prefactor '    31.866       1.0000         .10000E-03   10000.    
    12 'norm      '    1.4505       1.0000         .10000E-03   10000.    
    13 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .16977E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    3.3254       1.0000         .10000E-03   10000.    
    16 'norm      '    .10109E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.3643       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .95166       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=   9059.743     FROM MIGRAD    STATUS=CONVERGED    370 CALLS     1720 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.9615        21.273        .29339E-05    .81713E-04
   2  Prefactor     13.673        16.528       -.64351E-05    .32550E-03
   3  Prefactor     .10000E-03    52.991        .13509E-05** at limit **
   4  Prefactor     1.6671        4.5883       -.18072E-05   -.93153E-03
   5  Prefactor     .10000E-03    21.663        .75088E-07** at limit **
   6  norm          .10000E-03    3.1494        .17693E-06** at limit **
   7  norm          .10000E-03    1.0789       -.41923E-08** at limit **
   8  norm          .10000E-03    8.7233        .36892E-06** at limit **
   9  norm          3.0618        2.6299       -.42493E-07    .12810E-04
  10  Prefactor     1.9365        92.729       -.16809E-04    .97448E-05
  11  Prefactor     31.859        15.409       -.43633E-06    .17088E-03
  12  norm          1.4507        .90850       -.10690E-06   -.51388E-03
  13  norm          .10000E-03    3.0037       -.26098E-07** at limit **
  14  Prefactor     .10000E-03    163.46       -.55559E-05** at limit **
  15  norm          3.3265        3.3384       -.41633E-06   -.58931E-03
  16  norm          .10000E-03    8.6962        .17850E-06** at limit **
  17  Normalizat    1.3645        .17241        .15262E-05    .84220E-04
  18  Prefactor     .95132        .12987        .20818E-06    .20297E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.96153
  Prefactor  = 13.6728
  Prefactor  = 0.0001
  Prefactor  = 1.66705
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.06176
  Prefactor  = 1.9365
  Prefactor  = 31.859
  norm       = 1.45073
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.32649
  norm       = 0.0001
  Normalizat = 1.36454
  Prefactor  = 0.95132
 **********
 **   18 **HESSE 
 **********

 FCN=   9059.743     FROM HESSE     STATUS=OK           246 CALLS     1966 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.9615        20.994        .15153E-03   -1.5180    
   2  Prefactor     13.673        16.009        .10840E-03   -1.4968    
   3  Prefactor     .10000E-03    52.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.6671        4.8355        .32683E-03   -1.5450    
   5  Prefactor     .10000E-03    21.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.1574        .16494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.0864        .96516E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    8.7877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.0618        2.6324        .13863E-03   -1.5358    
  10  Prefactor     1.9365        94.428        .29284E-03   -1.5430    
  11  Prefactor     31.859        15.412        .70981E-04   -1.4578    
  12  norm          1.4507        .89989        .68723E-04   -1.5467    
  13  norm          .10000E-03    3.0687        .16108E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    170.96        .40741E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.3265        3.3595        .16869E-03   -1.5343    
  16  norm          .10000E-03    9.0224        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.3645        .20338        .26280E-03   -.81660    
  18  Prefactor     .95132        .15350        .23861E-03   -.94370    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59194e-09
Minuit parameter uncertainties:
  1  21.0165
  2  16.0141
  3  4.27995e-05
  4  4.83666
  5  4.65011e-05
  6  3.06158e-06
  7  5.82517e-07
  8  2.80744e-05
  9  2.6325
  10  27.0898
  11  15.4137
  12  0.899897
  13  4.94257e-06
  14  0.000115181
  15  3.35969
  16  2.96526e-05
  17  0.203502
  18  0.15357
Done.

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

Extracting fit parameters...

4FGL J0831.8+0429
   Spectrum: LogParabola
306         norm:  1.451e+00  8.999e-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:  9.513e-01  1.536e-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.365e+00  2.035e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.15
Ra Dec: 127.973 4.494
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 5.14e-08 +/- 3.19e-08
Energy Flux (Fixed Index): 2.06e-05 +/- 1.28e-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) = 9059.5935908
delta logL = 0.149161669253

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9059.59041856
delta logL = 0.152333903461

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4915       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9383       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3749       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94579       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=   9059.590     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      202 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4916        2.4148        .87746E-02    .61869E-03
   2  alpha         1.9381        .93126        .36279       -.21761E-04
   3  Normalizat    1.3750        .16806        .59235E-01    .71069E-05
   4  Prefactor     .94578        .13408        .45586E-01    .15220E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.49162
  alpha      = 1.93814
  Normalizat = 1.37497
  Prefactor  = 0.945777
 **********
 **   18 **HESSE 
 **********

 FCN=   9059.590     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4916        .92764        .69747E-04   -1.5464    
   2  alpha         1.9381        .42298        .13957E-01   -.22668    
   3  Normalizat    1.3750        .19579        .26196E-03   -.81355    
   4  Prefactor     .94578        .15230        .23920E-03   -.94559    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.31955e-10
Minuit parameter uncertainties:
  1  0.92765
  2  0.425132
  3  0.195892
  4  0.15237
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/519232': 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) = 9059.59041843
delta logL = 0.152334039023

Extracting fit parameters...

4FGL J0831.8+0429
   Spectrum: LogParabola
306         norm:  1.492e+00  9.277e-01  1.000e-04  1.000e+04 ( 1.000e-11)
307        alpha:  1.938e+00  4.251e-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.458e-01  1.524e-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.375e+00  1.959e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.46
Ra Dec: 127.973 4.494
Photon Index (Free Index): 1.94 +/- 0.43
Photon Flux (Free Index): 4.34e-08 +/- 3.12e-08
Energy Flux (Free Index): 2.54e-05 +/- 1.88e-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/519232/cmap_HighResolution_270172801_270432001_4FGL_J0831.8+0429_daily_bin119.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.14e-08', energy_flux2='2.54e-05', photon_flux_error='3.19e-08', dlogl='1.52e-01', energy_flux='2.06e-05', photon_flux2='4.34e-08', job_status='DONE', time_completed='2021-08-29 22:48:23.932178', photon_index_error2='0.43', photon_index2='1.94', ts='4.15', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='1.88e-05', EG='1.36', time_epoch_completed='1630302503.93', return_code='0', job_id='519232', GAL2='0.95', EG2='1.37', return_code2='0', energy_flux_error='1.28e-05', photon_flux_error2='3.12e-08', ts2='4.46', photon_index='2.18' WHERE bin_id='119' AND source_name='4FGL J0831.8+0429' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 22:48:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0139>
Subject: Job 519232: <4FGL_J0831.8+0429_daily_bin119> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0831.8+0429_daily_bin119 127.973 4.4941 270172801 270432001 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 :                                   619.06 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             309.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   769 sec.
    Turnaround time :                            770 sec.

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

