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


Performing analysis on: 4FGL_J0803.5+2046_daily_bin1423
RA = 120.888, Dec = 20.7678
tmin = 608169601, tmax = 608428801
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='75590', job_status='RUN', time_executed='2021-08-28 23:07:40.439800', time_epoch_executed='1630217260.44' WHERE source_name='4FGL J0803.5+2046' and cadence='daily' and bin_id='1423'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/75590

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/75590/ft1_4FGL_J0803.5+2046_daily_bin1423.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/75590/ft2_4FGL_J0803.5+2046_daily_bin1423.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/75590/ft1_4FGL_J0803.5+2046_daily_bin1423.fits outfile=/scratch/kocevski/75590/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin1423.fits ra=120.888 dec=20.7678 rad=12.0 tmin=608169601.0 tmax=608428801.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.10
user 3.43
sys 3.61

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/75590/ft1_filtered_4FGL_J0803.5+2046_daily_bin1423.fits" evtable="EVENTS" scfile=/scratch/kocevski/75590/ft2_4FGL_J0803.5+2046_daily_bin1423.fits sctable="SC_DATA" outfile=/scratch/kocevski/75590/ltcube_608169601_608428801_4FGL_J0803.5+2046_daily_bin1423.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/75590/ft2_4FGL_J0803.5+2046_daily_bin1423.fits
.....................!
real 15.84
user 11.47
sys 4.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/75590/ft1_filtered_4FGL_J0803.5+2046_daily_bin1423.fits evtable="EVENTS" scfile=/scratch/kocevski/75590/ft2_4FGL_J0803.5+2046_daily_bin1423.fits sctable="SC_DATA" expcube=/scratch/kocevski/75590/ltcube_608169601_608428801_4FGL_J0803.5+2046_daily_bin1423.fits outfile=/scratch/kocevski/75590/expmap_608169601_608428801_4FGL_J0803.5+2046_daily_bin1423.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/75590/ltcube_608169601_608428801_4FGL_J0803.5+2046_daily_bin1423.fits
.....................!
real 195.49
user 186.03
sys 9.07

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/75590/ft1_filtered_4FGL_J0803.5+2046_daily_bin1423.fits scfile=/scratch/kocevski/75590/ft2_4FGL_J0803.5+2046_daily_bin1423.fits outfile=/scratch/kocevski/75590/cmap_608169601_608428801_4FGL_J0803.5+2046_daily_bin1423.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 4.22
user 0.37
sys 3.49

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/75590/ft1_filtered_4FGL_J0803.5+2046_daily_bin1423.fits scfile=/scratch/kocevski/75590/ft2_4FGL_J0803.5+2046_daily_bin1423.fits outfile=/scratch/kocevski/75590/cmap_HighResolution_608169601_608428801_4FGL_J0803.5+2046_daily_bin1423.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 4.43
user 0.38
sys 3.57

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8565       1.0000         .10000E-03   10000.    
     2 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.3771       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.907       1.0000         .10000E-03   10000.    
     8 'Prefactor '    29.513       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.6576       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.1115       1.0000         .10000E-03   10000.    
    11 'norm      '    30.344       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    39.074       1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    30.551       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2970       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .76167       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=   6225.248     FROM MIGRAD    STATUS=CONVERGED    552 CALLS     2849 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8559        7.7044        .53997E-05   -.44168E-03
   2  norm          .10000E-03    .42387       -.50970E-07** at limit **
   3  norm          2.3771        1.4664       -.42167E-08   -.29443E-04
   4  Prefactor     .10000E-03    7.3115       -.10679E-06** at limit **
   5  norm          .10000E-03    1.9107       -.13072E-06** at limit **
   6  Prefactor     .10000E-03    20.809        .32228E-06** at limit **
   7  Prefactor     11.907        14.359        .33221E-06    .50684E-05
   8  Prefactor     29.519        39.437        .13212E-05    .56946E-04
   9  Prefactor     1.6574        2.8835        .25938E-06   -.18595E-03
  10  Prefactor     8.1055        25.815       -.10260E-05   -.57040E-04
  11  norm          30.344        22.849       -.22324E-07    .20247E-04
  12  Prefactor     .10000E-03    13.048        .72466E-07** at limit **
  13  Prefactor     39.164        113.88        .17207E-04    .13089E-03
  14  norm          .10000E-03    22.262       -.68555E-06** at limit **
  15  Prefactor     .10000E-03    12.693       -.36445E-06** at limit **
  16  Prefactor     .10000E-03    10.210       -.38348E-06** at limit **
  17  Prefactor     .10000E-03    8.6944        .51707E-06** at limit **
  18  Prefactor     .10000E-03    13.019       -.13985E-06** at limit **
  19  Prefactor     30.553        20.678        .52623E-06    .35091E-04
  20  norm          .10000E-03    .30544        .16775E-07** at limit **
  21  Prefactor     .10000E-03    4.3585        .29308E-08** at limit **
  22  Prefactor     .10000E-03    2.2446       -.11583E-07** at limit **
  23  Prefactor     .10000E-03    14.724        .73436E-06** at limit **
  24  Normalizat    1.2968        .18346       -.11365E-05    .42244E-04
  25  Prefactor     .76183        .13498       -.33944E-07   -.51154E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.85594
  norm       = 0.0001
  norm       = 2.3771
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.9075
  Prefactor  = 29.5193
  Prefactor  = 1.6574
  Prefactor  = 8.10547
  norm       = 30.344
  Prefactor  = 0.0001
  Prefactor  = 39.1639
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.5534
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.29675
  Prefactor  = 0.761826
 **********
 **   18 **HESSE 
 **********

 FCN=   6225.248     FROM HESSE     STATUS=OK           423 CALLS     3272 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8559        7.9460        .10275E-02   -1.5315    
   2  norm          .10000E-03    .66776        .99873E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.3771        1.4612        .72088E-04   -1.5400    
   4  Prefactor     .10000E-03    7.3607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.9367        .10627E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    20.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.907        14.350        .11609E-03   -1.5018    
   8  Prefactor     29.519        39.571        .73749E-04   -1.4621    
   9  Prefactor     1.6574        2.8678        .16623E-03   -1.5450    
  10  Prefactor     8.1055        25.841        .14077E-03   -1.5138    
  11  norm          30.344        22.791        .72735E-04   -1.4606    
  12  Prefactor     .10000E-03    13.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     39.164        120.62        .64121E-04   -1.4456    
  14  norm          .10000E-03    22.278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.7094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     30.553        20.754        .72489E-04   -1.4602    
  20  norm          .10000E-03    .30831        .42474E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.3942        .16080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.2525        .11543E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    14.755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2968        .21429        .23880E-03   -.83663    
  25  Prefactor     .76183        .15747        .22887E-03   -1.0115    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10295e-09
Minuit parameter uncertainties:
  1  7.9482
  2  3.06374e-06
  3  1.46124
  4  1.88039e-05
  5  6.79955e-06
  6  0.000110459
  7  14.3546
  8  39.6062
  9  2.86805
  10  25.8767
  11  22.798
  12  3.51814e-05
  13  121.385
  14  8.76879e-05
  15  2.525e-05
  16  2.84137e-05
  17  4.46103e-05
  18  4.19969e-06
  19  20.7588
  20  1.48044e-07
  21  6.22359e-06
  22  2.46471e-06
  23  8.32484e-05
  24  0.214434
  25  0.157566
Done.

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

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  1.000e-04  8.769e-05  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:  7.618e-01  1.576e-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.297e+00  2.144e-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: 2.31e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.21e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/75590/likelihoodResults_608169601_608428801_4FGL_J0803.5+2046_daily_bin1423.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) = 6225.2479286
delta logL = -0.000212073558032

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6225.24771956
delta logL = -3.03706474369e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.9496       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2967       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76184       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=   6225.248     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      273 TOTAL
                     EDM=   .28E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    940.64        .18142E-01** at limit **
   2  alpha         1.7736        3.5977        .20000        .56843E-10
   3  Normalizat    1.2968        .31909E-01    .23880E-03    .12605E-03
   4  Prefactor     .76183        .24245E-01    .22887E-03    .13546E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.77355
  Normalizat = 1.29675
  Prefactor  = 0.761827
 **********
 **   18 **HESSE 
 **********

 FCN=   6225.248     FROM HESSE     STATUS=OK            23 CALLS      296 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    22.682        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7736        3.8186        .80000E-02   -.29483    
   3  Normalizat    1.2968        .20490        .47759E-04   -.83663    
   4  Prefactor     .76183        .15569        .91549E-05   -1.0115    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68699e-11
Minuit parameter uncertainties:
  1  2.14769e-06
  2  1004.24
  3  0.205023
  4  0.155777
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/75590': 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) = 6225.2477165
delta logL = 2.49838194577e-08

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  1.000e-04  2.148e-06  1.000e-04  1.000e+04 ( 1.000e-13)
274        alpha:  1.774e+00  1.004e+03  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:  7.618e-01  1.558e-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.297e+00  2.050e-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/75590/cmap_HighResolution_608169601_608428801_4FGL_J0803.5+2046_daily_bin1423.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.21e-05', job_status='DONE', photon_flux_upper_limit='2.31e-08', time_completed='2021-08-28 23:19:52.231662', job_id='75590', GAL2='0.76', fit_tolerance='1e-08', EG2='1.30', EG='1.30', time_epoch_completed='1630217992.23', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='2.50e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1423' AND source_name='4FGL J0803.5+2046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 23:19:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 75590: <4FGL_J0803.5+2046_daily_bin1423> in cluster <slac> Done

Job <4FGL_J0803.5+2046_daily_bin1423> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 28 23:06:21 2021
Job was executed on host(s) <bullet0112>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 23:06:22 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:06:22 2021
Terminated at Sat Aug 28 23:19:53 2021
Results reported at Sat Aug 28 23:19:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0803.5+2046_daily_bin1423 120.888 20.7678 608169601 608428801 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 :                                   783.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             341.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            812 sec.

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

