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


Performing analysis on: 4FGL_J0831.8+0429_daily_bin622
RA = 127.973, Dec = 4.4941
tmin = 400550401, tmax = 400809601
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='522557', job_status='RUN', time_executed='2021-08-29 22:50:33.916674', time_epoch_executed='1630302633.92' WHERE source_name='4FGL J0831.8+0429' and cadence='daily' and bin_id='622'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/522557

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/522557/ft1_4FGL_J0831.8+0429_daily_bin622.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/522557/ft2_4FGL_J0831.8+0429_daily_bin622.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/522557/ft1_4FGL_J0831.8+0429_daily_bin622.fits outfile=/scratch/kocevski/522557/ft1_filteredMKT_4FGL_J0831.8+0429_daily_bin622.fits ra=127.973 dec=4.4941 rad=12.0 tmin=400550401.0 tmax=400809601.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 10.46
user 4.16
sys 5.91

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/522557/ft1_filtered_4FGL_J0831.8+0429_daily_bin622.fits" evtable="EVENTS" scfile=/scratch/kocevski/522557/ft2_4FGL_J0831.8+0429_daily_bin622.fits sctable="SC_DATA" outfile=/scratch/kocevski/522557/ltcube_400550401_400809601_4FGL_J0831.8+0429_daily_bin622.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/522557/ft2_4FGL_J0831.8+0429_daily_bin622.fits
.....................!
real 19.21
user 11.64
sys 6.97

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/522557/ft1_filtered_4FGL_J0831.8+0429_daily_bin622.fits evtable="EVENTS" scfile=/scratch/kocevski/522557/ft2_4FGL_J0831.8+0429_daily_bin622.fits sctable="SC_DATA" expcube=/scratch/kocevski/522557/ltcube_400550401_400809601_4FGL_J0831.8+0429_daily_bin622.fits outfile=/scratch/kocevski/522557/expmap_400550401_400809601_4FGL_J0831.8+0429_daily_bin622.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/522557/ltcube_400550401_400809601_4FGL_J0831.8+0429_daily_bin622.fits
.....................!
real 204.37
user 186.66
sys 12.16

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/522557/ft1_filtered_4FGL_J0831.8+0429_daily_bin622.fits scfile=/scratch/kocevski/522557/ft2_4FGL_J0831.8+0429_daily_bin622.fits outfile=/scratch/kocevski/522557/cmap_400550401_400809601_4FGL_J0831.8+0429_daily_bin622.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 6.55
user 0.38
sys 5.91

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/522557/ft1_filtered_4FGL_J0831.8+0429_daily_bin622.fits scfile=/scratch/kocevski/522557/ft2_4FGL_J0831.8+0429_daily_bin622.fits outfile=/scratch/kocevski/522557/cmap_HighResolution_400550401_400809601_4FGL_J0831.8+0429_daily_bin622.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 6.37
user 0.38
sys 5.93

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    6.6973       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .26478E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.7138       1.0000         .10000E-03   10000.    
     8 'norm      '    4.0677       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    26.052       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.2180       1.0000         .10000E-03   10000.    
    13 'norm      '    8.0929       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .12936E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.2456       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .98626       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0117       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=   6690.507     FROM MIGRAD    STATUS=CONVERGED    362 CALLS     1722 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.2302        .70859E-06** at limit **
   2  Prefactor     6.6974        7.7303       -.12689E-06   -.33936E-04
   3  Prefactor     .10000E-03    38.838        .85914E-06** at limit **
   4  Prefactor     .10000E-03    1.8183       -.60408E-06** at limit **
   5  Prefactor     .10000E-03    22.021        .63209E-06** at limit **
   6  norm          .10001E-03    5.4918        .62812E-06** at limit **
   7  norm          2.7136        2.2760        .77103E-07    .17996E-04
   8  norm          4.0685        7.9252        .65048E-06   -.30664E-03
   9  norm          .10000E-03    1.3476        .21805E-06** at limit **
  10  Prefactor     26.055        33.444        .31953E-05    .76086E-04
  11  Prefactor     .10000E-03    6.1318        .41752E-06** at limit **
  12  norm          2.2181        1.1070       -.12380E-06   -.43712E-03
  13  norm          8.0933        7.6141        .39923E-07   -.40724E-04
  14  Prefactor     .10000E-03    16.319       -.45332E-06** at limit **
  15  norm          .10000E-03    2.9513        .73934E-06** at limit **
  16  norm          2.2450        6.1023       -.96135E-07   -.13847E-03
  17  Normalizat    .98615        .18832       -.10203E-05   -.14660E-03
  18  Prefactor     1.0118        .14437        .45167E-06   -.23511E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 6.69744
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100006
  norm       = 2.71364
  norm       = 4.06855
  norm       = 0.0001
  Prefactor  = 26.0553
  Prefactor  = 0.0001
  norm       = 2.21814
  norm       = 8.0933
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 2.24497
  Normalizat = 0.986154
  Prefactor  = 1.01177
 **********
 **   18 **HESSE 
 **********

 FCN=   6690.507     FROM HESSE     STATUS=OK           246 CALLS     1968 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.2596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.6974        7.7280        .15505E-03   -1.5190    
   3  Prefactor     .10000E-03    38.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.8313        .10799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    22.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10001E-03    20.697        .36327E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.7136        2.2741        .11003E-03   -1.5378    
   8  norm          4.0685        15.679        .99955E-03   -1.5305    
   9  norm          .10000E-03    1.3560        .92735E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     26.055        34.916        .78486E-04   -1.4687    
  11  Prefactor     .10000E-03    6.1720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.2181        1.1047        .57988E-04   -1.5410    
  13  norm          8.0933        7.6119        .14094E-03   -1.5139    
  14  Prefactor     .10000E-03    16.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.4663        .26021E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.2450        6.1215        .27423E-03   -1.5408    
  17  Normalizat    .98615        .21907        .27062E-03   -.93496    
  18  Prefactor     1.0118        .16958        .21013E-03   -.92338    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07432e-09
Minuit parameter uncertainties:
  1  2.13301e-05
  2  7.72916
  3  6.48293e-05
  4  1.01093e-05
  5  1.44573e-05
  6  0.000719397
  7  2.27415
  8  15.6948
  9  2.47067e-06
  10  34.9437
  11  7.6748e-06
  12  1.10471
  13  7.61286
  14  1.79093e-05
  15  0.000106132
  16  6.12323
  17  0.219267
  18  0.16967
Done.

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

Extracting fit parameters...

4FGL J0831.8+0429
   Spectrum: LogParabola
306         norm:  2.218e+00  1.105e+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.012e+00  1.697e-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:  9.862e-01  2.193e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.45
Ra Dec: 127.973 4.494
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 7.86e-08 +/- 3.91e-08
Energy Flux (Fixed Index): 3.15e-05 +/- 1.57e-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) = 6690.09051841
delta logL = 0.416656246687

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6690.08820725
delta logL = 0.418967404924

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9990       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5994       1.0000          .0000       5.0000    
     3 'Normalizat'    .94853       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0308       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=   6690.088     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      231 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9985        16.209        .73235E-02    .55046E-03
   2  alpha         2.5996        3.7677        .28520        .98048E-05
   3  Normalizat    .94864        .88644E-01    .45519E-01   -.18858E-04
   4  Prefactor     1.0307        .67943E-01    .41197E-01    .19739E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.9985
  alpha      = 2.59965
  Normalizat = 0.94864
  Prefactor  = 1.03072
 **********
 **   18 **HESSE 
 **********

 FCN=   6690.088     FROM HESSE     STATUS=OK            31 CALLS      262 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9985        1.1014        .50774E-04   -1.5425    
   2  alpha         2.5996        .48607        .11563E-01    .39870E-01
   3  Normalizat    .94864        .21925        .27513E-03   -.94771    
   4  Prefactor     1.0307        .17016        .20837E-03   -.91712    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8158e-10
Minuit parameter uncertainties:
  1  1.10141
  2  0.489193
  3  0.219461
  4  0.170246
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/522557': 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) = 6690.08820692
delta logL = 0.418967733376

Extracting fit parameters...

4FGL J0831.8+0429
   Spectrum: LogParabola
306         norm:  1.998e+00  1.101e+00  1.000e-04  1.000e+04 ( 1.000e-11)
307        alpha:  2.600e+00  4.892e-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.031e+00  1.702e-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:  9.486e-01  2.195e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.34
Ra Dec: 127.973 4.494
Photon Index (Free Index): 2.60 +/- 0.49
Photon Flux (Free Index): 1.08e-07 +/- 5.65e-08
Energy Flux (Free Index): 2.82e-05 +/- 1.36e-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/522557/cmap_HighResolution_400550401_400809601_4FGL_J0831.8+0429_daily_bin622.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.86e-08', energy_flux2='2.82e-05', photon_flux_error='3.91e-08', dlogl='4.19e-01', energy_flux='3.15e-05', photon_flux2='1.08e-07', job_status='DONE', time_completed='2021-08-29 23:00:50.856140', photon_index_error2='0.49', photon_index2='2.60', ts='7.45', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='1.36e-05', EG='0.99', time_epoch_completed='1630303250.86', return_code='0', job_id='522557', GAL2='1.03', EG2='0.95', return_code2='0', energy_flux_error='1.57e-05', photon_flux_error2='5.65e-08', ts2='8.34', photon_index='2.18' WHERE bin_id='622' AND source_name='4FGL J0831.8+0429' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 23:00:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0005>
Subject: Job 522557: <4FGL_J0831.8+0429_daily_bin622> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0831.8+0429_daily_bin622 127.973 4.4941 400550401 400809601 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 :                                   692.51 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             272.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            914 sec.

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

