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


Performing analysis on: 4FGL_J0839.8+0105_daily_bin724
RA = 129.963, Dec = 1.0877
tmin = 426988801, tmax = 427248001
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='603222', job_status='RUN', time_executed='2021-08-30 02:58:56.635493', time_epoch_executed='1630317536.64' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='724'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603222

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603222/ft1_4FGL_J0839.8+0105_daily_bin724.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603222/ft2_4FGL_J0839.8+0105_daily_bin724.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603222/ft1_4FGL_J0839.8+0105_daily_bin724.fits outfile=/scratch/kocevski/603222/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin724.fits ra=129.963 dec=1.0877 rad=12.0 tmin=426988801.0 tmax=427248001.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.50
user 5.50
sys 0.94

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603222/ft1_filtered_4FGL_J0839.8+0105_daily_bin724.fits evtable="EVENTS" scfile=/scratch/kocevski/603222/ft2_4FGL_J0839.8+0105_daily_bin724.fits sctable="SC_DATA" expcube=/scratch/kocevski/603222/ltcube_426988801_427248001_4FGL_J0839.8+0105_daily_bin724.fits outfile=/scratch/kocevski/603222/expmap_426988801_427248001_4FGL_J0839.8+0105_daily_bin724.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/603222/ltcube_426988801_427248001_4FGL_J0839.8+0105_daily_bin724.fits
.....................!
real 191.62
user 185.63
sys 5.64

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/603222/ft1_filtered_4FGL_J0839.8+0105_daily_bin724.fits scfile=/scratch/kocevski/603222/ft2_4FGL_J0839.8+0105_daily_bin724.fits outfile=/scratch/kocevski/603222/cmap_426988801_427248001_4FGL_J0839.8+0105_daily_bin724.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.62
user 0.35
sys 0.84

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603222/ft1_filtered_4FGL_J0839.8+0105_daily_bin724.fits scfile=/scratch/kocevski/603222/ft2_4FGL_J0839.8+0105_daily_bin724.fits outfile=/scratch/kocevski/603222/cmap_HighResolution_426988801_427248001_4FGL_J0839.8+0105_daily_bin724.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.21
user 0.39
sys 0.82

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    9.3387       1.0000         .10000E-03   10000.    
     3 'norm      '    1.3478       1.0000         .10000E-03   10000.    
     4 'norm      '    2.8124       1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10223E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    12.742       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.5819       1.0000         .10000E-03   10000.    
     9 'norm      '    11.212       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .95270       1.0000         .10000E-03   10000.    
    12 'norm      '    12.112       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.0108       1.0000         .10000E-03   10000.    
    14 'norm      '    .32938E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.4352       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .56280       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .78252       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0902       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=   6291.377     FROM MIGRAD    STATUS=CONVERGED    408 CALLS     1690 TOTAL
                     EDM=   .22E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.6639       -.17284E-07** at limit **
   2  Prefactor     9.3445        32.861        .14428E-04    .67341E-05
   3  norm          1.3444        2.4678        .85014E-07   -.34062E-03
   4  norm          2.8123        2.0773        .14737E-08   -.16391E-04
   5  norm          .10000E-03    .79519        .21833E-07** at limit **
   6  norm          .10000E-03    6.2884       -.41706E-07** at limit **
   7  norm          12.745        6.0944       -.72805E-06   -.57117E-04
   8  Prefactor     1.5131        91.402       -.32004E-05   -.11453E-04
   9  norm          11.222        23.169       -.43527E-06   -.42472E-06
  10  Prefactor     .10000E-03    6.3857       -.89796E-07** at limit **
  11  norm          .95253        .94823       -.14454E-07   -.53707E-04
  12  norm          12.111        8.8212        .15178E-06   -.17421E-05
  13  Prefactor     7.0132        15.994       -.56664E-05   -.30908E-05
  14  norm          .10000E-03    1.6004        .56587E-07** at limit **
  15  norm          6.4350        6.6596        .11821E-07   -.22290E-03
  16  Prefactor     .10000E-03    16.231       -.29643E-07** at limit **
  17  Prefactor     .57145        3.0661        .32393E-07   -.33401E-04
  18  Normalizat    .78260        .18908       -.68381E-06    .11086E-04
  19  Prefactor     1.0901        .14384        .32029E-06   -.51561E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 9.34454
  norm       = 1.34442
  norm       = 2.81231
  norm       = 0.0001
  norm       = 0.0001
  norm       = 12.7446
  Prefactor  = 1.51311
  norm       = 11.2222
  Prefactor  = 0.0001
  norm       = 0.952532
  norm       = 12.111
  Prefactor  = 7.01315
  norm       = 0.0001
  norm       = 6.43497
  Prefactor  = 0.0001
  Prefactor  = 0.571455
  Normalizat = 0.782598
  Prefactor  = 1.09011
 **********
 **   18 **HESSE 
 **********

 FCN=   6291.377     FROM HESSE     STATUS=OK           280 CALLS     1970 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.6693        .12641E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.3445        32.854        .13114E-03   -1.5096    
   3  norm          1.3444        22.305        .18852E-02   -1.5476    
   4  norm          2.8123        2.0526        .93823E-04   -1.5373    
   5  norm          .10000E-03    1.5765        .13507E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    6.2928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          12.745        6.1261        .11222E-03   -1.4994    
   8  Prefactor     1.5131        92.748        .33764E-03   -1.5462    
   9  norm          11.222        23.163        .11964E-03   -1.5038    
  10  Prefactor     .10000E-03    6.4138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .95253        .90876        .72938E-03   -1.5513    
  12  norm          12.111        8.8230        .11510E-03   -1.5012    
  13  Prefactor     7.0132        15.985        .15151E-03   -1.5178    
  14  norm          .10000E-03    13.313        .19199E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.4350        6.8489        .79107E-03   -1.5201    
  16  Prefactor     .10000E-03    16.353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .57145        6.1497        .26245E-02   -1.5557    
  18  Normalizat    .78260        .21955        .29204E-03   -1.0072    
  19  Prefactor     1.0901        .16774        .19759E-03   -.89783    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.16831e-08
Minuit parameter uncertainties:
  1  6.03508e-08
  2  32.9177
  3  10.9564
  4  2.05263
  5  2.73568e-06
  6  2.67035e-05
  7  6.12638
  8  23.7307
  9  23.1819
  10  2.73153e-09
  11  0.908771
  12  8.82395
  13  15.9949
  14  6.01562e-05
  15  6.84977
  16  6.37939e-06
  17  3.74945
  18  0.219801
  19  0.167816
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.211e+01  8.824e+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.090e+00  1.678e-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:  7.826e-01  2.198e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.20
Ra Dec: 129.963 1.088
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 4.70e-08 +/- 3.43e-08
Energy Flux (Fixed Index): 1.73e-05 +/- 1.26e-05

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

Saving results to:
/scratch/kocevski/603222/likelihoodResults_426988801_427248001_4FGL_J0839.8+0105_daily_bin724.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) = 6291.37438876
delta logL = 0.00232678633802

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6291.37403963
delta logL = 0.00267592045202

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.919       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2970       1.0000          .0000       5.0000    
     3 'Normalizat'    .77968       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0917       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=   6291.374     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      268 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.922        9.2317        .11603E-03    .23025E-04
   2  alpha         2.2967        .76208        .17853E-01    .64352E-04
   3  Normalizat    .77968        .21378        .29254E-03    .39250E-05
   4  Prefactor     1.0916        .16738        .19747E-03    .69086E-07
                               ERR DEF=  .500    
Final values: 
  norm       = 11.9224
  alpha      = 2.29671
  Normalizat = 0.779682
  Prefactor  = 1.09165
 **********
 **   18 **HESSE 
 **********

 FCN=   6291.374     FROM HESSE     STATUS=OK            25 CALLS      293 TOTAL
                     EDM=   .75E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.922        9.1121        .46413E-05   -1.5017    
   2  alpha         2.2967        .75183        .35707E-02   -.81406E-01
   3  Normalizat    .77968        .21373        .11702E-04   -1.0083    
   4  Prefactor     1.0916        .16738        .39494E-04   -.89734    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.51209e-13
Minuit parameter uncertainties:
  1  9.11321
  2  0.763728
  3  0.213963
  4  0.167461
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603222': 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) = 6291.37403945
delta logL = 0.0026760932933

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.192e+01  9.113e+00  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  2.297e+00  7.637e-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.092e+00  1.675e-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:  7.797e-01  2.140e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.20
Ra Dec: 129.963 1.088
Photon Index (Free Index): 2.30 +/- 0.76
Photon Flux (Free Index): 4.89e-08 +/- 4.33e-08
Energy Flux (Free Index): 1.71e-05 +/- 1.27e-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/603222/cmap_HighResolution_426988801_427248001_4FGL_J0839.8+0105_daily_bin724.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.45e-05', comment='SUCCESS', photon_flux='4.70e-08', energy_flux2='1.71e-05', photon_flux_error='3.43e-08', dlogl='2.68e-03', energy_flux='1.73e-05', photon_flux2='4.89e-08', job_status='DONE', time_completed='2021-08-30 03:08:27.464011', photon_index_error2='0.76', photon_index2='2.30', ts='3.20', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='1.21e-07', energy_flux_error2='1.27e-05', EG='0.78', time_epoch_completed='1630318107.46', return_code='0', job_id='603222', GAL2='1.09', EG2='0.78', return_code2='0', energy_flux_error='1.26e-05', photon_flux_error2='4.33e-08', ts2='3.20', photon_index='2.24' WHERE bin_id='724' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:08:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 603222: <4FGL_J0839.8+0105_daily_bin724> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin724 129.963 1.0877 426988801 427248001 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 :                                   576.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             315.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   766 sec.
    Turnaround time :                            769 sec.

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

