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


Performing analysis on: 4FGL_J0839.8+0105_daily_bin506
RA = 129.963, Dec = 1.0877
tmin = 370483201, tmax = 370742401
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='601218', job_status='RUN', time_executed='2021-08-30 02:55:20.480211', time_epoch_executed='1630317320.48' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='506'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/601218

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/601218/ft1_4FGL_J0839.8+0105_daily_bin506.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/601218/ft2_4FGL_J0839.8+0105_daily_bin506.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/601218/ft1_4FGL_J0839.8+0105_daily_bin506.fits outfile=/scratch/kocevski/601218/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin506.fits ra=129.963 dec=1.0877 rad=12.0 tmin=370483201.0 tmax=370742401.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 20.33
user 19.13
sys 1.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/601218/ft1_filtered_4FGL_J0839.8+0105_daily_bin506.fits" evtable="EVENTS" scfile=/scratch/kocevski/601218/ft2_4FGL_J0839.8+0105_daily_bin506.fits sctable="SC_DATA" outfile=/scratch/kocevski/601218/ltcube_370483201_370742401_4FGL_J0839.8+0105_daily_bin506.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/601218/ft2_4FGL_J0839.8+0105_daily_bin506.fits
.....................!
real 10.85
user 9.70
sys 1.10

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/601218/ft1_filtered_4FGL_J0839.8+0105_daily_bin506.fits evtable="EVENTS" scfile=/scratch/kocevski/601218/ft2_4FGL_J0839.8+0105_daily_bin506.fits sctable="SC_DATA" expcube=/scratch/kocevski/601218/ltcube_370483201_370742401_4FGL_J0839.8+0105_daily_bin506.fits outfile=/scratch/kocevski/601218/expmap_370483201_370742401_4FGL_J0839.8+0105_daily_bin506.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/601218/ltcube_370483201_370742401_4FGL_J0839.8+0105_daily_bin506.fits
.....................!
real 192.62
user 185.67
sys 6.32

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/601218/ft1_filtered_4FGL_J0839.8+0105_daily_bin506.fits scfile=/scratch/kocevski/601218/ft2_4FGL_J0839.8+0105_daily_bin506.fits outfile=/scratch/kocevski/601218/cmap_370483201_370742401_4FGL_J0839.8+0105_daily_bin506.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.21
user 0.38
sys 0.82

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/601218/ft1_filtered_4FGL_J0839.8+0105_daily_bin506.fits scfile=/scratch/kocevski/601218/ft2_4FGL_J0839.8+0105_daily_bin506.fits outfile=/scratch/kocevski/601218/cmap_HighResolution_370483201_370742401_4FGL_J0839.8+0105_daily_bin506.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.24
user 0.36
sys 0.84

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    80.909       1.0000         .10000E-03   10000.    
     3 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .12064E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10091E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    116.58       1.0000         .10000E-03   10000.    
     9 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12890E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.2052       1.0000         .10000E-03   10000.    
    12 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10484E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10235E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.345       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.7247       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .58693       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=   1848.916     FROM MIGRAD    STATUS=CONVERGED    376 CALLS     1868 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.232       -.15261E-05** at limit **
   2  Prefactor     80.957        75.735        .45158E-04   -.40562E-04
   3  norm          .10000E-03    14.188       -.43483E-05** at limit **
   4  norm          .10000E-03    15.533        .25358E-05** at limit **
   5  norm          .10000E-03    3.4157        .66585E-07** at limit **
   6  norm          .10000E-03    16.136        .14728E-05** at limit **
   7  norm          .10000E-03    3.0770       -.17584E-06** at limit **
   8  Prefactor     116.60        83.785        .21976E-04   -.57320E-04
   9  norm          .10000E-03    57.968        .12816E-04** at limit **
  10  Prefactor     .10000E-03    50.821        .45707E-05** at limit **
  11  norm          2.2059        1.8077        .58320E-07   -.26810E-03
  12  norm          .10000E-03    12.369        .14383E-05** at limit **
  13  Prefactor     .10000E-03    46.340       -.98329E-05** at limit **
  14  norm          .10000E-03    7.9148        .30075E-06** at limit **
  15  norm          .10000E-03    8.2964       -.31220E-07** at limit **
  16  Prefactor     .10000E-03    70.535       -.68995E-05** at limit **
  17  Prefactor     21.354        13.809        .16272E-05   -.81826E-04
  18  Normalizat    1.7221        .41169       -.15782E-04    .16792E-03
  19  Prefactor     .58867        .28005        .32275E-05   -.27015E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 80.9572
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 116.603
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.20592
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.3535
  Normalizat = 1.72212
  Prefactor  = 0.588675
 **********
 **   18 **HESSE 
 **********

 FCN=   1848.916     FROM HESSE     STATUS=OK           258 CALLS     2126 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.295        .17935E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     80.957        75.753        .22326E-03   -1.3906    
   3  norm          .10000E-03    14.207        .15826E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    16.180        .33049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.4668        .77573E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    16.123        .16866E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.0792        .73668E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     116.60        83.794        .18633E-03   -1.3544    
   9  norm          .10000E-03    57.983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    51.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.2059        1.8076        .50370E-04   -1.5411    
  12  norm          .10000E-03    12.435        .14773E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    46.342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    7.9544        .11812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    8.3033        .12098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    70.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     21.354        13.838        .86695E-04   -1.4783    
  18  Normalizat    1.7221        .48114        .25226E-03   -.71714    
  19  Prefactor     .58867        .32756        .28701E-03   -1.0807    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.61996e-09
Minuit parameter uncertainties:
  1  1.65504e-05
  2  75.8435
  3  5.22139e-05
  4  5.81416e-05
  5  9.58256e-06
  6  0.000286685
  7  3.24921e-05
  8  83.8791
  9  2.1363e-05
  10  0.000420123
  11  1.80766
  12  5.34332e-05
  13  4.34591e-05
  14  7.66667e-05
  15  2.9672e-05
  16  0.000181103
  17  13.8403
  18  0.482464
  19  0.328625
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.000e-04  5.343e-05  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:  5.887e-01  3.286e-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.722e+00  4.825e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/601218/likelihoodResults_370483201_370742401_4FGL_J0839.8+0105_daily_bin506.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): 102
logL (Free Index) = 1848.91676134
delta logL = -0.000380206114869

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1848.91638113
delta logL = 9.87938619801e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2329       1.0000          .0000       5.0000    
     3 'Normalizat'    1.7221       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .58870       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=   1848.916     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      243 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6176.1        .14814E-02** at limit **
   2  alpha         2.0514        2.5966        .16581       -.38396E-08
   3  Normalizat    1.7221        .22452        .25227E-03    .68839E-05
   4  Prefactor     .58869        .15946        .28700E-03    .64073E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.05138
  Normalizat = 1.7221
  Prefactor  = 0.588693
 **********
 **   18 **HESSE 
 **********

 FCN=   1848.916     FROM HESSE     STATUS=OK            23 CALLS      266 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.860        .29628E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0514        2.8204        .66324E-02   -.18043    
   3  Normalizat    1.7221        .45803        .10091E-04   -.71715    
   4  Prefactor     .58869        .32508        .11480E-04   -1.0806    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.83173e-11
Minuit parameter uncertainties:
  1  0.000108284
  2  370.239
  3  0.459167
  4  0.326124
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/601218': 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) = 1848.91638101
delta logL = 1.3336102711e-07

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.000e-04  1.083e-04  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  2.051e+00  3.702e+02  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:  5.887e-01  3.261e-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.722e+00  4.592e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/601218/cmap_HighResolution_370483201_370742401_4FGL_J0839.8+0105_daily_bin506.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.80e-05', job_status='DONE', photon_flux_upper_limit='1.58e-07', time_completed='2021-08-30 03:03:15.763521', job_id='601218', GAL2='0.59', fit_tolerance='1e-08', EG2='1.72', EG='1.72', time_epoch_completed='1630317795.76', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.59', dlogl='1.33e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='506' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:03:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 601218: <4FGL_J0839.8+0105_daily_bin506> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin506 129.963 1.0877 370483201 370742401 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 :                                   479.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             236.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   751 sec.
    Turnaround time :                            754 sec.

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

