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


Performing analysis on: 4FGL_J0839.8+0105_daily_bin999
RA = 129.963, Dec = 1.0877
tmin = 498268801, tmax = 498528001
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='605114', job_status='RUN', time_executed='2021-08-30 03:04:12.616663', time_epoch_executed='1630317852.62' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='999'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/605114

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/605114/ft1_4FGL_J0839.8+0105_daily_bin999.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/605114/ft2_4FGL_J0839.8+0105_daily_bin999.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/605114/ft1_4FGL_J0839.8+0105_daily_bin999.fits outfile=/scratch/kocevski/605114/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin999.fits ra=129.963 dec=1.0877 rad=12.0 tmin=498268801.0 tmax=498528001.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 5.44
user 4.56
sys 0.71

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/605114/ft2_4FGL_J0839.8+0105_daily_bin999.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/605114/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin999.fits evtable="EVENTS" outfile="/scratch/kocevski/605114/ft1_filtered_4FGL_J0839.8+0105_daily_bin999.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.95
user 0.31
sys 0.63

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/605114/ft1_filtered_4FGL_J0839.8+0105_daily_bin999.fits" evtable="EVENTS" scfile=/scratch/kocevski/605114/ft2_4FGL_J0839.8+0105_daily_bin999.fits sctable="SC_DATA" outfile=/scratch/kocevski/605114/ltcube_498268801_498528001_4FGL_J0839.8+0105_daily_bin999.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/605114/ft2_4FGL_J0839.8+0105_daily_bin999.fits
.....................!
real 13.33
user 12.41
sys 0.85

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/605114/ft1_filtered_4FGL_J0839.8+0105_daily_bin999.fits evtable="EVENTS" scfile=/scratch/kocevski/605114/ft2_4FGL_J0839.8+0105_daily_bin999.fits sctable="SC_DATA" expcube=/scratch/kocevski/605114/ltcube_498268801_498528001_4FGL_J0839.8+0105_daily_bin999.fits outfile=/scratch/kocevski/605114/expmap_498268801_498528001_4FGL_J0839.8+0105_daily_bin999.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/605114/ltcube_498268801_498528001_4FGL_J0839.8+0105_daily_bin999.fits
.....................!
real 191.75
user 185.17
sys 5.76

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/605114/ft1_filtered_4FGL_J0839.8+0105_daily_bin999.fits scfile=/scratch/kocevski/605114/ft2_4FGL_J0839.8+0105_daily_bin999.fits outfile=/scratch/kocevski/605114/cmap_498268801_498528001_4FGL_J0839.8+0105_daily_bin999.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.16
user 0.36
sys 0.62

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/605114/ft1_filtered_4FGL_J0839.8+0105_daily_bin999.fits scfile=/scratch/kocevski/605114/ft2_4FGL_J0839.8+0105_daily_bin999.fits outfile=/scratch/kocevski/605114/cmap_HighResolution_498268801_498528001_4FGL_J0839.8+0105_daily_bin999.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.11
user 0.37
sys 0.61

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.6652       1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.391       1.0000         .10000E-03   10000.    
     3 'norm      '    .29345E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    .49555       1.0000         .10000E-03   10000.    
     5 'norm      '    1.0402       1.0000         .10000E-03   10000.    
     6 'norm      '    6.6460       1.0000         .10000E-03   10000.    
     7 'norm      '    9.1467       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    57.005       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.1506       1.0000         .10000E-03   10000.    
    11 'norm      '    .47230       1.0000         .10000E-03   10000.    
    12 'norm      '    22.956       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.8856       1.0000         .10000E-03   10000.    
    14 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    84.786       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.8383       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2822       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .71018       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=   7590.716     FROM MIGRAD    STATUS=CONVERGED    680 CALLS     1964 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.6672        6.0944        .14484E-03    .32518E-03
   2  Prefactor     21.394        24.634        .86602E-04   -.39645E-04
   3  norm          .10463E-03    4.8104        .59001E-01** at limit **
   4  norm          .49452        1.7174        .19920E-03    .58384E-04
   5  norm          1.0408        .98071        .79121E-04    .25471E-02
   6  norm          6.6347        12.489        .15566E-03    .17376E-03
   7  norm          9.1471        3.8696        .10654E-03   -.17468E-03
   8  Prefactor     .10000E-03    27.414        .18142E-02** at limit **
   9  norm          57.006        30.601        .53133E-04    .14421E-04
  10  Prefactor     7.1493        9.4209        .15001E-03    .27511E-04
  11  norm          .47217        .63871        .90429E-03    .20023E-02
  12  norm          22.955        9.5938        .83602E-04   -.65274E-04
  13  Prefactor     6.8798        19.910        .15290E-03   -.38665E-05
  14  norm          .10000E-03    2.0402        .12079E-02** at limit **
  15  norm          84.784        14.105        .43627E-04   -.24704E-04
  16  Prefactor     .10000E-03    11.029        .18142E-02** at limit **
  17  Prefactor     3.8378        4.8903        .10300E-02    .28402E-03
  18  Normalizat    1.2824        .22094        .26328E-03    .55487E-04
  19  Prefactor     .71007        .15874        .25131E-03    .12671E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.66724
  Prefactor  = 21.3941
  norm       = 0.000104628
  norm       = 0.494519
  norm       = 1.04079
  norm       = 6.63471
  norm       = 9.14711
  Prefactor  = 0.0001
  norm       = 57.0064
  Prefactor  = 7.14931
  norm       = 0.472169
  norm       = 22.9549
  Prefactor  = 6.87979
  norm       = 0.0001
  norm       = 84.7844
  Prefactor  = 0.0001
  Prefactor  = 3.83785
  Normalizat = 1.2824
  Prefactor  = 0.710074
 **********
 **   18 **HESSE 
 **********

 FCN=   7590.716     FROM HESSE     STATUS=OK           262 CALLS     2226 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.6672        6.0937        .57937E-05   -1.5154    
   2  Prefactor     21.394        24.631        .34641E-05   -1.4783    
   3  norm          .10463E-03    4.7338        .59808E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .49452        1.7166        .79681E-05   -1.5567    
   5  norm          1.0408        .98049        .15824E-04   -1.5504    
   6  norm          6.6347        12.488        .62262E-05   -1.5193    
   7  norm          9.1471        3.8696        .42615E-05   -1.5103    
   8  Prefactor     .10000E-03    27.423        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          57.006        30.601        .10627E-04   -1.4196    
  10  Prefactor     7.1493        9.4207        .60003E-05   -1.5173    
  11  norm          .47217        .63811        .36172E-04   -1.5571    
  12  norm          22.955        9.5932        .33441E-05   -1.4749    
  13  Prefactor     6.8798        19.908        .61158E-05   -1.5183    
  14  norm          .10000E-03    2.0406        .24157E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          84.784        14.105        .87254E-05   -1.3864    
  16  Prefactor     .10000E-03    11.029        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.8378        4.8894        .41200E-04   -1.5316    
  18  Normalizat    1.2824        .22109        .10531E-04   -.84093    
  19  Prefactor     .71007        .15889        .10052E-04   -1.0313    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2059e-09
Minuit parameter uncertainties:
  1  6.09422
  2  24.6427
  3  0.00936243
  4  1.7168
  5  0.980504
  6  12.4929
  7  3.86967
  8  0.000113943
  9  30.6095
  10  9.42262
  11  0.638118
  12  9.59389
  13  19.9275
  14  4.652e-05
  15  14.1054
  16  7.12382e-05
  17  4.88989
  18  0.221254
  19  0.158994
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  2.295e+01  9.594e+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.101e-01  1.590e-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.282e+00  2.213e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.70
Ra Dec: 129.963 1.088
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 8.92e-08 +/- 3.73e-08
Energy Flux (Fixed Index): 3.28e-05 +/- 1.37e-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) = 7590.4781173
delta logL = 0.237973741673

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7590.46612631
delta logL = 0.249964736303

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    21.199       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5747       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2461       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72623       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.

 FCN=   7590.466     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      257 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          21.226        132.29        .21748E-02    .55498E-03
   2  alpha         2.5763        3.7342        .30351        .43667E-04
   3  Normalizat    1.2460        .16892        .60232E-01    .16571E-04
   4  Prefactor     .72603        .77920E-01    .42749E-01    .87096E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 21.2259
  alpha      = 2.57633
  Normalizat = 1.24601
  Prefactor  = 0.726032
 **********
 **   18 **HESSE 
 **********

 FCN=   7590.466     FROM HESSE     STATUS=OK            33 CALLS      290 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          21.226        9.5036        .43497E-03   -1.4786    
   2  alpha         2.5763        .47886        .11977E-01    .30535E-01
   3  Normalizat    1.2460        .22117        .26639E-03   -.85193    
   4  Prefactor     .72603        .15854        .24869E-03   -1.0252    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36018e-09
Minuit parameter uncertainties:
  1  9.50429
  2  0.481837
  3  0.221338
  4  0.158641
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/605114': 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) = 7590.46610519
delta logL = 0.249985854663

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  2.123e+01  9.504e+00  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  2.576e+00  4.818e-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:  7.260e-01  1.586e-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.246e+00  2.213e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.11
Ra Dec: 129.963 1.088
Photon Index (Free Index): 2.58 +/- 0.48
Photon Flux (Free Index): 1.17e-07 +/- 5.95e-08
Energy Flux (Free Index): 3.28e-05 +/- 1.28e-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/605114/cmap_HighResolution_498268801_498528001_4FGL_J0839.8+0105_daily_bin999.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.92e-08', energy_flux2='3.28e-05', photon_flux_error='3.73e-08', dlogl='2.50e-01', energy_flux='3.28e-05', photon_flux2='1.17e-07', job_status='DONE', time_completed='2021-08-30 03:14:10.080663', photon_index_error2='0.48', photon_index2='2.58', ts='16.70', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', energy_flux_error2='1.28e-05', EG='1.28', time_epoch_completed='1630318450.08', return_code='0', job_id='605114', GAL2='0.73', EG2='1.25', return_code2='0', energy_flux_error='1.37e-05', photon_flux_error2='5.95e-08', ts2='17.11', photon_index='2.24' WHERE bin_id='999' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:14:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 605114: <4FGL_J0839.8+0105_daily_bin999> in cluster <slac> Done

Job <4FGL_J0839.8+0105_daily_bin999> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Aug 30 03:00:56 2021
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 03:00:58 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:58 2021
Terminated at Mon Aug 30 03:14:10 2021
Results reported at Mon Aug 30 03:14:10 2021

Your job looked like:

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

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

