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


Performing analysis on: 4FGL_J0839.8+0105_daily_bin438
RA = 129.963, Dec = 1.0877
tmin = 352857601, tmax = 353116801
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='601118', job_status='RUN', time_executed='2021-08-30 02:52:06.414133', time_epoch_executed='1630317126.41' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='438'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/601118

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/601118/ft1_4FGL_J0839.8+0105_daily_bin438.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/601118/ft2_4FGL_J0839.8+0105_daily_bin438.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/601118/ft1_4FGL_J0839.8+0105_daily_bin438.fits outfile=/scratch/kocevski/601118/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin438.fits ra=129.963 dec=1.0877 rad=12.0 tmin=352857601.0 tmax=353116801.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 6.68
user 3.19
sys 3.42

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/601118/ft1_filtered_4FGL_J0839.8+0105_daily_bin438.fits evtable="EVENTS" scfile=/scratch/kocevski/601118/ft2_4FGL_J0839.8+0105_daily_bin438.fits sctable="SC_DATA" expcube=/scratch/kocevski/601118/ltcube_352857601_353116801_4FGL_J0839.8+0105_daily_bin438.fits outfile=/scratch/kocevski/601118/expmap_352857601_353116801_4FGL_J0839.8+0105_daily_bin438.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/601118/ltcube_352857601_353116801_4FGL_J0839.8+0105_daily_bin438.fits
.....................!
real 194.92
user 185.97
sys 8.47

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/601118/ft1_filtered_4FGL_J0839.8+0105_daily_bin438.fits scfile=/scratch/kocevski/601118/ft2_4FGL_J0839.8+0105_daily_bin438.fits outfile=/scratch/kocevski/601118/cmap_352857601_353116801_4FGL_J0839.8+0105_daily_bin438.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 3.65
user 0.37
sys 3.21

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/601118/ft1_filtered_4FGL_J0839.8+0105_daily_bin438.fits scfile=/scratch/kocevski/601118/ft2_4FGL_J0839.8+0105_daily_bin438.fits outfile=/scratch/kocevski/601118/cmap_HighResolution_352857601_353116801_4FGL_J0839.8+0105_daily_bin438.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 3.68
user 0.36
sys 3.30

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    51.035       1.0000         .10000E-03   10000.    
     3 'norm      '    13.507       1.0000         .10000E-03   10000.    
     4 'norm      '    2.0763       1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10072E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    10.220       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.269       1.0000         .10000E-03   10000.    
    11 'norm      '    .21319E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    37.886       1.0000         .10000E-03   10000.    
    13 'Prefactor '    59.309       1.0000         .10000E-03   10000.    
    14 'norm      '    5.5453       1.0000         .10000E-03   10000.    
    15 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .58664       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0805       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=   3998.753     FROM MIGRAD    STATUS=CONVERGED    375 CALLS     1856 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.7192        .26736E-05** at limit **
   2  Prefactor     51.025        41.414       -.12064E-04    .61794E-04
   3  norm          13.506        13.666       -.36273E-06   -.22369E-04
   4  norm          2.0758        3.1502       -.34759E-06   -.38120E-03
   5  norm          .10000E-03    .87355        .56579E-07** at limit **
   6  norm          .10000E-03    17.119       -.23183E-05** at limit **
   7  norm          10.221        5.7777        .29407E-06    .11090E-03
   8  Prefactor     .10000E-03    10.318       -.17684E-06** at limit **
   9  norm          .10000E-03    20.809        .56522E-05** at limit **
  10  Prefactor     10.269        17.936       -.19604E-05    .35029E-04
  11  norm          .10000E-03    .92477       -.71841E-06** at limit **
  12  norm          37.892        16.641        .21507E-05    .26428E-03
  13  Prefactor     59.284        53.088       -.29527E-04    .19885E-05
  14  norm          5.5440        5.7877       -.13566E-05   -.12601E-03
  15  norm          .10000E-03    8.4450       -.22838E-05** at limit **
  16  Prefactor     .10000E-03    23.483       -.22075E-05** at limit **
  17  Prefactor     .10000E-03    2.4251       -.15796E-06** at limit **
  18  Normalizat    .58675        .25243        .89281E-05    .19531E-03
  19  Prefactor     1.0805        .18144       -.65409E-06    .41772E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 51.0249
  norm       = 13.506
  norm       = 2.07584
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 10.2206
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.2686
  norm       = 0.000100001
  norm       = 37.8922
  Prefactor  = 59.284
  norm       = 5.54398
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.586746
  Prefactor  = 1.08055
 **********
 **   18 **HESSE 
 **********

 FCN=   3998.753     FROM HESSE     STATUS=OK           264 CALLS     2120 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.7571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     51.025        41.367        .56138E-04   -1.4278    
   3  norm          13.506        13.656        .10899E-03   -1.4973    
   4  norm          2.0758        3.1354        .13315E-03   -1.5420    
   5  norm          .10000E-03    .88462        .57675E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    17.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          10.221        5.7728        .10828E-03   -1.5068    
   8  Prefactor     .10000E-03    10.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    20.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.269        17.973        .12504E-03   -1.5067    
  11  norm          .10000E-03    3.0489        .11280E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          37.892        16.578        .65115E-04   -1.4476    
  13  Prefactor     59.284        53.093        .52096E-04   -1.4167    
  14  norm          5.5440        5.7828        .14760E-03   -1.5237    
  15  norm          .10000E-03    8.5226        .17946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    23.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.4435        .96158E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .58675        .27956        .33922E-03   -1.0855    
  19  Prefactor     1.0805        .20673        .19569E-03   -.90091    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.26181e-10
Minuit parameter uncertainties:
  1  1.69848e-05
  2  41.3902
  3  13.6592
  4  3.1356
  5  5.50128e-07
  6  0.000209802
  7  5.77312
  8  1.12443e-05
  9  1.37043e-05
  10  17.9829
  11  0.000126027
  12  16.5797
  13  53.1355
  14  5.7834
  15  2.64482e-05
  16  2.17032e-05
  17  8.83973e-06
  18  0.280238
  19  0.206879
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  3.789e+01  1.658e+01  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.081e+00  2.069e-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:  5.867e-01  2.802e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.19
Ra Dec: 129.963 1.088
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 1.47e-07 +/- 6.44e-08
Energy Flux (Fixed Index): 5.42e-05 +/- 2.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) = 3998.66391027
delta logL = 0.0888346602778

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3998.6596624
delta logL = 0.0930825304349

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    34.225       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4851       1.0000          .0000       5.0000    
     3 'Normalizat'    .55114       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1011       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=   3998.660     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      292 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          34.227        18.999        .68499E-04   -.15894E-02
   2  alpha         2.4850        .59751        .99130E-02   -.25429E-03
   3  Normalizat    .55129        .27957        .34915E-03    .75443E-04
   4  Prefactor     1.1010        .21112        .19412E-03    .47015E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 34.227
  alpha      = 2.48496
  Normalizat = 0.55129
  Prefactor  = 1.10099
 **********
 **   18 **HESSE 
 **********

 FCN=   3998.660     FROM HESSE     STATUS=OK            23 CALLS      315 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          34.227        18.484        .13700E-04   -1.4537    
   2  alpha         2.4850        .58088        .39652E-03   -.60154E-02
   3  Normalizat    .55129        .27898        .13966E-04   -1.1009    
   4  Prefactor     1.1010        .21072        .38824E-04   -.89435    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.90922e-09
Minuit parameter uncertainties:
  1  18.4868
  2  0.586236
  3  0.279694
  4  0.210878
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/601118': 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) = 3998.65966223
delta logL = 0.0930826963177

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  3.423e+01  1.849e+01  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  2.485e+00  5.862e-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.101e+00  2.109e-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:  5.513e-01  2.797e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.29
Ra Dec: 129.963 1.088
Photon Index (Free Index): 2.48 +/- 0.59
Photon Flux (Free Index): 1.71e-07 +/- 9.06e-08
Energy Flux (Free Index): 5.11e-05 +/- 2.29e-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/601118/cmap_HighResolution_352857601_353116801_4FGL_J0839.8+0105_daily_bin438.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.47e-07', energy_flux2='5.11e-05', photon_flux_error='6.44e-08', dlogl='9.31e-02', energy_flux='5.42e-05', photon_flux2='1.71e-07', job_status='DONE', time_completed='2021-08-30 03:00:09.163907', photon_index_error2='0.59', photon_index2='2.48', ts='9.19', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='2.29e-05', EG='0.59', time_epoch_completed='1630317609.16', return_code='0', job_id='601118', GAL2='1.10', EG2='0.55', return_code2='0', energy_flux_error='2.37e-05', photon_flux_error2='9.06e-08', ts2='9.29', photon_index='2.24' WHERE bin_id='438' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:00:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0182>
Subject: Job 601118: <4FGL_J0839.8+0105_daily_bin438> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin438 129.963 1.0877 352857601 353116801 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 :                                   531.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   572 sec.
    Turnaround time :                            575 sec.

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

