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


Performing analysis on: 4FGL_J0839.8+0105_daily_bin497
RA = 129.963, Dec = 1.0877
tmin = 368150401, tmax = 368409601
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='601205', job_status='RUN', time_executed='2021-08-30 02:56:06.881156', time_epoch_executed='1630317366.88' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='497'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/601205

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/601205/ft1_4FGL_J0839.8+0105_daily_bin497.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/601205/ft2_4FGL_J0839.8+0105_daily_bin497.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/601205/ft1_4FGL_J0839.8+0105_daily_bin497.fits outfile=/scratch/kocevski/601205/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin497.fits ra=129.963 dec=1.0877 rad=12.0 tmin=368150401.0 tmax=368409601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 10.17
user 3.09
sys 6.92

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/601205/ft2_4FGL_J0839.8+0105_daily_bin497.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/601205/ft2_4FGL_J0839.8+0105_daily_bin497.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/601205/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin497.fits evtable="EVENTS" outfile="/scratch/kocevski/601205/ft1_filtered_4FGL_J0839.8+0105_daily_bin497.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 7.25
user 0.35
sys 6.86

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/601205/ft1_filtered_4FGL_J0839.8+0105_daily_bin497.fits" evtable="EVENTS" scfile=/scratch/kocevski/601205/ft2_4FGL_J0839.8+0105_daily_bin497.fits sctable="SC_DATA" outfile=/scratch/kocevski/601205/ltcube_368150401_368409601_4FGL_J0839.8+0105_daily_bin497.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/601205/ft2_4FGL_J0839.8+0105_daily_bin497.fits
.....................!
real 19.48
user 11.51
sys 7.87

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/601205/ft1_filtered_4FGL_J0839.8+0105_daily_bin497.fits evtable="EVENTS" scfile=/scratch/kocevski/601205/ft2_4FGL_J0839.8+0105_daily_bin497.fits sctable="SC_DATA" expcube=/scratch/kocevski/601205/ltcube_368150401_368409601_4FGL_J0839.8+0105_daily_bin497.fits outfile=/scratch/kocevski/601205/expmap_368150401_368409601_4FGL_J0839.8+0105_daily_bin497.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/601205/ltcube_368150401_368409601_4FGL_J0839.8+0105_daily_bin497.fits
.....................!
real 199.62
user 185.77
sys 13.24

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 152 point sources and 0 extended sources

Setting source of interest to:
4FGL J0839.8+0105 @ 129.963 1.0877

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/601205/ft1_filtered_4FGL_J0839.8+0105_daily_bin497.fits scfile=/scratch/kocevski/601205/ft2_4FGL_J0839.8+0105_daily_bin497.fits outfile=/scratch/kocevski/601205/cmap_368150401_368409601_4FGL_J0839.8+0105_daily_bin497.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=129.963 yref=1.0877 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 7.11
user 0.37
sys 6.70

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/601205/ft1_filtered_4FGL_J0839.8+0105_daily_bin497.fits scfile=/scratch/kocevski/601205/ft2_4FGL_J0839.8+0105_daily_bin497.fits outfile=/scratch/kocevski/601205/cmap_HighResolution_368150401_368409601_4FGL_J0839.8+0105_daily_bin497.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=129.963 yref=1.0877 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 7.80
user 0.39
sys 7.38

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/601205/ft1_filtered_4FGL_J0839.8+0105_daily_bin497.fits evtable="EVENTS" scfile=/scratch/kocevski/601205/ft2_4FGL_J0839.8+0105_daily_bin497.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/601205/Model_4FGL_J0839.8+0105_daily_bin497.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/601205/ft1_filtered_4FGL_J0839.8+0105_daily_bin497.fits.....................!
real 85.32
user 72.82
sys 10.80

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/601205/ft1_filtered_4FGL_J0839.8+0105_daily_bin497.fits', '/scratch/kocevski/601205/ft2_4FGL_J0839.8+0105_daily_bin497.fits', expMap='/scratch/kocevski/601205/expmap_368150401_368409601_4FGL_J0839.8+0105_daily_bin497.fits', expCube='/scratch/kocevski/601205/ltcube_368150401_368409601_4FGL_J0839.8+0105_daily_bin497.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/601205/Model_4FGL_J0839.8+0105_daily_bin497.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0839.8+0105'

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  3.335e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  2.241e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
297         beta:  1.924e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
298           Eb:  6.486e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/601205/ft1_filtered_4FGL_J0839.8+0105_daily_bin497.fits
Spacecraft file(s): /scratch/kocevski/601205/ft2_4FGL_J0839.8+0105_daily_bin497.fits
Exposure map: /scratch/kocevski/601205/expmap_368150401_368409601_4FGL_J0839.8+0105_daily_bin497.fits
Exposure cube: /scratch/kocevski/601205/ltcube_368150401_368409601_4FGL_J0839.8+0105_daily_bin497.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/601205/Model_4FGL_J0839.8+0105_daily_bin497.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) = 6870.70547069

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.637       1.0000         .10000E-03   10000.    
     3 'norm      '    4.2044       1.0000         .10000E-03   10000.    
     4 'norm      '    2.3336       1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .11240E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.1809       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.2382       1.0000         .10000E-03   10000.    
     9 'norm      '    .11805E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.5300       1.0000         .10000E-03   10000.    
    11 'norm      '    .46977       1.0000         .10000E-03   10000.    
    12 'norm      '    6.4312       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    9.2886       1.0000         .10000E-03   10000.    
    15 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    24.530       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.6979       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .77802       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1557       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6870.619     FROM MIGRAD    STATUS=CONVERGED    385 CALLS     1657 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.8245       -.22760E-07** at limit **
   2  Prefactor     10.630        24.322        .11502E-05   -.14860E-04
   3  norm          4.2005        5.3615        .17533E-05   -.15876E-03
   4  norm          2.3339        1.7220        .23642E-07   -.10253E-03
   5  norm          .10000E-03    .49330        .44883E-07** at limit **
   6  norm          .10000E-03    18.642        .57750E-06** at limit **
   7  norm          3.1807        2.4340        .18634E-06    .94881E-04
   8  Prefactor     7.1992        35.193       -.53654E-04   -.16664E-03
   9  norm          .10000E-03    95.805       -.82820E-05** at limit **
  10  Prefactor     2.5082        33.087        .56115E-04    .48807E-04
  11  norm          .46931        .75250       -.13579E-06   -.21473E-02
  12  norm          6.4294        6.4235        .13351E-05   -.15650E-03
  13  Prefactor     .10000E-03    10.896       -.88349E-07** at limit **
  14  norm          9.2883        4.9799        .25688E-05   -.23205E-03
  15  norm          .10000E-03    3.2328        .10262E-08** at limit **
  16  Prefactor     24.511        20.583        .31909E-09   -.18077E-04
  17  Prefactor     1.6981        3.0810       -.52372E-06   -.69572E-03
  18  Normalizat    .77842        .19030       -.59153E-05   -.12574E-03
  19  Prefactor     1.1554        .14009        .13619E-05   -.49720E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 10.6304
  norm       = 4.20046
  norm       = 2.33392
  norm       = 0.0001
  norm       = 0.000100003
  norm       = 3.18072
  Prefactor  = 7.19925
  norm       = 0.0001
  Prefactor  = 2.50821
  norm       = 0.469307
  norm       = 6.42937
  Prefactor  = 0.0001
  norm       = 9.28833
  norm       = 0.0001
  Prefactor  = 24.511
  Prefactor  = 1.6981
  Normalizat = 0.778423
  Prefactor  = 1.15537
 **********
 **   18 **HESSE 
 **********

 FCN=   6870.619     FROM HESSE     STATUS=OK           274 CALLS     1931 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.8277        .10934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.630        24.280        .12285E-03   -1.5056    
   3  norm          4.2005        5.3496        .19654E-03   -1.5298    
   4  norm          2.3339        1.7179        .90569E-04   -1.5402    
   5  norm          .10000E-03    .51061        .11358E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    18.789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.1807        2.4353        .10976E-03   -1.5351    
   8  Prefactor     7.1992        35.870        .14909E-03   -1.5171    
   9  norm          .10000E-03    98.355        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.5082        32.904        .25680E-03   -1.5391    
  11  norm          .46931        .65623        .86686E-03   -1.5571    
  12  norm          6.4294        6.4116        .15826E-03   -1.5201    
  13  Prefactor     .10000E-03    10.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          9.2883        4.9676        .12801E-03   -1.5098    
  15  norm          .10000E-03    3.2554        .14549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     24.511        20.600        .80879E-04   -1.4717    
  17  Prefactor     1.6981        3.0553        .18958E-03   -1.5447    
  18  Normalizat    .77842        .21852        .30513E-03   -1.0087    
  19  Prefactor     1.1554        .16248        .19836E-03   -.87716    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50826e-09
Minuit parameter uncertainties:
  1  8.74887e-07
  2  24.3027
  3  5.35019
  4  1.71789
  5  2.09191e-06
  6  0.000485762
  7  2.43536
  8  32.1704
  9  0.00039169
  10  18.181
  11  0.656239
  12  6.41227
  13  2.07798e-05
  14  4.96787
  15  5.33492e-06
  16  20.6055
  17  3.05554
  18  0.218764
  19  0.162548
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  6.429e+00  6.412e+00  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  2.241e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
297         beta:  1.924e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
298           Eb:  6.486e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
498    Prefactor:  1.155e+00  1.625e-01  0.000e+00  1.000e+01 ( 1.000e+00)
499        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
500        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
497   Normalization:  7.784e-01  2.188e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.54
Ra Dec: 129.963 1.088
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 2.50e-08 +/- 2.49e-08
Energy Flux (Fixed Index): 9.19e-06 +/- 9.16e-06

TS (Fixed Index): 1.54
Ra Dec: 129.963 1.088
Photon Flux Upper Limit: 8.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.11e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/601205/likelihoodResults_368150401_368409601_4FGL_J0839.8+0105_daily_bin497.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) = 6870.58230893
delta logL = 0.0362160355307

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6870.58074846
delta logL = 0.0377765143767

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.7466       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0140       1.0000          .0000       5.0000    
     3 'Normalizat'    .78316       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1530       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6870.581     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      231 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.7467        6.6772        .15448E-03   -.46246E-03
   2  alpha         2.0140        .79920        .23418E-01   -.30888E-04
   3  Normalizat    .78321        .20454        .30428E-03    .20886E-04
   4  Prefactor     1.1530        .15998        .19853E-03    .38276E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.74669
  alpha      = 2.01396
  Normalizat = 0.78321
  Prefactor  = 1.15299
 **********
 **   18 **HESSE 
 **********

 FCN=   6870.581     FROM HESSE     STATUS=OK            23 CALLS      254 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.7467        6.6693        .61792E-05   -1.5188    
   2  alpha         2.0140        .79837        .93673E-03   -.19566    
   3  Normalizat    .78321        .20465        .12171E-04   -1.0069    
   4  Prefactor     1.1530        .16008        .39706E-04   -.87790    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.50337e-10
Minuit parameter uncertainties:
  1  6.67007
  2  0.813194
  3  0.204854
  4  0.160146
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/601205': 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) = 6870.58074843
delta logL = 0.0377765432577

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  6.747e+00  6.670e+00  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  2.014e+00  8.132e-01  0.000e+00  5.000e+00 ( 1.000e+00)
297         beta:  1.924e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
298           Eb:  6.486e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
498    Prefactor:  1.153e+00  1.601e-01  0.000e+00  1.000e+01 ( 1.000e+00)
499        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
500        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
497   Normalization:  7.832e-01  2.049e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.62
Ra Dec: 129.963 1.088
Photon Index (Free Index): 2.01 +/- 0.81
Photon Flux (Free Index): 2.14e-08 +/- 2.55e-08
Energy Flux (Free Index): 1.00e-05 +/- 1.03e-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/601205/cmap_HighResolution_368150401_368409601_4FGL_J0839.8+0105_daily_bin497.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.11e-05', comment='SUCCESS', photon_flux='2.50e-08', energy_flux2='1.00e-05', photon_flux_error='2.49e-08', dlogl='3.78e-02', energy_flux='9.19e-06', photon_flux2='2.14e-08', job_status='DONE', time_completed='2021-08-30 03:07:11.010444', photon_index_error2='0.81', photon_index2='2.01', ts='1.54', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', photon_flux_upper_limit='8.45e-08', energy_flux_error2='1.03e-05', EG='0.78', time_epoch_completed='1630318031.01', return_code='0', job_id='601205', GAL2='1.15', EG2='0.78', return_code2='0', energy_flux_error='9.16e-06', photon_flux_error2='2.55e-08', ts2='1.62', photon_index='2.24' WHERE bin_id='497' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:07:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0021>
Subject: Job 601205: <4FGL_J0839.8+0105_daily_bin497> in cluster <slac> Done

Job <4FGL_J0839.8+0105_daily_bin497> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug 30 02:50:42 2021
Job was executed on host(s) <bullet0021>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 02:50:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 30 02:50:43 2021
Terminated at Mon Aug 30 03:07:13 2021
Results reported at Mon Aug 30 03:07:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin497 129.963 1.0877 368150401 368409601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0839.8+0105 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   767.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             240.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   989 sec.
    Turnaround time :                            991 sec.

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

