/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 3 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 = 7394
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0803.5+2046_daily_bin61
RA = 120.888, Dec = 20.7678
tmin = 255139201, tmax = 255398401
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='69103', job_status='RUN', time_executed='2021-08-28 22:46:19.124230', time_epoch_executed='1630215979.12' WHERE source_name='4FGL J0803.5+2046' and cadence='daily' and bin_id='61'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/69103

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/69103/ft1_4FGL_J0803.5+2046_daily_bin61.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/69103/ft2_4FGL_J0803.5+2046_daily_bin61.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/69103/ft1_4FGL_J0803.5+2046_daily_bin61.fits outfile=/scratch/kocevski/69103/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin61.fits ra=120.888 dec=20.7678 rad=12.0 tmin=255139201.0 tmax=255398401.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 7.80
user 7.13
sys 0.64

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/69103/ft1_filtered_4FGL_J0803.5+2046_daily_bin61.fits" evtable="EVENTS" scfile=/scratch/kocevski/69103/ft2_4FGL_J0803.5+2046_daily_bin61.fits sctable="SC_DATA" outfile=/scratch/kocevski/69103/ltcube_255139201_255398401_4FGL_J0803.5+2046_daily_bin61.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/69103/ft2_4FGL_J0803.5+2046_daily_bin61.fits
.....................!
real 12.44
user 11.67
sys 0.70

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/69103/ft1_filtered_4FGL_J0803.5+2046_daily_bin61.fits evtable="EVENTS" scfile=/scratch/kocevski/69103/ft2_4FGL_J0803.5+2046_daily_bin61.fits sctable="SC_DATA" expcube=/scratch/kocevski/69103/ltcube_255139201_255398401_4FGL_J0803.5+2046_daily_bin61.fits outfile=/scratch/kocevski/69103/expmap_255139201_255398401_4FGL_J0803.5+2046_daily_bin61.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/69103/ltcube_255139201_255398401_4FGL_J0803.5+2046_daily_bin61.fits
.....................!
real 190.68
user 185.56
sys 4.74

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/69103/ft1_filtered_4FGL_J0803.5+2046_daily_bin61.fits scfile=/scratch/kocevski/69103/ft2_4FGL_J0803.5+2046_daily_bin61.fits outfile=/scratch/kocevski/69103/cmap_255139201_255398401_4FGL_J0803.5+2046_daily_bin61.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 0.89
user 0.36
sys 0.51

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/69103/ft1_filtered_4FGL_J0803.5+2046_daily_bin61.fits scfile=/scratch/kocevski/69103/ft2_4FGL_J0803.5+2046_daily_bin61.fits outfile=/scratch/kocevski/69103/cmap_HighResolution_255139201_255398401_4FGL_J0803.5+2046_daily_bin61.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 0.90
user 0.38
sys 0.51

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/69103/ft1_filtered_4FGL_J0803.5+2046_daily_bin61.fits', '/scratch/kocevski/69103/ft2_4FGL_J0803.5+2046_daily_bin61.fits', expMap='/scratch/kocevski/69103/expmap_255139201_255398401_4FGL_J0803.5+2046_daily_bin61.fits', expCube='/scratch/kocevski/69103/ltcube_255139201_255398401_4FGL_J0803.5+2046_daily_bin61.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/69103/Model_4FGL_J0803.5+2046_daily_bin61.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/69103/ft1_filtered_4FGL_J0803.5+2046_daily_bin61.fits
Spacecraft file(s): /scratch/kocevski/69103/ft2_4FGL_J0803.5+2046_daily_bin61.fits
Exposure map: /scratch/kocevski/69103/expmap_255139201_255398401_4FGL_J0803.5+2046_daily_bin61.fits
Exposure cube: /scratch/kocevski/69103/ltcube_255139201_255398401_4FGL_J0803.5+2046_daily_bin61.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/69103/Model_4FGL_J0803.5+2046_daily_bin61.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) = 4215.06550112

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.0600       1.0000         .10000E-03   10000.    
     3 'norm      '    .22828       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.8250       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.987       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.6679       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    22.295       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.2048       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    90.979       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    39.715       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.406       1.0000         .10000E-03   10000.    
    20 'norm      '    1.1348       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.0075       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .81619       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2426       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.

 FCN=   4215.057     FROM MIGRAD    STATUS=CONVERGED    561 CALLS     2866 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.1668        .16632E-06** at limit **
   2  norm          3.0599        2.0645        .11421E-06   -.20939E-03
   3  norm          .23638        2.2254        .11999E-05   -.59849E-03
   4  Prefactor     .10000E-03    15.052        .27587E-06** at limit **
   5  norm          1.8259        4.5917        .10356E-05   -.84550E-06
   6  Prefactor     .10000E-03    51.313       -.18164E-05** at limit **
   7  Prefactor     .10000E-03    16.365        .43044E-06** at limit **
   8  Prefactor     16.984        40.496        .32393E-06   -.59197E-04
   9  Prefactor     6.6681        4.4280        .29696E-06   -.15479E-03
  10  Prefactor     .10000E-03    22.445       -.12577E-05** at limit **
  11  norm          22.294        27.148       -.12507E-06   -.71801E-05
  12  Prefactor     5.2053        12.035        .41627E-06   -.46049E-05
  13  Prefactor     .10000E-03    45.843        .10806E-05** at limit **
  14  norm          91.065        145.81        .10058E-04    .60949E-04
  15  Prefactor     .10000E-03    34.871        .27067E-05** at limit **
  16  Prefactor     .10000E-03    15.822        .91821E-06** at limit **
  17  Prefactor     39.711        34.645       -.14778E-06   -.33088E-04
  18  Prefactor     .10000E-03    6.8487       -.10926E-06** at limit **
  19  Prefactor     19.469        44.856        .86769E-06    .12311E-03
  20  norm          1.1324        2.1791        .13854E-05    .22104E-03
  21  Prefactor     .10000E-03    12.547       -.16972E-05** at limit **
  22  Prefactor     5.0088        8.9824        .45364E-05   -.91012E-04
  23  Prefactor     .10000E-03    22.880       -.13139E-05** at limit **
  24  Normalizat    .81605        .26338       -.76631E-05   -.75367E-04
  25  Prefactor     1.2427        .19525        .18187E-05   -.37431E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 3.05992
  norm       = 0.23638
  Prefactor  = 0.0001
  norm       = 1.82593
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.9839
  Prefactor  = 6.66812
  Prefactor  = 0.0001
  norm       = 22.2943
  Prefactor  = 5.20534
  Prefactor  = 0.0001
  norm       = 91.0649
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.7105
  Prefactor  = 0.0001
  Prefactor  = 19.4687
  norm       = 1.13243
  Prefactor  = 0.0001
  Prefactor  = 5.00879
  Prefactor  = 0.0001
  Normalizat = 0.816049
  Prefactor  = 1.24269
 **********
 **   18 **HESSE 
 **********

 FCN=   4215.057     FROM HESSE     STATUS=OK           425 CALLS     3291 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.1788        .16977E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.0599        2.0618        .73172E-04   -1.5358    
   3  norm          .23638        4.5202        .17623E-02   -1.5611    
   4  Prefactor     .10000E-03    15.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.8259        4.5674        .20834E-03   -1.5438    
   6  Prefactor     .10000E-03    51.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     16.984        40.308        .97176E-04   -1.4884    
   9  Prefactor     6.6681        4.4293        .10560E-03   -1.5191    
  10  Prefactor     .10000E-03    22.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          22.294        27.259        .84829E-04   -1.4763    
  12  Prefactor     5.2053        12.070        .17620E-03   -1.5252    
  13  Prefactor     .10000E-03    45.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          91.065        148.04        .21065E-03   -1.3796    
  15  Prefactor     .10000E-03    35.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     39.711        34.656        .31802E-03   -1.4447    
  18  Prefactor     .10000E-03    6.8569        .16594E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     19.469        44.652        .90919E-04   -1.4825    
  20  norm          1.1324        2.1275        .96629E-04   -1.5495    
  21  Prefactor     .10000E-03    12.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.0088        8.9606        .89853E-03   -1.5260    
  23  Prefactor     .10000E-03    22.929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .81605        .29239        .31396E-03   -.99476    
  25  Prefactor     1.2427        .22220        .20525E-03   -.85028    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.84237e-10
Minuit parameter uncertainties:
  1  1.42653e-05
  2  2.06183
  3  2.06709
  4  6.18188e-06
  5  4.56826
  6  0.000130826
  7  4.67588e-05
  8  40.3729
  9  4.42951
  10  9.17908e-05
  11  27.2738
  12  12.0753
  13  0.000134143
  14  148.642
  15  0.000251294
  16  4.50002e-05
  17  34.6734
  18  8.04374e-06
  19  44.7289
  20  2.12762
  21  0.000109497
  22  8.96297
  23  7.24545e-05
  24  0.292957
  25  0.222365
Done.

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

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  9.106e+01  1.486e+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.243e+00  2.224e-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:  8.160e-01  2.930e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/69103/likelihoodResults_255139201_255398401_4FGL_J0803.5+2046_daily_bin61.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) = 4214.89699149
delta logL = 0.159676721211

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4214.89604678
delta logL = 0.16062142495

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    89.867       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8898       1.0000          .0000       5.0000    
     3 'Normalizat'    .80400       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2435       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=   4214.896     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      264 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          89.580        138.41        .21193E-03    .15020E-05
   2  alpha         2.8839        1.5315        .29977E-01    .69824E-04
   3  Normalizat    .80336        .27254        .31621E-03   -.12943E-05
   4  Prefactor     1.2440        .21582        .20510E-03    .27161E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 89.5801
  alpha      = 2.88387
  Normalizat = 0.803362
  Prefactor  = 1.24397
 **********
 **   18 **HESSE 
 **********

 FCN=   4214.896     FROM HESSE     STATUS=OK            25 CALLS      289 TOTAL
                     EDM=   .27E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          89.580        132.73        .84773E-05   -1.3812    
   2  alpha         2.8839        1.4763        .59954E-02    .15416    
   3  Normalizat    .80336        .27232        .12648E-04   -.99944    
   4  Prefactor     1.2440        .21575        .82039E-05   -.84989    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.73946e-12
Minuit parameter uncertainties:
  1  133.176
  2  1.58228
  3  0.272788
  4  0.215908
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/69103': 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) = 4214.89602265
delta logL = 0.160645554423

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  8.958e+01  1.332e+02  1.000e-04  1.000e+04 ( 1.000e-13)
274        alpha:  2.884e+00  1.582e+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.244e+00  2.159e-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:  8.034e-01  2.728e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.48
Ra Dec: 120.888 20.768

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/69103/cmap_HighResolution_255139201_255398401_4FGL_J0803.5+2046_daily_bin61.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.41e-05', job_status='DONE', photon_flux_upper_limit='8.38e-08', time_completed='2021-08-28 22:56:06.051708', job_id='69103', GAL2='1.24', fit_tolerance='1e-08', EG2='0.80', EG='0.82', time_epoch_completed='1630216566.05', return_code2='0', ts='0.48', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='1.61e-01', ts2='0.80', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='61' AND source_name='4FGL J0803.5+2046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 22:56:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 69103: <4FGL_J0803.5+2046_daily_bin61> in cluster <slac> Done

Job <4FGL_J0803.5+2046_daily_bin61> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Aug 28 22:45:57 2021
Job was executed on host(s) <bullet0050>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 22:45:59 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:45:59 2021
Terminated at Sat Aug 28 22:56:06 2021
Results reported at Sat Aug 28 22:56:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0803.5+2046_daily_bin61 120.888 20.7678 255139201 255398401 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 :                                   591.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             286.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   607 sec.
    Turnaround time :                            609 sec.

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

