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


Performing analysis on: 4FGL_J0839.8+0105_daily_bin388
RA = 129.963, Dec = 1.0877
tmin = 339897601, tmax = 340156801
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='601045', job_status='RUN', time_executed='2021-08-30 02:54:06.178195', time_epoch_executed='1630317246.18' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='388'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/601045

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/601045/ft1_4FGL_J0839.8+0105_daily_bin388.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/601045/ft2_4FGL_J0839.8+0105_daily_bin388.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/601045/ft1_4FGL_J0839.8+0105_daily_bin388.fits outfile=/scratch/kocevski/601045/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin388.fits ra=129.963 dec=1.0877 rad=12.0 tmin=339897601.0 tmax=340156801.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.59
user 3.08
sys 0.47

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/601045/ft1_filtered_4FGL_J0839.8+0105_daily_bin388.fits" evtable="EVENTS" scfile=/scratch/kocevski/601045/ft2_4FGL_J0839.8+0105_daily_bin388.fits sctable="SC_DATA" outfile=/scratch/kocevski/601045/ltcube_339897601_340156801_4FGL_J0839.8+0105_daily_bin388.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/601045/ft2_4FGL_J0839.8+0105_daily_bin388.fits
.....................!
real 12.40
user 11.69
sys 0.63

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/601045/ft1_filtered_4FGL_J0839.8+0105_daily_bin388.fits evtable="EVENTS" scfile=/scratch/kocevski/601045/ft2_4FGL_J0839.8+0105_daily_bin388.fits sctable="SC_DATA" expcube=/scratch/kocevski/601045/ltcube_339897601_340156801_4FGL_J0839.8+0105_daily_bin388.fits outfile=/scratch/kocevski/601045/expmap_339897601_340156801_4FGL_J0839.8+0105_daily_bin388.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/601045/ltcube_339897601_340156801_4FGL_J0839.8+0105_daily_bin388.fits
.....................!
real 190.19
user 185.66
sys 4.11

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/601045/ft1_filtered_4FGL_J0839.8+0105_daily_bin388.fits scfile=/scratch/kocevski/601045/ft2_4FGL_J0839.8+0105_daily_bin388.fits outfile=/scratch/kocevski/601045/cmap_339897601_340156801_4FGL_J0839.8+0105_daily_bin388.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.79
user 0.39
sys 0.38

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/601045/ft1_filtered_4FGL_J0839.8+0105_daily_bin388.fits scfile=/scratch/kocevski/601045/ft2_4FGL_J0839.8+0105_daily_bin388.fits outfile=/scratch/kocevski/601045/cmap_HighResolution_339897601_340156801_4FGL_J0839.8+0105_daily_bin388.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.84
user 0.39
sys 0.40

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9562       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.3865       1.0000         .10000E-03   10000.    
     5 'norm      '    .36400       1.0000         .10000E-03   10000.    
     6 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    10.676       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .33280       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.5907       1.0000         .10000E-03   10000.    
    11 'norm      '    .55610       1.0000         .10000E-03   10000.    
    12 'norm      '    1.4444       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11066E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.0718       1.0000         .10000E-03   10000.    
    15 'norm      '    1.3902       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.0331       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10522E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0615       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .98388       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=   8095.993     FROM MIGRAD    STATUS=CONVERGED    432 CALLS     1740 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9554        3.6487        .27293E-05   -.18180E-02
   2  Prefactor     .10000E-03    9.0997        .44725E-07** at limit **
   3  norm          .10000E-03    3.5734       -.91034E-08** at limit **
   4  norm          3.3865        2.0432       -.17821E-06   -.27867E-03
   5  norm          .36408        .90066        .32147E-06   -.49623E-03
   6  norm          .10000E-03    15.140        .19691E-06** at limit **
   7  norm          10.675        4.0246       -.72763E-07   -.17653E-03
   8  Prefactor     .10000E-03    6.1885        .46145E-06** at limit **
   9  norm          .48688E-01    15.515       -.30557E-06    .39130E-04
  10  Prefactor     4.5885        12.601        .88602E-06    .38030E-04
  11  norm          .55600        .58927        .15076E-07   -.25603E-03
  12  norm          1.4421        6.8346        .14785E-05   -.22918E-03
  13  Prefactor     .10000E-03    22.967        .11462E-06** at limit **
  14  norm          1.0724        2.7419        .62699E-06   -.27484E-03
  15  norm          1.3853        5.4405        .16783E-05   -.27818E-03
  16  Prefactor     9.0385        18.521       -.85118E-05   -.75825E-03
  17  Prefactor     .10000E-03    1.6612       -.27666E-06** at limit **
  18  Normalizat    1.0614        .16690        .10644E-05   -.15884E-03
  19  Prefactor     .98414        .12650       -.12857E-05    .11854E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.95539
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.38651
  norm       = 0.364082
  norm       = 0.0001
  norm       = 10.6751
  Prefactor  = 0.0001
  norm       = 0.0486879
  Prefactor  = 4.5885
  norm       = 0.556004
  norm       = 1.44212
  Prefactor  = 0.0001
  norm       = 1.07238
  norm       = 1.38531
  Prefactor  = 9.0385
  Prefactor  = 0.000100001
  Normalizat = 1.06136
  Prefactor  = 0.984141
 **********
 **   18 **HESSE 
 **********

 FCN=   8095.993     FROM HESSE     STATUS=OK           284 CALLS     2024 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9554        3.8959        .99247E-03   -1.5364    
   2  Prefactor     .10000E-03    9.1117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    3.5945        .16608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.3865        2.0047        .93618E-04   -1.5340    
   5  norm          .36408        .89105        .12418E-03   -1.5587    
   6  norm          .10000E-03    15.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          10.675        4.0257        .10691E-03   -1.5054    
   8  Prefactor     .10000E-03    6.1951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .48688E-01    17.618        .11968       -1.5664    
  10  Prefactor     4.5885        12.592        .18787E-03   -1.5280    
  11  norm          .55600        .56329        .68393E-03   -1.5559    
  12  norm          1.4421        6.9365        .35876E-03   -1.5468    
  13  Prefactor     .10000E-03    23.113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.0724        2.7287        .22708E-03   -1.5501    
  15  norm          1.3853        5.4383        .36859E-03   -1.5473    
  16  Prefactor     9.0385        20.160        .13335E-03   -1.5107    
  17  Prefactor     .10000E-03    6.2043        .22250E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0614        .19702        .26251E-03   -.91002    
  19  Prefactor     .98414        .15075        .21040E-03   -.93260    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.90896e-09
Minuit parameter uncertainties:
  1  3.89619
  2  2.71859e-06
  3  5.13155e-06
  4  2.00476
  5  0.891078
  6  3.18961e-06
  7  4.02582
  8  4.01482e-05
  9  1.85097
  10  12.5996
  11  0.563298
  12  6.32654
  13  1.64123e-05
  14  2.72906
  15  5.44026
  16  20.1751
  17  0.000187483
  18  0.197157
  19  0.150811
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.442e+00  6.327e+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.841e-01  1.508e-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.061e+00  1.972e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/601045/likelihoodResults_339897601_340156801_4FGL_J0839.8+0105_daily_bin388.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) = 8095.98331598
delta logL = 0.00943035350338

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8095.98312222
delta logL = 0.00962410616103

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4263       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5692       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0586       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98527       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8095.983     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      273 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4178        9.9488        .18097E-02    .58852E-04
   2  alpha         2.5638        3.7100        .65680E-01    .90797E-04
   3  Normalizat    1.0586        .19166        .26281E-03   -.29156E-04
   4  Prefactor     .98528        .14929        .21030E-03    .77847E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.41782
  alpha      = 2.56384
  Normalizat = 1.05863
  Prefactor  = 0.985283
 **********
 **   18 **HESSE 
 **********

 FCN=   8095.983     FROM HESSE     STATUS=OK            27 CALLS      300 TOTAL
                     EDM=   .53E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4178        6.1828        .72387E-04   -1.5470    
   2  alpha         2.5638        2.0936        .13136E-01    .25538E-01
   3  Normalizat    1.0586        .19159        .10512E-04   -.91091    
   4  Prefactor     .98528        .14871        .84118E-05   -.93222    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.29326e-12
Minuit parameter uncertainties:
  1  5.92235
  2  2.48196
  3  0.191715
  4  0.148775
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/601045': 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) = 8095.98311659
delta logL = 0.00962974104004

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.418e+00  5.922e+00  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  2.564e+00  2.482e+00  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.853e-01  1.488e-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.059e+00  1.917e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
Ra Dec: 129.963 1.088

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/601045/cmap_HighResolution_339897601_340156801_4FGL_J0839.8+0105_daily_bin388.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.44e-05', job_status='DONE', photon_flux_upper_limit='6.63e-08', time_completed='2021-08-30 03:04:27.231995', job_id='601045', GAL2='0.99', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1630317867.23', return_code2='0', ts='0.06', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='9.63e-03', ts2='0.08', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='388' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:04:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 601045: <4FGL_J0839.8+0105_daily_bin388> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin388 129.963 1.0877 339897601 340156801 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 :                                   622.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             245.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   836 sec.
    Turnaround time :                            838 sec.

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

