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


Performing analysis on: 4FGL_J0839.8+0105_daily_bin276
RA = 129.963, Dec = 1.0877
tmin = 310867201, tmax = 311126401
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='600793', job_status='RUN', time_executed='2021-08-30 02:53:15.115252', time_epoch_executed='1630317195.12' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='276'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/600793

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/600793/ft1_4FGL_J0839.8+0105_daily_bin276.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/600793/ft2_4FGL_J0839.8+0105_daily_bin276.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/600793/ft1_4FGL_J0839.8+0105_daily_bin276.fits outfile=/scratch/kocevski/600793/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin276.fits ra=129.963 dec=1.0877 rad=12.0 tmin=310867201.0 tmax=311126401.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 6.66
user 3.29
sys 3.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/600793/ft1_filtered_4FGL_J0839.8+0105_daily_bin276.fits" evtable="EVENTS" scfile=/scratch/kocevski/600793/ft2_4FGL_J0839.8+0105_daily_bin276.fits sctable="SC_DATA" outfile=/scratch/kocevski/600793/ltcube_310867201_311126401_4FGL_J0839.8+0105_daily_bin276.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/600793/ft2_4FGL_J0839.8+0105_daily_bin276.fits
.....................!
real 15.75
user 11.58
sys 3.76

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/600793/ft1_filtered_4FGL_J0839.8+0105_daily_bin276.fits evtable="EVENTS" scfile=/scratch/kocevski/600793/ft2_4FGL_J0839.8+0105_daily_bin276.fits sctable="SC_DATA" expcube=/scratch/kocevski/600793/ltcube_310867201_311126401_4FGL_J0839.8+0105_daily_bin276.fits outfile=/scratch/kocevski/600793/expmap_310867201_311126401_4FGL_J0839.8+0105_daily_bin276.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/600793/ltcube_310867201_311126401_4FGL_J0839.8+0105_daily_bin276.fits
.....................!
real 196.31
user 185.49
sys 9.54

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 152 point sources and 0 extended sources

Setting source of interest to:
4FGL J0839.8+0105 @ 129.963 1.0877

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/600793/ft1_filtered_4FGL_J0839.8+0105_daily_bin276.fits scfile=/scratch/kocevski/600793/ft2_4FGL_J0839.8+0105_daily_bin276.fits outfile=/scratch/kocevski/600793/cmap_310867201_311126401_4FGL_J0839.8+0105_daily_bin276.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 3.59
user 0.38
sys 3.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/600793/ft1_filtered_4FGL_J0839.8+0105_daily_bin276.fits scfile=/scratch/kocevski/600793/ft2_4FGL_J0839.8+0105_daily_bin276.fits outfile=/scratch/kocevski/600793/cmap_HighResolution_310867201_311126401_4FGL_J0839.8+0105_daily_bin276.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 3.66
user 0.39
sys 3.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10016E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.8932       1.0000         .10000E-03   10000.    
     4 'norm      '    2.3280       1.0000         .10000E-03   10000.    
     5 'norm      '    1.3432       1.0000         .10000E-03   10000.    
     6 'norm      '    .10105E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.6814       1.0000         .10000E-03   10000.    
     8 'Prefactor '    54.330       1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .24385E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.3425       1.0000         .10000E-03   10000.    
    12 'norm      '    9.0691       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10598E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    44.407       1.0000         .10000E-03   10000.    
    15 'norm      '    10.216       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.0740       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0493       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .98314       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=   5986.786     FROM MIGRAD    STATUS=CONVERGED    399 CALLS     1900 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.8706       -.27749E-07** at limit **
   2  Prefactor     .10000E-03    17.158        .28883E-06** at limit **
   3  norm          1.8920        6.3899        .11310E-05   -.17606E-05
   4  norm          2.3276        2.8851        .79743E-07   -.15034E-04
   5  norm          1.3428        1.8995        .16918E-06    .22915E-04
   6  norm          .10000E-03    17.346        .62604E-06** at limit **
   7  norm          3.6809        3.8247        .11862E-06   -.23541E-04
   8  Prefactor     54.361        51.726        .17897E-05    .20151E-03
   9  norm          .10000E-03    10.603       -.12837E-07** at limit **
  10  Prefactor     .10000E-03    56.491        .26320E-05** at limit **
  11  norm          1.3424        .97480        .31008E-07   -.82280E-04
  12  norm          9.0684        8.9474        .19646E-05   -.26184E-04
  13  Prefactor     .10000E-03    107.65       -.24109E-06** at limit **
  14  norm          44.407        8.5953        .72814E-07   -.12457E-04
  15  norm          10.216        6.8610        .85875E-07    .56270E-05
  16  Prefactor     .10000E-03    15.982       -.69881E-07** at limit **
  17  Prefactor     5.0730        5.4049        .33180E-06   -.80365E-05
  18  Normalizat    1.0491        .24034       -.30941E-05    .35894E-04
  19  Prefactor     .98335        .16839        .13394E-05   -.14379E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.89197
  norm       = 2.32756
  norm       = 1.34276
  norm       = 0.0001
  norm       = 3.68091
  Prefactor  = 54.3607
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.34242
  norm       = 9.06845
  Prefactor  = 0.0001
  norm       = 44.4073
  norm       = 10.2161
  Prefactor  = 0.0001
  Prefactor  = 5.07302
  Normalizat = 1.04909
  Prefactor  = 0.983349
 **********
 **   18 **HESSE 
 **********

 FCN=   5986.786     FROM HESSE     STATUS=OK           268 CALLS     2168 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.8734        .12802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    17.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.8920        6.3826        .30238E-03   -1.5433    
   4  norm          2.3276        2.8417        .13482E-03   -1.5403    
   5  norm          1.3428        1.8664        .11625E-03   -1.5476    
   6  norm          .10000E-03    17.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.6809        3.8180        .14889E-03   -1.5324    
   8  Prefactor     54.361        52.369        .54418E-04   -1.4232    
   9  norm          .10000E-03    10.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    58.664        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.3424        .96219        .62493E-04   -1.5476    
  12  norm          9.0684        9.0474        .66544E-03   -1.5106    
  13  Prefactor     .10000E-03    110.15        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          44.407        8.6034        .60163E-04   -1.4374    
  15  norm          10.216        6.8603        .12536E-03   -1.5069    
  16  Prefactor     .10000E-03    16.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.0730        5.3989        .17716E-03   -1.5257    
  18  Normalizat    1.0491        .27195        .30344E-03   -.91403    
  19  Prefactor     .98335        .19400        .23142E-03   -.93287    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8861e-10
Minuit parameter uncertainties:
  1  1.20155e-07
  2  2.14952e-05
  3  6.38485
  4  2.84182
  5  1.86645
  6  1.37241e-05
  7  3.81828
  8  52.4131
  9  5.44867e-07
  10  2.75711e-05
  11  0.962206
  12  9.04879
  13  0.000384903
  14  8.60364
  15  6.86085
  16  3.43853e-06
  17  5.39945
  18  0.272315
  19  0.194142
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  9.068e+00  9.049e+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.833e-01  1.941e-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.049e+00  2.723e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.44
Ra Dec: 129.963 1.088
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 3.52e-08 +/- 3.51e-08
Energy Flux (Fixed Index): 1.30e-05 +/- 1.29e-05

TS (Fixed Index): 1.44
Ra Dec: 129.963 1.088
Photon Flux Upper Limit: 1.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.20e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/600793/likelihoodResults_310867201_311126401_4FGL_J0839.8+0105_daily_bin276.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) = 5986.26844135
delta logL = 0.517627535455

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5986.26730056
delta logL = 0.518768320909

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.7591       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3190       1.0000          .0000       5.0000    
     3 'Normalizat'    .98812       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0127       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=   5986.267     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      286 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.7587        10.860        .12976E-03    .19362E-04
   2  alpha         3.3193        1.4213        .16112E-01    .19026E-03
   3  Normalizat    .98810        .26256        .31137E-03   -.60610E-04
   4  Prefactor     1.0127        .19261        .22837E-03   -.14568E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.75865
  alpha      = 3.31933
  Normalizat = 0.988105
  Prefactor  = 1.01266
 **********
 **   18 **HESSE 
 **********

 FCN=   5986.267     FROM HESSE     STATUS=OK            25 CALLS      311 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.7587        8.6742        .51905E-05   -1.5228    
   2  alpha         3.3193        1.1637        .32224E-02    .33390    
   3  Normalizat    .98810        .26112        .12455E-04   -.93430    
   4  Prefactor     1.0127        .19139        .45675E-04   -.92309    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.48902e-11
Minuit parameter uncertainties:
  1  8.67613
  2  1.21687
  3  0.261461
  4  0.191521
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/600793': 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) = 5986.26730048
delta logL = 0.518768405782

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  5.759e+00  8.676e+00  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  3.319e+00  1.217e+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.013e+00  1.915e-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.881e-01  2.615e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.52
Ra Dec: 129.963 1.088
Photon Index (Free Index): 3.32 +/- 1.22
Photon Flux (Free Index): 8.12e-08 +/- 6.64e-08
Energy Flux (Free Index): 1.57e-05 +/- 1.17e-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/600793/cmap_HighResolution_310867201_311126401_4FGL_J0839.8+0105_daily_bin276.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.20e-05', comment='SUCCESS', photon_flux='3.52e-08', energy_flux2='1.57e-05', photon_flux_error='3.51e-08', dlogl='5.19e-01', energy_flux='1.30e-05', photon_flux2='8.12e-08', job_status='DONE', time_completed='2021-08-30 03:03:11.535121', photon_index_error2='1.22', photon_index2='3.32', ts='1.44', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.14e-07', energy_flux_error2='1.17e-05', EG='1.05', time_epoch_completed='1630317791.54', return_code='0', job_id='600793', GAL2='1.01', EG2='0.99', return_code2='0', energy_flux_error='1.29e-05', photon_flux_error2='6.64e-08', ts2='2.52', photon_index='2.24' WHERE bin_id='276' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:03:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 600793: <4FGL_J0839.8+0105_daily_bin276> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin276 129.963 1.0877 310867201 311126401 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 :                                   634.37 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             309.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   771 sec.
    Turnaround time :                            773 sec.

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

