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


Performing analysis on: 4FGL_J0839.8+0105_daily_bin554
RA = 129.963, Dec = 1.0877
tmin = 382924801, tmax = 383184001
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='601286', job_status='RUN', time_executed='2021-08-30 02:53:15.220629', time_epoch_executed='1630317195.22' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='554'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/601286

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/601286/ft1_4FGL_J0839.8+0105_daily_bin554.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/601286/ft2_4FGL_J0839.8+0105_daily_bin554.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/601286/ft1_4FGL_J0839.8+0105_daily_bin554.fits outfile=/scratch/kocevski/601286/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin554.fits ra=129.963 dec=1.0877 rad=12.0 tmin=382924801.0 tmax=383184001.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 12.74
user 4.20
sys 7.78

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/601286/ft1_filtered_4FGL_J0839.8+0105_daily_bin554.fits evtable="EVENTS" scfile=/scratch/kocevski/601286/ft2_4FGL_J0839.8+0105_daily_bin554.fits sctable="SC_DATA" expcube=/scratch/kocevski/601286/ltcube_382924801_383184001_4FGL_J0839.8+0105_daily_bin554.fits outfile=/scratch/kocevski/601286/expmap_382924801_383184001_4FGL_J0839.8+0105_daily_bin554.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/601286/ltcube_382924801_383184001_4FGL_J0839.8+0105_daily_bin554.fits
.....................!
real 205.29
user 186.86
sys 16.81

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/601286/ft1_filtered_4FGL_J0839.8+0105_daily_bin554.fits scfile=/scratch/kocevski/601286/ft2_4FGL_J0839.8+0105_daily_bin554.fits outfile=/scratch/kocevski/601286/cmap_382924801_383184001_4FGL_J0839.8+0105_daily_bin554.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 8.46
user 0.34
sys 7.40

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/601286/ft1_filtered_4FGL_J0839.8+0105_daily_bin554.fits scfile=/scratch/kocevski/601286/ft2_4FGL_J0839.8+0105_daily_bin554.fits outfile=/scratch/kocevski/601286/cmap_HighResolution_382924801_383184001_4FGL_J0839.8+0105_daily_bin554.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 8.41
user 0.37
sys 7.48

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8212       1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.865       1.0000         .10000E-03   10000.    
     3 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.2523       1.0000         .10000E-03   10000.    
     6 'norm      '    5.3405       1.0000         .10000E-03   10000.    
     7 'norm      '    .10450E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    9.7740       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.573       1.0000         .10000E-03   10000.    
    11 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    14.147       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.0087       1.0000         .10000E-03   10000.    
    14 'norm      '    2.6026       1.0000         .10000E-03   10000.    
    15 'norm      '    6.3419       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10223E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.6650       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1426       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .89113       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=   4954.768     FROM MIGRAD    STATUS=CONVERGED    383 CALLS     1642 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8195        6.3441        .82696E-05   -.38610E-03
   2  Prefactor     19.844        34.958        .59198E-05    .19821E-03
   3  norm          .10000E-03    20.562       -.10155E-05** at limit **
   4  norm          .10000E-03    1.1369        .66161E-08** at limit **
   5  norm          4.2517        2.6624       -.98323E-07    .96709E-04
   6  norm          5.3398        15.728       -.16558E-05   -.46962E-04
   7  norm          .10000E-03    4.3696       -.11076E-05** at limit **
   8  Prefactor     .10000E-03    10.394       -.14071E-06** at limit **
   9  norm          9.7672        40.622        .30026E-05    .35286E-04
  10  Prefactor     10.568        12.158        .23980E-06    .38641E-04
  11  norm          .10000E-03    .32604       -.13840E-06** at limit **
  12  norm          14.150        9.5759        .98993E-07    .53671E-04
  13  Prefactor     6.0362        79.015       -.14257E-04   -.92487E-04
  14  norm          2.6040        3.8791        .16125E-06    .38107E-04
  15  norm          6.3423        4.9085        .40800E-07    .32259E-04
  16  Prefactor     .10000E-03    8.8077       -.75047E-07** at limit **
  17  Prefactor     1.6661        4.6847        .17540E-07   -.68615E-04
  18  Normalizat    1.1421        .21861       -.57325E-06    .11666E-03
  19  Prefactor     .89152        .16350        .36431E-06    .28284E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.81951
  Prefactor  = 19.8445
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 4.2517
  norm       = 5.33981
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 9.76724
  Prefactor  = 10.568
  norm       = 0.0001
  norm       = 14.1504
  Prefactor  = 6.0362
  norm       = 2.60403
  norm       = 6.34229
  Prefactor  = 0.0001
  Prefactor  = 1.66612
  Normalizat = 1.14208
  Prefactor  = 0.891521
 **********
 **   18 **HESSE 
 **********

 FCN=   4954.768     FROM HESSE     STATUS=OK           272 CALLS     1914 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8195        6.4028        .15470E-02   -1.5438    
   2  Prefactor     19.844        35.064        .89864E-04   -1.4817    
   3  norm          .10000E-03    21.297        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.1471        .73219E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.2517        2.6659        .84624E-04   -1.5296    
   6  norm          5.3398        15.703        .17391E-03   -1.5246    
   7  norm          .10000E-03    4.5335        .28811E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          9.7672        40.776        .12818E-03   -1.5083    
  10  Prefactor     10.568        12.171        .12322E-03   -1.5058    
  11  norm          .10000E-03    .40361        .78252E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          14.150        9.5777        .10649E-03   -1.4955    
  13  Prefactor     6.0362        80.044        .16380E-03   -1.5217    
  14  norm          2.6040        3.8614        .16218E-03   -1.5385    
  15  norm          6.3423        4.9092        .13361E-03   -1.5204    
  16  Prefactor     .10000E-03    8.8154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.6661        4.6718        .24232E-03   -1.5450    
  18  Normalizat    1.1421        .26071        .26292E-03   -.88412    
  19  Prefactor     .89152        .19591        .22189E-03   -.96438    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31359e-09
Minuit parameter uncertainties:
  1  6.4052
  2  35.1007
  3  0.000222395
  4  1.11352e-06
  5  2.66593
  6  15.715
  7  0.000127793
  8  3.21764e-05
  9  39.9601
  10  12.1737
  11  3.80336e-06
  12  9.57877
  13  44.0338
  14  3.8618
  15  4.90949
  16  2.89182e-06
  17  4.67283
  18  0.261002
  19  0.196069
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
498    Prefactor:  8.915e-01  1.961e-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.142e+00  2.610e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.49
Ra Dec: 129.963 1.088
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 5.50e-08 +/- 3.72e-08
Energy Flux (Fixed Index): 2.02e-05 +/- 1.37e-05

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) = 4954.76753957
delta logL = 0.000689956934366

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4954.76739895
delta logL = 0.000830581637274

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.991       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2742       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1405       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89239       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=   4954.767     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      246 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.993        10.444        .10708E-03   -.21477E-02
   2  alpha         2.2740        .80474        .16469E-01   -.22926E-03
   3  Normalizat    1.1405        .25178        .26308E-03    .28384E-03
   4  Prefactor     .89240        .18988        .22179E-03    .51423E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 13.9929
  alpha      = 2.27405
  Normalizat = 1.14045
  Prefactor  = 0.892396
 **********
 **   18 **HESSE 
 **********

 FCN=   4954.767     FROM HESSE     STATUS=OK            23 CALLS      269 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.993        10.270        .21416E-04   -1.4960    
   2  alpha         2.2740        .79130        .65877E-03   -.90504E-01
   3  Normalizat    1.1405        .25179        .52616E-04   -.88463    
   4  Prefactor     .89240        .18993        .44359E-04   -.96407    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.15637e-09
Minuit parameter uncertainties:
  1  10.2714
  2  0.805265
  3  0.252059
  4  0.190068
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/601286': 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) = 4954.76739892
delta logL = 0.000830612751997

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
498    Prefactor:  8.924e-01  1.901e-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.140e+00  2.521e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.48
Ra Dec: 129.963 1.088
Photon Index (Free Index): 2.27 +/- 0.81
Photon Flux (Free Index): 5.61e-08 +/- 4.73e-08
Energy Flux (Free Index): 2.00e-05 +/- 1.43e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/601286/cmap_HighResolution_382924801_383184001_4FGL_J0839.8+0105_daily_bin554.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.50e-08', energy_flux2='2.00e-05', photon_flux_error='3.72e-08', dlogl='8.31e-04', energy_flux='2.02e-05', photon_flux2='5.61e-08', job_status='DONE', time_completed='2021-08-30 03:03:10.294860', photon_index_error2='0.81', photon_index2='2.27', ts='4.49', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='1.43e-05', EG='1.14', time_epoch_completed='1630317790.29', return_code='0', job_id='601286', GAL2='0.89', EG2='1.14', return_code2='0', energy_flux_error='1.37e-05', photon_flux_error2='4.73e-08', ts2='4.48', photon_index='2.24' WHERE bin_id='554' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:03:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0130>
Subject: Job 601286: <4FGL_J0839.8+0105_daily_bin554> in cluster <slac> Done

Job <4FGL_J0839.8+0105_daily_bin554> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug 30 02:50:47 2021
Job was executed on host(s) <bullet0130>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 02:50:50 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:50:50 2021
Terminated at Mon Aug 30 03:03:12 2021
Results reported at Mon Aug 30 03:03:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin554 129.963 1.0877 382924801 383184001 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 :                                   697.41 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             254.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   741 sec.
    Turnaround time :                            745 sec.

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

