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


Performing analysis on: 4FGL_J0803.5+2046_daily_bin1410
RA = 120.888, Dec = 20.7678
tmin = 604800001, tmax = 605059201
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='75569', job_status='RUN', time_executed='2021-08-28 23:10:35.334869', time_epoch_executed='1630217435.33' WHERE source_name='4FGL J0803.5+2046' and cadence='daily' and bin_id='1410'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/75569

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/75569/ft1_4FGL_J0803.5+2046_daily_bin1410.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/75569/ft2_4FGL_J0803.5+2046_daily_bin1410.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/75569/ft1_4FGL_J0803.5+2046_daily_bin1410.fits outfile=/scratch/kocevski/75569/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin1410.fits ra=120.888 dec=20.7678 rad=12.0 tmin=604800001.0 tmax=605059201.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 8.20
user 4.91
sys 3.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/75569/ft1_filtered_4FGL_J0803.5+2046_daily_bin1410.fits" evtable="EVENTS" scfile=/scratch/kocevski/75569/ft2_4FGL_J0803.5+2046_daily_bin1410.fits sctable="SC_DATA" outfile=/scratch/kocevski/75569/ltcube_604800001_605059201_4FGL_J0803.5+2046_daily_bin1410.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/75569/ft2_4FGL_J0803.5+2046_daily_bin1410.fits
.....................!
real 15.09
user 11.30
sys 3.66

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/75569/ft1_filtered_4FGL_J0803.5+2046_daily_bin1410.fits evtable="EVENTS" scfile=/scratch/kocevski/75569/ft2_4FGL_J0803.5+2046_daily_bin1410.fits sctable="SC_DATA" expcube=/scratch/kocevski/75569/ltcube_604800001_605059201_4FGL_J0803.5+2046_daily_bin1410.fits outfile=/scratch/kocevski/75569/expmap_604800001_605059201_4FGL_J0803.5+2046_daily_bin1410.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/75569/ltcube_604800001_605059201_4FGL_J0803.5+2046_daily_bin1410.fits
.....................!
real 198.04
user 186.15
sys 8.94

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/75569/ft1_filtered_4FGL_J0803.5+2046_daily_bin1410.fits scfile=/scratch/kocevski/75569/ft2_4FGL_J0803.5+2046_daily_bin1410.fits outfile=/scratch/kocevski/75569/cmap_604800001_605059201_4FGL_J0803.5+2046_daily_bin1410.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 3.51
user 0.37
sys 3.07

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/75569/ft1_filtered_4FGL_J0803.5+2046_daily_bin1410.fits scfile=/scratch/kocevski/75569/ft2_4FGL_J0803.5+2046_daily_bin1410.fits outfile=/scratch/kocevski/75569/cmap_HighResolution_604800001_605059201_4FGL_J0803.5+2046_daily_bin1410.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 3.51
user 0.37
sys 3.11

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.185       1.0000         .10000E-03   10000.    
     2 'norm      '    2.8827       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11135E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    33.951       1.0000         .10000E-03   10000.    
     8 'Prefactor '    62.866       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.3665       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.234       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12367E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.0030       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.1842       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1297       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .81144       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=   5367.734     FROM MIGRAD    STATUS=CONVERGED    589 CALLS     3377 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.185        11.477        .78771E-07   -.32482E-04
   2  norm          2.8827        1.8035        .67444E-07   -.22656E-03
   3  norm          .10000E-03    .70925        .98802E-07** at limit **
   4  Prefactor     .10003E-03    8.0720        .20519E-05** at limit **
   5  norm          .10000E-03    2.9395        .24433E-06** at limit **
   6  Prefactor     .10000E-03    43.171        .63359E-06** at limit **
   7  Prefactor     33.945        22.508       -.16151E-06   -.76311E-04
   8  Prefactor     62.854        50.385       -.28801E-06   -.10922E-03
   9  Prefactor     9.3656        4.3023        .79757E-06    .10513E-02
  10  Prefactor     .10000E-03    16.276        .15825E-06** at limit **
  11  norm          .10000E-03    11.494        .17897E-07** at limit **
  12  Prefactor     .10000E-03    7.7658       -.25521E-07** at limit **
  13  Prefactor     .10000E-03    64.945        .65414E-07** at limit **
  14  norm          .10000E-03    62.210        .23462E-06** at limit **
  15  Prefactor     14.236        22.992       -.14048E-06   -.15582E-04
  16  Prefactor     .10000E-03    13.095        .11095E-06** at limit **
  17  Prefactor     .10000E-03    23.273        .30695E-06** at limit **
  18  Prefactor     .10000E-03    7.0133       -.15098E-06** at limit **
  19  Prefactor     .10000E-03    54.092        .21603E-05** at limit **
  20  norm          .10000E-03    .45279        .21245E-06** at limit **
  21  Prefactor     .10000E-03    7.2657        .46046E-06** at limit **
  22  Prefactor     1.0031        5.5579        .39767E-06   -.10115E-03
  23  Prefactor     3.0957        224.25       -.31142E-05   -.20758E-04
  24  Normalizat    1.1300        .22986        .33878E-05   -.18132E-03
  25  Prefactor     .81130        .16314       -.30767E-05   -.18240E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 15.1852
  norm       = 2.88268
  norm       = 0.0001
  Prefactor  = 0.000100034
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.9452
  Prefactor  = 62.854
  Prefactor  = 9.3656
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.2357
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.00309
  Prefactor  = 3.09567
  Normalizat = 1.12999
  Prefactor  = 0.811297
 **********
 **   18 **HESSE 
 **********

 FCN=   5367.734     FROM HESSE     STATUS=OK           423 CALLS     3800 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.185        11.481        .10278E-03   -1.4928    
   2  norm          2.8827        1.7989        .74130E-04   -1.5368    
   3  norm          .10000E-03    .97138        .11610E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10003E-03    20.008        .33383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.9741        .12249E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    43.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     33.945        22.493        .68774E-04   -1.4542    
   8  Prefactor     62.854        49.844        .50610E-04   -1.4121    
   9  Prefactor     9.3656        4.5363        .51839E-03   -1.5096    
  10  Prefactor     .10000E-03    16.286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    11.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.7849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    64.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    62.246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     14.236        22.990        .10616E-03   -1.4953    
  16  Prefactor     .10000E-03    13.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    23.317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.0312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    55.474        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .46584        .96244E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.3257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.0031        18.627        .31826E-02   -1.5508    
  23  Prefactor     3.0957        229.18        .22709E-03   -1.5356    
  24  Normalizat    1.1300        .24936        .26244E-03   -.88795    
  25  Prefactor     .81130        .17754        .22176E-03   -.99313    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48854e-08
Minuit parameter uncertainties:
  1  11.4822
  2  1.79897
  3  1.63332e-05
  4  0.00165456
  5  1.1049e-05
  6  5.82848e-05
  7  22.4987
  8  49.8767
  9  4.53649
  10  2.09253e-05
  11  1.80294e-06
  12  1.777e-05
  13  2.16226e-05
  14  8.87758e-05
  15  23.0047
  16  5.53656e-07
  17  2.59147e-05
  18  1.40607e-05
  19  0.000382267
  20  3.11143e-06
  21  3.04343e-05
  22  8.64772
  23  53.4845
  24  0.249621
  25  0.177665
Done.

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

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  1.000e-04  8.878e-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:  8.113e-01  1.777e-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.130e+00  2.496e-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: 4.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.21e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/75569/likelihoodResults_604800001_605059201_4FGL_J0803.5+2046_daily_bin1410.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): 102
logL (Free Index) = 5367.73361976
delta logL = -7.64095366321e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5367.73361973
delta logL = -7.63729658502e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96276E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9991       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1300       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81129       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=   5367.069     FROM MIGRAD    STATUS=CONVERGED    172 CALLS      314 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.549        16.499        .18144E-01    .85941E-04
   2  alpha         5.0000        3.1585        .50000    ** at limit **
   3  Normalizat    1.0472        .24710        .26243E-02   -.72748E-04
   4  Prefactor     .84260        .17557        .22176E-03   -.20250E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 13.5485
  alpha      = 5
  Normalizat = 1.04722
  Prefactor  = 0.842599
 **********
 **   18 **HESSE 
 **********

 FCN=   5367.069     FROM HESSE     STATUS=OK            27 CALLS      341 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.549        13.321        .24412E-03   -1.4972    
   2  alpha         5.0000        3.0790        .60810E-01    14.137    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0472        .24737        .10497E-03   -.91465    
   4  Prefactor     .84260        .17627        .88702E-05   -.98177    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.93857e-11
Minuit parameter uncertainties:
  1  13.3241
  2  9.90859e-06
  3  0.247644
  4  0.176386
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/75569': 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) = 5367.0691893
delta logL = 0.664354056217

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  1.355e+01  1.332e+01  1.000e-04  1.000e+04 ( 1.000e-13)
274        alpha:  5.000e+00  9.909e-06  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:  8.426e-01  1.764e-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.476e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.41
Ra Dec: 120.888 20.768
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 7.03e-08 +/- 6.91e-08
Energy Flux (Free Index): 1.20e-05 +/- 1.18e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/75569/cmap_HighResolution_604800001_605059201_4FGL_J0803.5+2046_daily_bin1410.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.21e-05', comment='SUCCESS', energy_flux2='1.20e-05', dlogl='6.64e-01', photon_flux2='7.03e-08', job_status='DONE', time_completed='2021-08-28 23:22:21.203071', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='4.21e-08', energy_flux_error2='1.18e-05', EG='1.13', time_epoch_completed='1630218141.2', return_code='0', job_id='75569', GAL2='0.84', EG2='1.05', return_code2='0', photon_flux_error2='6.91e-08', ts2='1.41', photon_index='2.00' WHERE bin_id='1410' AND source_name='4FGL J0803.5+2046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 23:22:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 75569: <4FGL_J0803.5+2046_daily_bin1410> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0803.5+2046_daily_bin1410 120.888 20.7678 604800001 605059201 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 :                                   744.37 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             222.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   960 sec.
    Turnaround time :                            962 sec.

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

