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


Performing analysis on: 4FGL_J0839.8+0105_daily_bin671
RA = 129.963, Dec = 1.0877
tmin = 413251201, tmax = 413510401
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='603140', job_status='RUN', time_executed='2021-08-30 02:59:52.780060', time_epoch_executed='1630317592.78' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='671'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603140

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603140/ft1_4FGL_J0839.8+0105_daily_bin671.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603140/ft2_4FGL_J0839.8+0105_daily_bin671.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603140/ft1_4FGL_J0839.8+0105_daily_bin671.fits outfile=/scratch/kocevski/603140/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin671.fits ra=129.963 dec=1.0877 rad=12.0 tmin=413251201.0 tmax=413510401.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 6.53
user 5.45
sys 1.02

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/603140/ft1_filtered_4FGL_J0839.8+0105_daily_bin671.fits" evtable="EVENTS" scfile=/scratch/kocevski/603140/ft2_4FGL_J0839.8+0105_daily_bin671.fits sctable="SC_DATA" outfile=/scratch/kocevski/603140/ltcube_413251201_413510401_4FGL_J0839.8+0105_daily_bin671.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/603140/ft2_4FGL_J0839.8+0105_daily_bin671.fits
.....................!
real 12.76
user 11.60
sys 1.11

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603140/ft1_filtered_4FGL_J0839.8+0105_daily_bin671.fits evtable="EVENTS" scfile=/scratch/kocevski/603140/ft2_4FGL_J0839.8+0105_daily_bin671.fits sctable="SC_DATA" expcube=/scratch/kocevski/603140/ltcube_413251201_413510401_4FGL_J0839.8+0105_daily_bin671.fits outfile=/scratch/kocevski/603140/expmap_413251201_413510401_4FGL_J0839.8+0105_daily_bin671.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/603140/ltcube_413251201_413510401_4FGL_J0839.8+0105_daily_bin671.fits
.....................!
real 191.82
user 185.20
sys 6.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/603140/ft1_filtered_4FGL_J0839.8+0105_daily_bin671.fits scfile=/scratch/kocevski/603140/ft2_4FGL_J0839.8+0105_daily_bin671.fits outfile=/scratch/kocevski/603140/cmap_413251201_413510401_4FGL_J0839.8+0105_daily_bin671.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.34
user 0.36
sys 0.94

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603140/ft1_filtered_4FGL_J0839.8+0105_daily_bin671.fits scfile=/scratch/kocevski/603140/ft2_4FGL_J0839.8+0105_daily_bin671.fits outfile=/scratch/kocevski/603140/cmap_HighResolution_413251201_413510401_4FGL_J0839.8+0105_daily_bin671.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.34
user 0.39
sys 0.90

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10097E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .91387       1.0000         .10000E-03   10000.    
     5 'norm      '    5.8203       1.0000         .10000E-03   10000.    
     6 'norm      '    .10280E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.4102       1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.958       1.0000         .10000E-03   10000.    
     9 'norm      '    .41728E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.4497       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.5346       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.1681       1.0000         .10000E-03   10000.    
    15 'norm      '    .88495       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.1225       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2294       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .75442       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=   6320.046     FROM MIGRAD    STATUS=CONVERGED    443 CALLS     2222 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.1997        .17433E-07** at limit **
   2  Prefactor     .10000E-03    35.680       -.73539E-06** at limit **
   3  norm          .10000E-03    14.223        .17833E-06** at limit **
   4  norm          .91310        2.0295        .58511E-06    .40051E-04
   5  norm          5.8203        1.7277       -.44027E-07   -.13530E-03
   6  norm          .10000E-03    44.907       -.31155E-05** at limit **
   7  norm          3.4112        3.8878        .22584E-06    .10848E-04
   8  Prefactor     18.964        36.652       -.27012E-05   -.10899E-03
   9  norm          .73368E-03    13.303       -.29283E-06** at limit **
  10  Prefactor     8.4461        13.639        .28180E-06    .13204E-04
  11  norm          .10000E-03    .30723       -.44228E-07** at limit **
  12  norm          3.5345        7.9772        .33423E-06   -.11272E-04
  13  Prefactor     .10000E-03    8.1567        .70943E-07** at limit **
  14  norm          5.1676        4.1971       -.68931E-07   -.65113E-04
  15  norm          .88420        3.8700        .19224E-05   -.94005E-05
  16  Prefactor     .10000E-03    5.6346        .10061E-07** at limit **
  17  Prefactor     3.1210        4.0098        .22567E-06   -.19697E-04
  18  Normalizat    1.2294        .19398        .14176E-05   -.12196E-03
  19  Prefactor     .75453        .14212       -.16510E-05    .71828E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.9131
  norm       = 5.8203
  norm       = 0.0001
  norm       = 3.41121
  Prefactor  = 18.9643
  norm       = 0.000733685
  Prefactor  = 8.44611
  norm       = 0.0001
  norm       = 3.53445
  Prefactor  = 0.0001
  norm       = 5.16758
  norm       = 0.884197
  Prefactor  = 0.0001
  Prefactor  = 3.12105
  Normalizat = 1.22945
  Prefactor  = 0.754532
 **********
 **   18 **HESSE 
 **********

 FCN=   6320.046     FROM HESSE     STATUS=OK           280 CALLS     2502 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.2502        .15905E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    35.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    14.675        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .91310        1.9945        .16015E-03   -1.5517    
   5  norm          5.8203        1.7189        .53800E-04   -1.5225    
   6  norm          .10000E-03    44.998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.4112        3.8852        .16054E-03   -1.5339    
   8  Prefactor     18.964        37.931        .91986E-04   -1.4837    
   9  norm          .73368E-03    12.190        .10076       -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.4461        13.652        .13791E-03   -1.5127    
  11  norm          .10000E-03    .37779        .85437E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.5345        8.0138        .21501E-03   -1.5332    
  13  Prefactor     .10000E-03    8.1716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.1676        4.1978        .13915E-03   -1.5253    
  15  norm          .88420        3.9724        .30995E-03   -1.5520    
  16  Prefactor     .10000E-03    5.6392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.1210        4.0058        .17349E-03   -1.5355    
  18  Normalizat    1.2294        .22359        .24090E-03   -.85698    
  19  Prefactor     .75453        .16254        .22611E-03   -1.0143    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.39243e-10
Minuit parameter uncertainties:
  1  3.19382e-06
  2  4.83017e-05
  3  4.60015e-06
  4  1.99465
  5  1.71896
  6  0.000246637
  7  3.88553
  8  37.9796
  9  0.175816
  10  13.6568
  11  1.25206e-06
  12  8.0162
  13  6.50981e-07
  14  4.198
  15  3.74848
  16  2.68992e-06
  17  4.00619
  18  0.223768
  19  0.162643
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  3.534e+00  8.016e+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:  7.545e-01  1.626e-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.229e+00  2.238e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/603140/likelihoodResults_413251201_413510401_4FGL_J0839.8+0105_daily_bin671.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) = 6317.41937331
delta logL = 2.62675368417

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6317.36164699
delta logL = 2.68448001073

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9149       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.3991       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0737       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82556       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=   6317.362     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      256 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9147        5.3622        .51646E-04    .25024E-02
   2  alpha         4.3991        3.7981        .16434E-01    .75023E-04
   3  Normalizat    1.0740        .22412        .25483E-03    .28985E-03
   4  Prefactor     .82530        .16550        .21685E-03    .13254E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.91474
  alpha      = 4.39906
  Normalizat = 1.07404
  Prefactor  = 0.825299
 **********
 **   18 **HESSE 
 **********

 FCN=   6317.362     FROM HESSE     STATUS=OK            25 CALLS      281 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9147        2.9302        .20658E-05   -1.5431    
   2  alpha         4.3991        .95190        .65735E-03    .86273    
   3  Normalizat    1.0740        .22378        .50965E-04   -.90590    
   4  Prefactor     .82530        .16470        .86739E-05   -.98802    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.92375e-10
Minuit parameter uncertainties:
  1  2.93037
  2  1.01692
  3  0.223976
  4  0.164796
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603140': 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) = 6317.36164559
delta logL = 2.68448140993

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.915e+00  2.930e+00  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  4.399e+00  1.017e+00  0.000e+00  5.000e+00 ( 1.000e+00)
297         beta:  1.924e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
298           Eb:  6.486e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
498    Prefactor:  8.253e-01  1.648e-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.074e+00  2.240e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.06
Ra Dec: 129.963 1.088
Photon Index (Free Index): 4.40 +/- 1.02
Photon Flux (Free Index): 1.30e-07 +/- 6.80e-08
Energy Flux (Free Index): 1.95e-05 +/- 1.00e-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/603140/cmap_HighResolution_413251201_413510401_4FGL_J0839.8+0105_daily_bin671.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.23e-05', comment='SUCCESS', energy_flux2='1.95e-05', dlogl='2.68e+00', photon_flux2='1.30e-07', job_status='DONE', time_completed='2021-08-30 03:10:00.088088', photon_index_error2='1.02', photon_index2='4.40', ts='0.24', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', photon_flux_upper_limit='8.79e-08', energy_flux_error2='1.00e-05', EG='1.23', time_epoch_completed='1630318200.09', return_code='0', job_id='603140', GAL2='0.83', EG2='1.07', return_code2='0', photon_flux_error2='6.80e-08', ts2='6.06', photon_index='2.24' WHERE bin_id='671' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:10:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 603140: <4FGL_J0839.8+0105_daily_bin671> in cluster <slac> Done

Job <4FGL_J0839.8+0105_daily_bin671> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Aug 30 02:55:34 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 02:55:35 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:35 2021
Terminated at Mon Aug 30 03:10:01 2021
Results reported at Mon Aug 30 03:10:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin671 129.963 1.0877 413251201 413510401 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 :                                   616.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   865 sec.
    Turnaround time :                            867 sec.

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

