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


Performing analysis on: 4FGL_J0803.5+2046_daily_bin796
RA = 120.888, Dec = 20.7678
tmin = 445651201, tmax = 445910401
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='72354', job_status='RUN', time_executed='2021-08-28 22:56:39.579470', time_epoch_executed='1630216599.58' WHERE source_name='4FGL J0803.5+2046' and cadence='daily' and bin_id='796'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/72354

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/72354/ft1_4FGL_J0803.5+2046_daily_bin796.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/72354/ft2_4FGL_J0803.5+2046_daily_bin796.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/72354/ft1_4FGL_J0803.5+2046_daily_bin796.fits outfile=/scratch/kocevski/72354/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin796.fits ra=120.888 dec=20.7678 rad=12.0 tmin=445651201.0 tmax=445910401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.78
user 3.30
sys 1.46

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/72354/ft2_4FGL_J0803.5+2046_daily_bin796.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/72354/ft2_4FGL_J0803.5+2046_daily_bin796.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/72354/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin796.fits evtable="EVENTS" outfile="/scratch/kocevski/72354/ft1_filtered_4FGL_J0803.5+2046_daily_bin796.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.76
user 0.32
sys 1.40

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/72354/ft1_filtered_4FGL_J0803.5+2046_daily_bin796.fits" evtable="EVENTS" scfile=/scratch/kocevski/72354/ft2_4FGL_J0803.5+2046_daily_bin796.fits sctable="SC_DATA" outfile=/scratch/kocevski/72354/ltcube_445651201_445910401_4FGL_J0803.5+2046_daily_bin796.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/72354/ft2_4FGL_J0803.5+2046_daily_bin796.fits
.....................!
real 13.24
user 11.50
sys 1.69

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/72354/ft1_filtered_4FGL_J0803.5+2046_daily_bin796.fits evtable="EVENTS" scfile=/scratch/kocevski/72354/ft2_4FGL_J0803.5+2046_daily_bin796.fits sctable="SC_DATA" expcube=/scratch/kocevski/72354/ltcube_445651201_445910401_4FGL_J0803.5+2046_daily_bin796.fits outfile=/scratch/kocevski/72354/expmap_445651201_445910401_4FGL_J0803.5+2046_daily_bin796.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/72354/ltcube_445651201_445910401_4FGL_J0803.5+2046_daily_bin796.fits
.....................!
real 192.38
user 186.25
sys 5.72

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 165 point sources and 0 extended sources

Setting source of interest to:
4FGL J0803.5+2046 @ 120.888 20.7678

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/72354/ft1_filtered_4FGL_J0803.5+2046_daily_bin796.fits scfile=/scratch/kocevski/72354/ft2_4FGL_J0803.5+2046_daily_bin796.fits outfile=/scratch/kocevski/72354/cmap_445651201_445910401_4FGL_J0803.5+2046_daily_bin796.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=120.888 yref=20.7678 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.65
user 0.38
sys 1.22

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/72354/ft1_filtered_4FGL_J0803.5+2046_daily_bin796.fits scfile=/scratch/kocevski/72354/ft2_4FGL_J0803.5+2046_daily_bin796.fits outfile=/scratch/kocevski/72354/cmap_HighResolution_445651201_445910401_4FGL_J0803.5+2046_daily_bin796.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=120.888 yref=20.7678 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.77
user 0.38
sys 1.36

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/72354/ft1_filtered_4FGL_J0803.5+2046_daily_bin796.fits evtable="EVENTS" scfile=/scratch/kocevski/72354/ft2_4FGL_J0803.5+2046_daily_bin796.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/72354/Model_4FGL_J0803.5+2046_daily_bin796.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/72354/ft1_filtered_4FGL_J0803.5+2046_daily_bin796.fits....................!
real 69.39
user 66.36
sys 2.79

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/72354/ft1_filtered_4FGL_J0803.5+2046_daily_bin796.fits', '/scratch/kocevski/72354/ft2_4FGL_J0803.5+2046_daily_bin796.fits', expMap='/scratch/kocevski/72354/expmap_445651201_445910401_4FGL_J0803.5+2046_daily_bin796.fits', expCube='/scratch/kocevski/72354/ltcube_445651201_445910401_4FGL_J0803.5+2046_daily_bin796.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/72354/Model_4FGL_J0803.5+2046_daily_bin796.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0803.5+2046'

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  9.736e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
274        alpha:  1.999e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
275         beta:  7.702e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
276           Eb:  6.928e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/72354/ft1_filtered_4FGL_J0803.5+2046_daily_bin796.fits
Spacecraft file(s): /scratch/kocevski/72354/ft2_4FGL_J0803.5+2046_daily_bin796.fits
Exposure map: /scratch/kocevski/72354/expmap_445651201_445910401_4FGL_J0803.5+2046_daily_bin796.fits
Exposure cube: /scratch/kocevski/72354/ltcube_445651201_445910401_4FGL_J0803.5+2046_daily_bin796.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/72354/Model_4FGL_J0803.5+2046_daily_bin796.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) = 6474.58827392

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.1143       1.0000         .10000E-03   10000.    
     3 'norm      '    .15846       1.0000         .10000E-03   10000.    
     4 'Prefactor '    29.464       1.0000         .10000E-03   10000.    
     5 'norm      '    8.0643       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10371E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.246       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.1169       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .41090E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10868E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    100.83       1.0000         .10000E-03   10000.    
    15 'Prefactor '    27.763       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .41153E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10332E-02   1.0000         .10000E-03   10000.    
    20 'norm      '    .10631E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.524       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .54115       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1765       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5360E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6474.551     FROM MIGRAD    STATUS=FAILED      1105 CALLS     3976 TOTAL
                     EDM=   .64E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.4385        .16541E-02** at limit **
   2  norm          2.1145        1.2290        .65753E-04   -.14506E-03
   3  norm          .15230        4.1080        .16716E-02    .59890E-02
   4  Prefactor     29.496        15.310        .73810E-04   -.40078E-03
   5  norm          8.0627        5.2391        .13377E-03   -.37980E-03
   6  Prefactor     .10000E-03    18.251        .18142E-02** at limit **
   7  Prefactor     .10000E-03    11.641        .18142E-02** at limit **
   8  Prefactor     11.232        27.090        .11947E-03   -.26645E-04
   9  Prefactor     8.1153        3.6450        .48926E-03   -.99896E-03
  10  Prefactor     .10067E-03    33.644        .13732    ** at limit **
  11  norm          .10000E-03    8.9104        .18142E-02** at limit **
  12  Prefactor     .10000E-03    8.8454        .18142E-02** at limit **
  13  Prefactor     .10000E-03    67.093        .18142E-02** at limit **
  14  norm          100.80        117.00        .40039E-04   -.17718E-04
  15  Prefactor     27.752        47.220        .76033E-04    .42826E-03
  16  Prefactor     .11585E-03    62.830        .13313    ** at limit **
  17  Prefactor     .10000E-03    8.6209        .18142E-02** at limit **
  18  Prefactor     .10000E-03    18.383        .18142E-02** at limit **
  19  Prefactor     .10000E-03    138.45        .52534E-02** at limit **
  20  norm          .10000E-03    .89766        .11751E-02** at limit **
  21  Prefactor     16.518        10.804        .98528E-04   -.87000E-04
  22  Prefactor     .10000E-03    5.3921        .18051E-02** at limit **
  23  Prefactor     .10000E-03    14.285        .18142E-02** at limit **
  24  Normalizat    .54141        .22753        .36120E-03   -.96910E-04
  25  Prefactor     1.1763        .16577        .19204E-03   -.40336E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6474.551     FROM SIMPLEX   STATUS=UNCHANGED   1270 CALLS     5246 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.4385        .24768E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.1145        1.2290        .86387E-06   -1.5417    
   3  norm          .15230        4.1080        .88795E-06   -1.5630    
   4  Prefactor     29.496        15.310        .82419E-06   -1.4621    
   5  norm          8.0627        5.2391        .85227E-06   -1.5140    
   6  Prefactor     .10000E-03    18.251        .66555E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.641        .30624E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.232        27.090        .84555E-06   -1.5038    
   9  Prefactor     8.1153        3.6450        .84728E-06   -1.5138    
  10  Prefactor     .10067E-03    33.644        .53673E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    8.9104        .32111E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.8454        .30612E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    67.093        .99720E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          100.80        117.00        .76540E-06   -1.3697    
  15  Prefactor     27.752        47.220        .81792E-06   -1.4654    
  16  Prefactor     .11585E-03    62.830        .32783E-05   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.6209        .21708E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    18.383        .31717E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    138.45        .74799E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .89766        .15822E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     16.518        10.804        .83428E-06   -1.4895    
  22  Prefactor     .10000E-03    5.3921        .51878E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    14.285        .89046E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .54141        .22753        .61878E-06   -1.1053    
  25  Prefactor     1.1763        .16577        .48765E-06   -.87064    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6474.551     FROM MIGRAD    STATUS=CONVERGED    427 CALLS     5673 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.4387        .33082E-03** at limit **
   2  norm          2.1145        1.2290        .26301E-05    .13918E-03
   3  norm          .15231        3.8377        .33433E-03    .23779E-03
   4  Prefactor     29.496        14.792        .29524E-05    .37659E-03
   5  norm          8.0628        5.2389        .53509E-05    .99561E-03
   6  Prefactor     .10000E-03    18.252        .36285E-03** at limit **
   7  Prefactor     .10000E-03    11.642        .36285E-03** at limit **
   8  Prefactor     11.232        27.082        .47786E-05    .28549E-04
   9  Prefactor     8.1154        3.6448        .19570E-04    .94932E-03
  10  Prefactor     .10042E-03    33.317        .13843    ** at limit **
  11  norm          .10000E-03    8.9113        .36285E-03** at limit **
  12  Prefactor     .10000E-03    8.8521        .36285E-03** at limit **
  13  Prefactor     .10000E-03    67.095        .36285E-03** at limit **
  14  norm          100.80        117.02        .80077E-05    .22431E-04
  15  Prefactor     27.751        47.272        .15207E-04    .43362E-05
  16  Prefactor     .11395E-03    63.525        .13235    ** at limit **
  17  Prefactor     .10000E-03    8.6210        .36285E-03** at limit **
  18  Prefactor     .10000E-03    18.397        .36285E-03** at limit **
  19  Prefactor     .10000E-03    141.04        .10507E-02** at limit **
  20  norm          .10000E-03    .89898        .23503E-03** at limit **
  21  Prefactor     16.518        10.803        .39411E-05    .13096E-03
  22  Prefactor     .10000E-03    5.3966        .36102E-03** at limit **
  23  Prefactor     .10000E-03    14.285        .36285E-03** at limit **
  24  Normalizat    .54141        .22737        .14448E-04    .36322E-03
  25  Prefactor     1.1763        .16577        .38408E-04    .82240E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 2.11449
  norm       = 0.15231
  Prefactor  = 29.4965
  norm       = 8.06278
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.2316
  Prefactor  = 8.11538
  Prefactor  = 0.000100424
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 100.796
  Prefactor  = 27.751
  Prefactor  = 0.00011395
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.5177
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.541408
  Prefactor  = 1.17631
 **********
 **   18 **HESSE 
 **********

 FCN=   6474.551     FROM HESSE     STATUS=OK           421 CALLS     6094 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.4387        .66164E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.1145        1.2292        .52602E-06   -1.5417    
   3  norm          .15231        3.7744        .13373E-04   -1.5630    
   4  Prefactor     29.496        14.677        .59048E-06   -1.4621    
   5  norm          8.0628        5.2406        .10702E-05   -1.5140    
   6  Prefactor     .10000E-03    18.252        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.642        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.232        27.206        .95573E-06   -1.5038    
   9  Prefactor     8.1154        3.6449        .39141E-05   -1.5138    
  10  Prefactor     .10042E-03    33.378        .13823       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    8.9113        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.8524        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    67.096        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          100.80        116.96        .16015E-05   -1.3697    
  15  Prefactor     27.751        47.292        .30413E-05   -1.4654    
  16  Prefactor     .11395E-03    63.344        .13260       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.6210        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    18.398        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    141.14        .21013E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .89903        .47005E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     16.518        10.813        .78823E-06   -1.4895    
  22  Prefactor     .10000E-03    5.3968        .72203E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    14.286        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .54141        .22748        .28896E-05   -1.1053    
  25  Prefactor     1.1763        .16580        .76816E-05   -.87063    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22637e-09
Minuit parameter uncertainties:
  1  1.00956e-05
  2  1.22923
  3  1.51602
  4  14.6786
  5  5.24093
  6  3.56273e-05
  7  0.00010333
  8  27.2357
  9  3.645
  10  0.00752588
  11  1.51974e-05
  12  2.51258e-05
  13  0.000113459
  14  117.228
  15  47.356
  16  0.0595157
  17  7.37658e-06
  18  3.60985e-05
  19  0.000125538
  20  1.68008e-05
  21  10.8142
  22  7.36192e-06
  23  2.27485e-05
  24  0.227867
  25  0.165869
Done.

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

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  1.008e+02  1.172e+02  1.000e-04  1.000e+04 ( 1.000e-13)
274        alpha:  1.999e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
275         beta:  7.702e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
276           Eb:  6.928e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
533    Prefactor:  1.176e+00  1.659e-01  0.000e+00  1.000e+01 ( 1.000e+00)
534        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
535        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
532   Normalization:  5.414e-01  2.279e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.98
Ra Dec: 120.888 20.768
Photon Flux Upper Limit: 6.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.53e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/72354/likelihoodResults_445651201_445910401_4FGL_J0803.5+2046_daily_bin796.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) = 6474.52211314
delta logL = 0.0286006174456

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6474.52122833
delta logL = 0.0294854204176

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    96.452       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3236       1.0000          .0000       5.0000    
     3 'Normalizat'    .53766       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1777       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5360E+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=   6474.521     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      267 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          96.464        121.18        .40927E-04    .12056E-04
   2  alpha         2.3235        1.3296        .35698E-01    .45124E-05
   3  Normalizat    .53739        .21114        .36247E-03   -.19227E-04
   4  Prefactor     1.1779        .16295        .19192E-03    .27426E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 96.4637
  alpha      = 2.32351
  Normalizat = 0.53739
  Prefactor  = 1.17789
 **********
 **   18 **HESSE 
 **********

 FCN=   6474.521     FROM HESSE     STATUS=OK            25 CALLS      292 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          96.464        117.37        .81855E-05   -1.3740    
   2  alpha         2.3235        1.2922        .14279E-02   -.70656E-01
   3  Normalizat    .53739        .21102        .14499E-04   -1.1071    
   4  Prefactor     1.1779        .16286        .76769E-05   -.87015    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06501e-11
Minuit parameter uncertainties:
  1  117.658
  2  1.35839
  3  0.211331
  4  0.162927
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/72354': 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) = 6474.52122752
delta logL = 0.0294862352494

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  9.646e+01  1.177e+02  1.000e-04  1.000e+04 ( 1.000e-13)
274        alpha:  2.324e+00  1.358e+00  0.000e+00  5.000e+00 ( 1.000e+00)
275         beta:  7.702e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
276           Eb:  6.928e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
533    Prefactor:  1.178e+00  1.629e-01  0.000e+00  1.000e+01 ( 1.000e+00)
534        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
535        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
532   Normalization:  5.374e-01  2.113e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.04
Ra Dec: 120.888 20.768
Photon Index (Free Index): 2.32 +/- 1.36
Photon Flux (Free Index): 2.17e-08 +/- 2.71e-08
Energy Flux (Free Index): 9.52e-06 +/- 1.10e-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/72354/cmap_HighResolution_445651201_445910401_4FGL_J0803.5+2046_daily_bin796.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.53e-05', comment='SUCCESS', energy_flux2='9.52e-06', dlogl='2.95e-02', photon_flux2='2.17e-08', job_status='DONE', time_completed='2021-08-28 23:11:20.463433', photon_index_error2='1.36', photon_index2='2.32', ts='0.98', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', photon_flux_upper_limit='6.70e-08', energy_flux_error2='1.10e-05', EG='0.54', time_epoch_completed='1630217480.46', return_code='0', job_id='72354', GAL2='1.18', EG2='0.54', return_code2='0', photon_flux_error2='2.71e-08', ts2='1.04', photon_index='2.00' WHERE bin_id='796' AND source_name='4FGL J0803.5+2046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 23:11:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 72354: <4FGL_J0803.5+2046_daily_bin796> in cluster <slac> Done

Job <4FGL_J0803.5+2046_daily_bin796> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Aug 28 22:56:00 2021
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 22:56:02 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 28 22:56:02 2021
Terminated at Sat Aug 28 23:11:21 2021
Results reported at Sat Aug 28 23:11:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0803.5+2046_daily_bin796 120.888 20.7678 445651201 445910401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0803.5+2046 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   898.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             329.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   918 sec.
    Turnaround time :                            921 sec.

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

