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


Performing analysis on: 4FGL_J0831.8+0429_daily_bin998
RA = 127.973, Dec = 4.4941
tmin = 498009601, tmax = 498268801
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='524427', job_status='RUN', time_executed='2021-08-29 22:53:23.313227', time_epoch_executed='1630302803.31' WHERE source_name='4FGL J0831.8+0429' and cadence='daily' and bin_id='998'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/524427

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/524427/ft1_4FGL_J0831.8+0429_daily_bin998.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/524427/ft2_4FGL_J0831.8+0429_daily_bin998.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/524427/ft1_4FGL_J0831.8+0429_daily_bin998.fits outfile=/scratch/kocevski/524427/ft1_filteredMKT_4FGL_J0831.8+0429_daily_bin998.fits ra=127.973 dec=4.4941 rad=12.0 tmin=498009601.0 tmax=498268801.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 8.61
user 7.88
sys 0.55

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/524427/ft1_filtered_4FGL_J0831.8+0429_daily_bin998.fits" evtable="EVENTS" scfile=/scratch/kocevski/524427/ft2_4FGL_J0831.8+0429_daily_bin998.fits sctable="SC_DATA" outfile=/scratch/kocevski/524427/ltcube_498009601_498268801_4FGL_J0831.8+0429_daily_bin998.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/524427/ft2_4FGL_J0831.8+0429_daily_bin998.fits
.....................!
real 12.05
user 11.30
sys 0.66

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/524427/ft1_filtered_4FGL_J0831.8+0429_daily_bin998.fits evtable="EVENTS" scfile=/scratch/kocevski/524427/ft2_4FGL_J0831.8+0429_daily_bin998.fits sctable="SC_DATA" expcube=/scratch/kocevski/524427/ltcube_498009601_498268801_4FGL_J0831.8+0429_daily_bin998.fits outfile=/scratch/kocevski/524427/expmap_498009601_498268801_4FGL_J0831.8+0429_daily_bin998.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/524427/ltcube_498009601_498268801_4FGL_J0831.8+0429_daily_bin998.fits
.....................!
real 190.42
user 185.05
sys 4.40

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/524427/ft1_filtered_4FGL_J0831.8+0429_daily_bin998.fits scfile=/scratch/kocevski/524427/ft2_4FGL_J0831.8+0429_daily_bin998.fits outfile=/scratch/kocevski/524427/cmap_498009601_498268801_4FGL_J0831.8+0429_daily_bin998.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.91
user 0.38
sys 0.43

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/524427/ft1_filtered_4FGL_J0831.8+0429_daily_bin998.fits scfile=/scratch/kocevski/524427/ft2_4FGL_J0831.8+0429_daily_bin998.fits outfile=/scratch/kocevski/524427/cmap_HighResolution_498009601_498268801_4FGL_J0831.8+0429_daily_bin998.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.86
user 0.37
sys 0.44

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    78.696       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.2810       1.0000         .10000E-03   10000.    
     5 'Prefactor '    25.082       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    8.6713       1.0000         .10000E-03   10000.    
     9 'norm      '    2.3031       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .76230       1.0000         .10000E-03   10000.    
    13 'norm      '    32.495       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.5438       1.0000         .10000E-03   10000.    
    16 'norm      '    42.365       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.0530       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1064       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=   9369.910     FROM MIGRAD    STATUS=CONVERGED    346 CALLS     1706 TOTAL
                     EDM=   .89E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.5189       -.37117E-07** at limit **
   2  Prefactor     .10000E-03    3.0603        .20712E-07** at limit **
   3  Prefactor     78.727        74.373       -.43280E-05   -.43605E-05
   4  Prefactor     7.2815        4.9656        .23782E-07   -.25509E-05
   5  Prefactor     25.086        28.294       -.19061E-05   -.32482E-04
   6  norm          .10000E-03    5.5660        .14643E-06** at limit **
   7  norm          .10000E-03    1.2945       -.17187E-07** at limit **
   8  norm          8.6574        17.482        .30593E-05    .19090E-04
   9  norm          2.3029        2.9597        .17846E-05   -.94470E-04
  10  Prefactor     .10000E-03    13.855       -.41930E-06** at limit **
  11  Prefactor     .10000E-03    9.2233        .48232E-07** at limit **
  12  norm          .76226        .60903        .24640E-09   -.10549E-03
  13  norm          32.495        10.027        .51986E-07   -.38127E-05
  14  Prefactor     .10000E-03    9.4823       -.63000E-07** at limit **
  15  norm          5.5440        4.8704        .83960E-07   -.34605E-05
  16  norm          42.364        13.661        .10788E-06    .56199E-06
  17  Normalizat    1.0531        .16923       -.12866E-06   -.23049E-04
  18  Prefactor     1.1064        .13139       -.33986E-06   -.18215E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 78.727
  Prefactor  = 7.28153
  Prefactor  = 25.0864
  norm       = 0.0001
  norm       = 0.0001
  norm       = 8.65743
  norm       = 2.3029
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.762262
  norm       = 32.4954
  Prefactor  = 0.0001
  norm       = 5.54397
  norm       = 42.3638
  Normalizat = 1.0531
  Prefactor  = 1.10639
 **********
 **   18 **HESSE 
 **********

 FCN=   9369.910     FROM HESSE     STATUS=OK           246 CALLS     1952 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.5258        .17733E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.0974        .16536E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     78.727        74.254        .22635E-03   -1.3931    
   4  Prefactor     7.2815        4.9647        .14865E-03   -1.5168    
   5  Prefactor     25.086        28.303        .79985E-04   -1.4706    
   6  norm          .10000E-03    5.6539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.3325        .21496E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.6574        17.474        .13612E-03   -1.5119    
   9  norm          2.3029        2.9616        .90616E-03   -1.5404    
  10  Prefactor     .10000E-03    13.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.3683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .76226        .59252        .65101E-04   -1.5533    
  13  norm          32.495        10.026        .70292E-04   -1.4567    
  14  Prefactor     .10000E-03    9.4905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.5440        4.8678        .17063E-03   -1.5237    
  16  norm          42.364        13.658        .61590E-04   -1.4405    
  17  Normalizat    1.0531        .19780        .28923E-03   -.91272    
  18  Prefactor     1.1064        .15354        .22316E-03   -.89262    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47829e-11
Minuit parameter uncertainties:
  1  3.10559e-07
  2  1.47216e-06
  3  74.3421
  4  4.96496
  5  28.3182
  6  1.0521e-06
  7  4.46976e-07
  8  17.4847
  9  2.96179
  10  6.87894e-05
  11  3.61933e-06
  12  0.592524
  13  10.0266
  14  6.93719e-07
  15  4.86818
  16  13.6589
  17  0.197939
  18  0.153599
Done.

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

Extracting fit parameters...

4FGL J0831.8+0429
   Spectrum: LogParabola
306         norm:  7.623e-01  5.925e-01  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.106e+00  1.536e-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.053e+00  1.979e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.90
Ra Dec: 127.973 4.494
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 2.70e-08 +/- 2.10e-08
Energy Flux (Fixed Index): 1.08e-05 +/- 8.40e-06

TS (Fixed Index): 3.90
Ra Dec: 127.973 4.494
Photon Flux Upper Limit: 7.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.14e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/524427/likelihoodResults_498009601_498268801_4FGL_J0831.8+0429_daily_bin998.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) = 9369.86950815
delta logL = 0.0403630091914

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9369.86897117
delta logL = 0.0408999877636

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .75427       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9801       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0585       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1039       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=   9369.869     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      203 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .75454        27.143        .12268E-01    .28175E-03
   2  alpha         1.9807        3.2914        .42337       -.21943E-04
   3  Normalizat    1.0583        .17789        .65243E-01    .19396E-04
   4  Prefactor     1.1040        .15290        .37441E-01    .66613E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.754535
  alpha      = 1.98073
  Normalizat = 1.05826
  Prefactor  = 1.10403
 **********
 **   18 **HESSE 
 **********

 FCN=   9369.869     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .10E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .75454        .59724        .65435E-04   -1.5534    
   2  alpha         1.9807        .67379        .21152E-01   -.20923    
   3  Normalizat    1.0583        .19348        .28861E-03   -.91103    
   4  Prefactor     1.1040        .15302        .22337E-03   -.89338    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00601e-12
Minuit parameter uncertainties:
  1  0.597246
  2  0.682622
  3  0.193607
  4  0.153076
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/524427': 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) = 9369.86897019
delta logL = 0.0409009663854

Extracting fit parameters...

4FGL J0831.8+0429
   Spectrum: LogParabola
306         norm:  7.545e-01  5.972e-01  1.000e-04  1.000e+04 ( 1.000e-11)
307        alpha:  1.981e+00  6.826e-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.104e+00  1.531e-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.058e+00  1.936e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.98
Ra Dec: 127.973 4.494
Photon Index (Free Index): 1.98 +/- 0.68
Photon Flux (Free Index): 2.26e-08 +/- 2.27e-08
Energy Flux (Free Index): 1.23e-05 +/- 1.18e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/524427/cmap_HighResolution_498009601_498268801_4FGL_J0831.8+0429_daily_bin998.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.14e-05', comment='SUCCESS', photon_flux='2.70e-08', energy_flux2='1.23e-05', photon_flux_error='2.10e-08', dlogl='4.09e-02', energy_flux='1.08e-05', photon_flux2='2.26e-08', job_status='DONE', time_completed='2021-08-29 23:04:45.678753', photon_index_error2='0.68', photon_index2='1.98', ts='3.90', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='7.84e-08', energy_flux_error2='1.18e-05', EG='1.05', time_epoch_completed='1630303485.68', return_code='0', job_id='524427', GAL2='1.10', EG2='1.06', return_code2='0', energy_flux_error='8.40e-06', photon_flux_error2='2.27e-08', ts2='3.98', photon_index='2.18' WHERE bin_id='998' AND source_name='4FGL J0831.8+0429' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 23:04:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 524427: <4FGL_J0831.8+0429_daily_bin998> in cluster <slac> Done

Job <4FGL_J0831.8+0429_daily_bin998> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Aug 29 22:50:21 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 22:50:22 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:50:22 2021
Terminated at Sun Aug 29 23:04:46 2021
Results reported at Sun Aug 29 23:04:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0831.8+0429_daily_bin998 127.973 4.4941 498009601 498268801 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 :                                   680.00 sec.
    Max Memory :                                 1246 MB
    Average Memory :                             283.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   863 sec.
    Turnaround time :                            865 sec.

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

