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


Performing analysis on: 4FGL_J0839.8+0105_daily_bin941
RA = 129.963, Dec = 1.0877
tmin = 483235201, tmax = 483494401
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='605032', job_status='RUN', time_executed='2021-08-30 03:04:06.811611', time_epoch_executed='1630317846.81' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='941'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/605032

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/605032/ft1_4FGL_J0839.8+0105_daily_bin941.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/605032/ft2_4FGL_J0839.8+0105_daily_bin941.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/605032/ft1_4FGL_J0839.8+0105_daily_bin941.fits outfile=/scratch/kocevski/605032/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin941.fits ra=129.963 dec=1.0877 rad=12.0 tmin=483235201.0 tmax=483494401.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.38
user 3.20
sys 1.09

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/605032/ft1_filtered_4FGL_J0839.8+0105_daily_bin941.fits" evtable="EVENTS" scfile=/scratch/kocevski/605032/ft2_4FGL_J0839.8+0105_daily_bin941.fits sctable="SC_DATA" outfile=/scratch/kocevski/605032/ltcube_483235201_483494401_4FGL_J0839.8+0105_daily_bin941.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/605032/ft2_4FGL_J0839.8+0105_daily_bin941.fits
.....................!
real 13.39
user 11.62
sys 1.22

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/605032/ft1_filtered_4FGL_J0839.8+0105_daily_bin941.fits evtable="EVENTS" scfile=/scratch/kocevski/605032/ft2_4FGL_J0839.8+0105_daily_bin941.fits sctable="SC_DATA" expcube=/scratch/kocevski/605032/ltcube_483235201_483494401_4FGL_J0839.8+0105_daily_bin941.fits outfile=/scratch/kocevski/605032/expmap_483235201_483494401_4FGL_J0839.8+0105_daily_bin941.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/605032/ltcube_483235201_483494401_4FGL_J0839.8+0105_daily_bin941.fits
.....................!
real 193.16
user 186.46
sys 6.13

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/605032/ft1_filtered_4FGL_J0839.8+0105_daily_bin941.fits scfile=/scratch/kocevski/605032/ft2_4FGL_J0839.8+0105_daily_bin941.fits outfile=/scratch/kocevski/605032/cmap_483235201_483494401_4FGL_J0839.8+0105_daily_bin941.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.43
user 0.35
sys 1.04

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/605032/ft1_filtered_4FGL_J0839.8+0105_daily_bin941.fits scfile=/scratch/kocevski/605032/ft2_4FGL_J0839.8+0105_daily_bin941.fits outfile=/scratch/kocevski/605032/cmap_HighResolution_483235201_483494401_4FGL_J0839.8+0105_daily_bin941.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.53
user 0.36
sys 1.04

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2598       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11338E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.0553       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .66539       1.0000         .10000E-03   10000.    
     6 'norm      '    37.036       1.0000         .10000E-03   10000.    
     7 'norm      '    3.8416       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10434E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    22.655       1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.828       1.0000         .10000E-03   10000.    
    11 'norm      '    .99318       1.0000         .10000E-03   10000.    
    12 'norm      '    14.978       1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.605       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .42322E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.0587       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .88588       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .96847       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1152       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=   6111.333     FROM MIGRAD    STATUS=CONVERGED    382 CALLS     1909 TOTAL
                     EDM=   .64E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2578        1.7768        .13447E-06   -.75214E-03
   2  Prefactor     .10000E-03    27.086        .11555E-05** at limit **
   3  norm          3.0558        8.0655        .30615E-07   -.20066E-03
   4  norm          .10000E-03    .63241       -.30090E-07** at limit **
   5  norm          .66546        .78871       -.16254E-07   -.19004E-04
   6  norm          37.037        27.351        .16874E-05    .97550E-05
   7  norm          3.8406        4.7540       -.54245E-06   -.28512E-04
   8  Prefactor     .10000E-03    19.085       -.16680E-06** at limit **
   9  norm          22.653        25.763       -.26608E-05    .62636E-07
  10  Prefactor     22.819        22.200       -.92783E-05    .89321E-05
  11  norm          .99285        1.0557        .31332E-08    .11766E-03
  12  norm          14.977        9.3234       -.28513E-06    .12267E-04
  13  Prefactor     13.605        13.960       -.37205E-06    .35602E-05
  14  norm          .10000E-03    1.5906       -.85389E-07** at limit **
  15  norm          .10000E-03    3.8537        .46603E-07** at limit **
  16  Prefactor     5.0511        16.353       -.79339E-05   -.39271E-05
  17  Prefactor     .88549        5.4532       -.69649E-06   -.68411E-04
  18  Normalizat    .96852        .21675        .28101E-05   -.33569E-04
  19  Prefactor     1.1153        .15718       -.16050E-06    .11629E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.25783
  Prefactor  = 0.0001
  norm       = 3.05578
  norm       = 0.0001
  norm       = 0.665455
  norm       = 37.0374
  norm       = 3.84063
  Prefactor  = 0.0001
  norm       = 22.6526
  Prefactor  = 22.8192
  norm       = 0.992851
  norm       = 14.9772
  Prefactor  = 13.6045
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 5.05111
  Prefactor  = 0.885488
  Normalizat = 0.968525
  Prefactor  = 1.1153
 **********
 **   18 **HESSE 
 **********

 FCN=   6111.333     FROM HESSE     STATUS=OK           282 CALLS     2191 TOTAL
                     EDM=   .63E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2578        8.6169        .19874E-02   -1.5484    
   2  Prefactor     .10000E-03    27.141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.0558        8.0359        .11605E-02   -1.5358    
   4  norm          .10000E-03    .63984        .60705E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .66546        .76422        .73471E-03   -1.5545    
   6  norm          37.037        27.368        .65855E-04   -1.4490    
   7  norm          3.8406        4.7413        .17960E-03   -1.5316    
   8  Prefactor     .10000E-03    19.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          22.653        25.774        .84155E-04   -1.4756    
  10  Prefactor     22.819        22.247        .83835E-04   -1.4752    
  11  norm          .99285        1.0199        .78583E-03   -1.5509    
  12  norm          14.977        9.3226        .10349E-03   -1.4934    
  13  Prefactor     13.605        13.962        .10859E-03   -1.4970    
  14  norm          .10000E-03    1.6009        .96249E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    11.304        .29717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.0511        16.336        .17877E-03   -1.5258    
  17  Prefactor     .88549        5.6915        .34689E-02   -1.5520    
  18  Normalizat    .96852        .25123        .30135E-03   -.94092    
  19  Prefactor     1.1153        .18483        .21357E-03   -.88979    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.34888e-08
Minuit parameter uncertainties:
  1  6.58548
  2  6.45221e-05
  3  8.0387
  4  6.59396e-07
  5  0.764234
  6  27.3776
  7  4.74174
  8  2.65262e-05
  9  25.7869
  10  22.2548
  11  1.01995
  12  9.32353
  13  13.9657
  14  2.72538e-06
  15  1.48549e-05
  16  16.3504
  17  4.49027
  18  0.25154
  19  0.184936
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.498e+01  9.324e+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.115e+00  1.849e-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.685e-01  2.515e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.69
Ra Dec: 129.963 1.088
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 5.82e-08 +/- 3.62e-08
Energy Flux (Fixed Index): 2.14e-05 +/- 1.33e-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) = 6111.25823729
delta logL = 0.0743330380938

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6111.25650405
delta logL = 0.0760662782686

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.770       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4641       1.0000          .0000       5.0000    
     3 'Normalizat'    .95781       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1205       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=   6111.256     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      256 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.782        216.91        .26985E-02    .59766E-04
   2  alpha         2.4650        3.2539        .35077        .36328E-04
   3  Normalizat    .95806        .12111        .68441E-01   -.10679E-05
   4  Prefactor     1.1202        .88493E-01    .36856E-01   -.18566E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 13.7823
  alpha      = 2.46497
  Normalizat = 0.958063
  Prefactor  = 1.12022
 **********
 **   18 **HESSE 
 **********

 FCN=   6111.256     FROM HESSE     STATUS=OK            33 CALLS      289 TOTAL
                     EDM=   .57E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.782        9.5776        .10794E-03   -1.4965    
   2  alpha         2.4650        .58825        .13986E-01   -.14012E-01
   3  Normalizat    .95806        .24118        .30277E-03   -.94449    
   4  Prefactor     1.1202        .18223        .21315E-03   -.88823    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.71102e-12
Minuit parameter uncertainties:
  1  9.57862
  2  0.593818
  3  0.241451
  4  0.182335
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/605032': 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) = 6111.2564992
delta logL = 0.0760711322037

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.378e+01  9.579e+00  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  2.465e+00  5.938e-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:  1.120e+00  1.823e-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.581e-01  2.415e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.83
Ra Dec: 129.963 1.088
Photon Index (Free Index): 2.46 +/- 0.59
Photon Flux (Free Index): 6.74e-08 +/- 4.55e-08
Energy Flux (Free Index): 2.05e-05 +/- 1.28e-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/605032/cmap_HighResolution_483235201_483494401_4FGL_J0839.8+0105_daily_bin941.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.82e-08', energy_flux2='2.05e-05', photon_flux_error='3.62e-08', dlogl='7.61e-02', energy_flux='2.14e-05', photon_flux2='6.74e-08', job_status='DONE', time_completed='2021-08-30 03:12:57.534759', photon_index_error2='0.59', photon_index2='2.46', ts='4.69', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', energy_flux_error2='1.28e-05', EG='0.97', time_epoch_completed='1630318377.53', return_code='0', job_id='605032', GAL2='1.12', EG2='0.96', return_code2='0', energy_flux_error='1.33e-05', photon_flux_error2='4.55e-08', ts2='4.83', photon_index='2.24' WHERE bin_id='941' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:12:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0154>
Subject: Job 605032: <4FGL_J0839.8+0105_daily_bin941> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin941 129.963 1.0877 483235201 483494401 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 :                                   533.04 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             251.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   728 sec.
    Turnaround time :                            729 sec.

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

