/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 218 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 = 7648
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0839.8+0105_daily_bin268
RA = 129.963, Dec = 1.0877
tmin = 308793601, tmax = 309052801
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='598582', job_status='RUN', time_executed='2021-08-30 02:50:05.355768', time_epoch_executed='1630317005.36' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='268'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/598582

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/598582/ft1_4FGL_J0839.8+0105_daily_bin268.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/598582/ft2_4FGL_J0839.8+0105_daily_bin268.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/598582/ft1_4FGL_J0839.8+0105_daily_bin268.fits outfile=/scratch/kocevski/598582/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin268.fits ra=129.963 dec=1.0877 rad=12.0 tmin=308793601.0 tmax=309052801.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 3.48
user 3.26
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/598582/ft2_4FGL_J0839.8+0105_daily_bin268.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/598582/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin268.fits evtable="EVENTS" outfile="/scratch/kocevski/598582/ft1_filtered_4FGL_J0839.8+0105_daily_bin268.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 0.63
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/598582/ft1_filtered_4FGL_J0839.8+0105_daily_bin268.fits" evtable="EVENTS" scfile=/scratch/kocevski/598582/ft2_4FGL_J0839.8+0105_daily_bin268.fits sctable="SC_DATA" outfile=/scratch/kocevski/598582/ltcube_308793601_309052801_4FGL_J0839.8+0105_daily_bin268.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/598582/ft2_4FGL_J0839.8+0105_daily_bin268.fits
.....................!
real 11.90
user 11.46
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/598582/ft1_filtered_4FGL_J0839.8+0105_daily_bin268.fits evtable="EVENTS" scfile=/scratch/kocevski/598582/ft2_4FGL_J0839.8+0105_daily_bin268.fits sctable="SC_DATA" expcube=/scratch/kocevski/598582/ltcube_308793601_309052801_4FGL_J0839.8+0105_daily_bin268.fits outfile=/scratch/kocevski/598582/expmap_308793601_309052801_4FGL_J0839.8+0105_daily_bin268.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/598582/ltcube_308793601_309052801_4FGL_J0839.8+0105_daily_bin268.fits
.....................!
real 193.19
user 187.53
sys 4.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/598582/ft1_filtered_4FGL_J0839.8+0105_daily_bin268.fits scfile=/scratch/kocevski/598582/ft2_4FGL_J0839.8+0105_daily_bin268.fits outfile=/scratch/kocevski/598582/cmap_308793601_309052801_4FGL_J0839.8+0105_daily_bin268.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 0.58
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/598582/ft1_filtered_4FGL_J0839.8+0105_daily_bin268.fits scfile=/scratch/kocevski/598582/ft2_4FGL_J0839.8+0105_daily_bin268.fits outfile=/scratch/kocevski/598582/cmap_HighResolution_308793601_309052801_4FGL_J0839.8+0105_daily_bin268.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 0.56
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.477       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13092       1.0000         .10000E-03   10000.    
     3 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.2795       1.0000         .10000E-03   10000.    
     6 'norm      '    3.0202       1.0000         .10000E-03   10000.    
     7 'norm      '    .20815       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14863E-01   1.0000         .10000E-03   10000.    
     9 'norm      '    36.889       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.6036       1.0000         .10000E-03   10000.    
    11 'norm      '    .10110E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10507E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    16.487       1.0000         .10000E-03   10000.    
    15 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    28.865       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.6943       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .75805       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6390.467     FROM MIGRAD    STATUS=CONVERGED    121 CALLS     1679 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.488        10.226       -.98834E-06    .16078E-04
   2  Prefactor     .40724E-02    1503.7        .10309E-03    .10631E-02
   3  norm          .10000E-03    4.9415       -.60990E-06** at limit **
   4  norm          .10000E-03    1.9278        .18528E-06** at limit **
   5  norm          1.2793        1.0101       -.18659E-07   -.15351E-04
   6  norm          3.0867        26.501       -.42108E-05    .12995E-03
   7  norm          .20706        6.6496       -.13147E-09    .17400E-04
   8  Prefactor     .17654E-02    449.36        .58380E-04** at limit **
   9  norm          36.930        27.552       -.27509E-05   -.20861E-02
  10  Prefactor     4.5924        15.058        .21338E-05    .38756E-03
  11  norm          .10000E-03    1.4691       -.20041E-06** at limit **
  12  norm          .10000E-03    4.6508        .40090E-06** at limit **
  13  Prefactor     .10000E-03    12.906       -.56422E-06** at limit **
  14  norm          16.486        5.9718       -.64606E-06   -.43670E-04
  15  norm          .10000E-03    2.1667        .29901E-06** at limit **
  16  Prefactor     28.857        3.1389        .41076E-06    .40356E-03
  17  Prefactor     .10000E-03    1.7649        .10679E-06** at limit **
  18  Normalizat    1.6944        .25336       -.16964E-05   -.75691E-04
  19  Prefactor     .75805        .18173       -.34802E-06   -.61952E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.4875
  Prefactor  = 0.00407244
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.27926
  norm       = 3.08669
  norm       = 0.207064
  Prefactor  = 0.00176543
  norm       = 36.9297
  Prefactor  = 4.59238
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 16.486
  norm       = 0.0001
  Prefactor  = 28.8571
  Prefactor  = 0.0001
  Normalizat = 1.69436
  Prefactor  = 0.758054
 **********
 **   18 **HESSE 
 **********

 FCN=   6390.467     FROM HESSE     STATUS=OK           332 CALLS     2011 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.488        10.269        .23951E-02   -1.4871    
   2  Prefactor     .40724E-02    46.738        .12849       -1.5695    
   3  norm          .10000E-03    4.9183        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.8424        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.2793        1.0016        .98125E-02   -1.5482    
   6  norm          3.0867        31.342        .58381E-02   -1.5357    
   7  norm          .20706        2.4982        .41165E-01   -1.5617    
   8  Prefactor     .17654E-02    52.821        .13230       -1.5716    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          36.930        27.798        .16497E-02   -1.4492    
  10  Prefactor     4.5924        15.184        .46899E-02   -1.5279    
  11  norm          .10000E-03    .69246        .23441E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    4.6290        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.884        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          16.486        5.9794        .24660E-02   -1.4896    
  15  norm          .10000E-03    2.1614        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     28.857        27.507        .18643E-02   -1.4633    
  17  Prefactor     .10000E-03    1.7495        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.6944        .22198        .58716E-01   -.72454    
  19  Prefactor     .75805        .15588        .43169E-01   -1.0129    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24479e-07
Minuit parameter uncertainties:
  1  10.2701
  2  0.862444
  3  2.29638e-06
  4  2.76191e-07
  5  1.00166
  6  19.6847
  7  1.43819
  8  0.59372
  9  27.8079
  10  15.197
  11  1.13465e-07
  12  1.37982e-06
  13  2.67904e-06
  14  5.97963
  15  5.39329e-07
  16  27.5194
  17  1.85449e-07
  18  0.222112
  19  0.155973
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
498    Prefactor:  7.581e-01  1.560e-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.694e+00  2.221e-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.22e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.66e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/598582/likelihoodResults_308793601_309052801_4FGL_J0839.8+0105_daily_bin268.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) = 6390.46779983
delta logL = -0.00102315935419

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6390.4667756
delta logL = 1.06829156721e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10310E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6097       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6944       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75806       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=   6390.467     FROM MIGRAD    STATUS=FAILED        83 CALLS      259 TOTAL
                     EDM=   .64E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10025E-03    1169.2        .17934E-02** at limit **
   2  alpha         2.6706        3.8296        .16481       -.20215E-05
   3  Normalizat    1.6944        .16291        .25963E-03   -.91833E-04
   4  Prefactor     .75805        .11776        .26542E-03   -.61808E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6390.467     FROM SIMPLEX   STATUS=UNCHANGED    160 CALLS      419 TOTAL
                     EDM=   .97E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10025E-03    1169.2        .38343E-03** at limit **
   2  alpha         2.6706        3.8296        .12865E-04   -.20215E-05
   3  Normalizat    1.6944        .16291        .81978E-06   -.91833E-04
   4  Prefactor     .75805        .11776        .66015E-06   -.61808E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6390.467     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      450 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.3783        .35867E-03** at limit **
   2  alpha         2.7339        2.5084        .65923E-02    .30352E-07
   3  Normalizat    1.6944        .24882        .51925E-04    .51977E-04
   4  Prefactor     .75805        .17998        .10617E-04    .53970E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.73395
  Normalizat = 1.69436
  Prefactor  = 0.758054
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.3774        .71735E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.7339        2.6959        .13185E-02    .93715E-01
   3  Normalizat    1.6944        .24880        .10385E-04   -.72454    
   4  Prefactor     .75805        .17996        .21233E-05   -1.0129    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73907e-11
Minuit parameter uncertainties:
  1  1.64666e-05
  2  273.759
  3  0.248986
  4  0.180102
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/598582': 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) = 6390.46677521
delta logL = 1.45961257658e-06

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.000e-04  1.647e-05  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  2.734e+00  2.738e+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:  7.581e-01  1.801e-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.694e+00  2.490e-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/598582/cmap_HighResolution_308793601_309052801_4FGL_J0839.8+0105_daily_bin268.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.66e-05', job_status='DONE', photon_flux_upper_limit='7.22e-08', time_completed='2021-08-30 02:59:26.326001', job_id='598582', GAL2='0.76', fit_tolerance='1e-08', EG2='1.69', EG='1.69', time_epoch_completed='1630317566.33', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='1.46e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='268' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:59:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 598582: <4FGL_J0839.8+0105_daily_bin268> in cluster <slac> Done

Job <4FGL_J0839.8+0105_daily_bin268> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug 30 02:45:52 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 02:45:54 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:54 2021
Terminated at Mon Aug 30 02:59:27 2021
Results reported at Mon Aug 30 02:59:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin268 129.963 1.0877 308793601 309052801 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 :                                   555.31 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             268.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            815 sec.

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

