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


Performing analysis on: 4FGL_J0839.8+0105_daily_bin745
RA = 129.963, Dec = 1.0877
tmin = 432432001, tmax = 432691201
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='603265', job_status='RUN', time_executed='2021-08-30 03:00:07.531247', time_epoch_executed='1630317607.53' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='745'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603265

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603265/ft1_4FGL_J0839.8+0105_daily_bin745.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603265/ft2_4FGL_J0839.8+0105_daily_bin745.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603265/ft1_4FGL_J0839.8+0105_daily_bin745.fits outfile=/scratch/kocevski/603265/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin745.fits ra=129.963 dec=1.0877 rad=12.0 tmin=432432001.0 tmax=432691201.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 5.95
user 4.80
sys 1.04

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/603265/ft2_4FGL_J0839.8+0105_daily_bin745.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/603265/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin745.fits evtable="EVENTS" outfile="/scratch/kocevski/603265/ft1_filtered_4FGL_J0839.8+0105_daily_bin745.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 1.37
user 0.31
sys 0.92

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/603265/ft1_filtered_4FGL_J0839.8+0105_daily_bin745.fits" evtable="EVENTS" scfile=/scratch/kocevski/603265/ft2_4FGL_J0839.8+0105_daily_bin745.fits sctable="SC_DATA" outfile=/scratch/kocevski/603265/ltcube_432432001_432691201_4FGL_J0839.8+0105_daily_bin745.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/603265/ft2_4FGL_J0839.8+0105_daily_bin745.fits
.....................!
real 14.10
user 12.55
sys 1.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603265/ft1_filtered_4FGL_J0839.8+0105_daily_bin745.fits evtable="EVENTS" scfile=/scratch/kocevski/603265/ft2_4FGL_J0839.8+0105_daily_bin745.fits sctable="SC_DATA" expcube=/scratch/kocevski/603265/ltcube_432432001_432691201_4FGL_J0839.8+0105_daily_bin745.fits outfile=/scratch/kocevski/603265/expmap_432432001_432691201_4FGL_J0839.8+0105_daily_bin745.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/603265/ltcube_432432001_432691201_4FGL_J0839.8+0105_daily_bin745.fits
.....................!
real 193.06
user 185.28
sys 6.35

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/603265/ft1_filtered_4FGL_J0839.8+0105_daily_bin745.fits scfile=/scratch/kocevski/603265/ft2_4FGL_J0839.8+0105_daily_bin745.fits outfile=/scratch/kocevski/603265/cmap_432432001_432691201_4FGL_J0839.8+0105_daily_bin745.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 1.67
user 0.37
sys 0.95

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603265/ft1_filtered_4FGL_J0839.8+0105_daily_bin745.fits scfile=/scratch/kocevski/603265/ft2_4FGL_J0839.8+0105_daily_bin745.fits outfile=/scratch/kocevski/603265/cmap_HighResolution_432432001_432691201_4FGL_J0839.8+0105_daily_bin745.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 1.52
user 0.35
sys 0.91

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2877       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.9954       1.0000         .10000E-03   10000.    
     3 'norm      '    14.190       1.0000         .10000E-03   10000.    
     4 'norm      '    .90927       1.0000         .10000E-03   10000.    
     5 'norm      '    .15694       1.0000         .10000E-03   10000.    
     6 'norm      '    .13668E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.2209       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .54908E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.2903       1.0000         .10000E-03   10000.    
    11 'norm      '    1.1757       1.0000         .10000E-03   10000.    
    12 'norm      '    11.749       1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.878       1.0000         .10000E-03   10000.    
    14 'norm      '    .11348E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    3.2509       1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.107       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .90635       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .92366       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=   5727.866     FROM MIGRAD    STATUS=CONVERGED    400 CALLS     1951 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2882        6.1372        .46495E-06   -.17879E-03
   2  Prefactor     9.9391        30.262       -.61722E-04    .39364E-04
   3  norm          14.194        9.8356        .11270E-05   -.15654E-03
   4  norm          .90791        1.8561       -.46093E-06   -.10639E-02
   5  norm          .15591        .93361       -.85546E-06   -.50879E-03
   6  norm          .10008E-03    52.432        .42692E-04** at limit **
   7  norm          1.2163        4.8302        .34938E-05   -.62677E-03
   8  Prefactor     .10007E-03    129.35       -.30803E-04** at limit **
   9  norm          .10000E-03    46.105       -.19472E-04** at limit **
  10  Prefactor     5.2654        15.871       -.46735E-06   -.15177E-04
  11  norm          1.1757        .76300        .20399E-07    .26277E-03
  12  norm          11.750        8.0420       -.42939E-05    .39258E-03
  13  Prefactor     17.878        22.703       -.25010E-05    .44618E-04
  14  norm          .10000E-03    1.4735       -.38047E-06** at limit **
  15  norm          3.2517        4.5973       -.11844E-05   -.15614E-03
  16  Prefactor     16.110        21.307       -.16588E-05    .26622E-04
  17  Prefactor     .10000E-03    1.2696       -.98349E-07** at limit **
  18  Normalizat    .90609        .18878        .64299E-05   -.39541E-04
  19  Prefactor     .92383        .14096        .31112E-06    .26700E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.28816
  Prefactor  = 9.93912
  norm       = 14.1941
  norm       = 0.907907
  norm       = 0.155906
  norm       = 0.000100081
  norm       = 1.21628
  Prefactor  = 0.000100074
  norm       = 0.000100003
  Prefactor  = 5.2654
  norm       = 1.17568
  norm       = 11.7504
  Prefactor  = 17.8783
  norm       = 0.0001
  norm       = 3.25173
  Prefactor  = 16.1098
  Prefactor  = 0.0001
  Normalizat = 0.906094
  Prefactor  = 0.923833
 **********
 **   18 **HESSE 
 **********

 FCN=   5727.866     FROM HESSE     STATUS=OK           288 CALLS     2239 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2882        6.1103        .17479E-03   -1.5248    
   2  Prefactor     9.9391        30.221        .12674E-03   -1.5077    
   3  norm          14.194        9.8134        .10633E-03   -1.4954    
   4  norm          .90791        1.5636        .13722E-02   -1.5517    
   5  norm          .15591        1.7587        .13558E-02   -1.5629    
   6  norm          .10008E-03    56.442        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.2163        4.7617        .29819E-03   -1.5487    
   8  Prefactor     .10007E-03    133.90        .42221E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    46.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.2654        15.870        .17474E-03   -1.5249    
  11  norm          1.1757        .76499        .51368E-04   -1.5491    
  12  norm          11.750        8.0311        .11687E-03   -1.5022    
  13  Prefactor     17.878        22.718        .94724E-04   -1.4862    
  14  norm          .10000E-03    2.0545        .35233E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.2517        4.5843        .18618E-03   -1.5347    
  16  Prefactor     16.110        21.304        .99795E-04   -1.4905    
  17  Prefactor     .10000E-03    1.2756        .83272E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .90609        .21892        .26726E-03   -.96246    
  19  Prefactor     .92383        .16464        .20272E-03   -.95313    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.69875e-09
Minuit parameter uncertainties:
  1  6.11103
  2  30.268
  3  9.81449
  4  1.56364
  5  1.04696
  6  0.00429186
  7  4.76314
  8  0.00629865
  9  0.00079532
  10  15.8831
  11  0.764994
  12  8.03183
  13  22.7286
  14  8.36631e-06
  15  4.58474
  16  21.3139
  17  5.58231e-06
  18  0.219133
  19  0.164726
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.175e+01  8.032e+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.238e-01  1.647e-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:  9.061e-01  2.191e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.19
Ra Dec: 129.963 1.088
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 4.56e-08 +/- 3.12e-08
Energy Flux (Fixed Index): 1.68e-05 +/- 1.15e-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) = 5727.78488711
delta logL = 0.081372769454

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5727.7837477
delta logL = 0.0825121732296

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.702       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9493       1.0000          .0000       5.0000    
     3 'Normalizat'    .91811       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91903       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=   5727.784     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      193 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.665        12.500        .29277E-02    .26742E-03
   2  alpha         1.9450        .91771        .42490       -.66949E-05
   3  Normalizat    .91834        .18432        .45133E-01    .10293E-04
   4  Prefactor     .91899        .14004        .45247E-01    .14121E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 11.6647
  alpha      = 1.94504
  Normalizat = 0.918335
  Prefactor  = 0.918987
 **********
 **   18 **HESSE 
 **********

 FCN=   5727.784     FROM HESSE     STATUS=OK            33 CALLS      226 TOTAL
                     EDM=   .33E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.665        8.3790        .58554E-03   -1.5025    
   2  alpha         1.9450        .71853        .18297E-01   -.22385    
   3  Normalizat    .91834        .21032        .26569E-03   -.95819    
   4  Prefactor     .91899        .16088        .10160E-02   -.95481    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.27703e-13
Minuit parameter uncertainties:
  1  8.37986
  2  0.729365
  3  0.210508
  4  0.160963
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603265': 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) = 5727.78372591
delta logL = 0.0825339699522

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.166e+01  8.380e+00  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  1.945e+00  7.294e-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.190e-01  1.610e-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:  9.183e-01  2.105e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.36
Ra Dec: 129.963 1.088
Photon Index (Free Index): 1.95 +/- 0.73
Photon Flux (Free Index): 3.49e-08 +/- 3.48e-08
Energy Flux (Free Index): 1.78e-05 +/- 1.30e-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/603265/cmap_HighResolution_432432001_432691201_4FGL_J0839.8+0105_daily_bin745.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.56e-08', energy_flux2='1.78e-05', photon_flux_error='3.12e-08', dlogl='8.25e-02', energy_flux='1.68e-05', photon_flux2='3.49e-08', job_status='DONE', time_completed='2021-08-30 03:08:53.380533', photon_index_error2='0.73', photon_index2='1.95', ts='5.19', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='1.30e-05', EG='0.91', time_epoch_completed='1630318133.38', return_code='0', job_id='603265', GAL2='0.92', EG2='0.92', return_code2='0', energy_flux_error='1.15e-05', photon_flux_error2='3.48e-08', ts2='5.36', photon_index='2.24' WHERE bin_id='745' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:08:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 603265: <4FGL_J0839.8+0105_daily_bin745> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin745 129.963 1.0877 432432001 432691201 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 :                                   532.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             274.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   789 sec.
    Turnaround time :                            792 sec.

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

