/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 2 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 = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0839.8+0105_daily_bin924
RA = 129.963, Dec = 1.0877
tmin = 478828801, tmax = 479088001
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='605004', job_status='RUN', time_executed='2021-08-30 03:01:01.085962', time_epoch_executed='1630317661.09' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='924'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/605004

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/605004/ft1_4FGL_J0839.8+0105_daily_bin924.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/605004/ft2_4FGL_J0839.8+0105_daily_bin924.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/605004/ft1_4FGL_J0839.8+0105_daily_bin924.fits outfile=/scratch/kocevski/605004/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin924.fits ra=129.963 dec=1.0877 rad=12.0 tmin=478828801.0 tmax=479088001.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 3.49
user 3.25
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/605004/ft1_filtered_4FGL_J0839.8+0105_daily_bin924.fits" evtable="EVENTS" scfile=/scratch/kocevski/605004/ft2_4FGL_J0839.8+0105_daily_bin924.fits sctable="SC_DATA" outfile=/scratch/kocevski/605004/ltcube_478828801_479088001_4FGL_J0839.8+0105_daily_bin924.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/605004/ft2_4FGL_J0839.8+0105_daily_bin924.fits
.....................!
real 11.67
user 11.31
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/605004/ft1_filtered_4FGL_J0839.8+0105_daily_bin924.fits evtable="EVENTS" scfile=/scratch/kocevski/605004/ft2_4FGL_J0839.8+0105_daily_bin924.fits sctable="SC_DATA" expcube=/scratch/kocevski/605004/ltcube_478828801_479088001_4FGL_J0839.8+0105_daily_bin924.fits outfile=/scratch/kocevski/605004/expmap_478828801_479088001_4FGL_J0839.8+0105_daily_bin924.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/605004/ltcube_478828801_479088001_4FGL_J0839.8+0105_daily_bin924.fits
.....................!
real 191.84
user 185.58
sys 5.39

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/605004/ft1_filtered_4FGL_J0839.8+0105_daily_bin924.fits scfile=/scratch/kocevski/605004/ft2_4FGL_J0839.8+0105_daily_bin924.fits outfile=/scratch/kocevski/605004/cmap_478828801_479088001_4FGL_J0839.8+0105_daily_bin924.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 0.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/605004/ft1_filtered_4FGL_J0839.8+0105_daily_bin924.fits scfile=/scratch/kocevski/605004/ft2_4FGL_J0839.8+0105_daily_bin924.fits outfile=/scratch/kocevski/605004/cmap_HighResolution_478828801_479088001_4FGL_J0839.8+0105_daily_bin924.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 0.59
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.7642       1.0000         .10000E-03   10000.    
     4 'norm      '    .67598       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    20.539       1.0000         .10000E-03   10000.    
     7 'norm      '    13.002       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .11736E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.2829       1.0000         .10000E-03   10000.    
    12 'norm      '    14.269       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .70858       1.0000         .10000E-03   10000.    
    15 'norm      '    .10160E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    25.681       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.0880       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.4720       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .87028       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=   6225.175     FROM MIGRAD    STATUS=CONVERGED    396 CALLS     1925 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.7524        .90712E-02** at limit **
   2  Prefactor     .10000E-03    32.908        .90712E-02** at limit **
   3  norm          7.7643        9.7251        .35977E-02    .24608E-03
   4  norm          .67536        2.6733        .11969E-01    .14622E-02
   5  norm          .10000E-03    .71277        .90712E-02** at limit **
   6  norm          20.551        22.920        .22094E-02   -.13503E-02
   7  norm          13.002        5.1624        .27772E-02    .13900E-02
   8  Prefactor     .10000E-03    14.406        .90712E-02** at limit **
   9  norm          .10000E-03    74.154        .90712E-02** at limit **
  10  Prefactor     .10000E-03    14.400        .90712E-02** at limit **
  11  norm          1.2829        1.1167        .97915E-02    .64924E-03
  12  norm          14.269        8.0364        .26508E-02    .97169E-04
  13  Prefactor     .10000E-03    11.437        .90712E-02** at limit **
  14  norm          .68935        3.0519        .73579E-01    .81041E-04
  15  norm          .10000E-03    5.5743        .90712E-02** at limit **
  16  Prefactor     25.676        28.222        .19762E-02    .13445E-02
  17  Prefactor     3.0883        6.0950        .57699E-02   -.60403E-03
  18  Normalizat    1.4719        .22552        .61152E-01   -.34100E-05
  19  Prefactor     .87038        .16054        .44625E-01    .63139E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.76426
  norm       = 0.675358
  norm       = 0.0001
  norm       = 20.551
  norm       = 13.0022
  Prefactor  = 0.000100001
  norm       = 0.000100002
  Prefactor  = 0.000100001
  norm       = 1.28293
  norm       = 14.2686
  Prefactor  = 0.0001
  norm       = 0.689347
  norm       = 0.0001
  Prefactor  = 25.6757
  Prefactor  = 3.08835
  Normalizat = 1.47187
  Prefactor  = 0.870382
 **********
 **   18 **HESSE 
 **********

 FCN=   6225.175     FROM HESSE     STATUS=OK           264 CALLS     2189 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.7594        .14919E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    33.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.7643        9.7165        .14391E-03   -1.5151    
   4  norm          .67536        2.6858        .24109E-03   -1.5544    
   5  norm          .10000E-03    .74172        .12974E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          20.551        22.928        .88377E-04   -1.4801    
   7  norm          13.002        5.1609        .10865E-03   -1.4987    
   8  Prefactor     .10000E-03    14.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    76.525        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.2829        1.0960        .74133E-04   -1.5481    
  12  norm          14.269        8.0369        .10603E-03   -1.4952    
  13  Prefactor     .10000E-03    11.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .68935        11.283        .25176E-02   -1.5542    
  15  norm          .10000E-03    5.6203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     25.676        28.270        .79049E-04   -1.4694    
  17  Prefactor     3.0883        6.0557        .23079E-03   -1.5356    
  18  Normalizat    1.4719        .26801        .27045E-03   -.78572    
  19  Prefactor     .87038        .18952        .24783E-03   -.97184    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26971e-08
Minuit parameter uncertainties:
  1  2.12249e-06
  2  1.28646e-05
  3  9.71851
  4  2.68625
  5  4.07056e-07
  6  22.9375
  7  5.16103
  8  0.000260693
  9  0.000812955
  10  0.000292771
  11  1.09606
  12  8.0375
  13  1.46036e-05
  14  5.57854
  15  2.55572e-05
  16  28.2845
  17  6.05691
  18  0.268267
  19  0.189665
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.427e+01  8.038e+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.704e-01  1.897e-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.472e+00  2.683e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.13
Ra Dec: 129.963 1.088
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 5.54e-08 +/- 3.12e-08
Energy Flux (Fixed Index): 2.04e-05 +/- 1.15e-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) = 6225.02407996
delta logL = 0.150825939035

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6225.02303861
delta logL = 0.151867284517

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.416       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9204       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4845       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86576       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=   6225.023     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      223 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.416        10.269        .26373E-02   -.18517E-02
   2  alpha         1.9204        .63483        .40976       -.27858E-05
   3  Normalizat    1.4846        .21725        .60943E-01    .36141E-05
   4  Prefactor     .86580        .15813        .44567E-01    .13795E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 14.4156
  alpha      = 1.92042
  Normalizat = 1.48458
  Prefactor  = 0.865799
 **********
 **   18 **HESSE 
 **********

 FCN=   6225.023     FROM HESSE     STATUS=OK            31 CALLS      254 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.416        8.4225        .10549E-03   -1.4948    
   2  alpha         1.9204        .57442        .16345E-01   -.23396    
   3  Normalizat    1.4846        .25560        .26952E-03   -.78213    
   4  Prefactor     .86580        .18654        .24845E-03   -.97347    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72534e-09
Minuit parameter uncertainties:
  1  8.42315
  2  0.5799
  3  0.255825
  4  0.18668
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/605004': 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) = 6225.02303815
delta logL = 0.151867748048

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.442e+01  8.423e+00  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  1.920e+00  5.799e-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.658e-01  1.867e-01  0.000e+00  1.000e+01 ( 1.000e+00)
499        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
500        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
497   Normalization:  1.485e+00  2.558e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.44
Ra Dec: 129.963 1.088
Photon Index (Free Index): 1.92 +/- 0.58
Photon Flux (Free Index): 4.24e-08 +/- 3.29e-08
Energy Flux (Free Index): 2.22e-05 +/- 1.38e-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/605004/cmap_HighResolution_478828801_479088001_4FGL_J0839.8+0105_daily_bin924.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.54e-08', energy_flux2='2.22e-05', photon_flux_error='3.12e-08', dlogl='1.52e-01', energy_flux='2.04e-05', photon_flux2='4.24e-08', job_status='DONE', time_completed='2021-08-30 03:09:28.938762', photon_index_error2='0.58', photon_index2='1.92', ts='10.13', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='1.38e-05', EG='1.47', time_epoch_completed='1630318168.94', return_code='0', job_id='605004', GAL2='0.87', EG2='1.48', return_code2='0', energy_flux_error='1.15e-05', photon_flux_error2='3.29e-08', ts2='10.44', photon_index='2.24' WHERE bin_id='924' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:09:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 605004: <4FGL_J0839.8+0105_daily_bin924> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin924 129.963 1.0877 478828801 479088001 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 :                                   503.30 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             370.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   521 sec.
    Turnaround time :                            522 sec.

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

