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


Performing analysis on: 4FGL_J0839.8+0105_daily_bin898
RA = 129.963, Dec = 1.0877
tmin = 472089601, tmax = 472348801
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='604961', job_status='RUN', time_executed='2021-08-30 03:03:30.113708', time_epoch_executed='1630317810.11' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='898'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/604961

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/604961/ft1_4FGL_J0839.8+0105_daily_bin898.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/604961/ft2_4FGL_J0839.8+0105_daily_bin898.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/604961/ft1_4FGL_J0839.8+0105_daily_bin898.fits outfile=/scratch/kocevski/604961/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin898.fits ra=129.963 dec=1.0877 rad=12.0 tmin=472089601.0 tmax=472348801.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.49
user 3.27
sys 1.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/604961/ft2_4FGL_J0839.8+0105_daily_bin898.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/604961/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin898.fits evtable="EVENTS" outfile="/scratch/kocevski/604961/ft1_filtered_4FGL_J0839.8+0105_daily_bin898.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.51
user 0.32
sys 1.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/604961/ft1_filtered_4FGL_J0839.8+0105_daily_bin898.fits" evtable="EVENTS" scfile=/scratch/kocevski/604961/ft2_4FGL_J0839.8+0105_daily_bin898.fits sctable="SC_DATA" outfile=/scratch/kocevski/604961/ltcube_472089601_472348801_4FGL_J0839.8+0105_daily_bin898.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/604961/ft2_4FGL_J0839.8+0105_daily_bin898.fits
.....................!
real 13.71
user 12.18
sys 1.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/604961/ft1_filtered_4FGL_J0839.8+0105_daily_bin898.fits evtable="EVENTS" scfile=/scratch/kocevski/604961/ft2_4FGL_J0839.8+0105_daily_bin898.fits sctable="SC_DATA" expcube=/scratch/kocevski/604961/ltcube_472089601_472348801_4FGL_J0839.8+0105_daily_bin898.fits outfile=/scratch/kocevski/604961/expmap_472089601_472348801_4FGL_J0839.8+0105_daily_bin898.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/604961/ltcube_472089601_472348801_4FGL_J0839.8+0105_daily_bin898.fits
.....................!
real 193.63
user 187.74
sys 5.57

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/604961/ft1_filtered_4FGL_J0839.8+0105_daily_bin898.fits scfile=/scratch/kocevski/604961/ft2_4FGL_J0839.8+0105_daily_bin898.fits outfile=/scratch/kocevski/604961/cmap_472089601_472348801_4FGL_J0839.8+0105_daily_bin898.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.55
user 0.37
sys 1.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/604961/ft1_filtered_4FGL_J0839.8+0105_daily_bin898.fits scfile=/scratch/kocevski/604961/ft2_4FGL_J0839.8+0105_daily_bin898.fits outfile=/scratch/kocevski/604961/cmap_HighResolution_472089601_472348801_4FGL_J0839.8+0105_daily_bin898.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.55
user 0.38
sys 1.09

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.1524       1.0000         .10000E-03   10000.    
     5 'norm      '    .10220E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    22.662       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    17.071       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.0044       1.0000         .10000E-03   10000.    
    11 'norm      '    1.0734       1.0000         .10000E-03   10000.    
    12 'norm      '    4.6374       1.0000         .10000E-03   10000.    
    13 'Prefactor '    29.872       1.0000         .10000E-03   10000.    
    14 'norm      '    .22137E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .51104E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .30005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.0396       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .71541       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1068       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=   6389.567     FROM MIGRAD    STATUS=CONVERGED    722 CALLS     2556 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.3064        .18142E-02** at limit **
   2  Prefactor     .10000E-03    11.871        .18142E-02** at limit **
   3  norm          .10000E-03    11.408        .18142E-02** at limit **
   4  norm          1.1489        1.8123        .13380E-03   -.28566E-03
   5  norm          .10000E-03    1.7741        .14129E-02** at limit **
   6  norm          .10000E-03    9.1182        .18142E-02** at limit **
   7  norm          22.661        6.3081        .84141E-04   -.87149E-04
   8  Prefactor     .10000E-03    23.731        .18142E-02** at limit **
   9  norm          17.068        28.220        .96937E-04    .83268E-05
  10  Prefactor     2.0032        10.088        .29248E-03    .96008E-04
  11  norm          1.0733        .88336        .67370E-03    .16792E-03
  12  norm          4.6371        5.2728        .18689E-03    .60647E-04
  13  Prefactor     29.866        29.536        .73306E-04    .45440E-04
  14  norm          .10006E-03    24.125        .22497E-02** at limit **
  15  norm          .10121E-03    7.7707        .52163E-01** at limit **
  16  Prefactor     .10013E-03    115.22        .60343E-02** at limit **
  17  Prefactor     2.0394        2.1928        .11951E-03    .10750E-03
  18  Normalizat    .71523        .21613        .31121E-03    .37298E-03
  19  Prefactor     1.1070        .16827        .19800E-03    .33405E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.14894
  norm       = 0.0001
  norm       = 0.0001
  norm       = 22.6607
  Prefactor  = 0.0001
  norm       = 17.0677
  Prefactor  = 2.00319
  norm       = 1.07333
  norm       = 4.63711
  Prefactor  = 29.8659
  norm       = 0.000100059
  norm       = 0.000101208
  Prefactor  = 0.00010013
  Prefactor  = 2.03937
  Normalizat = 0.715229
  Prefactor  = 1.107
 **********
 **   18 **HESSE 
 **********

 FCN=   6389.567     FROM HESSE     STATUS=OK           260 CALLS     2816 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.3113        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.872        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    11.416        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.1489        1.8120        .53521E-05   -1.5494    
   5  norm          .10000E-03    1.7818        .28258E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    9.1191        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          22.661        6.3077        .33656E-05   -1.4756    
   8  Prefactor     .10000E-03    23.735        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          17.068        28.214        .38775E-05   -1.4881    
  10  Prefactor     2.0032        10.086        .11699E-04   -1.5425    
  11  norm          1.0733        .88305        .26948E-04   -1.5501    
  12  norm          4.6371        5.2726        .74758E-05   -1.5277    
  13  Prefactor     29.866        29.536        .29322E-05   -1.4614    
  14  norm          .10006E-03    24.441        .44995E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10121E-03    6.9629        .55864E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10013E-03    118.76        .24137E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.0394        2.1927        .47802E-05   -1.5422    
  18  Normalizat    .71523        .21619        .12448E-04   -1.0329    
  19  Prefactor     1.1070        .16840        .39600E-04   -.89243    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.87071e-09
Minuit parameter uncertainties:
  1  1.72944e-05
  2  3.50887e-05
  3  3.97327e-05
  4  1.81212
  5  8.84632e-06
  6  1.96535e-05
  7  6.30789
  8  0.00017137
  9  28.2361
  10  8.99202
  11  0.883062
  12  5.27313
  13  29.5507
  14  0.00239305
  15  0.00580065
  16  0.00788612
  17  2.19282
  18  0.216445
  19  0.168478
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  4.637e+00  5.273e+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.107e+00  1.685e-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.152e-01  2.164e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.51
Ra Dec: 129.963 1.088
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 1.80e-08 +/- 2.05e-08
Energy Flux (Fixed Index): 6.63e-06 +/- 7.54e-06

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

Saving results to:
/scratch/kocevski/604961/likelihoodResults_472089601_472348801_4FGL_J0839.8+0105_daily_bin898.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) = 6389.41935123
delta logL = 0.147949685354

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6389.41163589
delta logL = 0.155665027195

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.2956       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6880       1.0000          .0000       5.0000    
     3 'Normalizat'    .72382       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1015       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=   6389.412     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      208 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.2971        7.0596        .43664E-02    .21248E-02
   2  alpha         1.6895        .94688        .44300       -.54745E-05
   3  Normalizat    .72386        .18324        .69934E-01    .67186E-04
   4  Prefactor     1.1015        .14310        .37529E-01   -.10892E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.29714
  alpha      = 1.68949
  Normalizat = 0.723863
  Prefactor  = 1.10149
 **********
 **   18 **HESSE 
 **********

 FCN=   6389.412     FROM HESSE     STATUS=OK            31 CALLS      239 TOTAL
                     EDM=   .87E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.2971        5.7087        .87328E-03   -1.5248    
   2  alpha         1.6895        .88968        .25705E-01   -.33017    
   3  Normalizat    .72386        .21263        .30949E-03   -1.0296    
   4  Prefactor     1.1015        .16644        .19840E-03   -.89419    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.67065e-11
Minuit parameter uncertainties:
  1  5.70929
  2  0.91213
  3  0.212871
  4  0.16652
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/604961': 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) = 6389.4116346
delta logL = 0.155666312105

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  5.297e+00  5.709e+00  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  1.689e+00  9.121e-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.101e+00  1.665e-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.239e-01  2.129e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.83
Ra Dec: 129.963 1.088
Photon Index (Free Index): 1.69 +/- 0.91
Photon Flux (Free Index): 1.34e-08 +/- 1.67e-08
Energy Flux (Free Index): 9.67e-06 +/- 1.26e-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/604961/cmap_HighResolution_472089601_472348801_4FGL_J0839.8+0105_daily_bin898.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.74e-05', comment='SUCCESS', photon_flux='1.80e-08', energy_flux2='9.67e-06', photon_flux_error='2.05e-08', dlogl='1.56e-01', energy_flux='6.63e-06', photon_flux2='1.34e-08', job_status='DONE', time_completed='2021-08-30 03:13:36.269154', photon_index_error2='0.91', photon_index2='1.69', ts='1.51', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='7.44e-08', energy_flux_error2='1.26e-05', EG='0.72', time_epoch_completed='1630318416.27', return_code='0', job_id='604961', GAL2='1.10', EG2='0.72', return_code2='0', energy_flux_error='7.54e-06', photon_flux_error2='1.67e-08', ts2='1.83', photon_index='2.24' WHERE bin_id='898' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:13:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0141>
Subject: Job 604961: <4FGL_J0839.8+0105_daily_bin898> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin898 129.963 1.0877 472089601 472348801 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.13 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             326.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   772 sec.
    Turnaround time :                            774 sec.

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

