/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 71 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 = 7409
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0831.8+0429_daily_bin326
RA = 127.973, Dec = 4.4941
tmin = 323827201, tmax = 324086401
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='520603', job_status='RUN', time_executed='2021-08-29 22:44:35.245405', time_epoch_executed='1630302275.25' WHERE source_name='4FGL J0831.8+0429' and cadence='daily' and bin_id='326'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/520603

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/520603/ft1_4FGL_J0831.8+0429_daily_bin326.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/520603/ft2_4FGL_J0831.8+0429_daily_bin326.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/520603/ft1_4FGL_J0831.8+0429_daily_bin326.fits outfile=/scratch/kocevski/520603/ft1_filteredMKT_4FGL_J0831.8+0429_daily_bin326.fits ra=127.973 dec=4.4941 rad=12.0 tmin=323827201.0 tmax=324086401.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 12.42
user 3.12
sys 8.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/520603/ft1_filtered_4FGL_J0831.8+0429_daily_bin326.fits" evtable="EVENTS" scfile=/scratch/kocevski/520603/ft2_4FGL_J0831.8+0429_daily_bin326.fits sctable="SC_DATA" outfile=/scratch/kocevski/520603/ltcube_323827201_324086401_4FGL_J0831.8+0429_daily_bin326.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/520603/ft2_4FGL_J0831.8+0429_daily_bin326.fits
.....................!
real 21.42
user 11.80
sys 9.44

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/520603/ft1_filtered_4FGL_J0831.8+0429_daily_bin326.fits evtable="EVENTS" scfile=/scratch/kocevski/520603/ft2_4FGL_J0831.8+0429_daily_bin326.fits sctable="SC_DATA" expcube=/scratch/kocevski/520603/ltcube_323827201_324086401_4FGL_J0831.8+0429_daily_bin326.fits outfile=/scratch/kocevski/520603/expmap_323827201_324086401_4FGL_J0831.8+0429_daily_bin326.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/520603/ltcube_323827201_324086401_4FGL_J0831.8+0429_daily_bin326.fits
.....................!
real 203.01
user 185.21
sys 16.76

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/520603/ft1_filtered_4FGL_J0831.8+0429_daily_bin326.fits scfile=/scratch/kocevski/520603/ft2_4FGL_J0831.8+0429_daily_bin326.fits outfile=/scratch/kocevski/520603/cmap_323827201_324086401_4FGL_J0831.8+0429_daily_bin326.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 8.59
user 0.37
sys 8.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/520603/ft1_filtered_4FGL_J0831.8+0429_daily_bin326.fits scfile=/scratch/kocevski/520603/ft2_4FGL_J0831.8+0429_daily_bin326.fits outfile=/scratch/kocevski/520603/cmap_HighResolution_323827201_324086401_4FGL_J0831.8+0429_daily_bin326.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 8.74
user 0.38
sys 8.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.819       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    15.237       1.0000         .10000E-03   10000.    
     7 'norm      '    .20738       1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    9.7844       1.0000         .10000E-03   10000.    
    10 'Prefactor '    47.643       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .61042       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .55125E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    11.150       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.0907       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0121       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=   5343.242     FROM MIGRAD    STATUS=CONVERGED    389 CALLS     1812 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.7556       -.16683E-07** at limit **
   2  Prefactor     11.820        11.308        .17733E-06   -.56261E-04
   3  Prefactor     .10000E-03    102.56        .80098E-05** at limit **
   4  Prefactor     .10000E-03    8.7959        .22405E-07** at limit **
   5  Prefactor     .10000E-03    12.418        .10793E-07** at limit **
   6  norm          15.245        13.269       -.77516E-06    .53780E-06
   7  norm          .21536        2.3967       -.84759E-06   -.38905E-03
   8  norm          .10000E-03    15.886       -.67716E-06** at limit **
   9  norm          9.7857        4.4130       -.23233E-07    .36184E-04
  10  Prefactor     47.669        36.048        .15786E-04   -.10646E-05
  11  Prefactor     .10000E-03    8.3493       -.11058E-06** at limit **
  12  norm          .61079        1.0364       -.27162E-06   -.14668E-02
  13  norm          .10000E-03    2.4994        .11649E-07** at limit **
  14  Prefactor     .10000E-03    34.923        .22747E-06** at limit **
  15  norm          .11653        2.8367        .40608E-06   -.18615E-03
  16  norm          11.139        9.1837       -.81730E-06   -.70326E-04
  17  Normalizat    1.0905        .20666       -.26723E-05    .60669E-04
  18  Prefactor     1.0120        .16039        .69097E-06   -.11993E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 11.8199
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.2448
  norm       = 0.215359
  norm       = 0.000100001
  norm       = 9.78566
  Prefactor  = 47.6688
  Prefactor  = 0.0001
  norm       = 0.610793
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.116528
  norm       = 11.1388
  Normalizat = 1.09046
  Prefactor  = 1.01201
 **********
 **   18 **HESSE 
 **********

 FCN=   5343.242     FROM HESSE     STATUS=OK           248 CALLS     2060 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.7563        .17123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.820        11.311        .11653E-03   -1.5020    
   3  Prefactor     .10000E-03    102.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.9225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          15.245        13.255        .10261E-03   -1.4927    
   7  norm          .21536        5.8456        .21990E-02   -1.5615    
   8  norm          .10000E-03    15.999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          9.7857        4.4128        .99917E-04   -1.5082    
  10  Prefactor     47.669        35.855        .58093E-04   -1.4326    
  11  Prefactor     .10000E-03    8.3861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .61079        1.0225        .92189E-04   -1.5552    
  13  norm          .10000E-03    2.5027        .11286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    35.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .11653        49.438        .23121E-02   -1.5640    
  16  norm          11.139        9.2014        .11998E-03   -1.5040    
  17  Normalizat    1.0905        .24289        .26460E-03   -.90059    
  18  Prefactor     1.0120        .18940        .21899E-03   -.92330    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24437e-09
Minuit parameter uncertainties:
  1  4.94773e-06
  2  11.3126
  3  5.56224e-06
  4  3.28194e-05
  5  3.96068e-05
  6  13.2573
  7  2.24374
  8  0.000196199
  9  4.41296
  10  35.8715
  11  3.88798e-05
  12  1.02249
  13  2.84865e-06
  14  5.28155e-05
  15  4.80233
  16  9.20255
  17  0.243138
  18  0.189528
Done.

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

Extracting fit parameters...

4FGL J0831.8+0429
   Spectrum: LogParabola
306         norm:  6.108e-01  1.022e+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.895e-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.090e+00  2.431e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/520603/likelihoodResults_323827201_324086401_4FGL_J0831.8+0429_daily_bin326.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) = 5342.74262963
delta logL = 0.499228428282

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5342.74106291
delta logL = 0.500795146725

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .56676       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1178       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0505       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0286       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=   5342.741     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      215 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .56643        9.8104        .11053E-01    .10820E-02
   2  alpha         3.1180        4.0053        .42864        .34891E-04
   3  Normalizat    1.0505        .50307E-01    .60770E-01    .96866E-05
   4  Prefactor     1.0286        .40662E-01    .41374E-01    .43678E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.566435
  alpha      = 3.11796
  Normalizat = 1.0505
  Prefactor  = 1.0286
 **********
 **   18 **HESSE 
 **********

 FCN=   5342.741     FROM HESSE     STATUS=OK            35 CALLS      250 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .56643        .92761        .50578E-03   -1.5557    
   2  alpha         3.1180        1.1396        .17073E-01    .24977    
   3  Normalizat    1.0505        .23792        .26877E-03   -.91357    
   4  Prefactor     1.0286        .18840        .21729E-03   -.91782    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5692e-09
Minuit parameter uncertainties:
  1  0.927634
  2  1.18652
  3  0.238159
  4  0.18852
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/520603': 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) = 5342.74106277
delta logL = 0.500795295508

Extracting fit parameters...

4FGL J0831.8+0429
   Spectrum: LogParabola
306         norm:  5.664e-01  9.276e-01  1.000e-04  1.000e+04 ( 1.000e-11)
307        alpha:  3.118e+00  1.187e+00  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.029e+00  1.885e-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.050e+00  2.382e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.45
Ra Dec: 127.973 4.494
Photon Index (Free Index): 3.12 +/- 1.19
Photon Flux (Free Index): 5.69e-08 +/- 5.44e-08
Energy Flux (Free Index): 1.11e-05 +/- 1.10e-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/520603/cmap_HighResolution_323827201_324086401_4FGL_J0831.8+0429_daily_bin326.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.16e-05', comment='SUCCESS', energy_flux2='1.11e-05', dlogl='5.01e-01', photon_flux2='5.69e-08', job_status='DONE', time_completed='2021-08-29 22:55:20.661055', photon_index_error2='1.19', photon_index2='3.12', ts='0.42', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.04e-07', energy_flux_error2='1.10e-05', EG='1.09', time_epoch_completed='1630302920.66', return_code='0', job_id='520603', GAL2='1.03', EG2='1.05', return_code2='0', photon_flux_error2='5.44e-08', ts2='1.45', photon_index='2.18' WHERE bin_id='326' AND source_name='4FGL J0831.8+0429' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 22:55:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 520603: <4FGL_J0831.8+0429_daily_bin326> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0831.8+0429_daily_bin326 127.973 4.4941 323827201 324086401 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 :                                   763.17 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             205.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   893 sec.
    Turnaround time :                            901 sec.

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

