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


Performing analysis on: 4FGL_J0831.8+0429_daily_bin147
RA = 127.973, Dec = 4.4941
tmin = 277430401, tmax = 277689601
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='519281', job_status='RUN', time_executed='2021-08-29 22:39:11.109866', time_epoch_executed='1630301951.11' WHERE source_name='4FGL J0831.8+0429' and cadence='daily' and bin_id='147'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/519281

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/519281/ft1_4FGL_J0831.8+0429_daily_bin147.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/519281/ft2_4FGL_J0831.8+0429_daily_bin147.fits


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

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

Done.
real 3.73
user 3.33
sys 0.38

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/519281/ft1_filtered_4FGL_J0831.8+0429_daily_bin147.fits" evtable="EVENTS" scfile=/scratch/kocevski/519281/ft2_4FGL_J0831.8+0429_daily_bin147.fits sctable="SC_DATA" outfile=/scratch/kocevski/519281/ltcube_277430401_277689601_4FGL_J0831.8+0429_daily_bin147.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/519281/ft2_4FGL_J0831.8+0429_daily_bin147.fits
.....................!
real 12.26
user 11.68
sys 0.53

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/519281/ft1_filtered_4FGL_J0831.8+0429_daily_bin147.fits evtable="EVENTS" scfile=/scratch/kocevski/519281/ft2_4FGL_J0831.8+0429_daily_bin147.fits sctable="SC_DATA" expcube=/scratch/kocevski/519281/ltcube_277430401_277689601_4FGL_J0831.8+0429_daily_bin147.fits outfile=/scratch/kocevski/519281/expmap_277430401_277689601_4FGL_J0831.8+0429_daily_bin147.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/519281/ltcube_277430401_277689601_4FGL_J0831.8+0429_daily_bin147.fits
.....................!
real 191.11
user 186.12
sys 4.46

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/519281/ft1_filtered_4FGL_J0831.8+0429_daily_bin147.fits scfile=/scratch/kocevski/519281/ft2_4FGL_J0831.8+0429_daily_bin147.fits outfile=/scratch/kocevski/519281/cmap_277430401_277689601_4FGL_J0831.8+0429_daily_bin147.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.40
sys 0.32

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/519281/ft1_filtered_4FGL_J0831.8+0429_daily_bin147.fits scfile=/scratch/kocevski/519281/ft2_4FGL_J0831.8+0429_daily_bin147.fits outfile=/scratch/kocevski/519281/cmap_HighResolution_277430401_277689601_4FGL_J0831.8+0429_daily_bin147.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.84
user 0.39
sys 0.34

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7969       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10807E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .12149E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    6.3436       1.0000         .10000E-03   10000.    
     8 'norm      '    8.3682       1.0000         .10000E-03   10000.    
     9 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.2058       1.0000         .10000E-03   10000.    
    13 'norm      '    .10146E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    26.110       1.0000         .10000E-03   10000.    
    15 'norm      '    12.739       1.0000         .10000E-03   10000.    
    16 'norm      '    .14141       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.2571       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .93759       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=   5212.609     FROM MIGRAD    STATUS=CONVERGED    366 CALLS     1731 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7852        28.617       -.10418E-04   -.10146E-03
   2  Prefactor     .10000E-03    4.6590       -.32700E-06** at limit **
   3  Prefactor     .10000E-03    100.10       -.40257E-05** at limit **
   4  Prefactor     .10000E-03    4.8452       -.15881E-06** at limit **
   5  Prefactor     .10000E-03    26.066       -.20120E-05** at limit **
   6  norm          .10000E-03    28.136       -.20070E-05** at limit **
   7  norm          6.3411        5.1464       -.11777E-05   -.28713E-03
   8  norm          8.4395        21.412        .31121E-05    .80021E-04
   9  norm          .10000E-03    3.2038       -.13389E-06** at limit **
  10  Prefactor     .10000E-03    14.325        .74526E-06** at limit **
  11  Prefactor     .10000E-03    5.5607        .13695E-06** at limit **
  12  norm          2.2055        1.1144        .79399E-07    .53252E-05
  13  norm          .10000E-03    11.930       -.25239E-06** at limit **
  14  Prefactor     26.093        35.029       -.95288E-06   -.10672E-04
  15  norm          12.738        5.6318       -.21909E-06   -.71239E-04
  16  norm          .12608        69.171        .16132E-04   -.28622E-04
  17  Normalizat    1.2574        .23169       -.39615E-05    .99384E-04
  18  Prefactor     .93762        .17866        .22447E-05   -.34930E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.78525
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.3411
  norm       = 8.43955
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.20553
  norm       = 0.0001
  Prefactor  = 26.0927
  norm       = 12.7375
  norm       = 0.126084
  Normalizat = 1.25737
  Prefactor  = 0.937621
 **********
 **   18 **HESSE 
 **********

 FCN=   5212.609     FROM HESSE     STATUS=OK           244 CALLS     1975 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7852        28.906        .31192E-03   -1.5441    
   2  Prefactor     .10000E-03    4.6558        .15205E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    99.922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.8534        .15513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    25.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    28.504        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.3411        5.1482        .14229E-03   -1.5204    
   8  norm          8.4395        21.465        .13858E-03   -1.5127    
   9  norm          .10000E-03    3.2529        .12613E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.5715        .16628E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.2055        1.1141        .52104E-04   -1.5411    
  13  norm          .10000E-03    12.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     26.093        35.114        .78398E-04   -1.4686    
  15  norm          12.738        5.6349        .10942E-03   -1.4994    
  16  norm          .12608        65.893        .34976E-02   -1.5637    
  17  Normalizat    1.2574        .26076        .25878E-03   -.84848    
  18  Prefactor     .93762        .20341        .23178E-03   -.94839    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.9464e-08
Minuit parameter uncertainties:
  1  14.375
  2  1.98356e-05
  3  9.30023e-05
  4  1.58055e-05
  5  6.60993e-05
  6  0.00010968
  7  5.14854
  8  21.4847
  9  1.89134e-06
  10  1.18736e-05
  11  1.24029e-05
  12  1.11407
  13  3.68606e-05
  14  35.1422
  15  5.63509
  16  5.76885
  17  0.261027
  18  0.203578
Done.

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

Extracting fit parameters...

4FGL J0831.8+0429
   Spectrum: LogParabola
306         norm:  2.206e+00  1.114e+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.376e-01  2.036e-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.257e+00  2.610e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.49
Ra Dec: 127.973 4.494
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 7.81e-08 +/- 3.94e-08
Energy Flux (Fixed Index): 3.13e-05 +/- 1.58e-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) = 5211.24948933
delta logL = 1.35924103083

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5211.16643713
delta logL = 1.44229322838

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3477       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3056       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3103       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91718       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=   5211.166     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      210 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3470        .84920        .94268E-02   -.17047E-03
   2  alpha         1.3055        .33273        .21939       -.42799E-04
   3  Normalizat    1.3103        .21259        .57501E-01    .37716E-05
   4  Prefactor     .91717        .16789        .45224E-01    .82280E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.34702
  alpha      = 1.30547
  Normalizat = 1.31032
  Prefactor  = 0.917167
 **********
 **   18 **HESSE 
 **********

 FCN=   5211.166     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .21E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3470        1.1410        .44551E-04   -1.5476    
   2  alpha         1.3055        .46226        .92770E-02   -.49816    
   3  Normalizat    1.3103        .25416        .25428E-03   -.83259    
   4  Prefactor     .91717        .20058        .23412E-03   -.95544    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10409e-12
Minuit parameter uncertainties:
  1  1.14106
  2  0.465741
  3  0.254403
  4  0.200739
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/519281': 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) = 5211.16643692
delta logL = 1.44229343224

Extracting fit parameters...

4FGL J0831.8+0429
   Spectrum: LogParabola
306         norm:  1.347e+00  1.141e+00  1.000e-04  1.000e+04 ( 1.000e-11)
307        alpha:  1.305e+00  4.657e-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.172e-01  2.007e-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.310e+00  2.544e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.37
Ra Dec: 127.973 4.494
Photon Index (Free Index): 1.31 +/- 0.47
Photon Flux (Free Index): 3.15e-08 +/- 2.49e-08
Energy Flux (Free Index): 8.38e-05 +/- 7.62e-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/519281/cmap_HighResolution_277430401_277689601_4FGL_J0831.8+0429_daily_bin147.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.81e-08', energy_flux2='8.38e-05', photon_flux_error='3.94e-08', dlogl='1.44e+00', energy_flux='3.13e-05', photon_flux2='3.15e-08', job_status='DONE', time_completed='2021-08-29 22:47:08.140646', photon_index_error2='0.47', photon_index2='1.31', ts='12.49', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='7.62e-05', EG='1.26', time_epoch_completed='1630302428.14', return_code='0', job_id='519281', GAL2='0.92', EG2='1.31', return_code2='0', energy_flux_error='1.58e-05', photon_flux_error2='2.49e-08', ts2='15.37', photon_index='2.18' WHERE bin_id='147' AND source_name='4FGL J0831.8+0429' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 22:47:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 519281: <4FGL_J0831.8+0429_daily_bin147> in cluster <slac> Done

Job <4FGL_J0831.8+0429_daily_bin147> 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) <bullet0234>, 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:47:08 2021
Results reported at Sun Aug 29 22:47:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0831.8+0429_daily_bin147 127.973 4.4941 277430401 277689601 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 :                                   476.29 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             269.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   690 sec.
    Turnaround time :                            691 sec.

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

