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


Performing analysis on: 4FGL_J0839.8+0105_daily_bin897
RA = 129.963, Dec = 1.0877
tmin = 471830401, tmax = 472089601
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='604959', job_status='RUN', time_executed='2021-08-30 03:04:22.387236', time_epoch_executed='1630317862.39' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='897'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/604959

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/604959/ft1_4FGL_J0839.8+0105_daily_bin897.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/604959/ft2_4FGL_J0839.8+0105_daily_bin897.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/604959/ft1_4FGL_J0839.8+0105_daily_bin897.fits outfile=/scratch/kocevski/604959/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin897.fits ra=129.963 dec=1.0877 rad=12.0 tmin=471830401.0 tmax=472089601.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 4.40
user 3.35
sys 0.96

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/604959/ft2_4FGL_J0839.8+0105_daily_bin897.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/604959/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin897.fits evtable="EVENTS" outfile="/scratch/kocevski/604959/ft1_filtered_4FGL_J0839.8+0105_daily_bin897.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 1.29
user 0.33
sys 0.90

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/604959/ft1_filtered_4FGL_J0839.8+0105_daily_bin897.fits" evtable="EVENTS" scfile=/scratch/kocevski/604959/ft2_4FGL_J0839.8+0105_daily_bin897.fits sctable="SC_DATA" outfile=/scratch/kocevski/604959/ltcube_471830401_472089601_4FGL_J0839.8+0105_daily_bin897.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/604959/ft2_4FGL_J0839.8+0105_daily_bin897.fits
.....................!
real 14.78
user 13.52
sys 1.16

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/604959/ft1_filtered_4FGL_J0839.8+0105_daily_bin897.fits evtable="EVENTS" scfile=/scratch/kocevski/604959/ft2_4FGL_J0839.8+0105_daily_bin897.fits sctable="SC_DATA" expcube=/scratch/kocevski/604959/ltcube_471830401_472089601_4FGL_J0839.8+0105_daily_bin897.fits outfile=/scratch/kocevski/604959/expmap_471830401_472089601_4FGL_J0839.8+0105_daily_bin897.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/604959/ltcube_471830401_472089601_4FGL_J0839.8+0105_daily_bin897.fits
.....................!
real 191.57
user 185.65
sys 5.37

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/604959/ft1_filtered_4FGL_J0839.8+0105_daily_bin897.fits scfile=/scratch/kocevski/604959/ft2_4FGL_J0839.8+0105_daily_bin897.fits outfile=/scratch/kocevski/604959/cmap_471830401_472089601_4FGL_J0839.8+0105_daily_bin897.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 1.88
user 0.37
sys 0.90

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/604959/ft1_filtered_4FGL_J0839.8+0105_daily_bin897.fits scfile=/scratch/kocevski/604959/ft2_4FGL_J0839.8+0105_daily_bin897.fits outfile=/scratch/kocevski/604959/cmap_HighResolution_471830401_472089601_4FGL_J0839.8+0105_daily_bin897.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 1.46
user 0.38
sys 0.87

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/604959/ft1_filtered_4FGL_J0839.8+0105_daily_bin897.fits', '/scratch/kocevski/604959/ft2_4FGL_J0839.8+0105_daily_bin897.fits', expMap='/scratch/kocevski/604959/expmap_471830401_472089601_4FGL_J0839.8+0105_daily_bin897.fits', expCube='/scratch/kocevski/604959/ltcube_471830401_472089601_4FGL_J0839.8+0105_daily_bin897.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/604959/Model_4FGL_J0839.8+0105_daily_bin897.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/604959/ft1_filtered_4FGL_J0839.8+0105_daily_bin897.fits
Spacecraft file(s): /scratch/kocevski/604959/ft2_4FGL_J0839.8+0105_daily_bin897.fits
Exposure map: /scratch/kocevski/604959/expmap_471830401_472089601_4FGL_J0839.8+0105_daily_bin897.fits
Exposure cube: /scratch/kocevski/604959/ltcube_471830401_472089601_4FGL_J0839.8+0105_daily_bin897.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/604959/Model_4FGL_J0839.8+0105_daily_bin897.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) = 6048.15184065

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8886       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10719E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    13.962       1.0000         .10000E-03   10000.    
     4 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .91148E-01   1.0000         .10000E-03   10000.    
     6 'norm      '    .11386E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    8.8090       1.0000         .10000E-03   10000.    
     8 'Prefactor '    114.91       1.0000         .10000E-03   10000.    
     9 'norm      '    35.501       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .16441E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.3288       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.2737       1.0000         .10000E-03   10000.    
    14 'norm      '    1.4055       1.0000         .10000E-03   10000.    
    15 'norm      '    3.9304       1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.371       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.7785       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0993       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .77352       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=   6048.141     FROM MIGRAD    STATUS=CONVERGED    394 CALLS     1962 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8858        9.7211        .37298E-05   -.46299E-03
   2  Prefactor     .10000E-03    31.297        .13869E-05** at limit **
   3  norm          13.963        12.411       -.53191E-06    .96324E-05
   4  norm          .10000E-03    1.8662       -.29056E-06** at limit **
   5  norm          .90564E-01    .82383       -.20205E-06    .26179E-03
   6  norm          .10000E-03    22.052        .39053E-06** at limit **
   7  norm          8.8096        4.4656        .59658E-07    .11733E-03
   8  Prefactor     114.92        48.316        .23130E-05    .43107E-03
   9  norm          35.497        29.343       -.55548E-06   -.80531E-04
  10  Prefactor     .10000E-03    38.507        .57205E-06** at limit **
  11  norm          .10000E-03    .27887        .30386E-07** at limit **
  12  norm          5.3292        5.6356       -.58920E-06   -.49319E-03
  13  Prefactor     7.2628        27.873       -.31508E-05   -.15069E-03
  14  norm          1.4052        3.1099        .49664E-06   -.11890E-03
  15  norm          3.9311        3.8829        .16795E-06    .11795E-03
  16  Prefactor     13.370        21.790        .30589E-07   -.30143E-04
  17  Prefactor     5.7804        4.8358        .43149E-06    .23301E-03
  18  Normalizat    1.0990        .19546       -.13502E-05    .15336E-03
  19  Prefactor     .77377        .14063        .54545E-06    .55395E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.88577
  Prefactor  = 0.0001
  norm       = 13.9627
  norm       = 0.0001
  norm       = 0.090564
  norm       = 0.0001
  norm       = 8.80958
  Prefactor  = 114.923
  norm       = 35.4971
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 5.32921
  Prefactor  = 7.26279
  norm       = 1.40518
  norm       = 3.93105
  Prefactor  = 13.3702
  Prefactor  = 5.78038
  Normalizat = 1.09898
  Prefactor  = 0.773772
 **********
 **   18 **HESSE 
 **********

 FCN=   6048.141     FROM HESSE     STATUS=OK           272 CALLS     2234 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8858        10.264        .82744E-03   -1.5223    
   2  Prefactor     .10000E-03    31.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          13.963        12.415        .10719E-03   -1.4960    
   4  norm          .10000E-03    1.9209        .20739E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .90564E-01    4.1478        .13339E-02   -1.5648    
   6  norm          .10000E-03    22.155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          8.8096        4.4644        .11247E-03   -1.5114    
   8  Prefactor     114.92        49.835        .37532E-04   -1.3560    
   9  norm          35.497        29.380        .67260E-04   -1.4516    
  10  Prefactor     .10000E-03    39.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .28752        .80128E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.3292        5.7295        .17410E-03   -1.5246    
  13  Prefactor     7.2628        28.676        .14872E-03   -1.5169    
  14  norm          1.4052        3.0799        .19466E-03   -1.5471    
  15  norm          3.9311        3.8795        .14769E-03   -1.5311    
  16  Prefactor     13.370        21.841        .10954E-03   -1.4976    
  17  Prefactor     5.7804        4.8512        .14773E-03   -1.5227    
  18  Normalizat    1.0990        .23165        .25669E-03   -.89785    
  19  Prefactor     .77377        .16753        .22281E-03   -1.0070    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59667e-09
Minuit parameter uncertainties:
  1  10.2668
  2  0.000185552
  3  12.4169
  4  1.49174e-05
  5  1.2252
  6  0.000104342
  7  4.46459
  8  49.8536
  9  29.3918
  10  0.000323113
  11  1.15218e-07
  12  5.73005
  13  28.73
  14  3.08025
  15  3.87979
  16  21.8535
  17  4.85153
  18  0.231861
  19  0.167642
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  5.329e+00  5.730e+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:  7.738e-01  1.676e-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:  1.099e+00  2.319e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.90
Ra Dec: 129.963 1.088
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 2.07e-08 +/- 2.23e-08
Energy Flux (Fixed Index): 7.62e-06 +/- 8.19e-06

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

Saving results to:
/scratch/kocevski/604959/likelihoodResults_471830401_472089601_4FGL_J0839.8+0105_daily_bin897.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) = 6048.1308783
delta logL = 0.0101820152349

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6048.12991918
delta logL = 0.0111411327507

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.1081       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0527       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1035       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77234       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=   6048.130     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      234 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.1070        5.8884        .17789E-03   -.79437E-04
   2  alpha         2.0518        1.1995        .31886E-01    .16219E-04
   3  Normalizat    1.1036        .21854        .25621E-03    .53590E-03
   4  Prefactor     .77223        .16174        .22301E-03    .53991E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.10705
  alpha      = 2.05181
  Normalizat = 1.10356
  Prefactor  = 0.772235
 **********
 **   18 **HESSE 
 **********

 FCN=   6048.130     FROM HESSE     STATUS=OK            25 CALLS      259 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.1070        5.9909        .71157E-05   -1.5256    
   2  alpha         2.0518        1.2184        .12755E-02   -.18025    
   3  Normalizat    1.1036        .21866        .51243E-04   -.89638    
   4  Prefactor     .77223        .16184        .44601E-04   -1.0076    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.75907e-10
Minuit parameter uncertainties:
  1  5.99164
  2  1.27467
  3  0.218837
  4  0.161943
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/604959': 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) = 6048.12991855
delta logL = 0.0111417661501

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  5.107e+00  5.992e+00  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  2.052e+00  1.275e+00  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:  7.722e-01  1.619e-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:  1.104e+00  2.188e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.92
Ra Dec: 129.963 1.088
Photon Index (Free Index): 2.05 +/- 1.27
Photon Flux (Free Index): 1.67e-08 +/- 3.11e-08
Energy Flux (Free Index): 7.48e-06 +/- 8.21e-06

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/604959/cmap_HighResolution_471830401_472089601_4FGL_J0839.8+0105_daily_bin897.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.99e-05', comment='SUCCESS', photon_flux='2.07e-08', energy_flux2='7.48e-06', photon_flux_error='2.23e-08', dlogl='1.11e-02', energy_flux='7.62e-06', photon_flux2='1.67e-08', job_status='DONE', time_completed='2021-08-30 03:13:58.262296', photon_index_error2='1.27', photon_index2='2.05', ts='1.90', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', photon_flux_upper_limit='8.14e-08', energy_flux_error2='8.21e-06', EG='1.10', time_epoch_completed='1630318438.26', return_code='0', job_id='604959', GAL2='0.77', EG2='1.10', return_code2='0', energy_flux_error='8.19e-06', photon_flux_error2='3.11e-08', ts2='1.92', photon_index='2.24' WHERE bin_id='897' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:13:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0140>
Subject: Job 604959: <4FGL_J0839.8+0105_daily_bin897> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin897 129.963 1.0877 471830401 472089601 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 :                                   572.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   794 sec.
    Turnaround time :                            796 sec.

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

