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


Performing analysis on: 4FGL_J0803.5+2046_daily_bin1225
RA = 120.888, Dec = 20.7678
tmin = 556848001, tmax = 557107201
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='75264', job_status='RUN', time_executed='2021-08-28 23:09:22.174820', time_epoch_executed='1630217362.17' WHERE source_name='4FGL J0803.5+2046' and cadence='daily' and bin_id='1225'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/75264

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/75264/ft1_4FGL_J0803.5+2046_daily_bin1225.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/75264/ft2_4FGL_J0803.5+2046_daily_bin1225.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/75264/ft1_4FGL_J0803.5+2046_daily_bin1225.fits outfile=/scratch/kocevski/75264/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin1225.fits ra=120.888 dec=20.7678 rad=12.0 tmin=556848001.0 tmax=557107201.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.01
user 3.36
sys 0.60

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/75264/ft2_4FGL_J0803.5+2046_daily_bin1225.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/75264/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin1225.fits evtable="EVENTS" outfile="/scratch/kocevski/75264/ft1_filtered_4FGL_J0803.5+2046_daily_bin1225.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 0.97
user 0.31
sys 0.58

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/75264/ft1_filtered_4FGL_J0803.5+2046_daily_bin1225.fits" evtable="EVENTS" scfile=/scratch/kocevski/75264/ft2_4FGL_J0803.5+2046_daily_bin1225.fits sctable="SC_DATA" outfile=/scratch/kocevski/75264/ltcube_556848001_557107201_4FGL_J0803.5+2046_daily_bin1225.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/75264/ft2_4FGL_J0803.5+2046_daily_bin1225.fits
.....................!
real 12.56
user 11.72
sys 0.80

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/75264/ft1_filtered_4FGL_J0803.5+2046_daily_bin1225.fits evtable="EVENTS" scfile=/scratch/kocevski/75264/ft2_4FGL_J0803.5+2046_daily_bin1225.fits sctable="SC_DATA" expcube=/scratch/kocevski/75264/ltcube_556848001_557107201_4FGL_J0803.5+2046_daily_bin1225.fits outfile=/scratch/kocevski/75264/expmap_556848001_557107201_4FGL_J0803.5+2046_daily_bin1225.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/75264/ltcube_556848001_557107201_4FGL_J0803.5+2046_daily_bin1225.fits
.....................!
real 190.39
user 185.27
sys 4.77

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/75264/ft1_filtered_4FGL_J0803.5+2046_daily_bin1225.fits scfile=/scratch/kocevski/75264/ft2_4FGL_J0803.5+2046_daily_bin1225.fits outfile=/scratch/kocevski/75264/cmap_556848001_557107201_4FGL_J0803.5+2046_daily_bin1225.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.93
user 0.36
sys 0.56

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/75264/ft1_filtered_4FGL_J0803.5+2046_daily_bin1225.fits scfile=/scratch/kocevski/75264/ft2_4FGL_J0803.5+2046_daily_bin1225.fits outfile=/scratch/kocevski/75264/cmap_HighResolution_556848001_557107201_4FGL_J0803.5+2046_daily_bin1225.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.89
user 0.39
sys 0.50

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.473       1.0000         .10000E-03   10000.    
     2 'norm      '    1.0234       1.0000         .10000E-03   10000.    
     3 'norm      '    .77301       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.113       1.0000         .10000E-03   10000.    
     5 'norm      '    .10716E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10236E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    68.128       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    35.671       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    138.83       1.0000         .10000E-03   10000.    
    14 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    33.520       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.2172       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .14348E-01   1.0000         .10000E-03   10000.    
    20 'norm      '    .28153       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.1435       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.1142       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .81017       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1018       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=   5151.278     FROM MIGRAD    STATUS=CONVERGED    608 CALLS     3731 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.472        13.510        .66677E-06    .17526E-03
   2  norm          1.0228        1.6721        .23020E-06   -.17405E-03
   3  norm          .77283        1.3525        .82483E-08    .77459E-04
   4  Prefactor     12.113        13.590       -.12767E-05   -.29334E-03
   5  norm          .10000E-03    3.3068        .21453E-06** at limit **
   6  Prefactor     .10000E-03    63.457       -.10399E-05** at limit **
   7  Prefactor     .10000E-03    13.067        .14135E-06** at limit **
   8  Prefactor     68.146        62.306        .31000E-05    .10031E-03
   9  Prefactor     .10000E-03    3.1991       -.50531E-07** at limit **
  10  Prefactor     .10000E-03    16.955       -.96604E-07** at limit **
  11  norm          35.668        24.116        .99183E-07    .13374E-04
  12  Prefactor     .10000E-03    8.4771       -.11785E-06** at limit **
  13  Prefactor     138.83        117.85       -.11780E-06   -.64705E-05
  14  norm          .10000E-03    107.74        .12925E-05** at limit **
  15  Prefactor     .10000E-03    20.996       -.26866E-06** at limit **
  16  Prefactor     33.527        32.087       -.14760E-06   -.41127E-04
  17  Prefactor     .10000E-03    12.221        .16442E-06** at limit **
  18  Prefactor     4.2146        44.301        .14359E-05    .62724E-05
  19  Prefactor     .10025E-03    30.139        .81900E-06** at limit **
  20  norm          .28005        1.6905       -.12807E-06   -.67056E-03
  21  Prefactor     7.1432        15.201        .27117E-05   -.32161E-03
  22  Prefactor     3.1141        5.9853        .26703E-08   -.75203E-04
  23  Prefactor     .10000E-03    285.64        .12916E-07** at limit **
  24  Normalizat    .81025        .23056       -.10960E-05   -.69496E-04
  25  Prefactor     1.1018        .15799        .76567E-07   -.10829E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 17.4718
  norm       = 1.02275
  norm       = 0.772826
  Prefactor  = 12.1133
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 68.1458
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 35.6681
  Prefactor  = 0.0001
  Prefactor  = 138.83
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.5274
  Prefactor  = 0.0001
  Prefactor  = 4.21465
  Prefactor  = 0.000100251
  norm       = 0.28005
  Prefactor  = 7.14324
  Prefactor  = 3.11414
  Prefactor  = 0.0001
  Normalizat = 0.810254
  Prefactor  = 1.10178
 **********
 **   18 **HESSE 
 **********

 FCN=   5151.278     FROM HESSE     STATUS=OK           439 CALLS     4170 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.472        13.630        .95814E-04   -1.4872    
   2  norm          1.0228        1.6565        .10972E-03   -1.5506    
   3  norm          .77283        1.1128        .96291E-03   -1.5532    
   4  Prefactor     12.113        14.035        .11510E-03   -1.5012    
   5  norm          .10000E-03    6.1837        .24760E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    64.060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     68.146        64.740        .48629E-04   -1.4055    
   9  Prefactor     .10000E-03    3.3371        .25012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    16.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          35.668        24.074        .67100E-04   -1.4513    
  12  Prefactor     .10000E-03    8.5005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     138.83        117.82        .17093E-03   -1.3346    
  14  norm          .10000E-03    108.04        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    21.033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     33.527        32.117        .69213E-04   -1.4549    
  17  Prefactor     .10000E-03    12.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.2146        44.307        .19623E-03   -1.5297    
  19  Prefactor     .10025E-03    34.393        .10072       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .28005        2.5339        .14827E-02   -1.5602    
  21  Prefactor     7.1432        16.429        .75042E-03   -1.5173    
  22  Prefactor     3.1141        5.9630        .22977E-03   -1.5355    
  23  Prefactor     .10000E-03    287.50        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .81025        .26219        .31380E-03   -.99689    
  25  Prefactor     1.1018        .18257        .19968E-03   -.89410    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.88987e-10
Minuit parameter uncertainties:
  1  13.6324
  2  1.6566
  3  1.11284
  4  14.0388
  5  9.63077e-06
  6  0.000270478
  7  1.57575e-05
  8  64.8067
  9  8.60291e-07
  10  1.30736e-05
  11  24.0803
  12  1.33561e-05
  13  118.015
  14  0.000439585
  15  3.82714e-05
  16  32.1338
  17  2.11617e-05
  18  27.3563
  19  0.00588038
  20  1.68457
  21  16.4398
  22  5.96416
  23  5.94334e-06
  24  0.262602
  25  0.182671
Done.

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

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  1.000e-04  4.396e-04  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.102e+00  1.827e-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.103e-01  2.626e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/75264/likelihoodResults_556848001_557107201_4FGL_J0803.5+2046_daily_bin1225.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) = 5151.27805151
delta logL = -4.39746700067e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5151.27805151
delta logL = -4.3971876039e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96355E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9991       1.0000          .0000       5.0000    
     3 'Normalizat'    .81026       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1018       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=   5151.278     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      193 TOTAL
                     EDM=   .22E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    104.20        .90713E-02** at limit **
   2  alpha         1.9860        3.4114        .42247        .59062E-06
   3  Normalizat    .81025        .20868        .70914E-01    .18207E-04
   4  Prefactor     1.1018        .15350        .37519E-01    .17126E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.98604
  Normalizat = 0.810254
  Prefactor  = 1.10178
 **********
 **   18 **HESSE 
 **********

 FCN=   5151.278     FROM HESSE     STATUS=OK            29 CALLS      222 TOTAL
                     EDM=   .44E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    104.24        .18143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9860        3.4112        .16899       -.20706    
   3  Normalizat    .81025        .23837        .31380E-03   -.99689    
   4  Prefactor     1.1018        .17568        .19968E-03   -.89410    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.44445e-13
Minuit parameter uncertainties:
  1  6.75315e-05
  2  2.44663
  3  0.238676
  4  0.175768
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/75264': 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) = 5151.27800753
delta logL = 3.15594661515e-09

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  1.000e-04  6.753e-05  1.000e-04  1.000e+04 ( 1.000e-13)
274        alpha:  1.986e+00  2.447e+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.102e+00  1.758e-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.103e-01  2.387e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/75264/cmap_HighResolution_556848001_557107201_4FGL_J0803.5+2046_daily_bin1225.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.71e-05', job_status='DONE', photon_flux_upper_limit='5.16e-08', time_completed='2021-08-28 23:20:25.636649', job_id='75264', GAL2='1.10', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1630218025.64', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='3.16e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1225' AND source_name='4FGL J0803.5+2046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 23:20:25 PDT 2021


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

Job <4FGL_J0803.5+2046_daily_bin1225> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 28 23:05:46 2021
Job was executed on host(s) <bullet0050>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 23:05:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 28 23:05:47 2021
Terminated at Sat Aug 28 23:20:26 2021
Results reported at Sat Aug 28 23:20:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0803.5+2046_daily_bin1225 120.888 20.7678 556848001 557107201 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 :                                   668.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   878 sec.
    Turnaround time :                            880 sec.

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

