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


Performing analysis on: 4FGL_J0839.8+0105_daily_bin984
RA = 129.963, Dec = 1.0877
tmin = 494380801, tmax = 494640001
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='605095', job_status='RUN', time_executed='2021-08-30 03:05:19.725913', time_epoch_executed='1630317919.73' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='984'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/605095

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/605095/ft1_4FGL_J0839.8+0105_daily_bin984.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/605095/ft2_4FGL_J0839.8+0105_daily_bin984.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/605095/ft1_4FGL_J0839.8+0105_daily_bin984.fits outfile=/scratch/kocevski/605095/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin984.fits ra=129.963 dec=1.0877 rad=12.0 tmin=494380801.0 tmax=494640001.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 4.28
user 3.38
sys 0.86

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/605095/ft2_4FGL_J0839.8+0105_daily_bin984.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/605095/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin984.fits evtable="EVENTS" outfile="/scratch/kocevski/605095/ft1_filtered_4FGL_J0839.8+0105_daily_bin984.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.17
user 0.30
sys 0.84

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/605095/ft1_filtered_4FGL_J0839.8+0105_daily_bin984.fits evtable="EVENTS" scfile=/scratch/kocevski/605095/ft2_4FGL_J0839.8+0105_daily_bin984.fits sctable="SC_DATA" expcube=/scratch/kocevski/605095/ltcube_494380801_494640001_4FGL_J0839.8+0105_daily_bin984.fits outfile=/scratch/kocevski/605095/expmap_494380801_494640001_4FGL_J0839.8+0105_daily_bin984.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/605095/ltcube_494380801_494640001_4FGL_J0839.8+0105_daily_bin984.fits
.....................!
real 192.12
user 185.94
sys 5.71

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/605095/ft1_filtered_4FGL_J0839.8+0105_daily_bin984.fits scfile=/scratch/kocevski/605095/ft2_4FGL_J0839.8+0105_daily_bin984.fits outfile=/scratch/kocevski/605095/cmap_494380801_494640001_4FGL_J0839.8+0105_daily_bin984.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=129.963 yref=1.0877 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 2.99
user 0.37
sys 0.79

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/605095/ft1_filtered_4FGL_J0839.8+0105_daily_bin984.fits scfile=/scratch/kocevski/605095/ft2_4FGL_J0839.8+0105_daily_bin984.fits outfile=/scratch/kocevski/605095/cmap_HighResolution_494380801_494640001_4FGL_J0839.8+0105_daily_bin984.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=129.963 yref=1.0877 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 2.78
user 0.37
sys 0.80

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.2609       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10211E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.5083       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13180E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.5900       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    35.265       1.0000         .10000E-03   10000.    
    14 'norm      '    12.986       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    43.885       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10336E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.4082       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .59824       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=   5122.701     FROM MIGRAD    STATUS=CONVERGED    385 CALLS     1865 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.1881       -.22559E-05** at limit **
   2  Prefactor     5.2305        33.656       -.53127E-04   -.19764E-04
   3  norm          .10000E-03    3.7817        .21226E-07** at limit **
   4  norm          .10000E-03    .79693       -.94673E-07** at limit **
   5  norm          .10000E-03    .47378       -.53683E-08** at limit **
   6  norm          .10001E-03    19.263        .23897E-06** at limit **
   7  norm          5.5083        3.4115        .55996E-06    .29589E-03
   8  Prefactor     .10000E-03    49.614        .59221E-05** at limit **
   9  norm          .10000E-03    10.939        .50298E-06** at limit **
  10  Prefactor     .10000E-03    7.7506        .11179E-05** at limit **
  11  norm          2.5896        1.2893        .16208E-07    .34250E-04
  12  norm          .10000E-03    9.1255        .51433E-06** at limit **
  13  Prefactor     35.267        29.735        .11466E-05    .12935E-04
  14  norm          12.987        5.7584       -.39010E-06   -.40761E-04
  15  norm          .10000E-03    1.9523       -.18213E-07** at limit **
  16  Prefactor     43.887        32.460        .11788E-05    .13256E-04
  17  Prefactor     .10000E-03    4.2706        .99819E-07** at limit **
  18  Normalizat    1.4081        .21189        .37240E-05   -.43735E-04
  19  Prefactor     .59825        .14774       -.99812E-07    .19699E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.23052
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100012
  norm       = 5.50828
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.58963
  norm       = 0.0001
  Prefactor  = 35.2669
  norm       = 12.9874
  norm       = 0.0001
  Prefactor  = 43.8874
  Prefactor  = 0.0001
  Normalizat = 1.40814
  Prefactor  = 0.598254
 **********
 **   18 **HESSE 
 **********

 FCN=   5122.701     FROM HESSE     STATUS=OK           262 CALLS     2127 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.3452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.2305        33.936        .17524E-03   -1.5251    
   3  norm          .10000E-03    3.7928        .13592E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .80563        .62386E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .47964        .48091E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10001E-03    19.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.5083        3.4140        .10085E-03   -1.5239    
   8  Prefactor     .10000E-03    50.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    10.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.7707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.5896        1.2895        .54633E-04   -1.5386    
  12  norm          .10000E-03    9.2900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     35.267        29.765        .67484E-04   -1.4520    
  14  norm          12.987        5.7759        .10913E-03   -1.4987    
  15  norm          .10000E-03    1.9546        .97659E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     43.887        32.541        .60518E-04   -1.4382    
  17  Prefactor     .10000E-03    4.4424        .28871E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.4081        .24845        .23571E-03   -.80394    
  19  Prefactor     .59825        .17262        .24849E-03   -1.0766    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.69142e-10
Minuit parameter uncertainties:
  1  1.54835e-05
  2  26.6678
  3  1.70904e-06
  4  1.8865e-06
  5  1.74216e-06
  6  0.000960743
  7  3.41412
  8  0.000323987
  9  6.36612e-06
  10  1.39561e-05
  11  1.28952
  12  5.5515e-05
  13  29.7771
  14  5.77616
  15  4.71289e-06
  16  32.5542
  17  2.93907e-05
  18  0.248666
  19  0.172778
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.000e-04  5.551e-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:  5.983e-01  1.728e-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.408e+00  2.487e-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: 7.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.86e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/605095/likelihoodResults_494380801_494640001_4FGL_J0839.8+0105_daily_bin984.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) = 5122.70192854
delta logL = -0.000513084873091

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5122.70141554
delta logL = -8.58508428792e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10247E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2594       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4081       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .59827       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=   5122.701     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      237 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    11.762        .57230E-01** at limit **
   2  alpha         2.5485        2.8095        .16558        .48955E-07
   3  Normalizat    1.4081        .78989E-02    .23571E-03    .69926E-04
   4  Prefactor     .59825        .56969E-02    .24849E-03   -.62220E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.54854
  Normalizat = 1.40814
  Prefactor  = 0.598249
 **********
 **   18 **HESSE 
 **********

 FCN=   5122.701     FROM HESSE     STATUS=OK            25 CALLS      262 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    11.054        .31764E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.5485        3.0958        .66232E-02    .19419E-01
   3  Normalizat    1.4081        .23883        .47142E-04   -.80393    
   4  Prefactor     .59825        .17224        .99398E-05   -1.0766    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10693e-10
Minuit parameter uncertainties:
  1  7.1031e-05
  2  268.221
  3  0.239021
  4  0.172389
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/605095': 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) = 5122.70141483
delta logL = 6.27556801192e-07

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.000e-04  7.103e-05  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  2.549e+00  2.682e+02  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:  5.982e-01  1.724e-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.408e+00  2.390e-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/605095/cmap_HighResolution_494380801_494640001_4FGL_J0839.8+0105_daily_bin984.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.86e-05', job_status='DONE', photon_flux_upper_limit='7.77e-08', time_completed='2021-08-30 03:14:22.043561', job_id='605095', GAL2='0.60', fit_tolerance='1e-08', EG2='1.41', EG='1.41', time_epoch_completed='1630318462.04', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.60', dlogl='6.28e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='984' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:14:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0009>
Subject: Job 605095: <4FGL_J0839.8+0105_daily_bin984> in cluster <slac> Done

Job <4FGL_J0839.8+0105_daily_bin984> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Aug 30 03:00:55 2021
Job was executed on host(s) <bullet0009>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 03:00:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 30 03:00:56 2021
Terminated at Mon Aug 30 03:14:22 2021
Results reported at Mon Aug 30 03:14:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin984 129.963 1.0877 494380801 494640001 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 :                                   527.11 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             250.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   806 sec.
    Turnaround time :                            807 sec.

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

