/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 228 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 = 7438
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0839.8+0105_daily_bin375
RA = 129.963, Dec = 1.0877
tmin = 336528001, tmax = 336787201
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='601027', job_status='RUN', time_executed='2021-08-30 02:55:07.914364', time_epoch_executed='1630317307.91' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='375'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/601027

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/601027/ft1_4FGL_J0839.8+0105_daily_bin375.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/601027/ft2_4FGL_J0839.8+0105_daily_bin375.fits


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

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

Done.
real 8.38
user 5.52
sys 2.57

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/601027/ft1_filtered_4FGL_J0839.8+0105_daily_bin375.fits" evtable="EVENTS" scfile=/scratch/kocevski/601027/ft2_4FGL_J0839.8+0105_daily_bin375.fits sctable="SC_DATA" outfile=/scratch/kocevski/601027/ltcube_336528001_336787201_4FGL_J0839.8+0105_daily_bin375.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/601027/ft2_4FGL_J0839.8+0105_daily_bin375.fits
.....................!
real 14.75
user 11.73
sys 2.96

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/601027/ft1_filtered_4FGL_J0839.8+0105_daily_bin375.fits evtable="EVENTS" scfile=/scratch/kocevski/601027/ft2_4FGL_J0839.8+0105_daily_bin375.fits sctable="SC_DATA" expcube=/scratch/kocevski/601027/ltcube_336528001_336787201_4FGL_J0839.8+0105_daily_bin375.fits outfile=/scratch/kocevski/601027/expmap_336528001_336787201_4FGL_J0839.8+0105_daily_bin375.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/601027/ltcube_336528001_336787201_4FGL_J0839.8+0105_daily_bin375.fits
.....................!
real 193.01
user 185.22
sys 7.44

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/601027/ft1_filtered_4FGL_J0839.8+0105_daily_bin375.fits scfile=/scratch/kocevski/601027/ft2_4FGL_J0839.8+0105_daily_bin375.fits outfile=/scratch/kocevski/601027/cmap_336528001_336787201_4FGL_J0839.8+0105_daily_bin375.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 2.84
user 0.38
sys 2.43

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/601027/ft1_filtered_4FGL_J0839.8+0105_daily_bin375.fits scfile=/scratch/kocevski/601027/ft2_4FGL_J0839.8+0105_daily_bin375.fits outfile=/scratch/kocevski/601027/cmap_HighResolution_336528001_336787201_4FGL_J0839.8+0105_daily_bin375.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 2.88
user 0.37
sys 2.45

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1762       1.0000         .10000E-03   10000.    
     2 'Prefactor '    65.314       1.0000         .10000E-03   10000.    
     3 'norm      '    29.632       1.0000         .10000E-03   10000.    
     4 'norm      '    3.6133       1.0000         .10000E-03   10000.    
     5 'norm      '    1.5291       1.0000         .10000E-03   10000.    
     6 'norm      '    12.907       1.0000         .10000E-03   10000.    
     7 'norm      '    4.6281       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.4567       1.0000         .10000E-03   10000.    
     9 'norm      '    64.309       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.1332       1.0000         .10000E-03   10000.    
    12 'norm      '    .46718       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.5108       1.0000         .10000E-03   10000.    
    15 'norm      '    3.2409       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.0919       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .63392       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0726       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=   4628.205     FROM MIGRAD    STATUS=CONVERGED    368 CALLS     1894 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1761        6.8243        .14791E-06    .10307E-03
   2  Prefactor     65.306        48.115       -.44658E-06   -.27069E-03
   3  norm          29.631        15.101       -.46488E-07   -.18408E-03
   4  norm          3.6133        2.5452       -.28388E-07    .68996E-06
   5  norm          1.5291        1.5966        .35357E-07    .34571E-03
   6  norm          12.906        26.404       -.36706E-06   -.16428E-03
   7  norm          4.6278        4.1695       -.54141E-07   -.25188E-03
   8  Prefactor     9.4517        43.340       -.46447E-06   -.85733E-04
   9  norm          64.308        43.032       -.28507E-06   -.23301E-04
  10  Prefactor     .10000E-03    7.8321       -.23252E-06** at limit **
  11  norm          2.1331        1.4084        .36546E-07   -.13053E-03
  12  norm          .43989        27.609       -.12729E-04    .35701E-03
  13  Prefactor     .10000E-03    16.849        .35054E-06** at limit **
  14  norm          4.5109        5.3776        .62318E-06    .76447E-03
  15  norm          3.2408        6.9309        .21054E-05    .99738E-03
  16  Prefactor     3.1111        71.539        .50562E-05    .18985E-03
  17  Prefactor     .10000E-03    4.6459        .25694E-06** at limit **
  18  Normalizat    .63396        .23271       -.46695E-05   -.27363E-04
  19  Prefactor     1.0726        .17179        .25321E-05    .21518E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.17607
  Prefactor  = 65.3062
  norm       = 29.6313
  norm       = 3.61326
  norm       = 1.52913
  norm       = 12.9055
  norm       = 4.62782
  Prefactor  = 9.45166
  norm       = 64.3077
  Prefactor  = 0.0001
  norm       = 2.1331
  norm       = 0.439887
  Prefactor  = 0.0001
  norm       = 4.51087
  norm       = 3.24083
  Prefactor  = 3.11105
  Prefactor  = 0.0001
  Normalizat = 0.633959
  Prefactor  = 1.07259
 **********
 **   18 **HESSE 
 **********

 FCN=   4628.205     FROM HESSE     STATUS=OK           274 CALLS     2168 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1761        6.8182        .17670E-03   -1.5253    
   2  Prefactor     65.306        48.118        .49659E-04   -1.4090    
   3  norm          29.631        15.089        .73601E-04   -1.4619    
   4  norm          3.6133        2.5393        .87390E-04   -1.5328    
   5  norm          1.5291        1.5845        .83638E-04   -1.5461    
   6  norm          12.906        26.301        .11150E-03   -1.4989    
   7  norm          4.6278        4.1642        .12645E-03   -1.5278    
   8  Prefactor     9.4517        43.186        .13032E-03   -1.5093    
   9  norm          64.308        43.068        .50043E-04   -1.4102    
  10  Prefactor     .10000E-03    7.8815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.1331        1.3972        .61142E-04   -1.5416    
  12  norm          .43989        31.025        .37169E-02   -1.5575    
  13  Prefactor     .10000E-03    16.887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.5109        5.4088        .16241E-03   -1.5283    
  15  norm          3.2408        7.1727        .22499E-03   -1.5348    
  16  Prefactor     3.1111        74.866        .23064E-03   -1.5355    
  17  Prefactor     .10000E-03    4.7627        .28625E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .63396        .26698        .32823E-03   -1.0656    
  19  Prefactor     1.0726        .19714        .19836E-03   -.90348    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.53567e-09
Minuit parameter uncertainties:
  1  6.81919
  2  48.1469
  3  15.091
  4  2.53939
  5  1.58452
  6  26.3249
  7  4.16443
  8  40.4553
  9  43.0889
  10  3.81179e-05
  11  1.39718
  12  7.39164
  13  0.000125457
  14  5.40937
  15  7.17458
  16  30.5655
  17  3.61562e-05
  18  0.267523
  19  0.197274
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  4.399e-01  7.392e+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.073e+00  1.973e-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:  6.340e-01  2.675e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/601027/likelihoodResults_336528001_336787201_4FGL_J0839.8+0105_daily_bin375.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) = 4627.35298672
delta logL = 0.852336292487

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4627.18583961
delta logL = 1.01948340694

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .68055       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .48674       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1406       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=   4627.186     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      292 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .68049        16.393        .90048E-02    .55791E-03
   2  alpha         5.0000        3.1938        .46375    ** at limit **
   3  Normalizat    .48688        .12538        .83896E-01    .13537E-04
   4  Prefactor     1.1406        .89873E-01    .36213E-01   -.62561E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.680492
  alpha      = 5
  Normalizat = 0.486881
  Prefactor  = 1.14058
 **********
 **   18 **HESSE 
 **********

 FCN=   4627.186     FROM HESSE     STATUS=OK            33 CALLS      325 TOTAL
                     EDM=   .68E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .68049        .63593        .40600E-04   -1.5543    
   2  alpha         5.0000        3.1558        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .48688        .27224        .37164E-03   -1.1303    
   4  Prefactor     1.1406        .20051        .19290E-03   -.88180    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.84421e-12
Minuit parameter uncertainties:
  1  0.635936
  2  8.83169e-06
  3  0.272987
  4  0.200644
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/601027': 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) = 4627.18583924
delta logL = 1.01948377583

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  6.805e-01  6.359e-01  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  5.000e+00  8.832e-06  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.141e+00  2.006e-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:  4.869e-01  2.730e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.35
Ra Dec: 129.963 1.088
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.18e-07 +/- 1.10e-07
Energy Flux (Free Index): 1.64e-05 +/- 1.53e-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/601027/cmap_HighResolution_336528001_336787201_4FGL_J0839.8+0105_daily_bin375.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.33e-05', comment='SUCCESS', energy_flux2='1.64e-05', dlogl='1.02e+00', photon_flux2='1.18e-07', job_status='DONE', time_completed='2021-08-30 03:04:03.743245', photon_index_error2='0.00', photon_index2='5.00', ts='0.00', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='9.05e-08', energy_flux_error2='1.53e-05', EG='0.63', time_epoch_completed='1630317843.74', return_code='0', job_id='601027', GAL2='1.14', EG2='0.49', return_code2='0', photon_flux_error2='1.10e-07', ts2='2.35', photon_index='2.24' WHERE bin_id='375' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:04:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 601027: <4FGL_J0839.8+0105_daily_bin375> in cluster <slac> Done

Job <4FGL_J0839.8+0105_daily_bin375> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug 30 02:50:29 2021
Job was executed on host(s) <bullet0274>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 02:50:30 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:30 2021
Terminated at Mon Aug 30 03:04:04 2021
Results reported at Mon Aug 30 03:04:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin375 129.963 1.0877 336528001 336787201 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 :                                   570.39 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             245.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   814 sec.
    Turnaround time :                            815 sec.

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

