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


Performing analysis on: 4FGL_J0839.8+0105_daily_bin324
RA = 129.963, Dec = 1.0877
tmin = 323308801, tmax = 323568001
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='600861', job_status='RUN', time_executed='2021-08-30 02:52:29.546055', time_epoch_executed='1630317149.55' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='324'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/600861

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/600861/ft1_4FGL_J0839.8+0105_daily_bin324.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/600861/ft2_4FGL_J0839.8+0105_daily_bin324.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/600861/ft1_4FGL_J0839.8+0105_daily_bin324.fits outfile=/scratch/kocevski/600861/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin324.fits ra=129.963 dec=1.0877 rad=12.0 tmin=323308801.0 tmax=323568001.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 4.04
user 3.07
sys 0.93

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/600861/ft1_filtered_4FGL_J0839.8+0105_daily_bin324.fits" evtable="EVENTS" scfile=/scratch/kocevski/600861/ft2_4FGL_J0839.8+0105_daily_bin324.fits sctable="SC_DATA" outfile=/scratch/kocevski/600861/ltcube_323308801_323568001_4FGL_J0839.8+0105_daily_bin324.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/600861/ft2_4FGL_J0839.8+0105_daily_bin324.fits
.....................!
real 12.85
user 11.70
sys 1.10

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/600861/ft1_filtered_4FGL_J0839.8+0105_daily_bin324.fits evtable="EVENTS" scfile=/scratch/kocevski/600861/ft2_4FGL_J0839.8+0105_daily_bin324.fits sctable="SC_DATA" expcube=/scratch/kocevski/600861/ltcube_323308801_323568001_4FGL_J0839.8+0105_daily_bin324.fits outfile=/scratch/kocevski/600861/expmap_323308801_323568001_4FGL_J0839.8+0105_daily_bin324.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/600861/ltcube_323308801_323568001_4FGL_J0839.8+0105_daily_bin324.fits
.....................!
real 192.28
user 185.60
sys 6.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/600861/ft1_filtered_4FGL_J0839.8+0105_daily_bin324.fits scfile=/scratch/kocevski/600861/ft2_4FGL_J0839.8+0105_daily_bin324.fits outfile=/scratch/kocevski/600861/cmap_323308801_323568001_4FGL_J0839.8+0105_daily_bin324.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.27
user 0.37
sys 0.84

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/600861/ft1_filtered_4FGL_J0839.8+0105_daily_bin324.fits scfile=/scratch/kocevski/600861/ft2_4FGL_J0839.8+0105_daily_bin324.fits outfile=/scratch/kocevski/600861/cmap_HighResolution_323308801_323568001_4FGL_J0839.8+0105_daily_bin324.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.19
user 0.38
sys 0.75

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.9522       1.0000         .10000E-03   10000.    
     3 'norm      '    10.298       1.0000         .10000E-03   10000.    
     4 'norm      '    .60266       1.0000         .10000E-03   10000.    
     5 'norm      '    1.9931       1.0000         .10000E-03   10000.    
     6 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    11.884       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .14285E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.0936       1.0000         .10000E-03   10000.    
    13 'Prefactor '    45.386       1.0000         .10000E-03   10000.    
    14 'norm      '    9.7442       1.0000         .10000E-03   10000.    
    15 'norm      '    .81657       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.9682       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.4160       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0032       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .80850       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=   4707.799     FROM MIGRAD    STATUS=CONVERGED    393 CALLS     1948 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.5269        .97568E-06** at limit **
   2  Prefactor     1.9478        56.529       -.56922E-05    .22243E-04
   3  norm          10.298        9.0443        .21753E-07    .32589E-07
   4  norm          .60236        2.0141       -.29633E-06   -.17605E-03
   5  norm          1.9930        1.5404        .62302E-07    .56326E-04
   6  norm          .10000E-03    18.254       -.93757E-05** at limit **
   7  norm          11.884        5.3257        .12737E-05    .14885E-03
   8  Prefactor     .10000E-03    20.306        .10520E-04** at limit **
   9  norm          .10000E-03    41.937       -.47945E-05** at limit **
  10  Prefactor     .10000E-03    8.2363        .45224E-06** at limit **
  11  norm          .10000E-03    .53410       -.55653E-07** at limit **
  12  norm          2.0953        16.787       -.19654E-05   -.31842E-04
  13  Prefactor     45.388        37.135        .10144E-05   -.95299E-06
  14  norm          9.7441        5.4295       -.92793E-06   -.31370E-03
  15  norm          .82362        6.9601        .29061E-05   -.56879E-03
  16  Prefactor     2.9673        35.806       -.33033E-05   -.60691E-04
  17  Prefactor     1.4164        1.1846        .17930E-06   -.19468E-02
  18  Normalizat    1.0031        .21157        .10342E-05   -.84621E-04
  19  Prefactor     .80853        .15507        .37458E-07   -.14083E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.94784
  norm       = 10.2983
  norm       = 0.602361
  norm       = 1.99298
  norm       = 0.0001
  norm       = 11.8843
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.09528
  Prefactor  = 45.3881
  norm       = 9.74414
  norm       = 0.823624
  Prefactor  = 2.96727
  Prefactor  = 1.41644
  Normalizat = 1.00306
  Prefactor  = 0.808531
 **********
 **   18 **HESSE 
 **********

 FCN=   4707.799     FROM HESSE     STATUS=OK           280 CALLS     2228 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.5294        .10651E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.9478        56.474        .29699E-03   -1.5429    
   3  norm          10.298        9.0456        .12486E-03   -1.5066    
   4  norm          .60236        1.9614        .16761E-03   -1.5553    
   5  norm          1.9930        1.5223        .70468E-04   -1.5426    
   6  norm          .10000E-03    18.317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          11.884        5.3390        .10203E-03   -1.5018    
   8  Prefactor     .10000E-03    20.428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    42.353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.2619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    12.913        .95033E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.0953        16.693        .28528E-03   -1.5418    
  13  Prefactor     45.388        37.169        .59513E-04   -1.4360    
  14  norm          9.7441        5.4301        .11265E-03   -1.5084    
  15  norm          .82362        12.758        .32585E-02   -1.5526    
  16  Prefactor     2.9673        35.431        .23568E-03   -1.5363    
  17  Prefactor     1.4164        4.1650        .11408E-02   -1.5470    
  18  Normalizat    1.0031        .24950        .25292E-03   -.92928    
  19  Prefactor     .80853        .18262        .21265E-03   -.99415    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.70323e-09
Minuit parameter uncertainties:
  1  1.78748e-07
  2  20.9976
  3  9.0468
  4  1.96163
  5  1.52236
  6  1.96607e-05
  7  5.33917
  8  2.27502e-05
  9  1.96341e-05
  10  8.50294e-06
  11  4.26674e-05
  12  11.8323
  13  37.188
  14  5.43041
  15  6.48441
  16  20.5217
  17  4.16582
  18  0.249794
  19  0.182761
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  2.095e+00  1.183e+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:  8.085e-01  1.828e-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.003e+00  2.498e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.04
Ra Dec: 129.963 1.088
Photon Flux Upper Limit: 1.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.15e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/600861/likelihoodResults_323308801_323568001_4FGL_J0839.8+0105_daily_bin324.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) = 4706.45044843
delta logL = 1.34891650712

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4706.44951849
delta logL = 1.3498464437

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1894       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.1183       1.0000          .0000       5.0000    
     3 'Normalizat'    .88816       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85854       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=   4706.450     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      216 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1884        35.333        .69538E-02    .33336E-03
   2  alpha         4.1186        4.4258        .34477        .29162E-04
   3  Normalizat    .88816        .74739E-01    .44750E-01    .92980E-05
   4  Prefactor     .85856        .58036E-01    .44474E-01    .23947E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.18837
  alpha      = 4.11861
  Normalizat = 0.888165
  Prefactor  = 0.858558
 **********
 **   18 **HESSE 
 **********

 FCN=   4706.450     FROM HESSE     STATUS=OK            33 CALLS      249 TOTAL
                     EDM=   .42E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1884        15.368        .68519E-04   -1.5412    
   2  alpha         4.1186        4.3803        .15806E-01    .70422    
   3  Normalizat    .88816        .24569        .26655E-03   -.96877    
   4  Prefactor     .85856        .18466        .20680E-03   -.97605    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.20127e-08
Minuit parameter uncertainties:
  1  11.6025
  2  3.3022
  3  0.246003
  4  0.184793
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/600861': 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) = 4706.44951844
delta logL = 1.3498464951

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  2.188e+00  1.160e+01  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  4.119e+00  3.302e+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:  8.586e-01  1.848e-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:  8.882e-01  2.460e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.92
Ra Dec: 129.963 1.088
Photon Index (Free Index): 4.12 +/- 3.30
Photon Flux (Free Index): 9.73e-08 +/- 7.73e-08
Energy Flux (Free Index): 1.53e-05 +/- 1.80e-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/600861/cmap_HighResolution_323308801_323568001_4FGL_J0839.8+0105_daily_bin324.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.15e-05', comment='SUCCESS', energy_flux2='1.53e-05', dlogl='1.35e+00', photon_flux2='9.73e-08', job_status='DONE', time_completed='2021-08-30 03:01:03.446219', photon_index_error2='3.30', photon_index2='4.12', ts='0.04', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='1.13e-07', energy_flux_error2='1.80e-05', EG='1.00', time_epoch_completed='1630317663.45', return_code='0', job_id='600861', GAL2='0.86', EG2='0.89', return_code2='0', photon_flux_error2='7.73e-08', ts2='2.92', photon_index='2.24' WHERE bin_id='324' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:01:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 600861: <4FGL_J0839.8+0105_daily_bin324> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin324 129.963 1.0877 323308801 323568001 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 :                                   518.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   637 sec.
    Turnaround time :                            640 sec.

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

