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


Performing analysis on: 4FGL_J0803.5+2046_daily_bin57
RA = 120.888, Dec = 20.7678
tmin = 254102401, tmax = 254361601
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='69099', job_status='RUN', time_executed='2021-08-28 22:48:56.088963', time_epoch_executed='1630216136.09' WHERE source_name='4FGL J0803.5+2046' and cadence='daily' and bin_id='57'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/69099

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/69099/ft1_4FGL_J0803.5+2046_daily_bin57.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/69099/ft2_4FGL_J0803.5+2046_daily_bin57.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/69099/ft1_4FGL_J0803.5+2046_daily_bin57.fits outfile=/scratch/kocevski/69099/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin57.fits ra=120.888 dec=20.7678 rad=12.0 tmin=254102401.0 tmax=254361601.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 2.90
user 1.82
sys 1.05

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/69099/ft2_4FGL_J0803.5+2046_daily_bin57.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/69099/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin57.fits evtable="EVENTS" outfile="/scratch/kocevski/69099/ft1_filtered_4FGL_J0803.5+2046_daily_bin57.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.37
user 0.34
sys 1.02

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/69099/ft1_filtered_4FGL_J0803.5+2046_daily_bin57.fits" evtable="EVENTS" scfile=/scratch/kocevski/69099/ft2_4FGL_J0803.5+2046_daily_bin57.fits sctable="SC_DATA" outfile=/scratch/kocevski/69099/ltcube_254102401_254361601_4FGL_J0803.5+2046_daily_bin57.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/69099/ft2_4FGL_J0803.5+2046_daily_bin57.fits
.....................!
real 13.56
user 12.22
sys 1.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/69099/ft1_filtered_4FGL_J0803.5+2046_daily_bin57.fits evtable="EVENTS" scfile=/scratch/kocevski/69099/ft2_4FGL_J0803.5+2046_daily_bin57.fits sctable="SC_DATA" expcube=/scratch/kocevski/69099/ltcube_254102401_254361601_4FGL_J0803.5+2046_daily_bin57.fits outfile=/scratch/kocevski/69099/expmap_254102401_254361601_4FGL_J0803.5+2046_daily_bin57.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/69099/ltcube_254102401_254361601_4FGL_J0803.5+2046_daily_bin57.fits
.....................!
real 191.36
user 185.30
sys 5.68

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/69099/ft1_filtered_4FGL_J0803.5+2046_daily_bin57.fits scfile=/scratch/kocevski/69099/ft2_4FGL_J0803.5+2046_daily_bin57.fits outfile=/scratch/kocevski/69099/cmap_254102401_254361601_4FGL_J0803.5+2046_daily_bin57.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.39
user 0.35
sys 1.02

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/69099/ft1_filtered_4FGL_J0803.5+2046_daily_bin57.fits scfile=/scratch/kocevski/69099/ft2_4FGL_J0803.5+2046_daily_bin57.fits outfile=/scratch/kocevski/69099/cmap_HighResolution_254102401_254361601_4FGL_J0803.5+2046_daily_bin57.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.39
user 0.37
sys 1.01

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3756       1.0000         .10000E-03   10000.    
     2 'norm      '    2.1698       1.0000         .10000E-03   10000.    
     3 'norm      '    3.1396       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11091E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    7.1977       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10565E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11660E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .11616E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    31.952       1.0000         .10000E-03   10000.    
    13 'Prefactor '    67.551       1.0000         .10000E-03   10000.    
    14 'norm      '    41.191       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10824E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .28098E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.049       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10581E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.4206       1.0000         .10000E-03   10000.    
    20 'norm      '    .10089E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10472E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    64.380       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0454       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .99642       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=   6108.107     FROM MIGRAD    STATUS=CONVERGED    600 CALLS     2934 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3680        14.774        .10922E-05    .16849E-04
   2  norm          2.1697        1.2203        .21714E-07    .35857E-04
   3  norm          3.1406        1.7486       -.28660E-06    .18463E-03
   4  Prefactor     .10042E-03    9.1185       -.72291E-06** at limit **
   5  norm          7.2007        4.7340        .21798E-05    .73907E-03
   6  Prefactor     .10000E-03    12.006       -.15037E-06** at limit **
   7  Prefactor     .10000E-03    12.148       -.43499E-06** at limit **
   8  Prefactor     .10000E-03    12.830       -.15642E-08** at limit **
   9  Prefactor     .10000E-03    1.2473       -.19851E-06** at limit **
  10  Prefactor     .10000E-03    15.809       -.31765E-06** at limit **
  11  norm          .10000E-03    17.899        .10489E-05** at limit **
  12  Prefactor     31.942        16.042        .98452E-07    .19123E-04
  13  Prefactor     67.277        99.816       -.85191E-06   -.85891E-04
  14  norm          41.219        65.177        .11198E-06   -.57820E-05
  15  Prefactor     .10000E-03    14.733        .61161E-07** at limit **
  16  Prefactor     .13488E-03    43.085        .62876E-05** at limit **
  17  Prefactor     16.058        21.661       -.14540E-06   -.14178E-03
  18  Prefactor     .10000E-03    21.756        .45210E-06** at limit **
  19  Prefactor     4.4267        14.009       -.21789E-06   -.14963E-03
  20  norm          .10000E-03    .62004        .43341E-06** at limit **
  21  Prefactor     .10000E-03    7.7083        .37684E-06** at limit **
  22  Prefactor     .10000E-03    2.4218        .78786E-07** at limit **
  23  Prefactor     64.384        46.429        .33709E-06   -.27288E-04
  24  Normalizat    1.0454        .19218       -.18085E-05   -.35770E-03
  25  Prefactor     .99653        .14491       -.16421E-06   -.41723E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.36804
  norm       = 2.16972
  norm       = 3.14065
  Prefactor  = 0.000100419
  norm       = 7.20066
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 31.9425
  Prefactor  = 67.2765
  norm       = 41.219
  Prefactor  = 0.0001
  Prefactor  = 0.000134875
  Prefactor  = 16.0578
  Prefactor  = 0.0001
  Prefactor  = 4.42666
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 64.3836
  Normalizat = 1.04544
  Prefactor  = 0.996527
 **********
 **   18 **HESSE 
 **********

 FCN=   6108.107     FROM HESSE     STATUS=OK           431 CALLS     3365 TOTAL
                     EDM=   .96E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.3680        14.868        .22024E-03   -1.5341    
   2  norm          2.1697        1.2170        .62530E-04   -1.5413    
   3  norm          3.1406        1.5535        .65789E-04   -1.5354    
   4  Prefactor     .10042E-03    52.863        .39434E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.2007        4.6913        .64567E-03   -1.5171    
   6  Prefactor     .10000E-03    12.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    12.837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.2635        .85098E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    15.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    17.960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     31.942        16.029        .70885E-04   -1.4577    
  13  Prefactor     67.277        100.00        .24417E-03   -1.4066    
  14  norm          41.219        65.227        .62458E-04   -1.4423    
  15  Prefactor     .10000E-03    14.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .13488E-03    38.154        .12784       -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     16.058        21.671        .99977E-04   -1.4906    
  18  Prefactor     .10000E-03    22.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.4267        13.759        .19154E-03   -1.5287    
  20  norm          .10000E-03    .94987        .11611E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.8259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.4320        .11878E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     64.384        46.461        .50015E-04   -1.4101    
  24  Normalizat    1.0454        .22365        .27436E-03   -.91523    
  25  Prefactor     .99653        .16988        .21502E-03   -.92845    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.58547e-09
Minuit parameter uncertainties:
  1  14.1587
  2  1.21701
  3  1.55356
  4  0.00941883
  5  4.69154
  6  3.02263e-05
  7  0.00010174
  8  4.76748e-06
  9  1.67867e-06
  10  7.80913e-05
  11  4.22433e-05
  12  16.0312
  13  100.256
  14  65.3406
  15  4.21126e-06
  16  0.0730024
  17  21.6812
  18  8.67029e-05
  19  13.7683
  20  7.45494e-06
  21  2.21562e-05
  22  4.0372e-06
  23  46.4868
  24  0.223854
  25  0.169969
Done.

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

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  4.122e+01  6.534e+01  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:  9.965e-01  1.700e-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:  1.045e+00  2.239e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/69099/likelihoodResults_254102401_254361601_4FGL_J0803.5+2046_daily_bin57.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) = 6108.08771676
delta logL = 0.0193632087521

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6108.08738021
delta logL = 0.0196997584599

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    42.791       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6780       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0465       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99600       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.

 FCN=   6108.087     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      213 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          42.791        79.146        .15321E-02    .56258E-03
   2  alpha         1.6780        1.6877        .44391        .36286E-04
   3  Normalizat    1.0465        .18455        .62002E-01   -.11604E-03
   4  Prefactor     .99600        .14252        .46217E-01    .10462E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 42.7913
  alpha      = 1.67796
  Normalizat = 1.04654
  Prefactor  = 0.995997
 **********
 **   18 **HESSE 
 **********

 FCN=   6108.087     FROM HESSE     STATUS=OK            29 CALLS      242 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          42.791        66.031        .61284E-04   -1.4399    
   2  alpha         1.6780        1.4748        .50534E-02   -.33505    
   3  Normalizat    1.0465        .21487        .27422E-03   -.91487    
   4  Prefactor     .99600        .16616        .21506E-03   -.92863    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.92141e-09
Minuit parameter uncertainties:
  1  66.1443
  2  1.59297
  3  0.215047
  4  0.166244
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/69099': 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) = 6108.08738013
delta logL = 0.0196998407155

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  4.279e+01  6.614e+01  1.000e-04  1.000e+04 ( 1.000e-13)
274        alpha:  1.678e+00  1.593e+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:  9.960e-01  1.662e-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:  1.047e+00  2.150e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.61
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/69099/cmap_HighResolution_254102401_254361601_4FGL_J0803.5+2046_daily_bin57.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.32e-05', job_status='DONE', photon_flux_upper_limit='4.41e-08', time_completed='2021-08-28 23:00:19.617626', job_id='69099', GAL2='1.00', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1630216819.62', return_code2='0', ts='0.61', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='1.97e-02', ts2='0.65', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='57' AND source_name='4FGL J0803.5+2046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 23:00:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 69099: <4FGL_J0803.5+2046_daily_bin57> in cluster <slac> Done

Job <4FGL_J0803.5+2046_daily_bin57> 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) <bullet0032>, 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 23:00:20 2021
Results reported at Sat Aug 28 23:00:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0803.5+2046_daily_bin57 120.888 20.7678 254102401 254361601 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 :                                   696.51 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             286.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   861 sec.
    Turnaround time :                            863 sec.

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

