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


Performing analysis on: 4FGL_J0839.8+0105_daily_bin973
RA = 129.963, Dec = 1.0877
tmin = 491529601, tmax = 491788801
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='605084', job_status='RUN', time_executed='2021-08-30 03:01:10.852966', time_epoch_executed='1630317670.85' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='973'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/605084

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/605084/ft1_4FGL_J0839.8+0105_daily_bin973.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/605084/ft2_4FGL_J0839.8+0105_daily_bin973.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/605084/ft1_4FGL_J0839.8+0105_daily_bin973.fits outfile=/scratch/kocevski/605084/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin973.fits ra=129.963 dec=1.0877 rad=12.0 tmin=491529601.0 tmax=491788801.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 3.49
user 3.25
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/605084/ft1_filtered_4FGL_J0839.8+0105_daily_bin973.fits" evtable="EVENTS" scfile=/scratch/kocevski/605084/ft2_4FGL_J0839.8+0105_daily_bin973.fits sctable="SC_DATA" outfile=/scratch/kocevski/605084/ltcube_491529601_491788801_4FGL_J0839.8+0105_daily_bin973.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/605084/ft2_4FGL_J0839.8+0105_daily_bin973.fits
.....................!
real 11.87
user 11.43
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/605084/ft1_filtered_4FGL_J0839.8+0105_daily_bin973.fits evtable="EVENTS" scfile=/scratch/kocevski/605084/ft2_4FGL_J0839.8+0105_daily_bin973.fits sctable="SC_DATA" expcube=/scratch/kocevski/605084/ltcube_491529601_491788801_4FGL_J0839.8+0105_daily_bin973.fits outfile=/scratch/kocevski/605084/expmap_491529601_491788801_4FGL_J0839.8+0105_daily_bin973.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/605084/ltcube_491529601_491788801_4FGL_J0839.8+0105_daily_bin973.fits
.....................!
real 192.94
user 186.23
sys 4.95

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/605084/ft1_filtered_4FGL_J0839.8+0105_daily_bin973.fits scfile=/scratch/kocevski/605084/ft2_4FGL_J0839.8+0105_daily_bin973.fits outfile=/scratch/kocevski/605084/cmap_491529601_491788801_4FGL_J0839.8+0105_daily_bin973.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 0.68
user 0.40
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/605084/ft1_filtered_4FGL_J0839.8+0105_daily_bin973.fits scfile=/scratch/kocevski/605084/ft2_4FGL_J0839.8+0105_daily_bin973.fits outfile=/scratch/kocevski/605084/cmap_HighResolution_491529601_491788801_4FGL_J0839.8+0105_daily_bin973.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 0.59
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.6890       1.0000         .10000E-03   10000.    
     2 'Prefactor '    30.533       1.0000         .10000E-03   10000.    
     3 'norm      '    2.6781       1.0000         .10000E-03   10000.    
     4 'norm      '    1.8044       1.0000         .10000E-03   10000.    
     5 'norm      '    1.1495       1.0000         .10000E-03   10000.    
     6 'norm      '    5.6086       1.0000         .10000E-03   10000.    
     7 'norm      '    4.7939       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.9263       1.0000         .10000E-03   10000.    
     9 'norm      '    .10255E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .81098       1.0000         .10000E-03   10000.    
    12 'norm      '    24.759       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.8351       1.0000         .10000E-03   10000.    
    15 'norm      '    13.610       1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.813       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.7378       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1290       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0418       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=   7991.057     FROM MIGRAD    STATUS=CONVERGED    367 CALLS     1842 TOTAL
                     EDM=   .79E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.6889        5.4060       -.91890E-07    .12236E-05
   2  Prefactor     30.524        28.400        .70037E-06   -.93588E-05
   3  norm          2.6777        6.2360        .41341E-05   -.62533E-04
   4  norm          1.8044        1.4491       -.72798E-08   -.76502E-05
   5  norm          1.1496        1.1719        .63425E-07    .51237E-04
   6  norm          5.5933        20.992        .12906E-06   -.75156E-04
   7  norm          4.7936        3.3780       -.12754E-06   -.12297E-03
   8  Prefactor     2.9147        131.21        .49381E-05   -.65572E-05
   9  norm          .10000E-03    49.481       -.73313E-07** at limit **
  10  Prefactor     .10000E-03    7.1543       -.31385E-06** at limit **
  11  norm          .81077        .84865       -.73920E-07   -.69812E-03
  12  norm          24.759        9.1393        .93141E-08   -.29844E-04
  13  Prefactor     .10000E-03    5.5005        .27921E-07** at limit **
  14  norm          5.8344        3.9168       -.30734E-06   -.22714E-03
  15  norm          13.609        6.0159       -.69222E-09   -.23521E-04
  16  Prefactor     15.812        14.829        .12102E-06    .47922E-05
  17  Prefactor     6.7371        4.7293        .84749E-07    .88284E-05
  18  Normalizat    1.1293        .18831        .41399E-06   -.25568E-04
  19  Prefactor     1.0416        .13957       -.92799E-06   -.16941E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.6889
  Prefactor  = 30.5239
  norm       = 2.67767
  norm       = 1.80437
  norm       = 1.14964
  norm       = 5.5933
  norm       = 4.79357
  Prefactor  = 2.91472
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.810765
  norm       = 24.7587
  Prefactor  = 0.0001
  norm       = 5.83444
  norm       = 13.6095
  Prefactor  = 15.8115
  Prefactor  = 6.7371
  Normalizat = 1.12925
  Prefactor  = 1.04159
 **********
 **   18 **HESSE 
 **********

 FCN=   7991.057     FROM HESSE     STATUS=OK           278 CALLS     2120 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.6889        5.4061        .15515E-03   -1.5191    
   2  Prefactor     30.524        28.332        .72510E-04   -1.4602    
   3  norm          2.6777        6.2552        .12450E-02   -1.5381    
   4  norm          1.8044        1.4459        .93097E-04   -1.5439    
   5  norm          1.1496        1.1444        .93374E-04   -1.5494    
   6  norm          5.5933        20.649        .16963E-03   -1.5235    
   7  norm          4.7936        3.3760        .13292E-03   -1.5270    
   8  Prefactor     2.9147        129.07        .23747E-03   -1.5367    
   9  norm          .10000E-03    50.639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.1844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .81077        .82558        .80337E-04   -1.5528    
  12  norm          24.759        9.1363        .80504E-04   -1.4712    
  13  Prefactor     .10000E-03    5.5066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.8344        3.9305        .13886E-03   -1.5225    
  15  norm          13.609        6.0174        .10857E-03   -1.4970    
  16  Prefactor     15.812        14.833        .10072E-03   -1.4912    
  17  Prefactor     6.7371        4.7310        .15458E-03   -1.5189    
  18  Normalizat    1.1293        .21934        .28766E-03   -.88818    
  19  Prefactor     1.0416        .16247        .22867E-03   -.91356    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66783e-10
Minuit parameter uncertainties:
  1  5.4065
  2  28.3445
  3  6.25669
  4  1.44597
  5  1.14445
  6  20.6753
  7  3.37616
  8  38.8809
  9  5.33291e-05
  10  4.84688e-05
  11  0.825587
  12  9.13684
  13  4.35732e-06
  14  3.93065
  15  6.01763
  16  14.8361
  17  4.73126
  18  0.219514
  19  0.162545
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  2.476e+01  9.137e+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.042e+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:  1.129e+00  2.195e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 21.63
Ra Dec: 129.963 1.088
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 9.62e-08 +/- 3.55e-08
Energy Flux (Fixed Index): 3.54e-05 +/- 1.31e-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) = 7989.57094246
delta logL = 1.48559458264

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7989.57046123
delta logL = 1.48607581566

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    25.030       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5935       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1708       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0239       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=   7989.570     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      203 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          25.030        9.9231        .20017E-02    .68005E-03
   2  alpha         1.5935        .32539        .28966       -.34222E-04
   3  Normalizat    1.1708        .17926        .64058E-01    .90114E-04
   4  Prefactor     1.0239        .13785        .41770E-01   -.37934E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 25.0301
  alpha      = 1.5935
  Normalizat = 1.17084
  Prefactor  = 1.02394
 **********
 **   18 **HESSE 
 **********

 FCN=   7989.570     FROM HESSE     STATUS=OK            31 CALLS      234 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          25.030        10.804        .80068E-04   -1.4707    
   2  alpha         1.5935        .37323        .12120E-01   -.37106    
   3  Normalizat    1.1708        .20828        .28336E-03   -.87509    
   4  Prefactor     1.0239        .16034        .23045E-03   -.91936    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.44254e-10
Minuit parameter uncertainties:
  1  10.8051
  2  0.374845
  3  0.208432
  4  0.160415
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/605084': 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) = 7989.57046113
delta logL = 1.48607591752

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  2.503e+01  1.081e+01  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  1.593e+00  3.748e-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.024e+00  1.604e-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.171e+00  2.084e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 24.62
Ra Dec: 129.963 1.088
Photon Index (Free Index): 1.59 +/- 0.37
Photon Flux (Free Index): 6.02e-08 +/- 3.16e-08
Energy Flux (Free Index): 5.06e-05 +/- 2.39e-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/605084/cmap_HighResolution_491529601_491788801_4FGL_J0839.8+0105_daily_bin973.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.62e-08', energy_flux2='5.06e-05', photon_flux_error='3.55e-08', dlogl='1.49e+00', energy_flux='3.54e-05', photon_flux2='6.02e-08', job_status='DONE', time_completed='2021-08-30 03:10:44.097174', photon_index_error2='0.37', photon_index2='1.59', ts='21.63', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='2.39e-05', EG='1.13', time_epoch_completed='1630318244.1', return_code='0', job_id='605084', GAL2='1.02', EG2='1.17', return_code2='0', energy_flux_error='1.31e-05', photon_flux_error2='3.16e-08', ts2='24.62', photon_index='2.24' WHERE bin_id='973' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:10:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 605084: <4FGL_J0839.8+0105_daily_bin973> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin973 129.963 1.0877 491529601 491788801 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 :                                   566.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             393.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   590 sec.
    Turnaround time :                            591 sec.

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

