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


Performing analysis on: 4FGL_J0839.8+0105_daily_bin846
RA = 129.963, Dec = 1.0877
tmin = 458611201, tmax = 458870401
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='604879', job_status='RUN', time_executed='2021-08-30 03:04:44.073038', time_epoch_executed='1630317884.07' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='846'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/604879

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/604879/ft1_4FGL_J0839.8+0105_daily_bin846.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/604879/ft2_4FGL_J0839.8+0105_daily_bin846.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/604879/ft1_4FGL_J0839.8+0105_daily_bin846.fits outfile=/scratch/kocevski/604879/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin846.fits ra=129.963 dec=1.0877 rad=12.0 tmin=458611201.0 tmax=458870401.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.68
user 3.40
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/604879/ft1_filtered_4FGL_J0839.8+0105_daily_bin846.fits" evtable="EVENTS" scfile=/scratch/kocevski/604879/ft2_4FGL_J0839.8+0105_daily_bin846.fits sctable="SC_DATA" outfile=/scratch/kocevski/604879/ltcube_458611201_458870401_4FGL_J0839.8+0105_daily_bin846.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/604879/ft2_4FGL_J0839.8+0105_daily_bin846.fits
.....................!
real 12.94
user 12.56
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/604879/ft1_filtered_4FGL_J0839.8+0105_daily_bin846.fits evtable="EVENTS" scfile=/scratch/kocevski/604879/ft2_4FGL_J0839.8+0105_daily_bin846.fits sctable="SC_DATA" expcube=/scratch/kocevski/604879/ltcube_458611201_458870401_4FGL_J0839.8+0105_daily_bin846.fits outfile=/scratch/kocevski/604879/expmap_458611201_458870401_4FGL_J0839.8+0105_daily_bin846.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/604879/ltcube_458611201_458870401_4FGL_J0839.8+0105_daily_bin846.fits
.....................!
real 190.09
user 185.53
sys 4.18

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/604879/ft1_filtered_4FGL_J0839.8+0105_daily_bin846.fits scfile=/scratch/kocevski/604879/ft2_4FGL_J0839.8+0105_daily_bin846.fits outfile=/scratch/kocevski/604879/cmap_458611201_458870401_4FGL_J0839.8+0105_daily_bin846.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.81
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/604879/ft1_filtered_4FGL_J0839.8+0105_daily_bin846.fits scfile=/scratch/kocevski/604879/ft2_4FGL_J0839.8+0105_daily_bin846.fits outfile=/scratch/kocevski/604879/cmap_HighResolution_458611201_458870401_4FGL_J0839.8+0105_daily_bin846.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.86
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .19003E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    .50369       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .28137       1.0000         .10000E-03   10000.    
     6 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.2011       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    29.165       1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.459       1.0000         .10000E-03   10000.    
    11 'norm      '    .63468       1.0000         .10000E-03   10000.    
    12 'norm      '    15.959       1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.632       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.5287       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0369       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0950       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=   6656.139     FROM MIGRAD    STATUS=CONVERGED    666 CALLS     2196 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.5278        .18142E-02** at limit **
   2  Prefactor     .10001E-03    119.42        .65802E-02** at limit **
   3  norm          .51519        19.269        .38335E-02    .27335E-03
   4  norm          .10000E-03    1.4499        .94770E-03** at limit **
   5  norm          .28110        1.0962        .16132E-03    .25088E-04
   6  norm          .10000E-03    12.256        .18142E-02** at limit **
   7  norm          2.2012        2.3490        .12630E-03   -.20072E-03
   8  Prefactor     .10000E-03    14.191        .18142E-02** at limit **
   9  norm          29.166        27.145        .74187E-04   -.15668E-03
  10  Prefactor     16.459        21.136        .98721E-04   -.14487E-03
  11  norm          .63478        .66833        .67861E-04    .23421E-03
  12  norm          15.959        8.4215        .10026E-03    .21545E-05
  13  Prefactor     15.631        25.524        .10130E-03    .10460E-03
  14  norm          .10000E-03    .90569        .75728E-03** at limit **
  15  norm          1.5277        7.8010        .17264E-02   -.20751E-02
  16  Prefactor     .10000E-03    57.425        .36285E-03** at limit **
  17  Prefactor     .10000E-03    1.6394        .10163E-02** at limit **
  18  Normalizat    1.0368        .22690        .28310E-03    .36474E-03
  19  Prefactor     1.0950        .17114        .21161E-03   -.21705E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  norm       = 0.51519
  norm       = 0.0001
  norm       = 0.281104
  norm       = 0.000100001
  norm       = 2.20119
  Prefactor  = 0.000100003
  norm       = 29.1663
  Prefactor  = 16.4594
  norm       = 0.634776
  norm       = 15.9587
  Prefactor  = 15.6313
  norm       = 0.0001
  norm       = 1.52766
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.03682
  Prefactor  = 1.09503
 **********
 **   18 **HESSE 
 **********

 FCN=   6656.139     FROM HESSE     STATUS=OK           250 CALLS     2446 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.5296        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    122.29        .13160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .51519        19.343        .15334E-03   -1.5564    
   4  norm          .10000E-03    1.4503        .18954E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .28110        1.0961        .64529E-05   -1.5602    
   6  norm          .10000E-03    12.259        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.2012        2.3488        .50522E-05   -1.5411    
   8  Prefactor     .10000E-03    14.192        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          29.166        27.144        .14837E-04   -1.4627    
  10  Prefactor     16.459        21.133        .39489E-05   -1.4896    
  11  norm          .63478        .66829        .27144E-05   -1.5549    
  12  norm          15.959        8.4210        .40103E-05   -1.4909    
  13  Prefactor     15.631        25.521        .40520E-05   -1.4917    
  14  norm          .10000E-03    .90570        .15146E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.5277        7.7718        .69055E-04   -1.5461    
  16  Prefactor     .10000E-03    57.430        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.6396        .20325E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0368        .22688        .56621E-04   -.91807    
  19  Prefactor     1.0950        .17126        .84643E-05   -.89626    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64149e-08
Minuit parameter uncertainties:
  1  4.87544e-05
  2  0.00207982
  3  6.3152
  4  1.89697e-05
  5  1.09613
  6  0.000227737
  7  2.34895
  8  0.000382451
  9  27.1557
  10  21.1423
  11  0.668295
  12  8.42162
  13  25.539
  14  1.17001e-05
  15  6.89253
  16  0.000181258
  17  2.25224e-05
  18  0.227095
  19  0.171341
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.596e+01  8.422e+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:  1.095e+00  1.713e-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.037e+00  2.271e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.56
Ra Dec: 129.963 1.088
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 6.20e-08 +/- 3.27e-08
Energy Flux (Fixed Index): 2.28e-05 +/- 1.20e-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) = 6655.56546053
delta logL = 0.57380050129

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6655.55823159
delta logL = 0.58102944474

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.614       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7373       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0564       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0868       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=   6655.558     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      239 TOTAL
                     EDM=   .71E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.612        9.1356        .98260E-04   -.11686E-04
   2  alpha         1.7368        .45727        .13996E-01    .80060E-05
   3  Normalizat    1.0564        .21995        .28079E-03    .23572E-03
   4  Prefactor     1.0869        .16948        .21229E-03    .27441E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 16.6116
  alpha      = 1.73679
  Normalizat = 1.05635
  Prefactor  = 1.08687
 **********
 **   18 **HESSE 
 **********

 FCN=   6655.558     FROM HESSE     STATUS=OK            25 CALLS      264 TOTAL
                     EDM=   .71E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.612        9.1830        .39304E-05   -1.4893    
   2  alpha         1.7368        .45961        .55983E-03   -.31023    
   3  Normalizat    1.0564        .22014        .11232E-04   -.91166    
   4  Prefactor     1.0869        .16963        .42458E-04   -.89887    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.10908e-11
Minuit parameter uncertainties:
  1  9.1838
  2  0.462517
  3  0.220327
  4  0.169716
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/604879': 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) = 6655.55823087
delta logL = 0.581030158479

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.661e+01  9.184e+00  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  1.737e+00  4.625e-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.087e+00  1.697e-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.056e+00  2.203e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.75
Ra Dec: 129.963 1.088
Photon Index (Free Index): 1.74 +/- 0.46
Photon Flux (Free Index): 4.31e-08 +/- 2.92e-08
Energy Flux (Free Index): 2.90e-05 +/- 1.73e-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/604879/cmap_HighResolution_458611201_458870401_4FGL_J0839.8+0105_daily_bin846.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.20e-08', energy_flux2='2.90e-05', photon_flux_error='3.27e-08', dlogl='5.81e-01', energy_flux='2.28e-05', photon_flux2='4.31e-08', job_status='DONE', time_completed='2021-08-30 03:14:04.168964', photon_index_error2='0.46', photon_index2='1.74', ts='9.56', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='1.73e-05', EG='1.04', time_epoch_completed='1630318444.17', return_code='0', job_id='604879', GAL2='1.09', EG2='1.06', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='2.92e-08', ts2='10.75', photon_index='2.24' WHERE bin_id='846' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:14:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 604879: <4FGL_J0839.8+0105_daily_bin846> in cluster <slac> Done

Job <4FGL_J0839.8+0105_daily_bin846> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Aug 30 03:00:36 2021
Job was executed on host(s) <bullet0123>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 03:00: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 03:00:38 2021
Terminated at Mon Aug 30 03:14:07 2021
Results reported at Mon Aug 30 03:14:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin846 129.963 1.0877 458611201 458870401 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 :                                   542.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             231.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   806 sec.
    Turnaround time :                            811 sec.

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

