/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 198 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 = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0839.8+0105_daily_bin113
RA = 129.963, Dec = 1.0877
tmin = 268617601, tmax = 268876801
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='598345', job_status='RUN', time_executed='2021-08-30 02:49:37.246225', time_epoch_executed='1630316977.25' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='113'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/598345

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/598345/ft1_4FGL_J0839.8+0105_daily_bin113.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/598345/ft2_4FGL_J0839.8+0105_daily_bin113.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/598345/ft1_4FGL_J0839.8+0105_daily_bin113.fits outfile=/scratch/kocevski/598345/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin113.fits ra=129.963 dec=1.0877 rad=12.0 tmin=268617601.0 tmax=268876801.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 2.01
user 1.34
sys 0.45

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/598345/ft1_filtered_4FGL_J0839.8+0105_daily_bin113.fits" evtable="EVENTS" scfile=/scratch/kocevski/598345/ft2_4FGL_J0839.8+0105_daily_bin113.fits sctable="SC_DATA" outfile=/scratch/kocevski/598345/ltcube_268617601_268876801_4FGL_J0839.8+0105_daily_bin113.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/598345/ft2_4FGL_J0839.8+0105_daily_bin113.fits
.....................!
real 13.46
user 12.72
sys 0.64

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/598345/ft1_filtered_4FGL_J0839.8+0105_daily_bin113.fits evtable="EVENTS" scfile=/scratch/kocevski/598345/ft2_4FGL_J0839.8+0105_daily_bin113.fits sctable="SC_DATA" expcube=/scratch/kocevski/598345/ltcube_268617601_268876801_4FGL_J0839.8+0105_daily_bin113.fits outfile=/scratch/kocevski/598345/expmap_268617601_268876801_4FGL_J0839.8+0105_daily_bin113.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/598345/ltcube_268617601_268876801_4FGL_J0839.8+0105_daily_bin113.fits
.....................!
real 193.33
user 187.67
sys 4.71

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/598345/ft1_filtered_4FGL_J0839.8+0105_daily_bin113.fits scfile=/scratch/kocevski/598345/ft2_4FGL_J0839.8+0105_daily_bin113.fits outfile=/scratch/kocevski/598345/cmap_268617601_268876801_4FGL_J0839.8+0105_daily_bin113.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.96
user 0.36
sys 0.50

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/598345/ft1_filtered_4FGL_J0839.8+0105_daily_bin113.fits scfile=/scratch/kocevski/598345/ft2_4FGL_J0839.8+0105_daily_bin113.fits outfile=/scratch/kocevski/598345/cmap_HighResolution_268617601_268876801_4FGL_J0839.8+0105_daily_bin113.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.87
user 0.37
sys 0.49

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10186E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .30683E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    .10104E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.3680       1.0000         .10000E-03   10000.    
     6 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10384E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.1320       1.0000         .10000E-03   10000.    
    12 'norm      '    11.021       1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.422       1.0000         .10000E-03   10000.    
    14 'norm      '    12.195       1.0000         .10000E-03   10000.    
    15 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.5241       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.6691       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .83605       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.3248       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=   6539.532     FROM MIGRAD    STATUS=CONVERGED    385 CALLS     1873 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.0259        .28657E-06** at limit **
   2  Prefactor     .10000E-03    7.4090        .39886E-05** at limit **
   3  norm          .10009E-03    5.7158       -.67034E-06** at limit **
   4  norm          .10000E-03    1.5622        .23799E-06** at limit **
   5  norm          6.3669        2.1467        .68198E-08   -.45232E-03
   6  norm          .10000E-03    21.955        .33603E-05** at limit **
   7  norm          .10000E-03    1.4304        .20889E-07** at limit **
   8  Prefactor     .10000E-03    24.267       -.15784E-04** at limit **
   9  norm          .10000E-03    17.259        .25193E-04** at limit **
  10  Prefactor     .10000E-03    5.4434       -.12512E-05** at limit **
  11  norm          2.1320        1.1395        .14308E-06   -.94601E-04
  12  norm          11.022        8.9794        .40345E-06   -.56105E-04
  13  Prefactor     13.447        32.336        .50305E-04   -.86621E-05
  14  norm          12.197        5.5320        .52582E-06    .30020E-03
  15  norm          .10000E-03    11.850       -.13083E-04** at limit **
  16  Prefactor     4.5179        17.020       -.78329E-05    .18496E-04
  17  Prefactor     2.6686        2.3015        .10588E-06    .13710E-03
  18  Normalizat    .83603        .20910       -.32032E-05    .16704E-03
  19  Prefactor     1.3247        .16205       -.15925E-05    .25883E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100087
  norm       = 0.0001
  norm       = 6.36686
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.13203
  norm       = 11.0218
  Prefactor  = 13.4471
  norm       = 12.1967
  norm       = 0.000100002
  Prefactor  = 4.51787
  Prefactor  = 2.66859
  Normalizat = 0.836031
  Prefactor  = 1.32473
 **********
 **   18 **HESSE 
 **********

 FCN=   6539.532     FROM HESSE     STATUS=OK           268 CALLS     2141 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.0417        .15843E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.4138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10009E-03    28.099        .37389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.8587        .19398E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.3669        2.1276        .65648E-04   -1.5203    
   6  norm          .10000E-03    22.604        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.4430        .94440E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    24.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    17.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.4491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.1320        1.1383        .60165E-04   -1.5416    
  12  norm          11.022        8.9741        .12068E-03   -1.5044    
  13  Prefactor     13.447        32.313        .10933E-03   -1.4974    
  14  norm          12.197        5.5423        .11471E-03   -1.5009    
  15  norm          .10000E-03    12.145        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.5179        17.009        .18928E-03   -1.5283    
  17  Prefactor     2.6686        2.3041        .11100E-03   -1.5381    
  18  Normalizat    .83603        .24588        .32916E-03   -.98746    
  19  Prefactor     1.3247        .19101        .21160E-03   -.82575    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.3448e-09
Minuit parameter uncertainties:
  1  1.21809e-05
  2  8.23972e-06
  3  0.00313622
  4  4.00904e-05
  5  2.12758
  6  6.80892e-05
  7  5.86643e-06
  8  8.65564e-05
  9  1.69709e-05
  10  1.42168e-05
  11  1.13834
  12  8.97517
  13  32.3548
  14  5.54249
  15  0.000327842
  16  17.0271
  17  2.30414
  18  0.246205
  19  0.191115
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.102e+01  8.975e+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.325e+00  1.911e-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.360e-01  2.462e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.73
Ra Dec: 129.963 1.088
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 4.28e-08 +/- 3.49e-08
Energy Flux (Fixed Index): 1.58e-05 +/- 1.28e-05

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

Saving results to:
/scratch/kocevski/598345/likelihoodResults_268617601_268876801_4FGL_J0839.8+0105_daily_bin113.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) = 6539.46329808
delta logL = 0.0689350595258

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6539.45193443
delta logL = 0.0802987053894

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.7026       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5981       1.0000          .0000       5.0000    
     3 'Normalizat'    .81811       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3341       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=   6539.452     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      248 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.7033        9.6240        .12865E-03   -.51732E-03
   2  alpha         2.5981        .95799        .19151E-01   -.57835E-04
   3  Normalizat    .81810        .24466        .33242E-03    .13902E-03
   4  Prefactor     1.3341        .19145        .21096E-03    .34195E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.70325
  alpha      = 2.59808
  Normalizat = 0.818104
  Prefactor  = 1.33413
 **********
 **   18 **HESSE 
 **********

 FCN=   6539.452     FROM HESSE     STATUS=OK            25 CALLS      273 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.7033        9.1971        .51460E-05   -1.5085    
   2  alpha         2.5981        .91612        .76604E-03    .39243E-01
   3  Normalizat    .81810        .24426        .13297E-04   -.99401    
   4  Prefactor     1.3341        .19125        .42192E-04   -.82298    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.0686e-10
Minuit parameter uncertainties:
  1  9.1984
  2  0.938004
  3  0.244589
  4  0.191348
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/598345': 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) = 6539.45193443
delta logL = 0.0802987134521

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  9.703e+00  9.198e+00  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  2.598e+00  9.380e-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.334e+00  1.913e-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.181e-01  2.446e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.89
Ra Dec: 129.963 1.088
Photon Index (Free Index): 2.60 +/- 0.94
Photon Flux (Free Index): 5.50e-08 +/- 5.21e-08
Energy Flux (Free Index): 1.52e-05 +/- 1.20e-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/598345/cmap_HighResolution_268617601_268876801_4FGL_J0839.8+0105_daily_bin113.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.45e-05', comment='SUCCESS', photon_flux='4.28e-08', energy_flux2='1.52e-05', photon_flux_error='3.49e-08', dlogl='8.03e-02', energy_flux='1.58e-05', photon_flux2='5.50e-08', job_status='DONE', time_completed='2021-08-30 02:59:09.118816', photon_index_error2='0.94', photon_index2='2.60', ts='2.73', fit_tolerance='1e-08', GAL='1.32', photon_index_error='0.00', photon_flux_upper_limit='1.21e-07', energy_flux_error2='1.20e-05', EG='0.84', time_epoch_completed='1630317549.12', return_code='0', job_id='598345', GAL2='1.33', EG2='0.82', return_code2='0', energy_flux_error='1.28e-05', photon_flux_error2='5.21e-08', ts2='2.89', photon_index='2.24' WHERE bin_id='113' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:59:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 598345: <4FGL_J0839.8+0105_daily_bin113> in cluster <slac> Done

Job <4FGL_J0839.8+0105_daily_bin113> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug 30 02:45:35 2021
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 02:45:37 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:45:37 2021
Terminated at Mon Aug 30 02:59:09 2021
Results reported at Mon Aug 30 02:59:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin113 129.963 1.0877 268617601 268876801 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 :                                   571.49 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             239.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            814 sec.

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

