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


Performing analysis on: 4FGL_J0839.8+0105_daily_bin38
RA = 129.963, Dec = 1.0877
tmin = 249177601, tmax = 249436801
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='598235', job_status='RUN', time_executed='2021-08-30 02:46:41.590842', time_epoch_executed='1630316801.59' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='38'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/598235

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/598235/ft1_4FGL_J0839.8+0105_daily_bin38.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/598235/ft2_4FGL_J0839.8+0105_daily_bin38.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/598235/ft1_4FGL_J0839.8+0105_daily_bin38.fits outfile=/scratch/kocevski/598235/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin38.fits ra=129.963 dec=1.0877 rad=12.0 tmin=249177601.0 tmax=249436801.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 5.07
user 1.24
sys 3.72

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/598235/ft1_filtered_4FGL_J0839.8+0105_daily_bin38.fits" evtable="EVENTS" scfile=/scratch/kocevski/598235/ft2_4FGL_J0839.8+0105_daily_bin38.fits sctable="SC_DATA" outfile=/scratch/kocevski/598235/ltcube_249177601_249436801_4FGL_J0839.8+0105_daily_bin38.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/598235/ft2_4FGL_J0839.8+0105_daily_bin38.fits
.....................!
real 17.45
user 12.97
sys 4.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/598235/ft1_filtered_4FGL_J0839.8+0105_daily_bin38.fits evtable="EVENTS" scfile=/scratch/kocevski/598235/ft2_4FGL_J0839.8+0105_daily_bin38.fits sctable="SC_DATA" expcube=/scratch/kocevski/598235/ltcube_249177601_249436801_4FGL_J0839.8+0105_daily_bin38.fits outfile=/scratch/kocevski/598235/expmap_249177601_249436801_4FGL_J0839.8+0105_daily_bin38.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/598235/ltcube_249177601_249436801_4FGL_J0839.8+0105_daily_bin38.fits
.....................!
real 195.15
user 185.59
sys 8.94

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/598235/ft1_filtered_4FGL_J0839.8+0105_daily_bin38.fits scfile=/scratch/kocevski/598235/ft2_4FGL_J0839.8+0105_daily_bin38.fits outfile=/scratch/kocevski/598235/cmap_249177601_249436801_4FGL_J0839.8+0105_daily_bin38.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.05
user 0.39
sys 3.62

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/598235/ft1_filtered_4FGL_J0839.8+0105_daily_bin38.fits scfile=/scratch/kocevski/598235/ft2_4FGL_J0839.8+0105_daily_bin38.fits outfile=/scratch/kocevski/598235/cmap_HighResolution_249177601_249436801_4FGL_J0839.8+0105_daily_bin38.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.13
user 0.38
sys 3.62

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.705       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.4127       1.0000         .10000E-03   10000.    
     3 'norm      '    16.007       1.0000         .10000E-03   10000.    
     4 'norm      '    2.9471       1.0000         .10000E-03   10000.    
     5 'norm      '    2.3890       1.0000         .10000E-03   10000.    
     6 'norm      '    15.131       1.0000         .10000E-03   10000.    
     7 'norm      '    2.1700       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.1935       1.0000         .10000E-03   10000.    
     9 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .47165       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.7995       1.0000         .10000E-03   10000.    
    15 'norm      '    9.4621       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1919       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .87357       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=   7562.503     FROM MIGRAD    STATUS=CONVERGED    389 CALLS     1885 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.706        7.2897       -.14891E-06   -.32087E-04
   2  Prefactor     3.4290        51.769        .33519E-04    .10040E-04
   3  norm          16.007        9.4869       -.66445E-07   -.57117E-04
   4  norm          2.9473        2.0184       -.42807E-07   -.22952E-03
   5  norm          2.3890        1.4688       -.30333E-07   -.34867E-03
   6  norm          15.127        22.057       -.86030E-05   -.15744E-03
   7  norm          2.1703        3.2589       -.68192E-06   -.89724E-03
   8  Prefactor     4.1905        52.292       -.38127E-05   -.35212E-04
   9  norm          .10000E-03    15.167       -.42456E-06** at limit **
  10  Prefactor     .10000E-03    9.3217        .36757E-06** at limit **
  11  norm          .47189        .71575       -.80295E-07   -.12071E-02
  12  norm          .10000E-03    1.6961       -.11380E-06** at limit **
  13  Prefactor     .10000E-03    12.667       -.54138E-06** at limit **
  14  norm          3.7998        3.4569       -.12663E-06   -.38155E-03
  15  norm          9.4619        5.8478       -.20563E-06   -.59720E-04
  16  Prefactor     .10000E-03    6.9573       -.20937E-06** at limit **
  17  Prefactor     .10000E-03    2.0699       -.15235E-06** at limit **
  18  Normalizat    1.1920        .17884        .29313E-06   -.79437E-04
  19  Prefactor     .87346        .13374        .10194E-06   -.72274E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.7058
  Prefactor  = 3.42902
  norm       = 16.007
  norm       = 2.94729
  norm       = 2.38905
  norm       = 15.127
  norm       = 2.17025
  Prefactor  = 4.19051
  norm       = 0.0001
  Prefactor  = 0.000100004
  norm       = 0.471886
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.79977
  norm       = 9.46188
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.19201
  Prefactor  = 0.87346
 **********
 **   18 **HESSE 
 **********

 FCN=   7562.503     FROM HESSE     STATUS=OK           280 CALLS     2165 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.706        7.2845        .12245E-03   -1.5053    
   2  Prefactor     3.4290        50.445        .21898E-03   -1.5338    
   3  norm          16.007        9.4789        .10011E-03   -1.4908    
   4  norm          2.9473        2.0113        .97080E-04   -1.5365    
   5  norm          2.3890        1.4639        .78202E-04   -1.5399    
   6  norm          15.127        21.823        .10296E-03   -1.4930    
   7  norm          2.1703        3.2727        .18477E-03   -1.5413    
   8  Prefactor     4.1905        51.550        .19680E-03   -1.5299    
   9  norm          .10000E-03    15.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    65.906        .50708E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .47189        .60410        .86537E-03   -1.5571    
  12  norm          .10000E-03    1.6982        .11060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.7998        3.4542        .14775E-03   -1.5318    
  15  norm          9.4619        5.8472        .13028E-03   -1.5093    
  16  Prefactor     .10000E-03    6.9659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.1329        .24426E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.1920        .21068        .26016E-03   -.86850    
  19  Prefactor     .87346        .15903        .22740E-03   -.97075    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.74889e-10
Minuit parameter uncertainties:
  1  7.28511
  2  26.3304
  3  9.47979
  4  2.01139
  5  1.46395
  6  21.8346
  7  3.27299
  8  29.4266
  9  1.05754e-06
  10  0.00106453
  11  0.604104
  12  2.00701e-07
  13  2.93755e-06
  14  3.45435
  15  5.8476
  16  1.31972e-07
  17  2.14686e-07
  18  0.21083
  19  0.15911
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.000e-04  2.007e-07  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.735e-01  1.591e-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.192e+00  2.108e-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: 3.61e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.33e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/598235/likelihoodResults_249177601_249436801_4FGL_J0839.8+0105_daily_bin38.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) = 7562.5053296
delta logL = -0.00275775535738

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7562.50257185
delta logL = -3.41515260516e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2437       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1920       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87347       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7562.344     FROM MIGRAD    STATUS=FAILED       321 CALLS      456 TOTAL
                     EDM=   .68E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12910        23.037        .11062E-01    .17861E-02
   2  alpha         5.0000        2.5122        .16571    ** at limit **
   3  Normalizat    1.1595        .36331        .26016E-03   -.35960E-03
   4  Prefactor     .88916        .10457        .22740E-03   -.21513E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7562.344     FROM SIMPLEX   STATUS=UNCHANGED    142 CALLS      598 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12910        23.037        .16621E-05    .17861E-02
   2  alpha         5.0000        2.5122        .88256E-02** at limit **
   3  Normalizat    1.1595        .36331        .18150E-05   -.35960E-03
   4  Prefactor     .88916        .10457        .21534E-06   -.21513E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7562.344     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      646 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12910        .24782        .56557E-04    .11076E-03
   2  alpha         5.0000        3.5081        .33142E-01** at limit **
   3  Normalizat    1.1595        .21236        .52031E-04    .94828E-04
   4  Prefactor     .88916        .15907        .90959E-05    .10299E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.129101
  alpha      = 5
  Normalizat = 1.15948
  Prefactor  = 0.889163
 **********
 **   18 **HESSE 
 **********

 FCN=   7562.344     FROM HESSE     STATUS=OK            23 CALLS      669 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .12910        .24767        .22623E-05   -1.5636    
   2  alpha         5.0000        3.5080        .66285E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.1595        .21230        .10406E-04   -.87864    
   4  Prefactor     .88916        .15903        .18192E-05   -.96521    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68684e-11
Minuit parameter uncertainties:
  1  0.247671
  2  1.35685e-05
  3  0.212453
  4  0.159115
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/598235': 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) = 7562.34377234
delta logL = 0.158799507178

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.291e-01  2.477e-01  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  5.000e+00  1.357e-05  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.892e-01  1.591e-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.159e+00  2.125e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/598235/cmap_HighResolution_249177601_249436801_4FGL_J0839.8+0105_daily_bin38.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.33e-05', job_status='DONE', photon_flux_upper_limit='3.61e-08', time_completed='2021-08-30 02:58:00.840450', job_id='598235', GAL2='0.89', fit_tolerance='1e-08', EG2='1.16', EG='1.19', time_epoch_completed='1630317480.84', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='1.59e-01', ts2='0.34', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='38' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:58:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0142>
Subject: Job 598235: <4FGL_J0839.8+0105_daily_bin38> in cluster <slac> Done

Job <4FGL_J0839.8+0105_daily_bin38> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug 30 02:45:27 2021
Job was executed on host(s) <bullet0142>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 02:45:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 30 02:45:28 2021
Terminated at Mon Aug 30 02:58:02 2021
Results reported at Mon Aug 30 02:58:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin38 129.963 1.0877 249177601 249436801 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 :                                   730.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             332.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   753 sec.
    Turnaround time :                            755 sec.

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

