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


Performing analysis on: 4FGL_J0839.8+0105_daily_bin598
RA = 129.963, Dec = 1.0877
tmin = 394329601, tmax = 394588801
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='603032', job_status='RUN', time_executed='2021-08-30 03:00:13.588807', time_epoch_executed='1630317613.59' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='598'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603032

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

Retrieving the FT1 file...

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

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

Retrieving 53 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603032/ft1_4FGL_J0839.8+0105_daily_bin598.fits


Retrieving the FT1 file...

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

Retrieving 53 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603032/ft2_4FGL_J0839.8+0105_daily_bin598.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603032/ft1_4FGL_J0839.8+0105_daily_bin598.fits outfile=/scratch/kocevski/603032/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin598.fits ra=129.963 dec=1.0877 rad=12.0 tmin=394329601.0 tmax=394588801.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 11.53
user 7.11
sys 4.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/603032/ft2_4FGL_J0839.8+0105_daily_bin598.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/603032/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin598.fits evtable="EVENTS" outfile="/scratch/kocevski/603032/ft1_filtered_4FGL_J0839.8+0105_daily_bin598.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 4.81
user 0.34
sys 4.20

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/603032/ft1_filtered_4FGL_J0839.8+0105_daily_bin598.fits" evtable="EVENTS" scfile=/scratch/kocevski/603032/ft2_4FGL_J0839.8+0105_daily_bin598.fits sctable="SC_DATA" outfile=/scratch/kocevski/603032/ltcube_394329601_394588801_4FGL_J0839.8+0105_daily_bin598.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/603032/ft2_4FGL_J0839.8+0105_daily_bin598.fits
.....................!
real 17.41
user 12.11
sys 4.91

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603032/ft1_filtered_4FGL_J0839.8+0105_daily_bin598.fits evtable="EVENTS" scfile=/scratch/kocevski/603032/ft2_4FGL_J0839.8+0105_daily_bin598.fits sctable="SC_DATA" expcube=/scratch/kocevski/603032/ltcube_394329601_394588801_4FGL_J0839.8+0105_daily_bin598.fits outfile=/scratch/kocevski/603032/expmap_394329601_394588801_4FGL_J0839.8+0105_daily_bin598.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/603032/ltcube_394329601_394588801_4FGL_J0839.8+0105_daily_bin598.fits
.....................!
real 200.04
user 186.62
sys 11.04

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/603032/ft1_filtered_4FGL_J0839.8+0105_daily_bin598.fits scfile=/scratch/kocevski/603032/ft2_4FGL_J0839.8+0105_daily_bin598.fits outfile=/scratch/kocevski/603032/cmap_394329601_394588801_4FGL_J0839.8+0105_daily_bin598.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 4.56
user 0.37
sys 4.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603032/ft1_filtered_4FGL_J0839.8+0105_daily_bin598.fits scfile=/scratch/kocevski/603032/ft2_4FGL_J0839.8+0105_daily_bin598.fits outfile=/scratch/kocevski/603032/cmap_HighResolution_394329601_394588801_4FGL_J0839.8+0105_daily_bin598.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 4.58
user 0.39
sys 4.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    54.743       1.0000         .10000E-03   10000.    
     3 'norm      '    7.7735       1.0000         .10000E-03   10000.    
     4 'norm      '    .79845       1.0000         .10000E-03   10000.    
     5 'norm      '    7.8102       1.0000         .10000E-03   10000.    
     6 'norm      '    .33217       1.0000         .10000E-03   10000.    
     7 'norm      '    3.7172       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.6321       1.0000         .10000E-03   10000.    
    12 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.0940       1.0000         .10000E-03   10000.    
    14 'norm      '    .13916E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    16.907       1.0000         .10000E-03   10000.    
    16 'Prefactor '    51.961       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.4356       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0241       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .88812       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=   6214.639     FROM MIGRAD    STATUS=CONVERGED    406 CALLS     2188 TOTAL
                     EDM=   .81E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.9669       -.58573E-07** at limit **
   2  Prefactor     54.798        36.286        .98056E-06    .76298E-04
   3  norm          7.7736        9.6463        .18062E-05   -.34373E-04
   4  norm          .79751        2.3670        .79914E-06    .43734E-04
   5  norm          7.8103        2.3261       -.49879E-07   -.21869E-03
   6  norm          .27955        22.205        .67856E-06   -.63122E-04
   7  norm          3.7175        3.3272       -.26104E-06   -.56250E-04
   8  Prefactor     .10000E-03    20.629        .17535E-06** at limit **
   9  norm          .10000E-03    11.494       -.41175E-06** at limit **
  10  Prefactor     .10000E-03    11.702        .52979E-06** at limit **
  11  norm          4.6324        1.4265       -.53007E-08   -.15697E-03
  12  norm          .10000E-03    9.0118       -.18997E-07** at limit **
  13  Prefactor     9.0968        13.375       -.41347E-06   -.29396E-04
  14  norm          .10000E-03    2.4540        .14952E-06** at limit **
  15  norm          16.907        8.5791        .19608E-06   -.38736E-04
  16  Prefactor     51.956        32.410        .33902E-06   -.18547E-04
  17  Prefactor     7.4360        5.3806        .27316E-06   -.62483E-04
  18  Normalizat    1.0239        .21066       -.22540E-05   -.68923E-04
  19  Prefactor     .88831        .14798        .21561E-06   -.19518E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 54.7984
  norm       = 7.77361
  norm       = 0.797513
  norm       = 7.81032
  norm       = 0.279552
  norm       = 3.71753
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.63237
  norm       = 0.0001
  Prefactor  = 9.09685
  norm       = 0.000100002
  norm       = 16.9068
  Prefactor  = 51.9559
  Prefactor  = 7.43603
  Normalizat = 1.02392
  Prefactor  = 0.888305
 **********
 **   18 **HESSE 
 **********

 FCN=   6214.639     FROM HESSE     STATUS=OK           280 CALLS     2468 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.9722        .13262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     54.798        38.624        .54213E-04   -1.4226    
   3  norm          7.7736        9.6196        .71911E-03   -1.5150    
   4  norm          .79751        2.3300        .19564E-03   -1.5529    
   5  norm          7.8103        2.3008        .60982E-04   -1.5149    
   6  norm          .27955        23.997        .10086       -1.5602    
   7  norm          3.7175        3.3261        .13103E-03   -1.5322    
   8  Prefactor     .10000E-03    20.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    11.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.6324        1.4283        .49795E-04   -1.5277    
  12  norm          .10000E-03    9.3591        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.0968        13.378        .13291E-03   -1.5105    
  14  norm          .10000E-03    13.632        .23344E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          16.907        8.5542        .97407E-04   -1.4885    
  16  Prefactor     51.956        32.458        .55638E-04   -1.4265    
  17  Prefactor     7.4360        5.3460        .14670E-03   -1.5163    
  18  Normalizat    1.0239        .24159        .28738E-03   -.92233    
  19  Prefactor     .88831        .17405        .22820E-03   -.96551    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.18967e-10
Minuit parameter uncertainties:
  1  4.79014e-06
  2  38.6419
  3  9.62155
  4  2.33024
  5  2.30085
  6  5.18134
  7  3.32625
  8  9.4347e-06
  9  8.58208e-06
  10  3.099e-05
  11  1.42832
  12  3.02409e-05
  13  13.3819
  14  0.000316944
  15  8.55478
  16  32.4693
  17  5.34637
  18  0.241847
  19  0.174156
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.000e-04  3.024e-05  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:  8.883e-01  1.742e-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.024e+00  2.418e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/603032/likelihoodResults_394329601_394588801_4FGL_J0839.8+0105_daily_bin598.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): 102
logL (Free Index) = 6214.63956452
delta logL = -0.000510106256115

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6214.63905548
delta logL = -1.07418964035e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2929       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0235       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88861       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=   6214.639     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      250 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    12.230        .32101E-02** at limit **
   2  alpha         2.3498        3.5237        .16533       -.27463E-04
   3  Normalizat    1.0239        .22812        .28738E-03    .71801E-04
   4  Prefactor     .88831        .17106        .22820E-03    .10178E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100025
  alpha      = 2.34977
  Normalizat = 1.02392
  Prefactor  = 0.888307
 **********
 **   18 **HESSE 
 **********

 FCN=   6214.639     FROM HESSE     STATUS=OK            23 CALLS      273 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    11.994        .64202E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3498        3.5157        .66130E-02   -.60129E-01
   3  Normalizat    1.0239        .22835        .11495E-04   -.92233    
   4  Prefactor     .88831        .17124        .91278E-05   -.96551    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.88841e-09
Minuit parameter uncertainties:
  1  0.00109062
  2  2.49662
  3  0.228567
  4  0.171343
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603032': 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) = 6214.63905322
delta logL = 1.18953175843e-06

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.000e-04  1.091e-03  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  2.350e+00  2.497e+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.883e-01  1.713e-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.024e+00  2.286e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 129.963 1.088

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/603032/cmap_HighResolution_394329601_394588801_4FGL_J0839.8+0105_daily_bin598.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.33e-05', job_status='DONE', photon_flux_upper_limit='6.35e-08', time_completed='2021-08-30 03:11:20.822685', job_id='603032', GAL2='0.89', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1630318280.82', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='1.19e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='598' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:11:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 603032: <4FGL_J0839.8+0105_daily_bin598> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin598 129.963 1.0877 394329601 394588801 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 :                                   724.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             258.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   952 sec.
    Turnaround time :                            955 sec.

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

