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


Performing analysis on: 4FGL_J0839.8+0105_daily_bin694
RA = 129.963, Dec = 1.0877
tmin = 419212801, tmax = 419472001
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='603172', job_status='RUN', time_executed='2021-08-30 02:58:51.014940', time_epoch_executed='1630317531.01' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='694'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603172

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603172/ft1_4FGL_J0839.8+0105_daily_bin694.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603172/ft2_4FGL_J0839.8+0105_daily_bin694.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603172/ft1_4FGL_J0839.8+0105_daily_bin694.fits outfile=/scratch/kocevski/603172/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin694.fits ra=129.963 dec=1.0877 rad=12.0 tmin=419212801.0 tmax=419472001.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 9.56
user 5.22
sys 4.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/603172/ft2_4FGL_J0839.8+0105_daily_bin694.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/603172/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin694.fits evtable="EVENTS" outfile="/scratch/kocevski/603172/ft1_filtered_4FGL_J0839.8+0105_daily_bin694.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 4.51
user 0.30
sys 4.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/603172/ft1_filtered_4FGL_J0839.8+0105_daily_bin694.fits" evtable="EVENTS" scfile=/scratch/kocevski/603172/ft2_4FGL_J0839.8+0105_daily_bin694.fits sctable="SC_DATA" outfile=/scratch/kocevski/603172/ltcube_419212801_419472001_4FGL_J0839.8+0105_daily_bin694.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/603172/ft2_4FGL_J0839.8+0105_daily_bin694.fits
.....................!
real 16.56
user 11.64
sys 4.81

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603172/ft1_filtered_4FGL_J0839.8+0105_daily_bin694.fits evtable="EVENTS" scfile=/scratch/kocevski/603172/ft2_4FGL_J0839.8+0105_daily_bin694.fits sctable="SC_DATA" expcube=/scratch/kocevski/603172/ltcube_419212801_419472001_4FGL_J0839.8+0105_daily_bin694.fits outfile=/scratch/kocevski/603172/expmap_419212801_419472001_4FGL_J0839.8+0105_daily_bin694.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/603172/ltcube_419212801_419472001_4FGL_J0839.8+0105_daily_bin694.fits
.....................!
real 196.14
user 185.12
sys 10.39

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/603172/ft1_filtered_4FGL_J0839.8+0105_daily_bin694.fits scfile=/scratch/kocevski/603172/ft2_4FGL_J0839.8+0105_daily_bin694.fits outfile=/scratch/kocevski/603172/cmap_419212801_419472001_4FGL_J0839.8+0105_daily_bin694.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 4.48
user 0.37
sys 4.01

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603172/ft1_filtered_4FGL_J0839.8+0105_daily_bin694.fits scfile=/scratch/kocevski/603172/ft2_4FGL_J0839.8+0105_daily_bin694.fits outfile=/scratch/kocevski/603172/cmap_HighResolution_419212801_419472001_4FGL_J0839.8+0105_daily_bin694.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 4.54
user 0.36
sys 4.03

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.1938       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.669       1.0000         .10000E-03   10000.    
     3 'norm      '    21.540       1.0000         .10000E-03   10000.    
     4 'norm      '    3.2296       1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10102E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    58.295       1.0000         .10000E-03   10000.    
     9 'norm      '    18.544       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.0665       1.0000         .10000E-03   10000.    
    11 'norm      '    .64288       1.0000         .10000E-03   10000.    
    12 'norm      '    16.226       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    12.660       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.3345       1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.056       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .73486       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0833       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=   5564.314     FROM MIGRAD    STATUS=CONVERGED    379 CALLS     1862 TOTAL
                     EDM=   .99E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.1942        10.566       -.11921E-05   -.89343E-04
   2  Prefactor     10.657        22.323        .61340E-05   -.43971E-05
   3  norm          21.537        15.631        .66635E-06   -.95081E-05
   4  norm          3.2293        2.7275       -.86667E-07   -.17322E-03
   5  norm          .10000E-03    .59476        .16392E-08** at limit **
   6  norm          .10000E-03    15.393        .54778E-06** at limit **
   7  norm          .10000E-03    2.4726       -.78706E-07** at limit **
   8  Prefactor     58.272        43.000       -.18481E-04    .18180E-05
   9  norm          18.542        24.147       -.86518E-06   -.25052E-05
  10  Prefactor     6.0675        20.013       -.98578E-06   -.48967E-05
  11  norm          .64276        .67327        .28186E-07    .18637E-03
  12  norm          16.226        10.714       -.69914E-06   -.16654E-04
  13  Prefactor     .10000E-03    17.263       -.29940E-06** at limit **
  14  norm          .10000E-03    2.1697       -.61944E-07** at limit **
  15  norm          12.667        9.8056       -.78503E-06   -.47731E-04
  16  Prefactor     2.2795        70.127       -.56924E-06   -.44175E-04
  17  Prefactor     13.057        6.8588       -.22078E-06   -.49411E-04
  18  Normalizat    .73483        .21568        .41604E-05   -.63777E-04
  19  Prefactor     1.0834        .15598       -.29568E-06    .10062E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.19424
  Prefactor  = 10.657
  norm       = 21.5365
  norm       = 3.22928
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 58.2715
  norm       = 18.5422
  Prefactor  = 6.06747
  norm       = 0.642763
  norm       = 16.2256
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 12.6668
  Prefactor  = 2.27949
  Prefactor  = 13.0568
  Normalizat = 0.73483
  Prefactor  = 1.08338
 **********
 **   18 **HESSE 
 **********

 FCN=   5564.314     FROM HESSE     STATUS=OK           272 CALLS     2134 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.1942        10.544        .14006E-03   -1.5135    
   2  Prefactor     10.657        22.295        .12266E-03   -1.5055    
   3  norm          21.537        15.606        .86303E-04   -1.4779    
   4  norm          3.2293        2.7229        .10739E-03   -1.5349    
   5  norm          .10000E-03    .60350        .56096E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    15.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.5145        .11446E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     58.272        42.921        .52545E-04   -1.4180    
   9  norm          18.542        24.158        .93009E-04   -1.4846    
  10  Prefactor     6.0675        20.038        .16301E-03   -1.5215    
  11  norm          .64276        .66306        .60397E-04   -1.5548    
  12  norm          16.226        10.715        .99430E-04   -1.4902    
  13  Prefactor     .10000E-03    17.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.1921        .10723E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          12.667        9.7819        .11258E-03   -1.4996    
  16  Prefactor     2.2795        70.029        .26838E-03   -1.5406    
  17  Prefactor     13.057        6.8743        .11086E-03   -1.4985    
  18  Normalizat    .73483        .24413        .32096E-03   -1.0253    
  19  Prefactor     1.0834        .17833        .20550E-03   -.89999    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.28926e-10
Minuit parameter uncertainties:
  1  10.5461
  2  22.3125
  3  15.6092
  4  2.72305
  5  1.25597e-06
  6  0.000183491
  7  1.11492e-05
  8  42.9435
  9  24.1705
  10  20.0599
  11  0.66307
  12  10.7159
  13  2.92403e-05
  14  5.74053e-06
  15  9.78316
  16  25.3009
  17  6.8747
  18  0.244497
  19  0.178431
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.623e+01  1.072e+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.083e+00  1.784e-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:  7.348e-01  2.445e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.41
Ra Dec: 129.963 1.088
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 6.30e-08 +/- 4.16e-08
Energy Flux (Fixed Index): 2.32e-05 +/- 1.53e-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) = 5564.24675368
delta logL = 0.0675436367683

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5564.2438991
delta logL = 0.0703982155264

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.868       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0009       1.0000          .0000       5.0000    
     3 'Normalizat'    .74808       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0771       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=   5564.244     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      244 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.868        11.148        .97519E-04   -.18280E-03
   2  alpha         2.0010        .62391        .15836E-01   -.19354E-04
   3  Normalizat    .74808        .22839        .31831E-03    .13429E-04
   4  Prefactor     1.0771        .17504        .20601E-03    .21191E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 16.8678
  alpha      = 2.00096
  Normalizat = 0.748075
  Prefactor  = 1.07709
 **********
 **   18 **HESSE 
 **********

 FCN=   5564.244     FROM HESSE     STATUS=OK            23 CALLS      267 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.868        11.147        .39008E-05   -1.4886    
   2  alpha         2.0010        .62361        .63345E-03   -.20096    
   3  Normalizat    .74808        .22849        .12733E-04   -1.0202    
   4  Prefactor     1.0771        .17514        .82403E-05   -.90202    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.24441e-11
Minuit parameter uncertainties:
  1  11.1485
  2  0.630546
  3  0.228787
  4  0.175233
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603172': 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) = 5564.24389909
delta logL = 0.0703982191098

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.687e+01  1.115e+01  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  2.001e+00  6.305e-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.077e+00  1.752e-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:  7.481e-01  2.288e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.53
Ra Dec: 129.963 1.088
Photon Index (Free Index): 2.00 +/- 0.63
Photon Flux (Free Index): 5.28e-08 +/- 4.45e-08
Energy Flux (Free Index): 2.51e-05 +/- 1.75e-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/603172/cmap_HighResolution_419212801_419472001_4FGL_J0839.8+0105_daily_bin694.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.30e-08', energy_flux2='2.51e-05', photon_flux_error='4.16e-08', dlogl='7.04e-02', energy_flux='2.32e-05', photon_flux2='5.28e-08', job_status='DONE', time_completed='2021-08-30 03:08:05.134566', photon_index_error2='0.63', photon_index2='2.00', ts='4.41', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='1.75e-05', EG='0.73', time_epoch_completed='1630318085.13', return_code='0', job_id='603172', GAL2='1.08', EG2='0.75', return_code2='0', energy_flux_error='1.53e-05', photon_flux_error2='4.45e-08', ts2='4.53', photon_index='2.24' WHERE bin_id='694' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:08:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 603172: <4FGL_J0839.8+0105_daily_bin694> in cluster <slac> Done

Job <4FGL_J0839.8+0105_daily_bin694> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Aug 30 02:55:36 2021
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 02:55:38 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:55:38 2021
Terminated at Mon Aug 30 03:08:06 2021
Results reported at Mon Aug 30 03:08:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin694 129.963 1.0877 419212801 419472001 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 :                                   610.20 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             227.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   747 sec.
    Turnaround time :                            750 sec.

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

