/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 116 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 = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0831.8+0429_daily_bin222
RA = 127.973, Dec = 4.4941
tmin = 296870401, tmax = 297129601
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='519399', job_status='RUN', time_executed='2021-08-29 22:38:49.945879', time_epoch_executed='1630301929.95' WHERE source_name='4FGL J0831.8+0429' and cadence='daily' and bin_id='222'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/519399

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/519399/ft1_4FGL_J0831.8+0429_daily_bin222.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/519399/ft2_4FGL_J0831.8+0429_daily_bin222.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/519399/ft1_4FGL_J0831.8+0429_daily_bin222.fits outfile=/scratch/kocevski/519399/ft1_filteredMKT_4FGL_J0831.8+0429_daily_bin222.fits ra=127.973 dec=4.4941 rad=12.0 tmin=296870401.0 tmax=297129601.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 6.90
user 3.38
sys 3.38

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/519399/ft1_filtered_4FGL_J0831.8+0429_daily_bin222.fits" evtable="EVENTS" scfile=/scratch/kocevski/519399/ft2_4FGL_J0831.8+0429_daily_bin222.fits sctable="SC_DATA" outfile=/scratch/kocevski/519399/ltcube_296870401_297129601_4FGL_J0831.8+0429_daily_bin222.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/519399/ft2_4FGL_J0831.8+0429_daily_bin222.fits
.....................!
real 15.72
user 11.70
sys 3.96

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/519399/ft1_filtered_4FGL_J0831.8+0429_daily_bin222.fits evtable="EVENTS" scfile=/scratch/kocevski/519399/ft2_4FGL_J0831.8+0429_daily_bin222.fits sctable="SC_DATA" expcube=/scratch/kocevski/519399/ltcube_296870401_297129601_4FGL_J0831.8+0429_daily_bin222.fits outfile=/scratch/kocevski/519399/expmap_296870401_297129601_4FGL_J0831.8+0429_daily_bin222.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/519399/ltcube_296870401_297129601_4FGL_J0831.8+0429_daily_bin222.fits
.....................!
real 194.06
user 185.60
sys 8.14

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/519399/ft1_filtered_4FGL_J0831.8+0429_daily_bin222.fits scfile=/scratch/kocevski/519399/ft2_4FGL_J0831.8+0429_daily_bin222.fits outfile=/scratch/kocevski/519399/cmap_296870401_297129601_4FGL_J0831.8+0429_daily_bin222.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 3.95
user 0.37
sys 3.30

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/519399/ft1_filtered_4FGL_J0831.8+0429_daily_bin222.fits scfile=/scratch/kocevski/519399/ft2_4FGL_J0831.8+0429_daily_bin222.fits outfile=/scratch/kocevski/519399/cmap_HighResolution_296870401_297129601_4FGL_J0831.8+0429_daily_bin222.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 4.20
user 0.39
sys 3.27

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10220E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.3229       1.0000         .10000E-03   10000.    
     3 'Prefactor '    85.166       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .14075E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.2674       1.0000         .10000E-03   10000.    
     8 'norm      '    .35649E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.3409       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.5802       1.0000         .10000E-03   10000.    
    13 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    49.898       1.0000         .10000E-03   10000.    
    15 'norm      '    12.430       1.0000         .10000E-03   10000.    
    16 'norm      '    6.5268       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .79311       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0620       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=   5657.955     FROM MIGRAD    STATUS=CONVERGED    364 CALLS     1736 TOTAL
                     EDM=   .40E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.1867        .17130E-05** at limit **
   2  Prefactor     3.3202        9.3948       -.22283E-06    .24722E-04
   3  Prefactor     85.160        125.06        .18720E-05    .12669E-04
   4  Prefactor     .10000E-03    3.0831       -.61402E-08** at limit **
   5  Prefactor     .10000E-03    92.397        .49015E-05** at limit **
   6  norm          .10000E-03    7.2166       -.11508E-05** at limit **
   7  norm          1.2672        2.5181       -.85821E-06    .58296E-04
   8  norm          .10000E-03    59.044        .58191E-05** at limit **
   9  norm          2.3399        4.6804       -.11694E-05    .15708E-03
  10  Prefactor     .10000E-03    30.904        .10071E-05** at limit **
  11  Prefactor     .10000E-03    6.2010       -.23196E-07** at limit **
  12  norm          2.5803        1.1886       -.17878E-07    .50458E-04
  13  norm          .10000E-03    11.551       -.22631E-06** at limit **
  14  Prefactor     49.898        35.853       -.31212E-06   -.42281E-05
  15  norm          12.431        5.0722        .32370E-06    .26082E-03
  16  norm          6.5274        8.9835       -.42282E-06    .26590E-04
  17  Normalizat    .79299        .19249        .28677E-06    .54764E-04
  18  Prefactor     1.0621        .14984        .42210E-06    .42248E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 3.32019
  Prefactor  = 85.1601
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.26724
  norm       = 0.0001
  norm       = 2.33994
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.58032
  norm       = 0.0001
  Prefactor  = 49.8984
  norm       = 12.4305
  norm       = 6.52739
  Normalizat = 0.792988
  Prefactor  = 1.06207
 **********
 **   18 **HESSE 
 **********

 FCN=   5657.955     FROM HESSE     STATUS=OK           244 CALLS     1980 TOTAL
                     EDM=   .74E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.2532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.3202        9.4123        .22206E-03   -1.5344    
   3  Prefactor     85.160        125.20        .43530E-04   -1.3860    
   4  Prefactor     .10000E-03    3.0964        .12898E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    94.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    7.3139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.2672        2.4963        .16471E-03   -1.5483    
   8  norm          .10000E-03    58.402        .46907E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.3399        4.7025        .22005E-03   -1.5402    
  10  Prefactor     .10000E-03    31.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.2252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.5803        1.1881        .53023E-04   -1.5387    
  13  norm          .10000E-03    11.876        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     49.898        35.953        .56771E-04   -1.4294    
  15  norm          12.431        5.1009        .10399E-03   -1.5003    
  16  norm          6.5274        8.9758        .15709E-03   -1.5197    
  17  Normalizat    .79299        .22373        .28827E-03   -1.0033    
  18  Prefactor     1.0621        .17464        .20160E-03   -.90688    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.37148e-11
Minuit parameter uncertainties:
  1  4.66752e-05
  2  9.41651
  3  125.587
  4  1.09064e-06
  5  0.00032162
  6  3.81113e-05
  7  2.49648
  8  0.000309496
  9  4.70326
  10  4.11964e-05
  11  3.96461e-06
  12  1.18816
  13  2.2057e-05
  14  35.969
  15  5.10104
  16  8.9777
  17  0.223993
  18  0.174737
Done.

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

Extracting fit parameters...

4FGL J0831.8+0429
   Spectrum: LogParabola
306         norm:  2.580e+00  1.188e+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.062e+00  1.747e-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.930e-01  2.240e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.01
Ra Dec: 127.973 4.494
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 9.14e-08 +/- 4.21e-08
Energy Flux (Fixed Index): 3.66e-05 +/- 1.68e-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) = 5657.9487818
delta logL = 0.00667239741051

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5657.94829227
delta logL = 0.00716193353765

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5656       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1255       1.0000          .0000       5.0000    
     3 'Normalizat'    .79871       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0596       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=   5657.948     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      201 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5656        2.2345        .63713E-02    .16334E-02
   2  alpha         2.1255        .75540        .29810       -.85370E-05
   3  Normalizat    .79869        .19222        .64955E-01    .46290E-05
   4  Prefactor     1.0596        .15132        .39376E-01    .38306E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 2.56559
  alpha      = 2.12546
  Normalizat = 0.79869
  Prefactor  = 1.05964
 **********
 **   18 **HESSE 
 **********

 FCN=   5657.948     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5656        1.2047        .53684E-04   -1.5388    
   2  alpha         2.1255        .45812        .11738E-01   -.15038    
   3  Normalizat    .79869        .22176        .28735E-03   -1.0012    
   4  Prefactor     1.0596        .17435        .20181E-03   -.90767    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31937e-10
Minuit parameter uncertainties:
  1  1.20473
  2  0.460787
  3  0.222016
  4  0.174443
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/519399': 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) = 5657.94829226
delta logL = 0.00716193887729

Extracting fit parameters...

4FGL J0831.8+0429
   Spectrum: LogParabola
306         norm:  2.566e+00  1.205e+00  1.000e-04  1.000e+04 ( 1.000e-11)
307        alpha:  2.125e+00  4.608e-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.060e+00  1.744e-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.987e-01  2.220e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.99
Ra Dec: 127.973 4.494
Photon Index (Free Index): 2.13 +/- 0.46
Photon Flux (Free Index): 8.65e-08 +/- 5.64e-08
Energy Flux (Free Index): 3.74e-05 +/- 1.91e-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/519399/cmap_HighResolution_296870401_297129601_4FGL_J0831.8+0429_daily_bin222.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.14e-08', energy_flux2='3.74e-05', photon_flux_error='4.21e-08', dlogl='7.16e-03', energy_flux='3.66e-05', photon_flux2='8.65e-08', job_status='DONE', time_completed='2021-08-29 22:47:39.924722', photon_index_error2='0.46', photon_index2='2.13', ts='15.01', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='1.91e-05', EG='0.79', time_epoch_completed='1630302459.92', return_code='0', job_id='519399', GAL2='1.06', EG2='0.80', return_code2='0', energy_flux_error='1.68e-05', photon_flux_error2='5.64e-08', ts2='14.99', photon_index='2.18' WHERE bin_id='222' AND source_name='4FGL J0831.8+0429' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 22:47:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0121>
Subject: Job 519399: <4FGL_J0831.8+0429_daily_bin222> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0831.8+0429_daily_bin222 127.973 4.4941 296870401 297129601 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 :                                   578.43 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             248.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   715 sec.
    Turnaround time :                            717 sec.

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

