/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 4 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 = 7474
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0839.8+0105_daily_bin116
RA = 129.963, Dec = 1.0877
tmin = 269395201, tmax = 269654401
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='598350', job_status='RUN', time_executed='2021-08-30 02:45:58.277116', time_epoch_executed='1630316758.28' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='116'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/598350

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/598350/ft1_4FGL_J0839.8+0105_daily_bin116.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/598350/ft2_4FGL_J0839.8+0105_daily_bin116.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/598350/ft1_4FGL_J0839.8+0105_daily_bin116.fits outfile=/scratch/kocevski/598350/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin116.fits ra=129.963 dec=1.0877 rad=12.0 tmin=269395201.0 tmax=269654401.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 1.81
user 1.59
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/598350/ft1_filtered_4FGL_J0839.8+0105_daily_bin116.fits" evtable="EVENTS" scfile=/scratch/kocevski/598350/ft2_4FGL_J0839.8+0105_daily_bin116.fits sctable="SC_DATA" outfile=/scratch/kocevski/598350/ltcube_269395201_269654401_4FGL_J0839.8+0105_daily_bin116.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/598350/ft2_4FGL_J0839.8+0105_daily_bin116.fits
.....................!
real 12.12
user 11.77
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/598350/ft1_filtered_4FGL_J0839.8+0105_daily_bin116.fits evtable="EVENTS" scfile=/scratch/kocevski/598350/ft2_4FGL_J0839.8+0105_daily_bin116.fits sctable="SC_DATA" expcube=/scratch/kocevski/598350/ltcube_269395201_269654401_4FGL_J0839.8+0105_daily_bin116.fits outfile=/scratch/kocevski/598350/expmap_269395201_269654401_4FGL_J0839.8+0105_daily_bin116.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/598350/ltcube_269395201_269654401_4FGL_J0839.8+0105_daily_bin116.fits
.....................!
real 190.67
user 186.03
sys 4.14

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/598350/ft1_filtered_4FGL_J0839.8+0105_daily_bin116.fits scfile=/scratch/kocevski/598350/ft2_4FGL_J0839.8+0105_daily_bin116.fits outfile=/scratch/kocevski/598350/cmap_269395201_269654401_4FGL_J0839.8+0105_daily_bin116.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.80
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/598350/ft1_filtered_4FGL_J0839.8+0105_daily_bin116.fits scfile=/scratch/kocevski/598350/ft2_4FGL_J0839.8+0105_daily_bin116.fits outfile=/scratch/kocevski/598350/cmap_HighResolution_269395201_269654401_4FGL_J0839.8+0105_daily_bin116.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.61
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.0414       1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.241       1.0000         .10000E-03   10000.    
     3 'norm      '    5.5510       1.0000         .10000E-03   10000.    
     4 'norm      '    .19395       1.0000         .10000E-03   10000.    
     5 'norm      '    9.4238       1.0000         .10000E-03   10000.    
     6 'norm      '    .10535E-01   1.0000         .10000E-03   10000.    
     7 'norm      '    .10315E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .20097E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.3647       1.0000         .10000E-03   10000.    
    11 'norm      '    2.7575       1.0000         .10000E-03   10000.    
    12 'norm      '    6.4941       1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.282       1.0000         .10000E-03   10000.    
    14 'norm      '    4.8933       1.0000         .10000E-03   10000.    
    15 'norm      '    .52991       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .60631E-01   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0386       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1136       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8022.546     FROM MIGRAD    STATUS=CONVERGED     98 CALLS     1930 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.0406        4.5464       -.17273E-05    .26418E-02
   2  Prefactor     20.237        11.314        .22082E-04    .50333E-02
   3  norm          5.5518        5.5562        .47313E-05    .19838E-02
   4  norm          .19551        3.3644        .39593E-05    .21333E-03
   5  norm          9.4236        2.2920       -.14573E-07   -.45282E-03
   6  norm          .10240E-03    423.65       -.22029E-03** at limit **
   7  norm          .10000E-03    4.8530        .26218E-06** at limit **
   8  Prefactor     .10000E-03    25.039       -.44691E-05** at limit **
   9  norm          .10415E-03    183.29        .18884E-03** at limit **
  10  Prefactor     3.3670        1.9165        .78912E-05    .24723E-02
  11  norm          2.7574        1.1086        .43949E-06    .10509E-03
  12  norm          6.4939        5.4016       -.12452E-04   -.64277E-03
  13  Prefactor     19.278        1.7834        .24360E-05   -.70770E-04
  14  norm          4.8940        3.6349        .99623E-06   -.14853E-03
  15  norm          .53067        6.8575       -.19535E-05   -.11437E-03
  16  Prefactor     .10000E-03    7.6446       -.44353E-06** at limit **
  17  Prefactor     .69471E-01    31.483        .65958E-04   -.27794E-03
  18  Normalizat    1.0387        .21847       -.80418E-06   -.58315E-03
  19  Prefactor     1.1135        .16968       -.24524E-05   -.72558E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.0406
  Prefactor  = 20.237
  norm       = 5.55176
  norm       = 0.195514
  norm       = 9.42363
  norm       = 0.000102402
  norm       = 0.0001
  Prefactor  = 0.000100004
  norm       = 0.000104153
  Prefactor  = 3.36699
  norm       = 2.75737
  norm       = 6.49392
  Prefactor  = 19.2779
  norm       = 4.89403
  norm       = 0.530665
  Prefactor  = 0.0001
  Prefactor  = 0.0694711
  Normalizat = 1.03874
  Prefactor  = 1.11352
 **********
 **   18 **HESSE 
 **********

 FCN=   8022.546     FROM HESSE     STATUS=OK           338 CALLS     2268 TOTAL
                     EDM=   .80E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.0406        6.8389        .35347E-02   -1.5141    
   2  Prefactor     20.237        26.143        .22257E-02   -1.4808    
   3  norm          5.5518        6.8563        .42631E-02   -1.5237    
   4  norm          .19551        1.4841        .34933E-01   -1.5620    
   5  norm          9.4236        2.3188        .32637E-02   -1.5094    
   6  norm          .10240E-03    14.283        .11268       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    4.6277        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    24.982        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10415E-03    12.070        .16994       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.3670        10.040        .55153E-02   -1.5341    
  11  norm          2.7574        1.1116        .61281E-02   -1.5376    
  12  norm          6.4939        5.4054        .39372E-02   -1.5198    
  13  Prefactor     19.278        24.249        .22803E-02   -1.4830    
  14  norm          4.8940        3.6547        .45458E-02   -1.5265    
  15  norm          .53067        6.7608        .11392E-01   -1.5562    
  16  Prefactor     .10000E-03    7.6311        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .69471E-01    1.5421        .65387E-01   -1.5655    
  18  Normalizat    1.0387        .18824        .67216E-01   -.91744    
  19  Prefactor     1.1135        .14464        .37093E-01   -.89036    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.99203e-06
Minuit parameter uncertainties:
  1  6.83953
  2  26.1577
  3  6.85722
  4  1.07708
  5  2.31886
  6  0.0117182
  7  2.71477e-05
  8  0.000654662
  9  0.0141625
  10  10.0454
  11  1.11157
  12  5.40582
  13  24.2609
  14  3.65489
  15  3.78843
  16  6.81335e-05
  17  0.654156
  18  0.188364
  19  0.144696
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  6.494e+00  5.406e+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.114e+00  1.447e-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.039e+00  1.884e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.37
Ra Dec: 129.963 1.088
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 2.52e-08 +/- 2.10e-08
Energy Flux (Fixed Index): 9.28e-06 +/- 7.73e-06

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

Saving results to:
/scratch/kocevski/598350/likelihoodResults_269395201_269654401_4FGL_J0839.8+0105_daily_bin116.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) = 8022.13151105
delta logL = 0.414826744986

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8022.12544852
delta logL = 0.42088928166

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.0233       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5042       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0554       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1052       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=   8022.125     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      210 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.0247        4.8641        .40901E-02    .31974E-04
   2  alpha         1.5041        .59223        .46309       -.35702E-04
   3  Normalizat    1.0557        .18336        .66732E-01    .23051E-04
   4  Prefactor     1.1051        .14237        .37391E-01    .20520E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.02473
  alpha      = 1.50412
  Normalizat = 1.05566
  Prefactor  = 1.10508
 **********
 **   18 **HESSE 
 **********

 FCN=   8022.125     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.0247        5.2784        .16360E-03   -1.5217    
   2  alpha         1.5041        .69525        .22714E-01   -.40972    
   3  Normalizat    1.0557        .21451        .29521E-03   -.91188    
   4  Prefactor     1.1051        .16696        .22371E-03   -.89304    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.94281e-09
Minuit parameter uncertainties:
  1  5.27878
  2  0.706369
  3  0.214685
  4  0.167037
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/598350': 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) = 8022.1254479
delta logL = 0.420889899252

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  6.025e+00  5.279e+00  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  1.504e+00  7.064e-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.105e+00  1.670e-01  0.000e+00  1.000e+01 ( 1.000e+00)
499        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
500        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
497   Normalization:  1.056e+00  2.147e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.23
Ra Dec: 129.963 1.088
Photon Index (Free Index): 1.50 +/- 0.71
Photon Flux (Free Index): 1.40e-08 +/- 1.40e-08
Energy Flux (Free Index): 1.36e-05 +/- 1.37e-05

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/598350/cmap_HighResolution_269395201_269654401_4FGL_J0839.8+0105_daily_bin116.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.89e-05', comment='SUCCESS', photon_flux='2.52e-08', energy_flux2='1.36e-05', photon_flux_error='2.10e-08', dlogl='4.21e-01', energy_flux='9.28e-06', photon_flux2='1.40e-08', job_status='DONE', time_completed='2021-08-30 02:56:27.089543', photon_index_error2='0.71', photon_index2='1.50', ts='3.37', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='7.87e-08', energy_flux_error2='1.37e-05', EG='1.04', time_epoch_completed='1630317387.09', return_code='0', job_id='598350', GAL2='1.11', EG2='1.06', return_code2='0', energy_flux_error='7.73e-06', photon_flux_error2='1.40e-08', ts2='4.23', photon_index='2.24' WHERE bin_id='116' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:56:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 598350: <4FGL_J0839.8+0105_daily_bin116> in cluster <slac> Done

Job <4FGL_J0839.8+0105_daily_bin116> 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) <bullet0278>, 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:56:27 2021
Results reported at Mon Aug 30 02:56:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin116 129.963 1.0877 269395201 269654401 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 :                                   620.25 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             335.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   650 sec.
    Turnaround time :                            652 sec.

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

