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


Performing analysis on: 4FGL_J0831.8+0429_daily_bin153
RA = 127.973, Dec = 4.4941
tmin = 278985601, tmax = 279244801
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='519293', job_status='RUN', time_executed='2021-08-29 22:38:06.685408', time_epoch_executed='1630301886.69' WHERE source_name='4FGL J0831.8+0429' and cadence='daily' and bin_id='153'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/519293

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/519293/ft1_4FGL_J0831.8+0429_daily_bin153.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/519293/ft2_4FGL_J0831.8+0429_daily_bin153.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/519293/ft1_4FGL_J0831.8+0429_daily_bin153.fits outfile=/scratch/kocevski/519293/ft1_filteredMKT_4FGL_J0831.8+0429_daily_bin153.fits ra=127.973 dec=4.4941 rad=12.0 tmin=278985601.0 tmax=279244801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.11
user 3.54
sys 0.46

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/519293/ft1_filtered_4FGL_J0831.8+0429_daily_bin153.fits" evtable="EVENTS" scfile=/scratch/kocevski/519293/ft2_4FGL_J0831.8+0429_daily_bin153.fits sctable="SC_DATA" outfile=/scratch/kocevski/519293/ltcube_278985601_279244801_4FGL_J0831.8+0429_daily_bin153.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/519293/ft2_4FGL_J0831.8+0429_daily_bin153.fits
.....................!
real 12.19
user 11.54
sys 0.59

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/519293/ft1_filtered_4FGL_J0831.8+0429_daily_bin153.fits evtable="EVENTS" scfile=/scratch/kocevski/519293/ft2_4FGL_J0831.8+0429_daily_bin153.fits sctable="SC_DATA" expcube=/scratch/kocevski/519293/ltcube_278985601_279244801_4FGL_J0831.8+0429_daily_bin153.fits outfile=/scratch/kocevski/519293/expmap_278985601_279244801_4FGL_J0831.8+0429_daily_bin153.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/519293/ltcube_278985601_279244801_4FGL_J0831.8+0429_daily_bin153.fits
.....................!
real 191.42
user 185.90
sys 4.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 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/519293/ft1_filtered_4FGL_J0831.8+0429_daily_bin153.fits scfile=/scratch/kocevski/519293/ft2_4FGL_J0831.8+0429_daily_bin153.fits outfile=/scratch/kocevski/519293/cmap_278985601_279244801_4FGL_J0831.8+0429_daily_bin153.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.48
user 0.36
sys 0.42

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/519293/ft1_filtered_4FGL_J0831.8+0429_daily_bin153.fits scfile=/scratch/kocevski/519293/ft2_4FGL_J0831.8+0429_daily_bin153.fits outfile=/scratch/kocevski/519293/cmap_HighResolution_278985601_279244801_4FGL_J0831.8+0429_daily_bin153.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.31
user 0.39
sys 0.39

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.218       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.6979       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.412       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    10.231       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11900E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .91520E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.2119       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    30.930       1.0000         .10000E-03   10000.    
    16 'norm      '    4.7121       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.1007       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .93395       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=   6458.128     FROM MIGRAD    STATUS=CONVERGED    353 CALLS     1458 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.218        17.233        .22841E-02    .28092E-04
   2  Prefactor     8.6975        8.4624        .33979E-02    .14089E-03
   3  Prefactor     .10019E-03    53.458        .90712E-02** at limit **
   4  Prefactor     12.410        8.7039        .28426E-02   -.92368E-03
   5  Prefactor     .10000E-03    8.5092        .90712E-02** at limit **
   6  norm          .10000E-03    11.540        .90712E-02** at limit **
   7  norm          .10000E-03    2.8536        .90712E-02** at limit **
   8  norm          .10000E-03    4.7240        .90712E-02** at limit **
   9  norm          10.232        4.8035        .31317E-02    .20675E-03
  10  Prefactor     .10001E-03    41.998        .90712E-02** at limit **
  11  Prefactor     .10018E-03    9.8819        .10410    ** at limit **
  12  norm          6.2120        1.5719        .40267E-02    .21397E-04
  13  norm          .10000E-03    2.2515        .90712E-02** at limit **
  14  Prefactor     .10018E-03    57.376        .90712E-02** at limit **
  15  norm          30.930        7.4118        .18011E-02    .45988E-03
  16  norm          4.7124        6.5798        .46343E-02   -.12861E-03
  17  Normalizat    1.1007        .20453        .65475E-01    .12227E-04
  18  Prefactor     .93389        .15298        .45436E-01    .44358E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 19.2181
  Prefactor  = 8.69754
  Prefactor  = 0.000100186
  Prefactor  = 12.4102
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 10.2316
  Prefactor  = 0.000100006
  Prefactor  = 0.000100185
  norm       = 6.212
  norm       = 0.0001
  Prefactor  = 0.000100183
  norm       = 30.9304
  norm       = 4.7124
  Normalizat = 1.10071
  Prefactor  = 0.933891
 **********
 **   18 **HESSE 
 **********

 FCN=   6458.128     FROM HESSE     STATUS=OK           242 CALLS     1700 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.218        17.228        .91364E-04   -1.4831    
   2  Prefactor     8.6975        8.4646        .13591E-03   -1.5118    
   3  Prefactor     .10019E-03    53.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.410        8.6987        .11370E-03   -1.5003    
   5  Prefactor     .10000E-03    8.5144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    11.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.9274        .26477E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.7256        .17059E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          10.232        4.8027        .11654E-03   -1.5068    
  10  Prefactor     .10001E-03    42.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10018E-03    50.086        .48237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.2120        1.5740        .48457E-04   -1.5209    
  13  norm          .10000E-03    2.2560        .11776E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10018E-03    57.663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          30.930        7.4176        .72045E-04   -1.4595    
  16  norm          4.7124        6.5708        .18537E-03   -1.5274    
  17  Normalizat    1.1007        .24001        .28964E-03   -.89729    
  18  Prefactor     .93389        .18091        .23692E-03   -.94967    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10106e-08
Minuit parameter uncertainties:
  1  17.2321
  2  8.4658
  3  0.00630461
  4  8.69955
  5  5.19327e-06
  6  2.86581e-06
  7  8.08556e-07
  8  8.48145e-07
  9  4.80287
  10  0.000980565
  11  0.00608794
  12  1.57404
  13  3.00097e-07
  14  0.00650031
  15  7.41786
  16  6.57178
  17  0.240243
  18  0.181024
Done.

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

Extracting fit parameters...

4FGL J0831.8+0429
   Spectrum: LogParabola
306         norm:  6.212e+00  1.574e+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.339e-01  1.810e-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.101e+00  2.402e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 55.43
Ra Dec: 127.973 4.494
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 2.20e-07 +/- 5.57e-08
Energy Flux (Fixed Index): 8.81e-05 +/- 2.23e-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) = 6457.15407375
delta logL = 0.974424236901

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6457.14531443
delta logL = 0.983183559755

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.0086       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8364       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1576       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91046       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=   6457.145     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      206 TOTAL
                     EDM=   .63E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.0087        1.5908        .40951E-02   -.22904E-04
   2  alpha         1.8364        .22157        .16628       -.26264E-04
   3  Normalizat    1.1576        .20153        .64140E-01    .99086E-05
   4  Prefactor     .91044        .15233        .45138E-01    .99331E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 6.00874
  alpha      = 1.83641
  Normalizat = 1.15763
  Prefactor  = 0.910439
 **********
 **   18 **HESSE 
 **********

 FCN=   6457.145     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .19E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.0087        1.6753        .50232E-04   -1.5218    
   2  alpha         1.8364        .24033        .71349E-02   -.26865    
   3  Normalizat    1.1576        .23904        .28372E-03   -.87922    
   4  Prefactor     .91044        .18023        .23976E-03   -.95777    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92916e-13
Minuit parameter uncertainties:
  1  1.67535
  2  0.240731
  3  0.239262
  4  0.180353
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/519293': 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) = 6457.1453144
delta logL = 0.983183586388

Extracting fit parameters...

4FGL J0831.8+0429
   Spectrum: LogParabola
306         norm:  6.009e+00  1.675e+00  1.000e-04  1.000e+04 ( 1.000e-11)
307        alpha:  1.836e+00  2.407e-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.104e-01  1.804e-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.158e+00  2.393e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 57.16
Ra Dec: 127.973 4.494
Photon Index (Free Index): 1.84 +/- 0.24
Photon Flux (Free Index): 1.63e-07 +/- 5.80e-08
Energy Flux (Free Index): 1.16e-04 +/- 4.23e-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/519293/cmap_HighResolution_278985601_279244801_4FGL_J0831.8+0429_daily_bin153.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.20e-07', energy_flux2='1.16e-04', photon_flux_error='5.57e-08', dlogl='9.83e-01', energy_flux='8.81e-05', photon_flux2='1.63e-07', job_status='DONE', time_completed='2021-08-29 22:46:31.437530', photon_index_error2='0.24', photon_index2='1.84', ts='55.43', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='4.23e-05', EG='1.10', time_epoch_completed='1630302391.44', return_code='0', job_id='519293', GAL2='0.91', EG2='1.16', return_code2='0', energy_flux_error='2.23e-05', photon_flux_error2='5.80e-08', ts2='57.16', photon_index='2.18' WHERE bin_id='153' AND source_name='4FGL J0831.8+0429' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 22:46:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 519293: <4FGL_J0831.8+0429_daily_bin153> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0831.8+0429_daily_bin153 127.973 4.4941 278985601 279244801 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 :                                   499.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             329.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   653 sec.
    Turnaround time :                            655 sec.

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

