/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 153 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 = 7395
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0839.8+0105_daily_bin354
RA = 129.963, Dec = 1.0877
tmin = 331084801, tmax = 331344001
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='600906', job_status='RUN', time_executed='2021-08-30 02:53:15.676530', time_epoch_executed='1630317195.68' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='354'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/600906

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/600906/ft1_4FGL_J0839.8+0105_daily_bin354.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/600906/ft2_4FGL_J0839.8+0105_daily_bin354.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/600906/ft1_4FGL_J0839.8+0105_daily_bin354.fits outfile=/scratch/kocevski/600906/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin354.fits ra=129.963 dec=1.0877 rad=12.0 tmin=331084801.0 tmax=331344001.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.76
user 3.12
sys 0.48

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/600906/ft1_filtered_4FGL_J0839.8+0105_daily_bin354.fits" evtable="EVENTS" scfile=/scratch/kocevski/600906/ft2_4FGL_J0839.8+0105_daily_bin354.fits sctable="SC_DATA" outfile=/scratch/kocevski/600906/ltcube_331084801_331344001_4FGL_J0839.8+0105_daily_bin354.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/600906/ft2_4FGL_J0839.8+0105_daily_bin354.fits
.....................!
real 12.58
user 11.87
sys 0.60

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/600906/ft1_filtered_4FGL_J0839.8+0105_daily_bin354.fits evtable="EVENTS" scfile=/scratch/kocevski/600906/ft2_4FGL_J0839.8+0105_daily_bin354.fits sctable="SC_DATA" expcube=/scratch/kocevski/600906/ltcube_331084801_331344001_4FGL_J0839.8+0105_daily_bin354.fits outfile=/scratch/kocevski/600906/expmap_331084801_331344001_4FGL_J0839.8+0105_daily_bin354.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/600906/ltcube_331084801_331344001_4FGL_J0839.8+0105_daily_bin354.fits
.....................!
real 191.14
user 185.12
sys 5.30

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/600906/ft1_filtered_4FGL_J0839.8+0105_daily_bin354.fits scfile=/scratch/kocevski/600906/ft2_4FGL_J0839.8+0105_daily_bin354.fits outfile=/scratch/kocevski/600906/cmap_331084801_331344001_4FGL_J0839.8+0105_daily_bin354.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.88
user 0.39
sys 0.42

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/600906/ft1_filtered_4FGL_J0839.8+0105_daily_bin354.fits scfile=/scratch/kocevski/600906/ft2_4FGL_J0839.8+0105_daily_bin354.fits outfile=/scratch/kocevski/600906/cmap_HighResolution_331084801_331344001_4FGL_J0839.8+0105_daily_bin354.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.89
user 0.39
sys 0.42

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.2670       1.0000         .10000E-03   10000.    
     4 'norm      '    1.3032       1.0000         .10000E-03   10000.    
     5 'norm      '    3.0181       1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    8.1624       1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.884       1.0000         .10000E-03   10000.    
     9 'norm      '    11.727       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.0770       1.0000         .10000E-03   10000.    
    11 'norm      '    .10081E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.8115       1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.028       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10109E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.6022       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .90005       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .99181       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=   6393.728     FROM MIGRAD    STATUS=CONVERGED    373 CALLS     1886 TOTAL
                     EDM=   .92E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.0536        .65192E-08** at limit **
   2  Prefactor     .10000E-03    23.786       -.44200E-07** at limit **
   3  norm          5.2663        7.2464        .18813E-06   -.14975E-03
   4  norm          1.3032        1.8703       -.14452E-06   -.57877E-03
   5  norm          3.0179        1.4485        .24648E-07   -.84822E-04
   6  norm          .10000E-03    7.7013       -.16619E-06** at limit **
   7  norm          8.1624        3.9853        .50126E-07   -.55193E-04
   8  Prefactor     17.892        33.067        .15529E-04    .55585E-05
   9  norm          11.726        18.041       -.15565E-05   -.80488E-05
  10  Prefactor     9.0741        17.730       -.60512E-05   -.55614E-04
  11  norm          .10000E-03    .54096       -.59327E-07** at limit **
  12  norm          5.8114        7.5649       -.20604E-06   -.15088E-03
  13  Prefactor     12.026        19.334       -.23711E-05   -.18202E-04
  14  norm          .10000E-03    2.6497        .11879E-07** at limit **
  15  norm          .10000E-03    4.3180        .63070E-08** at limit **
  16  Prefactor     9.6032        12.443        .31058E-06   -.16368E-04
  17  Prefactor     .10000E-03    1.0472        .40591E-08** at limit **
  18  Normalizat    .89997        .18620       -.68047E-06    .37441E-04
  19  Prefactor     .99190        .14092        .30980E-06   -.12299E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.26635
  norm       = 1.30318
  norm       = 3.01793
  norm       = 0.0001
  norm       = 8.16238
  Prefactor  = 17.8918
  norm       = 11.7261
  Prefactor  = 9.0741
  norm       = 0.0001
  norm       = 5.81139
  Prefactor  = 12.0264
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 9.60323
  Prefactor  = 0.0001
  Normalizat = 0.899971
  Prefactor  = 0.9919
 **********
 **   18 **HESSE 
 **********

 FCN=   6393.728     FROM HESSE     STATUS=OK           274 CALLS     2160 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.0568        .11189E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    23.879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.2663        7.2333        .17514E-03   -1.5249    
   4  norm          1.3032        1.8398        .12444E-03   -1.5480    
   5  norm          3.0179        1.4421        .63115E-04   -1.5361    
   6  norm          .10000E-03    7.7173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          8.1624        3.9842        .10770E-03   -1.5136    
   8  Prefactor     17.892        32.925        .94708E-04   -1.4862    
   9  norm          11.726        18.056        .11698E-03   -1.5023    
  10  Prefactor     9.0741        17.883        .13303E-03   -1.5105    
  11  norm          .10000E-03    1.0939        .11304E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.8114        7.5626        .16660E-03   -1.5226    
  13  Prefactor     12.026        19.355        .11551E-03   -1.5014    
  14  norm          .10000E-03    2.7689        .25399E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.4175        .16219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.6032        12.440        .12932E-03   -1.5088    
  17  Prefactor     .10000E-03    1.0519        .79901E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .89997        .21947        .27398E-03   -.96461    
  19  Prefactor     .99190        .16770        .20246E-03   -.93000    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85573e-10
Minuit parameter uncertainties:
  1  2.0216e-07
  2  9.13795e-05
  3  7.23451
  4  1.83987
  5  1.44214
  6  4.52743e-05
  7  3.98433
  8  32.9588
  9  18.0648
  10  17.8939
  11  6.33452e-06
  12  7.56382
  13  19.3646
  14  1.70129e-06
  15  1.49755e-06
  16  12.443
  17  2.95577e-07
  18  0.219692
  19  0.167783
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  5.811e+00  7.564e+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:  9.919e-01  1.678e-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.000e-01  2.197e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/600906/likelihoodResults_331084801_331344001_4FGL_J0839.8+0105_daily_bin354.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) = 6393.71546028
delta logL = 0.0121221708496

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6393.71435118
delta logL = 0.0132312753112

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.4923       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3896       1.0000          .0000       5.0000    
     3 'Normalizat'    .89669       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99366       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6393.714     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      229 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.4910        7.7983        .17145E-03    .26683E-02
   2  alpha         2.3895        .93359        .23481E-01    .26512E-03
   3  Normalizat    .89670        .21316        .27444E-03   -.40610E-03
   4  Prefactor     .99366        .16539        .20230E-03   -.82795E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.49096
  alpha      = 2.38949
  Normalizat = 0.896696
  Prefactor  = 0.993656
 **********
 **   18 **HESSE 
 **********

 FCN=   6393.714     FROM HESSE     STATUS=OK            23 CALLS      252 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.4910        7.5767        .68579E-05   -1.5239    
   2  alpha         2.3895        .90808        .93924E-03   -.44217E-01
   3  Normalizat    .89670        .21326        .54887E-04   -.96576    
   4  Prefactor     .99366        .16542        .40460E-04   -.92941    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1805e-08
Minuit parameter uncertainties:
  1  7.57799
  2  0.929382
  3  0.213456
  4  0.165505
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/600906': 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) = 6393.71435111
delta logL = 0.0132313468421

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  5.491e+00  7.578e+00  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  2.389e+00  9.294e-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:  9.937e-01  1.655e-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:  8.967e-01  2.135e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.83
Ra Dec: 129.963 1.088

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/600906/cmap_HighResolution_331084801_331344001_4FGL_J0839.8+0105_daily_bin354.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.38e-05', job_status='DONE', photon_flux_upper_limit='9.20e-08', time_completed='2021-08-30 03:02:36.407474', job_id='600906', GAL2='0.99', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1630317756.41', return_code2='0', ts='0.83', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='1.32e-02', ts2='0.85', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='354' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:02:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 600906: <4FGL_J0839.8+0105_daily_bin354> in cluster <slac> Done

Job <4FGL_J0839.8+0105_daily_bin354> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug 30 02:50:26 2021
Job was executed on host(s) <bullet0051>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 02:50:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 30 02:50:28 2021
Terminated at Mon Aug 30 03:02:37 2021
Results reported at Mon Aug 30 03:02:37 2021

Your job looked like:

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

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

