/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 212 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 = 7381
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0839.8+0105_daily_bin105
RA = 129.963, Dec = 1.0877
tmin = 266544001, tmax = 266803201
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='598328', job_status='RUN', time_executed='2021-08-30 02:50:01.420556', time_epoch_executed='1630317001.42' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='105'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/598328

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/598328/ft1_4FGL_J0839.8+0105_daily_bin105.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/598328/ft2_4FGL_J0839.8+0105_daily_bin105.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/598328/ft1_4FGL_J0839.8+0105_daily_bin105.fits outfile=/scratch/kocevski/598328/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin105.fits ra=129.963 dec=1.0877 rad=12.0 tmin=266544001.0 tmax=266803201.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 1.69
user 0.97
sys 0.66

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/598328/ft1_filtered_4FGL_J0839.8+0105_daily_bin105.fits" evtable="EVENTS" scfile=/scratch/kocevski/598328/ft2_4FGL_J0839.8+0105_daily_bin105.fits sctable="SC_DATA" outfile=/scratch/kocevski/598328/ltcube_266544001_266803201_4FGL_J0839.8+0105_daily_bin105.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/598328/ft2_4FGL_J0839.8+0105_daily_bin105.fits
.....................!
real 12.24
user 11.38
sys 0.82

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/598328/ft1_filtered_4FGL_J0839.8+0105_daily_bin105.fits evtable="EVENTS" scfile=/scratch/kocevski/598328/ft2_4FGL_J0839.8+0105_daily_bin105.fits sctable="SC_DATA" expcube=/scratch/kocevski/598328/ltcube_266544001_266803201_4FGL_J0839.8+0105_daily_bin105.fits outfile=/scratch/kocevski/598328/expmap_266544001_266803201_4FGL_J0839.8+0105_daily_bin105.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/598328/ltcube_266544001_266803201_4FGL_J0839.8+0105_daily_bin105.fits
.....................!
real 151.67
user 147.12
sys 4.12

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/598328/ft1_filtered_4FGL_J0839.8+0105_daily_bin105.fits scfile=/scratch/kocevski/598328/ft2_4FGL_J0839.8+0105_daily_bin105.fits outfile=/scratch/kocevski/598328/cmap_266544001_266803201_4FGL_J0839.8+0105_daily_bin105.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.95
user 0.30
sys 0.63

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/598328/ft1_filtered_4FGL_J0839.8+0105_daily_bin105.fits scfile=/scratch/kocevski/598328/ft2_4FGL_J0839.8+0105_daily_bin105.fits outfile=/scratch/kocevski/598328/cmap_HighResolution_266544001_266803201_4FGL_J0839.8+0105_daily_bin105.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.96
user 0.30
sys 0.65

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.9528       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.760       1.0000         .10000E-03   10000.    
     3 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    9.0795       1.0000         .10000E-03   10000.    
     6 'norm      '    .10095E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .15174E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    11.524       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.9173       1.0000         .10000E-03   10000.    
    12 'norm      '    36.616       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10453E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.6375       1.0000         .10000E-03   10000.    
    15 'norm      '    5.5280       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .26941E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.0203       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0241       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .94076       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=   9522.353     FROM MIGRAD    STATUS=CONVERGED    408 CALLS     1636 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9580        6.3718       -.32085E-05   -.12909E-03
   2  Prefactor     12.842        19.197        .12530E-05    .79890E-05
   3  norm          .10000E-03    3.6890        .14947E-06** at limit **
   4  norm          .10001E-03    .86769        .12037E-06** at limit **
   5  norm          9.0803        1.9867        .30767E-07   -.13815E-03
   6  norm          .10000E-03    16.788       -.46324E-06** at limit **
   7  norm          .10000E-03    .75398       -.59944E-07** at limit **
   8  Prefactor     .10000E-03    7.0626        .20352E-05** at limit **
   9  norm          11.396        13.187       -.37611E-07    .17756E-06
  10  Prefactor     .10000E-03    2.2290       -.22138E-07** at limit **
  11  norm          1.9175        .85632       -.66805E-08   -.30837E-04
  12  norm          36.605        9.3688       -.44737E-06   -.21416E-04
  13  Prefactor     .10000E-03    7.4701       -.91630E-06** at limit **
  14  norm          3.6376        1.2605        .13310E-06   -.22565E-02
  15  norm          5.5275        5.0939        .35895E-06   -.48250E-04
  16  Prefactor     .10001E-03    9.2464        .32762E-06** at limit **
  17  Prefactor     9.0239        4.0893       -.23970E-06   -.35553E-04
  18  Normalizat    1.0240        .15804        .22423E-06   -.27390E-04
  19  Prefactor     .94083        .12035        .23476E-06   -.46899E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.95804
  Prefactor  = 12.8417
  norm       = 0.0001
  norm       = 0.000100007
  norm       = 9.08035
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 11.3959
  Prefactor  = 0.0001
  norm       = 1.91752
  norm       = 36.605
  Prefactor  = 0.0001
  norm       = 3.63762
  norm       = 5.52745
  Prefactor  = 0.000100012
  Prefactor  = 9.02391
  Normalizat = 1.024
  Prefactor  = 0.940826
 **********
 **   18 **HESSE 
 **********

 FCN=   9522.353     FROM HESSE     STATUS=OK           274 CALLS     1910 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9580        6.3895        .16458E-03   -1.5220    
   2  Prefactor     12.842        19.205        .11214E-03   -1.4991    
   3  norm          .10000E-03    3.7179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10001E-03    7.0581        .17330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          9.0803        1.9621        .61057E-04   -1.5105    
   6  norm          .10000E-03    17.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .75838        .82736E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.0520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          11.396        13.189        .11801E-03   -1.5033    
  10  Prefactor     .10000E-03    2.2304        .14228E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.9175        .85272        .57678E-04   -1.5431    
  12  norm          36.605        9.3668        .66231E-04   -1.4497    
  13  Prefactor     .10000E-03    7.4797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.6376        3.8044        .91508E-03   -1.5326    
  15  norm          5.5275        5.0842        .17088E-03   -1.5238    
  16  Prefactor     .10001E-03    43.279        .57346E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.0239        4.1071        .12719E-03   -1.5107    
  18  Normalizat    1.0240        .18809        .28012E-03   -.92231    
  19  Prefactor     .94083        .14191        .22472E-03   -.94729    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.26247e-09
Minuit parameter uncertainties:
  1  6.39023
  2  19.2145
  3  1.32002e-05
  4  0.000456801
  5  1.96216
  6  4.45552e-05
  7  4.00136e-07
  8  3.93114e-06
  9  13.1921
  10  6.35054e-07
  11  0.852724
  12  9.36716
  13  5.07713e-06
  14  3.80468
  15  5.08463
  16  0.00147001
  17  4.10719
  18  0.188207
  19  0.141971
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  3.660e+01  9.367e+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:  9.408e-01  1.420e-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.024e+00  1.882e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 37.12
Ra Dec: 129.963 1.088
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 1.42e-07 +/- 3.64e-08
Energy Flux (Fixed Index): 5.23e-05 +/- 1.34e-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) = 9522.2907908
delta logL = 0.0621958415177

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9522.28857113
delta logL = 0.0644155137343

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    35.083       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3519       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0101       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94811       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=   9522.289     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      238 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          35.083        121.85        .16914E-02    .75465E-03
   2  alpha         2.3519        3.6706        .22591        .59404E-04
   3  Normalizat    1.0101        .23684        .46050E-01    .20556E-04
   4  Prefactor     .94809        .14174        .45615E-01    .11818E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 35.0834
  alpha      = 2.35194
  Normalizat = 1.01013
  Prefactor  = 0.948093
 **********
 **   18 **HESSE 
 **********

 FCN=   9522.289     FROM HESSE     STATUS=OK            31 CALLS      269 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          35.083        10.229        .67658E-04   -1.4523    
   2  alpha         2.3519        .31435        .93921E-02   -.59260E-01
   3  Normalizat    1.0101        .18569        .28153E-03   -.92692    
   4  Prefactor     .94809        .14199        .22395E-03   -.94480    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.80254e-10
Minuit parameter uncertainties:
  1  10.2292
  2  0.315188
  3  0.185805
  4  0.142042
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/598328': 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) = 9522.28857113
delta logL = 0.0644155195405

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  3.508e+01  1.023e+01  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  2.352e+00  3.152e-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:  9.481e-01  1.420e-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.010e+00  1.858e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 37.05
Ra Dec: 129.963 1.088
Photon Index (Free Index): 2.35 +/- 0.32
Photon Flux (Free Index): 1.52e-07 +/- 4.69e-08
Energy Flux (Free Index): 5.07e-05 +/- 1.36e-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/598328/cmap_HighResolution_266544001_266803201_4FGL_J0839.8+0105_daily_bin105.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.42e-07', energy_flux2='5.07e-05', photon_flux_error='3.64e-08', dlogl='6.44e-02', energy_flux='5.23e-05', photon_flux2='1.52e-07', job_status='DONE', time_completed='2021-08-30 02:58:07.648745', photon_index_error2='0.32', photon_index2='2.35', ts='37.12', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='1.36e-05', EG='1.02', time_epoch_completed='1630317487.65', return_code='0', job_id='598328', GAL2='0.95', EG2='1.01', return_code2='0', energy_flux_error='1.34e-05', photon_flux_error2='4.69e-08', ts2='37.05', photon_index='2.24' WHERE bin_id='105' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:58:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 598328: <4FGL_J0839.8+0105_daily_bin105> in cluster <slac> Done

Job <4FGL_J0839.8+0105_daily_bin105> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug 30 02:45:34 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 02:45:36 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:45:36 2021
Terminated at Mon Aug 30 02:58:08 2021
Results reported at Mon Aug 30 02:58:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin105 129.963 1.0877 266544001 266803201 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 :                                   491.48 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             299.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   751 sec.
    Turnaround time :                            754 sec.

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

