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


Performing analysis on: 4FGL_J0831.8+0429_daily_bin550
RA = 127.973, Dec = 4.4941
tmin = 381888001, tmax = 382147201
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='520927', job_status='RUN', time_executed='2021-08-29 22:44:16.062382', time_epoch_executed='1630302256.06' WHERE source_name='4FGL J0831.8+0429' and cadence='daily' and bin_id='550'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/520927

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/520927/ft1_4FGL_J0831.8+0429_daily_bin550.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/520927/ft2_4FGL_J0831.8+0429_daily_bin550.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/520927/ft1_4FGL_J0831.8+0429_daily_bin550.fits outfile=/scratch/kocevski/520927/ft1_filteredMKT_4FGL_J0831.8+0429_daily_bin550.fits ra=127.973 dec=4.4941 rad=12.0 tmin=381888001.0 tmax=382147201.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.25
user 4.55
sys 0.46

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/520927/ft2_4FGL_J0831.8+0429_daily_bin550.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/520927/ft1_filteredMKT_4FGL_J0831.8+0429_daily_bin550.fits evtable="EVENTS" outfile="/scratch/kocevski/520927/ft1_filtered_4FGL_J0831.8+0429_daily_bin550.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.91
user 0.35
sys 0.40

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/520927/ft1_filtered_4FGL_J0831.8+0429_daily_bin550.fits" evtable="EVENTS" scfile=/scratch/kocevski/520927/ft2_4FGL_J0831.8+0429_daily_bin550.fits sctable="SC_DATA" outfile=/scratch/kocevski/520927/ltcube_381888001_382147201_4FGL_J0831.8+0429_daily_bin550.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/520927/ft2_4FGL_J0831.8+0429_daily_bin550.fits
.....................!
real 12.72
user 11.59
sys 0.64

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/520927/ft1_filtered_4FGL_J0831.8+0429_daily_bin550.fits evtable="EVENTS" scfile=/scratch/kocevski/520927/ft2_4FGL_J0831.8+0429_daily_bin550.fits sctable="SC_DATA" expcube=/scratch/kocevski/520927/ltcube_381888001_382147201_4FGL_J0831.8+0429_daily_bin550.fits outfile=/scratch/kocevski/520927/expmap_381888001_382147201_4FGL_J0831.8+0429_daily_bin550.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/520927/ltcube_381888001_382147201_4FGL_J0831.8+0429_daily_bin550.fits
.....................!
real 192.28
user 185.29
sys 4.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/520927/ft1_filtered_4FGL_J0831.8+0429_daily_bin550.fits scfile=/scratch/kocevski/520927/ft2_4FGL_J0831.8+0429_daily_bin550.fits outfile=/scratch/kocevski/520927/cmap_381888001_382147201_4FGL_J0831.8+0429_daily_bin550.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 0.79
user 0.37
sys 0.40

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/520927/ft1_filtered_4FGL_J0831.8+0429_daily_bin550.fits scfile=/scratch/kocevski/520927/ft2_4FGL_J0831.8+0429_daily_bin550.fits outfile=/scratch/kocevski/520927/cmap_HighResolution_381888001_382147201_4FGL_J0831.8+0429_daily_bin550.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 0.76
user 0.38
sys 0.35

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    18.061       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      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.329       1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.534       1.0000         .10000E-03   10000.    
    12 'norm      '    1.7364       1.0000         .10000E-03   10000.    
    13 'norm      '    6.7567       1.0000         .10000E-03   10000.    
    14 'Prefactor '    31.351       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.7041       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .70109       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.2287       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=   6401.301     FROM MIGRAD    STATUS=CONVERGED    354 CALLS     1729 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.9650        .90712E-02** at limit **
   2  Prefactor     .10000E-03    13.362        .90712E-02** at limit **
   3  Prefactor     .10000E-03    64.663        .90712E-02** at limit **
   4  Prefactor     .10000E-03    2.1344        .90712E-02** at limit **
   5  Prefactor     .10000E-03    9.8270        .90712E-02** at limit **
   6  norm          18.059        11.388        .23561E-02   -.73761E-03
   7  norm          .10000E-03    .73887        .90712E-02** at limit **
   8  norm          .10000E-03    6.6821        .90712E-02** at limit **
   9  norm          .10000E-03    1.6476        .39617E-01** at limit **
  10  Prefactor     11.330        24.173        .29756E-02   -.33073E-03
  11  Prefactor     18.533        16.278        .23258E-02   -.89499E-04
  12  norm          1.7364        1.1753        .79615E-02    .56553E-03
  13  norm          6.7570        7.3201        .38591E-02    .26325E-02
  14  Prefactor     31.351        37.387        .17890E-02    .39566E-03
  15  norm          .10000E-03    1.2720        .90712E-02** at limit **
  16  norm          1.7048        5.1169        .80539E-02    .20351E-02
  17  Normalizat    .70119        .20012        .72305E-01   -.86337E-04
  18  Prefactor     1.2287        .15410        .33984E-01   -.12228E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.0587
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 11.3304
  Prefactor  = 18.533
  norm       = 1.73644
  norm       = 6.75697
  Prefactor  = 31.3511
  norm       = 0.0001
  norm       = 1.7048
  Normalizat = 0.701185
  Prefactor  = 1.22865
 **********
 **   18 **HESSE 
 **********

 FCN=   6401.301     FROM HESSE     STATUS=OK           238 CALLS     1967 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.9769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.715        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    64.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.1369        .11414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.8423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          18.059        11.379        .94244E-04   -1.4858    
   7  norm          .10000E-03    .74159        .67158E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    6.6898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.0226        .19943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.330        24.167        .11902E-03   -1.5035    
  11  Prefactor     18.533        16.299        .93033E-04   -1.4847    
  12  norm          1.7364        1.1655        .67373E-04   -1.5444    
  13  norm          6.7570        7.3144        .77181E-03   -1.5188    
  14  Prefactor     31.351        37.492        .71560E-04   -1.4588    
  15  norm          .10000E-03    1.2803        .88102E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.7048        5.0787        .30439E-03   -1.5447    
  17  Normalizat    .70119        .22966        .32003E-03   -1.0385    
  18  Prefactor     1.2287        .17759        .19766E-03   -.85454    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.44105e-09
Minuit parameter uncertainties:
  1  0.000111427
  2  5.07954e-06
  3  0.000447578
  4  8.16777e-06
  5  3.47011e-05
  6  11.3802
  7  5.64023e-06
  8  0.000107302
  9  1.70301e-05
  10  24.1878
  11  16.3029
  12  1.16554
  13  7.31532
  14  37.5199
  15  7.61137e-07
  16  5.08001
  17  0.229977
  18  0.177681
Done.

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

Extracting fit parameters...

4FGL J0831.8+0429
   Spectrum: LogParabola
306         norm:  1.736e+00  1.166e+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:  1.229e+00  1.777e-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:  7.012e-01  2.300e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.63
Ra Dec: 127.973 4.494
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 6.15e-08 +/- 4.13e-08
Energy Flux (Fixed Index): 2.46e-05 +/- 1.65e-05

TS (Fixed Index): 3.63
Ra Dec: 127.973 4.494
Photon Flux Upper Limit: 1.46e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.84e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/520927/likelihoodResults_381888001_382147201_4FGL_J0831.8+0429_daily_bin550.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) = 6400.90840204
delta logL = 0.392971289792

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6400.90354976
delta logL = 0.397823571506

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3664       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7915       1.0000          .0000       5.0000    
     3 'Normalizat'    .65629       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2539       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=   6400.904     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      229 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3664        12.932        .93310E-02   -.62331E-03
   2  alpha         2.7914        3.8757        .35185        .46479E-04
   3  Normalizat    .65625        .62121E-01    .74519E-01    .32373E-04
   4  Prefactor     1.2540        .49070E-01    .33465E-01   -.16760E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.36641
  alpha      = 2.79144
  Normalizat = 0.656246
  Prefactor  = 1.254
 **********
 **   18 **HESSE 
 **********

 FCN=   6400.904     FROM HESSE     STATUS=OK            33 CALLS      262 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3664        1.2187        .52285E-04   -1.5474    
   2  alpha         2.7914        .77582        .13558E-01    .11684    
   3  Normalizat    .65625        .22876        .32988E-03   -1.0565    
   4  Prefactor     1.2540        .18007        .19589E-03   -.84685    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.06194e-10
Minuit parameter uncertainties:
  1  1.21874
  2  0.789034
  3  0.229094
  4  0.18016
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/520927': 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) = 6400.90354969
delta logL = 0.397823638288

Extracting fit parameters...

4FGL J0831.8+0429
   Spectrum: LogParabola
306         norm:  1.366e+00  1.219e+00  1.000e-04  1.000e+04 ( 1.000e-11)
307        alpha:  2.791e+00  7.890e-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.254e+00  1.802e-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:  6.562e-01  2.291e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.49
Ra Dec: 127.973 4.494
Photon Index (Free Index): 2.79 +/- 0.79
Photon Flux (Free Index): 9.20e-08 +/- 5.91e-08
Energy Flux (Free Index): 2.11e-05 +/- 1.32e-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/520927/cmap_HighResolution_381888001_382147201_4FGL_J0831.8+0429_daily_bin550.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.84e-05', comment='SUCCESS', photon_flux='6.15e-08', energy_flux2='2.11e-05', photon_flux_error='4.13e-08', dlogl='3.98e-01', energy_flux='2.46e-05', photon_flux2='9.20e-08', job_status='DONE', time_completed='2021-08-29 22:53:31.760386', photon_index_error2='0.79', photon_index2='2.79', ts='3.63', fit_tolerance='1e-08', GAL='1.23', photon_index_error='0.00', photon_flux_upper_limit='1.46e-07', energy_flux_error2='1.32e-05', EG='0.70', time_epoch_completed='1630302811.76', return_code='0', job_id='520927', GAL2='1.25', EG2='0.66', return_code2='0', energy_flux_error='1.65e-05', photon_flux_error2='5.91e-08', ts2='4.49', photon_index='2.18' WHERE bin_id='550' AND source_name='4FGL J0831.8+0429' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 22:53:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 520927: <4FGL_J0831.8+0429_daily_bin550> in cluster <slac> Done

Job <4FGL_J0831.8+0429_daily_bin550> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Aug 29 22:40:47 2021
Job was executed on host(s) <bullet0046>, 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:53:32 2021
Results reported at Sun Aug 29 22:53:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0831.8+0429_daily_bin550 127.973 4.4941 381888001 382147201 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 :                                   552.48 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   763 sec.
    Turnaround time :                            765 sec.

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

