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


Performing analysis on: 4FGL_J0839.8+0105_daily_bin736
RA = 129.963, Dec = 1.0877
tmin = 430099201, tmax = 430358401
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='603249', job_status='RUN', time_executed='2021-08-30 03:00:16.179767', time_epoch_executed='1630317616.18' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='736'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603249

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603249/ft1_4FGL_J0839.8+0105_daily_bin736.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603249/ft2_4FGL_J0839.8+0105_daily_bin736.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603249/ft1_4FGL_J0839.8+0105_daily_bin736.fits outfile=/scratch/kocevski/603249/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin736.fits ra=129.963 dec=1.0877 rad=12.0 tmin=430099201.0 tmax=430358401.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 13.21
user 10.68
sys 2.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/603249/ft1_filtered_4FGL_J0839.8+0105_daily_bin736.fits" evtable="EVENTS" scfile=/scratch/kocevski/603249/ft2_4FGL_J0839.8+0105_daily_bin736.fits sctable="SC_DATA" outfile=/scratch/kocevski/603249/ltcube_430099201_430358401_4FGL_J0839.8+0105_daily_bin736.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/603249/ft2_4FGL_J0839.8+0105_daily_bin736.fits
.....................!
real 13.43
user 11.08
sys 2.17

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603249/ft1_filtered_4FGL_J0839.8+0105_daily_bin736.fits evtable="EVENTS" scfile=/scratch/kocevski/603249/ft2_4FGL_J0839.8+0105_daily_bin736.fits sctable="SC_DATA" expcube=/scratch/kocevski/603249/ltcube_430099201_430358401_4FGL_J0839.8+0105_daily_bin736.fits outfile=/scratch/kocevski/603249/expmap_430099201_430358401_4FGL_J0839.8+0105_daily_bin736.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/603249/ltcube_430099201_430358401_4FGL_J0839.8+0105_daily_bin736.fits
.....................!
real 193.95
user 186.06
sys 6.50

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/603249/ft1_filtered_4FGL_J0839.8+0105_daily_bin736.fits scfile=/scratch/kocevski/603249/ft2_4FGL_J0839.8+0105_daily_bin736.fits outfile=/scratch/kocevski/603249/cmap_430099201_430358401_4FGL_J0839.8+0105_daily_bin736.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 2.26
user 0.36
sys 1.77

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603249/ft1_filtered_4FGL_J0839.8+0105_daily_bin736.fits scfile=/scratch/kocevski/603249/ft2_4FGL_J0839.8+0105_daily_bin736.fits outfile=/scratch/kocevski/603249/cmap_HighResolution_430099201_430358401_4FGL_J0839.8+0105_daily_bin736.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 2.12
user 0.38
sys 1.61

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.887       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10468E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10577E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10809E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    36.358       1.0000         .10000E-03   10000.    
     7 'norm      '    2.2188       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.3073       1.0000         .10000E-03   10000.    
     9 'norm      '    12.437       1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.225       1.0000         .10000E-03   10000.    
    11 'norm      '    .10063E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    8.4144       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10372E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11599E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2076       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0466       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=   8184.787     FROM MIGRAD    STATUS=CONVERGED    406 CALLS     1964 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.879        8.4865       -.51535E-05   -.17887E-04
   2  Prefactor     .10000E-03    12.758        .16482E-05** at limit **
   3  norm          .10000E-03    3.6279        .17163E-06** at limit **
   4  norm          .10000E-03    1.0507        .11647E-06** at limit **
   5  norm          .10000E-03    .68503       -.11783E-06** at limit **
   6  norm          36.429        25.018       -.90598E-05    .27067E-03
   7  norm          2.2184        2.1787        .32496E-06    .81664E-04
   8  Prefactor     8.2060        42.665       -.77566E-04    .16449E-04
   9  norm          12.432        24.649        .70724E-05   -.41340E-05
  10  Prefactor     15.239        12.862        .12550E-04    .17435E-03
  11  norm          .10000E-03    .35384        .29579E-07** at limit **
  12  norm          8.4141        6.6929       -.46707E-06   -.20552E-04
  13  Prefactor     .10000E-03    8.5284       -.40412E-06** at limit **
  14  norm          .10000E-03    1.7912       -.15511E-06** at limit **
  15  norm          .10000E-03    7.0817       -.18343E-06** at limit **
  16  Prefactor     .10000E-03    43.035       -.12971E-05** at limit **
  17  Prefactor     .10000E-03    3.9678       -.20626E-06** at limit **
  18  Normalizat    1.2070        .18628        .85314E-05   -.21913E-03
  19  Prefactor     1.0471        .13763       -.16638E-05    .62840E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.8789
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 36.429
  norm       = 2.2184
  Prefactor  = 8.20601
  norm       = 12.4321
  Prefactor  = 15.2388
  norm       = 0.0001
  norm       = 8.41414
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.20698
  Prefactor  = 1.04706
 **********
 **   18 **HESSE 
 **********

 FCN=   8184.787     FROM HESSE     STATUS=OK           266 CALLS     2230 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.879        8.4912        .10049E-03   -1.4911    
   2  Prefactor     .10000E-03    12.788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    3.6418        .16824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.0833        .18088E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.9581        .14491E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          36.429        24.772        .66465E-04   -1.4500    
   7  norm          2.2184        2.1732        .12817E-03   -1.5410    
   8  Prefactor     8.2060        42.583        .13909E-03   -1.5135    
   9  norm          12.432        24.647        .11359E-03   -1.5003    
  10  Prefactor     15.239        12.898        .10265E-03   -1.4927    
  11  norm          .10000E-03    .61901        .10393E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          8.4141        6.6899        .13820E-03   -1.5128    
  13  Prefactor     .10000E-03    8.5353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.8180        .11820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    7.2073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    43.371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.0498        .17592E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.2070        .21839        .28023E-03   -.86387    
  19  Prefactor     1.0471        .16177        .22532E-03   -.91177    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.68388e-09
Minuit parameter uncertainties:
  1  8.49182
  2  0.00031762
  3  2.24358e-05
  4  1.19049e-05
  5  2.85031e-05
  6  24.7786
  7  2.17323
  8  37.4283
  9  24.6675
  10  12.9006
  11  1.24379e-06
  12  6.69052
  13  2.22421e-05
  14  2.01305e-05
  15  8.46432e-05
  16  0.000271662
  17  4.46615e-05
  18  0.21856
  19  0.161845
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  8.414e+00  6.691e+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.047e+00  1.618e-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.207e+00  2.186e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.45
Ra Dec: 129.963 1.088
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 3.27e-08 +/- 2.60e-08
Energy Flux (Fixed Index): 1.20e-05 +/- 9.56e-06

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

Saving results to:
/scratch/kocevski/603249/likelihoodResults_430099201_430358401_4FGL_J0839.8+0105_daily_bin736.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) = 8184.52049322
delta logL = 0.266813223369

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8184.51375008
delta logL = 0.273556360182

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.6786       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8683       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1731       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0608       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8184.514     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      256 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.6759        6.6426        .72358E-03   -.31816E-04
   2  alpha         2.8685        .87745        .19129E-01    .18669E-03
   3  Normalizat    1.1732        .21711        .28367E-03   -.44886E-05
   4  Prefactor     1.0608        .16046        .22399E-03    .42634E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 7.67593
  alpha      = 2.86854
  Normalizat = 1.17317
  Prefactor  = 1.06079
 **********
 **   18 **HESSE 
 **********

 FCN=   8184.514     FROM HESSE     STATUS=OK            27 CALLS      283 TOTAL
                     EDM=   .88E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.6759        6.2822        .28943E-04   -1.5154    
   2  alpha         2.8685        .83031        .38259E-02    .14796    
   3  Normalizat    1.1732        .21682        .11347E-04   -.87436    
   4  Prefactor     1.0608        .16037        .89597E-05   -.90730    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.79146e-13
Minuit parameter uncertainties:
  1  6.28274
  2  0.846758
  3  0.216986
  4  0.160438
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603249': 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) = 8184.51374982
delta logL = 0.273556614327

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  7.676e+00  6.283e+00  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  2.869e+00  8.468e-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.061e+00  1.604e-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.173e+00  2.170e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.01
Ra Dec: 129.963 1.088
Photon Index (Free Index): 2.87 +/- 0.85
Photon Flux (Free Index): 6.01e-08 +/- 5.42e-08
Energy Flux (Free Index): 1.41e-05 +/- 9.79e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/603249/cmap_HighResolution_430099201_430358401_4FGL_J0839.8+0105_daily_bin736.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.43e-05', comment='SUCCESS', photon_flux='3.27e-08', energy_flux2='1.41e-05', photon_flux_error='2.60e-08', dlogl='2.74e-01', energy_flux='1.20e-05', photon_flux2='6.01e-08', job_status='DONE', time_completed='2021-08-30 03:11:50.426239', photon_index_error2='0.85', photon_index2='2.87', ts='3.45', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='9.32e-08', energy_flux_error2='9.79e-06', EG='1.21', time_epoch_completed='1630318310.43', return_code='0', job_id='603249', GAL2='1.06', EG2='1.17', return_code2='0', energy_flux_error='9.56e-06', photon_flux_error2='5.42e-08', ts2='4.01', photon_index='2.24' WHERE bin_id='736' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:11:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 603249: <4FGL_J0839.8+0105_daily_bin736> in cluster <slac> Done

Job <4FGL_J0839.8+0105_daily_bin736> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Aug 30 02:55:41 2021
Job was executed on host(s) <bullet0115>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 02:55:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 30 02:55:43 2021
Terminated at Mon Aug 30 03:11:51 2021
Results reported at Mon Aug 30 03:11:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin736 129.963 1.0877 430099201 430358401 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 :                                   713.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   967 sec.
    Turnaround time :                            970 sec.

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

