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


Performing analysis on: 4FGL_J0839.8+0105_daily_bin853
RA = 129.963, Dec = 1.0877
tmin = 460425601, tmax = 460684801
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='604890', job_status='RUN', time_executed='2021-08-30 03:03:46.198795', time_epoch_executed='1630317826.2' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='853'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/604890

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/604890/ft1_4FGL_J0839.8+0105_daily_bin853.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/604890/ft2_4FGL_J0839.8+0105_daily_bin853.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/604890/ft1_4FGL_J0839.8+0105_daily_bin853.fits outfile=/scratch/kocevski/604890/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin853.fits ra=129.963 dec=1.0877 rad=12.0 tmin=460425601.0 tmax=460684801.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.42
user 3.08
sys 1.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/604890/ft1_filtered_4FGL_J0839.8+0105_daily_bin853.fits" evtable="EVENTS" scfile=/scratch/kocevski/604890/ft2_4FGL_J0839.8+0105_daily_bin853.fits sctable="SC_DATA" outfile=/scratch/kocevski/604890/ltcube_460425601_460684801_4FGL_J0839.8+0105_daily_bin853.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/604890/ft2_4FGL_J0839.8+0105_daily_bin853.fits
.....................!
real 13.19
user 11.65
sys 1.43

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/604890/ft1_filtered_4FGL_J0839.8+0105_daily_bin853.fits evtable="EVENTS" scfile=/scratch/kocevski/604890/ft2_4FGL_J0839.8+0105_daily_bin853.fits sctable="SC_DATA" expcube=/scratch/kocevski/604890/ltcube_460425601_460684801_4FGL_J0839.8+0105_daily_bin853.fits outfile=/scratch/kocevski/604890/expmap_460425601_460684801_4FGL_J0839.8+0105_daily_bin853.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/604890/ltcube_460425601_460684801_4FGL_J0839.8+0105_daily_bin853.fits
.....................!
real 192.58
user 185.32
sys 6.69

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/604890/ft1_filtered_4FGL_J0839.8+0105_daily_bin853.fits scfile=/scratch/kocevski/604890/ft2_4FGL_J0839.8+0105_daily_bin853.fits outfile=/scratch/kocevski/604890/cmap_460425601_460684801_4FGL_J0839.8+0105_daily_bin853.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.53
user 0.36
sys 1.10

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/604890/ft1_filtered_4FGL_J0839.8+0105_daily_bin853.fits scfile=/scratch/kocevski/604890/ft2_4FGL_J0839.8+0105_daily_bin853.fits outfile=/scratch/kocevski/604890/cmap_HighResolution_460425601_460684801_4FGL_J0839.8+0105_daily_bin853.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.57
user 0.37
sys 1.10

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.548       1.0000         .10000E-03   10000.    
     3 'norm      '    10.524       1.0000         .10000E-03   10000.    
     4 'norm      '    2.3952       1.0000         .10000E-03   10000.    
     5 'norm      '    4.4145       1.0000         .10000E-03   10000.    
     6 'norm      '    8.3622       1.0000         .10000E-03   10000.    
     7 'norm      '    13.296       1.0000         .10000E-03   10000.    
     8 'Prefactor '    29.310       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.2530       1.0000         .10000E-03   10000.    
    12 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    74.272       1.0000         .10000E-03   10000.    
    14 'norm      '    9.9077       1.0000         .10000E-03   10000.    
    15 'norm      '    6.1128       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .97488       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0248       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=   6143.380     FROM MIGRAD    STATUS=CONVERGED    372 CALLS     1894 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.6760       -.50038E-07** at limit **
   2  Prefactor     16.534        44.014       -.43942E-05   -.64160E-04
   3  norm          10.525        8.5715        .42647E-07   -.68604E-05
   4  norm          2.3952        2.0446        .37990E-07   -.70733E-05
   5  norm          4.4144        1.9020        .26332E-07   -.27268E-04
   6  norm          8.3821        30.189        .77815E-05    .12849E-03
   7  norm          13.297        5.2727        .27006E-07   -.26482E-04
   8  Prefactor     29.293        45.987       -.45539E-05   -.10621E-03
   9  norm          .10000E-03    13.171        .24678E-06** at limit **
  10  Prefactor     .10000E-03    6.9457       -.95976E-07** at limit **
  11  norm          1.2533        .95244        .25434E-07   -.14114E-04
  12  norm          .10000E-03    4.5763       -.58514E-07** at limit **
  13  Prefactor     74.277        38.483        .80290E-06    .79135E-04
  14  norm          9.9083        5.7632       -.23743E-06   -.55285E-04
  15  norm          6.1106        8.0291        .32656E-05   -.53635E-03
  16  Prefactor     .10000E-03    43.869       -.29014E-06** at limit **
  17  Prefactor     .10000E-03    2.2090        .46010E-07** at limit **
  18  Normalizat    .97455        .21749        .72299E-06   -.66479E-04
  19  Prefactor     1.0250        .15891       -.10232E-05    .43663E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 16.5341
  norm       = 10.5246
  norm       = 2.3952
  norm       = 4.41438
  norm       = 8.38214
  norm       = 13.2967
  Prefactor  = 29.293
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.25329
  norm       = 0.0001
  Prefactor  = 74.2767
  norm       = 9.90827
  norm       = 6.11059
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.974548
  Prefactor  = 1.025
 **********
 **   18 **HESSE 
 **********

 FCN=   6143.380     FROM HESSE     STATUS=OK           270 CALLS     2164 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.6856        .12521E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.534        45.037        .98458E-04   -1.4894    
   3  norm          10.525        8.5707        .12351E-03   -1.5059    
   4  norm          2.3952        2.0420        .99507E-04   -1.5398    
   5  norm          4.4144        1.9024        .67753E-04   -1.5288    
   6  norm          8.3821        31.983        .13863E-03   -1.5129    
   7  norm          13.297        5.2703        .10793E-03   -1.4979    
   8  Prefactor     29.293        47.667        .74003E-04   -1.4625    
   9  norm          .10000E-03    13.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.9666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.2533        .95256        .63855E-04   -1.5484    
  12  norm          .10000E-03    4.6574        .16372E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     74.277        38.562        .46588E-04   -1.3982    
  14  norm          9.9083        5.7706        .12731E-03   -1.5078    
  15  norm          6.1106        8.4595        .81192E-03   -1.5214    
  16  Prefactor     .10000E-03    44.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.2370        .11373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .97455        .25609        .30380E-03   -.93888    
  19  Prefactor     1.0250        .18656        .22310E-03   -.91901    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.13701e-10
Minuit parameter uncertainties:
  1  1.43977e-06
  2  45.13
  3  8.57166
  4  2.04206
  5  1.90244
  6  32.0482
  7  5.27049
  8  47.7292
  9  1.84197e-05
  10  1.20999e-05
  11  0.952574
  12  3.2699e-06
  13  38.5752
  14  5.77089
  15  8.46119
  16  0.000160752
  17  5.74502e-07
  18  0.256411
  19  0.186679
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.000e-04  3.270e-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:  1.025e+00  1.867e-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:  9.745e-01  2.564e-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: 5.51e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.03e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/604890/likelihoodResults_460425601_460684801_4FGL_J0839.8+0105_daily_bin853.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6143.38118159
delta logL = -0.00102275638892

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6143.38015736
delta logL = 1.47374430526e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11220E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6405       1.0000          .0000       5.0000    
     3 'Normalizat'    .97456       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0250       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=   6143.380     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      271 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    228.64        .36285E-02** at limit **
   2  alpha         3.2190        4.0458        .50000        .13938E-07
   3  Normalizat    .97455        .30474E-01    .30380E-03   -.52063E-03
   4  Prefactor     1.0250        .23026E-01    .22310E-03   -.74493E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 3.21896
  Normalizat = 0.974548
  Prefactor  = 1.025
 **********
 **   18 **HESSE 
 **********

 FCN=   6143.380     FROM HESSE     STATUS=OK            27 CALLS      298 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    46.813        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.2190        3.2855        .20000        .29170    
   3  Normalizat    .97455        .24334        .60760E-04   -.93888    
   4  Prefactor     1.0250        .18402        .44620E-04   -.91901    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.79941e-10
Minuit parameter uncertainties:
  1  0.000124392
  2  748.168
  3  0.243612
  4  0.184132
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/604890': 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) = 6143.38015484
delta logL = 3.99616601499e-06

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.000e-04  1.244e-04  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  3.219e+00  7.482e+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:  1.025e+00  1.841e-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:  9.745e-01  2.436e-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/604890/cmap_HighResolution_460425601_460684801_4FGL_J0839.8+0105_daily_bin853.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.03e-05', job_status='DONE', photon_flux_upper_limit='5.51e-08', time_completed='2021-08-30 03:13:21.760006', job_id='604890', GAL2='1.03', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1630318401.76', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='4.00e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='853' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:13:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0174>
Subject: Job 604890: <4FGL_J0839.8+0105_daily_bin853> in cluster <slac> Done

Job <4FGL_J0839.8+0105_daily_bin853> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Aug 30 03:00:37 2021
Job was executed on host(s) <bullet0174>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 03:00:39 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:39 2021
Terminated at Mon Aug 30 03:13:22 2021
Results reported at Mon Aug 30 03:13:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin853 129.963 1.0877 460425601 460684801 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 :                                   579.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             276.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   763 sec.
    Turnaround time :                            765 sec.

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

