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


Performing analysis on: 4FGL_J0839.8+0105_daily_bin895
RA = 129.963, Dec = 1.0877
tmin = 471312001, tmax = 471571201
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='604956', job_status='RUN', time_executed='2021-08-30 03:03:58.463489', time_epoch_executed='1630317838.46' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='895'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/604956

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/604956/ft1_4FGL_J0839.8+0105_daily_bin895.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/604956/ft2_4FGL_J0839.8+0105_daily_bin895.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/604956/ft1_4FGL_J0839.8+0105_daily_bin895.fits outfile=/scratch/kocevski/604956/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin895.fits ra=129.963 dec=1.0877 rad=12.0 tmin=471312001.0 tmax=471571201.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.83
user 4.76
sys 1.00

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/604956/ft2_4FGL_J0839.8+0105_daily_bin895.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/604956/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin895.fits evtable="EVENTS" outfile="/scratch/kocevski/604956/ft1_filtered_4FGL_J0839.8+0105_daily_bin895.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.25
user 0.31
sys 0.93

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/604956/ft1_filtered_4FGL_J0839.8+0105_daily_bin895.fits" evtable="EVENTS" scfile=/scratch/kocevski/604956/ft2_4FGL_J0839.8+0105_daily_bin895.fits sctable="SC_DATA" outfile=/scratch/kocevski/604956/ltcube_471312001_471571201_4FGL_J0839.8+0105_daily_bin895.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/604956/ft2_4FGL_J0839.8+0105_daily_bin895.fits
.....................!
real 15.30
user 13.96
sys 1.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/604956/ft1_filtered_4FGL_J0839.8+0105_daily_bin895.fits evtable="EVENTS" scfile=/scratch/kocevski/604956/ft2_4FGL_J0839.8+0105_daily_bin895.fits sctable="SC_DATA" expcube=/scratch/kocevski/604956/ltcube_471312001_471571201_4FGL_J0839.8+0105_daily_bin895.fits outfile=/scratch/kocevski/604956/expmap_471312001_471571201_4FGL_J0839.8+0105_daily_bin895.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/604956/ltcube_471312001_471571201_4FGL_J0839.8+0105_daily_bin895.fits
.....................!
real 192.87
user 186.96
sys 5.54

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/604956/ft1_filtered_4FGL_J0839.8+0105_daily_bin895.fits scfile=/scratch/kocevski/604956/ft2_4FGL_J0839.8+0105_daily_bin895.fits outfile=/scratch/kocevski/604956/cmap_471312001_471571201_4FGL_J0839.8+0105_daily_bin895.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.31
user 0.38
sys 0.87

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/604956/ft1_filtered_4FGL_J0839.8+0105_daily_bin895.fits scfile=/scratch/kocevski/604956/ft2_4FGL_J0839.8+0105_daily_bin895.fits outfile=/scratch/kocevski/604956/cmap_HighResolution_471312001_471571201_4FGL_J0839.8+0105_daily_bin895.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.28
user 0.39
sys 0.88

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.998       1.0000         .10000E-03   10000.    
     2 'Prefactor '    37.364       1.0000         .10000E-03   10000.    
     3 'norm      '    15.056       1.0000         .10000E-03   10000.    
     4 'norm      '    .60061       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    41.545       1.0000         .10000E-03   10000.    
     7 'norm      '    13.860       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    12.920       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.7768       1.0000         .10000E-03   10000.    
    11 'norm      '    1.7192       1.0000         .10000E-03   10000.    
    12 'norm      '    5.5073       1.0000         .10000E-03   10000.    
    13 'Prefactor '    27.672       1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    10.354       1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.240       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .90277       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1984       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .70473       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=   5549.067     FROM MIGRAD    STATUS=CONVERGED    360 CALLS     1873 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.996        10.490        .14366E-06   -.18830E-03
   2  Prefactor     37.325        47.354        .19127E-05   -.72433E-03
   3  norm          15.055        12.908        .25857E-06   -.12273E-03
   4  norm          .60156        1.8363        .46676E-06   -.14643E-04
   5  norm          .10000E-03    .59827        .65198E-07** at limit **
   6  norm          41.541        29.494        .16799E-06   -.72720E-03
   7  norm          13.860        5.0409       -.24932E-07   -.35837E-04
   8  Prefactor     .10000E-03    9.2204       -.55877E-06** at limit **
   9  norm          12.921        23.008        .43446E-06    .10796E-04
  10  Prefactor     8.7752        12.427        .32665E-06   -.12038E-03
  11  norm          1.7192        .96623        .28988E-07   -.35857E-03
  12  norm          5.5073        6.0827        .20182E-06   -.49488E-04
  13  Prefactor     27.669        33.006        .60070E-06   -.59947E-04
  14  norm          .10000E-03    3.3246        .50002E-06** at limit **
  15  norm          10.353        6.1573        .25591E-07   -.55935E-04
  16  Prefactor     15.236        22.221        .47109E-06   -.12300E-03
  17  Prefactor     .90320        3.5498        .11461E-04    .26074E-04
  18  Normalizat    1.1986        .20798        .13713E-05   -.31961E-06
  19  Prefactor     .70455        .15535       -.39486E-05   -.33856E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.9964
  Prefactor  = 37.3251
  norm       = 15.055
  norm       = 0.601555
  norm       = 0.0001
  norm       = 41.541
  norm       = 13.8602
  Prefactor  = 0.0001
  norm       = 12.9207
  Prefactor  = 8.77523
  norm       = 1.71917
  norm       = 5.50734
  Prefactor  = 27.6691
  norm       = 0.0001
  norm       = 10.353
  Prefactor  = 15.2361
  Prefactor  = 0.903203
  Normalizat = 1.19858
  Prefactor  = 0.704546
 **********
 **   18 **HESSE 
 **********

 FCN=   5549.067     FROM HESSE     STATUS=OK           274 CALLS     2147 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.996        10.435        .97146E-04   -1.4883    
   2  Prefactor     37.325        47.969        .65567E-04   -1.4485    
   3  norm          15.055        12.901        .10322E-03   -1.4932    
   4  norm          .60156        1.8747        .16726E-02   -1.5553    
   5  norm          .10000E-03    .60785        .56173E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          41.541        29.486        .62193E-04   -1.4418    
   7  norm          13.860        5.0420        .96990E-04   -1.4963    
   8  Prefactor     .10000E-03    9.2288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          12.921        23.031        .11144E-03   -1.4989    
  10  Prefactor     8.7752        12.446        .13530E-03   -1.5115    
  11  norm          1.7192        .96561        .52769E-04   -1.5446    
  12  norm          5.5073        6.0793        .17121E-03   -1.5239    
  13  Prefactor     27.669        33.083        .76157E-04   -1.4655    
  14  norm          .10000E-03    3.4493        .26514E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          10.353        6.1589        .12452E-03   -1.5064    
  16  Prefactor     15.236        22.233        .10260E-03   -1.4927    
  17  Prefactor     .90320        3.5706        .13329E-02   -1.5518    
  18  Normalizat    1.1986        .25038        .25283E-03   -.86647    
  19  Prefactor     .70455        .18505        .24155E-03   -1.0335    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42782e-08
Minuit parameter uncertainties:
  1  10.4357
  2  48.0187
  3  12.9029
  4  1.87485
  5  2.84546e-06
  6  29.4959
  7  5.04217
  8  9.34791e-05
  9  23.0469
  10  12.4493
  11  0.965616
  12  6.07999
  13  33.1049
  14  4.85296e-05
  15  6.15924
  16  22.2446
  17  3.57143
  18  0.25063
  19  0.185211
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  5.507e+00  6.080e+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:  7.045e-01  1.852e-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.199e+00  2.506e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.48
Ra Dec: 129.963 1.088
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 2.14e-08 +/- 2.36e-08
Energy Flux (Fixed Index): 7.87e-06 +/- 8.69e-06

TS (Fixed Index): 1.48
Ra Dec: 129.963 1.088
Photon Flux Upper Limit: 8.35e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.07e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/604956/likelihoodResults_471312001_471571201_4FGL_J0839.8+0105_daily_bin895.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) = 5548.99901378
delta logL = 0.0683643825432

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5548.99616606
delta logL = 0.0712121058286

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.1210       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7905       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2083       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70064       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.

 FCN=   5548.996     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      201 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.1210        6.3345        .44416E-02    .50494E-02
   2  alpha         1.7906        .99513        .43471        .27090E-04
   3  Normalizat    1.2083        .20321        .56973E-01    .59654E-05
   4  Prefactor     .70065        .15316        .42410E-01    .15995E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.12097
  alpha      = 1.79057
  Normalizat = 1.20832
  Prefactor  = 0.700646
 **********
 **   18 **HESSE 
 **********

 FCN=   5548.996     FROM HESSE     STATUS=OK            31 CALLS      232 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.1210        6.3980        .17766E-03   -1.5255    
   2  alpha         1.7906        1.1297        .28534E-01   -.28772    
   3  Normalizat    1.2083        .24097        .25194E-03   -.86346    
   4  Prefactor     .70065        .18180        .24215E-03   -1.0350    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.27258e-08
Minuit parameter uncertainties:
  1  6.39884
  2  1.17629
  3  0.241191
  4  0.181949
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/604956': 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) = 5548.99616606
delta logL = 0.0712121088573

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  5.121e+00  6.399e+00  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  1.791e+00  1.176e+00  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.006e-01  1.819e-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.208e+00  2.412e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.62
Ra Dec: 129.963 1.088
Photon Index (Free Index): 1.79 +/- 1.18
Photon Flux (Free Index): 1.37e-08 +/- 2.35e-08
Energy Flux (Free Index): 8.57e-06 +/- 1.03e-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/604956/cmap_HighResolution_471312001_471571201_4FGL_J0839.8+0105_daily_bin895.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.07e-05', comment='SUCCESS', photon_flux='2.14e-08', energy_flux2='8.57e-06', photon_flux_error='2.36e-08', dlogl='7.12e-02', energy_flux='7.87e-06', photon_flux2='1.37e-08', job_status='DONE', time_completed='2021-08-30 03:13:05.864998', photon_index_error2='1.18', photon_index2='1.79', ts='1.48', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', photon_flux_upper_limit='8.35e-08', energy_flux_error2='1.03e-05', EG='1.20', time_epoch_completed='1630318385.87', return_code='0', job_id='604956', GAL2='0.70', EG2='1.21', return_code2='0', energy_flux_error='8.69e-06', photon_flux_error2='2.35e-08', ts2='1.62', photon_index='2.24' WHERE bin_id='895' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:13:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 604956: <4FGL_J0839.8+0105_daily_bin895> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin895 129.963 1.0877 471312001 471571201 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 :                                   553.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             261.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   742 sec.
    Turnaround time :                            743 sec.

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

