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


Performing analysis on: 4FGL_J0839.8+0105_daily_bin599
RA = 129.963, Dec = 1.0877
tmin = 394588801, tmax = 394848001
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='603034', job_status='RUN', time_executed='2021-08-30 02:58:40.045286', time_epoch_executed='1630317520.05' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='599'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603034

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603034/ft1_4FGL_J0839.8+0105_daily_bin599.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603034/ft2_4FGL_J0839.8+0105_daily_bin599.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603034/ft1_4FGL_J0839.8+0105_daily_bin599.fits outfile=/scratch/kocevski/603034/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin599.fits ra=129.963 dec=1.0877 rad=12.0 tmin=394588801.0 tmax=394848001.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 8.57
user 4.28
sys 3.87

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/603034/ft1_filtered_4FGL_J0839.8+0105_daily_bin599.fits" evtable="EVENTS" scfile=/scratch/kocevski/603034/ft2_4FGL_J0839.8+0105_daily_bin599.fits sctable="SC_DATA" outfile=/scratch/kocevski/603034/ltcube_394588801_394848001_4FGL_J0839.8+0105_daily_bin599.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/603034/ft2_4FGL_J0839.8+0105_daily_bin599.fits
.....................!
real 16.85
user 12.21
sys 4.42

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603034/ft1_filtered_4FGL_J0839.8+0105_daily_bin599.fits evtable="EVENTS" scfile=/scratch/kocevski/603034/ft2_4FGL_J0839.8+0105_daily_bin599.fits sctable="SC_DATA" expcube=/scratch/kocevski/603034/ltcube_394588801_394848001_4FGL_J0839.8+0105_daily_bin599.fits outfile=/scratch/kocevski/603034/expmap_394588801_394848001_4FGL_J0839.8+0105_daily_bin599.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/603034/ltcube_394588801_394848001_4FGL_J0839.8+0105_daily_bin599.fits
.....................!
real 195.25
user 185.89
sys 8.77

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/603034/ft1_filtered_4FGL_J0839.8+0105_daily_bin599.fits scfile=/scratch/kocevski/603034/ft2_4FGL_J0839.8+0105_daily_bin599.fits outfile=/scratch/kocevski/603034/cmap_394588801_394848001_4FGL_J0839.8+0105_daily_bin599.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=129.963 yref=1.0877 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 4.20
user 0.36
sys 3.72

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603034/ft1_filtered_4FGL_J0839.8+0105_daily_bin599.fits scfile=/scratch/kocevski/603034/ft2_4FGL_J0839.8+0105_daily_bin599.fits outfile=/scratch/kocevski/603034/cmap_HighResolution_394588801_394848001_4FGL_J0839.8+0105_daily_bin599.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=129.963 yref=1.0877 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 4.39
user 0.38
sys 3.71

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3985       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .15876E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.0297       1.0000         .10000E-03   10000.    
     4 'norm      '    1.4037       1.0000         .10000E-03   10000.    
     5 'norm      '    7.9067       1.0000         .10000E-03   10000.    
     6 'norm      '    1.6184       1.0000         .10000E-03   10000.    
     7 'norm      '    .15130       1.0000         .10000E-03   10000.    
     8 'Prefactor '    34.703       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .27543E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    3.2552       1.0000         .10000E-03   10000.    
    12 'norm      '    4.4697       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.4031       1.0000         .10000E-03   10000.    
    14 'norm      '    4.2730       1.0000         .10000E-03   10000.    
    15 'norm      '    11.966       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.7682       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .69883       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.2076       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=   6872.709     FROM MIGRAD    STATUS=CONVERGED    129 CALLS     1991 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3995        5.7670       -.68918E-05   -.30018E-03
   2  Prefactor     .10016E-03    111.59        .12638E-04** at limit **
   3  norm          4.0369        8.1881        .13393E-04    .22301E-03
   4  norm          1.4037        1.4534        .92169E-07   -.72214E-04
   5  norm          7.9070        2.0364        .11579E-06    .25907E-03
   6  norm          1.6522        48.972        .45445E-04    .86288E-03
   7  norm          .13602        16.092        .13924E-04    .30138E-03
   8  Prefactor     34.658        6.0713       -.45277E-05    .10175E-01
   9  norm          .10000E-03    11.750       -.24162E-05** at limit **
  10  Prefactor     .24912        218.10        .16140E-04    .17760E-03
  11  norm          3.2553        1.1934       -.98860E-07   -.87479E-03
  12  norm          4.4718        6.5412        .66891E-05    .12938E-03
  13  Prefactor     4.4174        5.0595        .98886E-05   -.21674E-02
  14  norm          4.2742        3.3143        .80441E-06    .31957E-03
  15  norm          11.969        6.7093       -.49561E-05   -.17777E-02
  16  Prefactor     .10001E-03    47.663       -.40128E-06** at limit **
  17  Prefactor     3.7701        4.4771        .54466E-06   -.12862E-04
  18  Normalizat    .69843        .22874       -.34183E-05   -.35495E-03
  19  Prefactor     1.2078        .17538       -.16633E-05   -.62005E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.39954
  Prefactor  = 0.000100157
  norm       = 4.03694
  norm       = 1.40374
  norm       = 7.90704
  norm       = 1.65221
  norm       = 0.136023
  Prefactor  = 34.6585
  norm       = 0.0001
  Prefactor  = 0.249121
  norm       = 3.25531
  norm       = 4.47184
  Prefactor  = 4.41741
  norm       = 4.27423
  norm       = 11.9692
  Prefactor  = 0.000100006
  Prefactor  = 3.77007
  Normalizat = 0.698428
  Prefactor  = 1.20777
 **********
 **   18 **HESSE 
 **********

 FCN=   6872.709     FROM HESSE     STATUS=OK           326 CALLS     2317 TOTAL
                     EDM=   .68E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3995        5.7964        .66102E-02   -1.5398    
   2  Prefactor     .10016E-03    110.96        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.0369        8.2349        .50220E-02   -1.5306    
   4  norm          1.4037        1.4555        .91512E-02   -1.5471    
   5  norm          7.9070        2.0372        .35649E-02   -1.5146    
   6  norm          1.6522        50.429        .83187E-02   -1.5451    
   7  norm          .13602        1.9459        .63495E-01   -1.5634    
   8  Prefactor     34.658        35.133        .17007E-02   -1.4530    
   9  norm          .10000E-03    11.717        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .24912        8.4710        .13211       -1.5608    
  11  norm          3.2553        1.1967        .56118E-02   -1.5347    
  12  norm          4.4718        6.5546        .47614E-02   -1.5285    
  13  Prefactor     4.4174        43.599        .47982E-02   -1.5288    
  14  norm          4.2742        3.3187        .48726E-02   -1.5294    
  15  norm          11.969        6.7166        .28951E-02   -1.5016    
  16  Prefactor     .10001E-03    46.362        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.7701        4.4825        .51994E-02   -1.5320    
  18  Normalizat    .69843        .20749        .75477E-01   -1.0396    
  19  Prefactor     1.2078        .15276        .34453E-01   -.86092    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.79848e-07
Minuit parameter uncertainties:
  1  5.79773
  2  0.00836524
  3  8.23716
  4  1.45549
  5  2.03722
  6  18.2722
  7  1.02861
  8  35.1536
  9  3.76769e-06
  10  2.90523
  11  1.19667
  12  6.55565
  13  27.7816
  14  3.31889
  15  6.71707
  16  0.00105488
  17  4.48286
  18  0.207722
  19  0.152813
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  4.472e+00  6.556e+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:  1.208e+00  1.528e-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:  6.984e-01  2.077e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/603034/likelihoodResults_394588801_394848001_4FGL_J0839.8+0105_daily_bin599.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) = 6872.51893592
delta logL = 0.19008043484

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6872.48971685
delta logL = 0.219299506426

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.0917       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3132       1.0000          .0000       5.0000    
     3 'Normalizat'    .66054       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2265       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=   6872.490     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      217 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0890        85.863        .57662E-02    .55915E-03
   2  alpha         3.3141        3.3907        .44312        .48447E-04
   3  Normalizat    .66045        .61378E-01    .77470E-01    .17172E-04
   4  Prefactor     1.2266        .43109E-01    .34032E-01   -.12837E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.08901
  alpha      = 3.31415
  Normalizat = 0.660453
  Prefactor  = 1.2266
 **********
 **   18 **HESSE 
 **********

 FCN=   6872.490     FROM HESSE     STATUS=OK            33 CALLS      250 TOTAL
                     EDM=   .75E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0890        11.004        .14908E-03   -1.5356    
   2  alpha         3.3141        3.9562        .24647E-01    .33171    
   3  Normalizat    .66045        .24313        .34300E-03   -1.0548    
   4  Prefactor     1.2266        .18491        .20277E-03   -.85517    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.48819e-08
Minuit parameter uncertainties:
  1  11.0111
  2  3.1384
  3  0.243523
  4  0.185009
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603034': 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) = 6872.48971669
delta logL = 0.219299667478

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  3.089e+00  1.101e+01  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  3.314e+00  3.138e+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:  1.227e+00  1.850e-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:  6.605e-01  2.435e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.07
Ra Dec: 129.963 1.088
Photon Index (Free Index): 3.31 +/- 3.14
Photon Flux (Free Index): 4.33e-08 +/- 6.02e-08
Energy Flux (Free Index): 8.37e-06 +/- 9.28e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/603034/cmap_HighResolution_394588801_394848001_4FGL_J0839.8+0105_daily_bin599.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.92e-05', comment='SUCCESS', energy_flux2='8.37e-06', dlogl='2.19e-01', photon_flux2='4.33e-08', job_status='DONE', time_completed='2021-08-30 03:09:36.948304', photon_index_error2='3.14', photon_index2='3.31', ts='0.61', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', photon_flux_upper_limit='7.95e-08', energy_flux_error2='9.28e-06', EG='0.70', time_epoch_completed='1630318176.95', return_code='0', job_id='603034', GAL2='1.23', EG2='0.66', return_code2='0', photon_flux_error2='6.02e-08', ts2='1.07', photon_index='2.24' WHERE bin_id='599' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:09:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 603034: <4FGL_J0839.8+0105_daily_bin599> in cluster <slac> Done

Job <4FGL_J0839.8+0105_daily_bin599> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Aug 30 02:55:27 2021
Job was executed on host(s) <bullet0107>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 02:55:29 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:55:29 2021
Terminated at Mon Aug 30 03:09:38 2021
Results reported at Mon Aug 30 03:09:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin599 129.963 1.0877 394588801 394848001 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 :                                   704.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             238.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   848 sec.
    Turnaround time :                            851 sec.

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

