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


Performing analysis on: 4FGL_J0803.5+2046_daily_bin24
RA = 120.888, Dec = 20.7678
tmin = 245548801, tmax = 245808001
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='69059', job_status='RUN', time_executed='2021-08-28 22:49:10.751391', time_epoch_executed='1630216150.75' WHERE source_name='4FGL J0803.5+2046' and cadence='daily' and bin_id='24'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/69059

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/69059/ft1_4FGL_J0803.5+2046_daily_bin24.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/69059/ft2_4FGL_J0803.5+2046_daily_bin24.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/69059/ft1_4FGL_J0803.5+2046_daily_bin24.fits outfile=/scratch/kocevski/69059/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin24.fits ra=120.888 dec=20.7678 rad=12.0 tmin=245548801.0 tmax=245808001.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 1.96
user 1.26
sys 0.66

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/69059/ft1_filtered_4FGL_J0803.5+2046_daily_bin24.fits" evtable="EVENTS" scfile=/scratch/kocevski/69059/ft2_4FGL_J0803.5+2046_daily_bin24.fits sctable="SC_DATA" outfile=/scratch/kocevski/69059/ltcube_245548801_245808001_4FGL_J0803.5+2046_daily_bin24.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/69059/ft2_4FGL_J0803.5+2046_daily_bin24.fits
.....................!
real 13.30
user 12.38
sys 0.88

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/69059/ft1_filtered_4FGL_J0803.5+2046_daily_bin24.fits evtable="EVENTS" scfile=/scratch/kocevski/69059/ft2_4FGL_J0803.5+2046_daily_bin24.fits sctable="SC_DATA" expcube=/scratch/kocevski/69059/ltcube_245548801_245808001_4FGL_J0803.5+2046_daily_bin24.fits outfile=/scratch/kocevski/69059/expmap_245548801_245808001_4FGL_J0803.5+2046_daily_bin24.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/69059/ltcube_245548801_245808001_4FGL_J0803.5+2046_daily_bin24.fits
.....................!
real 190.79
user 185.20
sys 5.22

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/69059/ft1_filtered_4FGL_J0803.5+2046_daily_bin24.fits scfile=/scratch/kocevski/69059/ft2_4FGL_J0803.5+2046_daily_bin24.fits outfile=/scratch/kocevski/69059/cmap_245548801_245808001_4FGL_J0803.5+2046_daily_bin24.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.05
user 0.36
sys 0.64

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/69059/ft1_filtered_4FGL_J0803.5+2046_daily_bin24.fits scfile=/scratch/kocevski/69059/ft2_4FGL_J0803.5+2046_daily_bin24.fits outfile=/scratch/kocevski/69059/cmap_HighResolution_245548801_245808001_4FGL_J0803.5+2046_daily_bin24.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.05
user 0.39
sys 0.63

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    57.224       1.0000         .10000E-03   10000.    
     2 'norm      '    .24629       1.0000         .10000E-03   10000.    
     3 'norm      '    2.9140       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    11.124       1.0000         .10000E-03   10000.    
     6 'Prefactor '    78.324       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.6783       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.2740       1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.106       1.0000         .10000E-03   10000.    
    11 'norm      '    .10131E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    29.538       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.5520       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.8424       1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.765       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0074       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .99094       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=   6165.425     FROM MIGRAD    STATUS=CONVERGED    576 CALLS     2881 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          57.220        19.565        .34272E-06    .48186E-04
   2  norm          .24551        .93034       -.72511E-06   -.71315E-03
   3  norm          2.9134        1.5455       -.20924E-08    .19277E-03
   4  Prefactor     .10000E-03    5.8708       -.22375E-06** at limit **
   5  norm          11.123        6.2977        .62943E-06   -.13174E-03
   6  Prefactor     78.321        61.780       -.20897E-05    .62718E-05
   7  Prefactor     .10000E-03    7.2968        .38727E-06** at limit **
   8  Prefactor     6.6757        21.681        .26440E-06   -.17056E-04
   9  Prefactor     1.2733        1.9929       -.25598E-06   -.38497E-03
  10  Prefactor     24.094        44.863       -.89444E-05   -.15228E-05
  11  norm          .10000E-03    12.355       -.42342E-06** at limit **
  12  Prefactor     29.540        15.554       -.63510E-06    .29312E-04
  13  Prefactor     .10000E-03    35.838       -.20826E-04** at limit **
  14  norm          .10000E-03    40.081        .22204E-04** at limit **
  15  Prefactor     .10000E-03    9.5484        .31946E-05** at limit **
  16  Prefactor     .10000E-03    8.7871       -.24457E-05** at limit **
  17  Prefactor     2.4747        94.773       -.10682E-04   -.24483E-04
  18  Prefactor     .10000E-03    6.2568       -.47964E-06** at limit **
  19  Prefactor     .10000E-03    10.427       -.50579E-06** at limit **
  20  norm          2.8425        1.3754       -.38742E-07   -.61585E-04
  21  Prefactor     17.765        10.865       -.22675E-06   -.20027E-04
  22  Prefactor     .10000E-03    3.8039       -.48999E-06** at limit **
  23  Prefactor     .10000E-03    25.749        .54752E-05** at limit **
  24  Normalizat    1.0073        .20918        .50563E-06    .86680E-04
  25  Prefactor     .99108        .15645        .29599E-06    .12003E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 57.2204
  norm       = 0.245512
  norm       = 2.91343
  Prefactor  = 0.0001
  norm       = 11.1233
  Prefactor  = 78.3206
  Prefactor  = 0.0001
  Prefactor  = 6.67572
  Prefactor  = 1.27334
  Prefactor  = 24.0941
  norm       = 0.0001
  Prefactor  = 29.5396
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.47472
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.84248
  Prefactor  = 17.7653
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.00734
  Prefactor  = 0.991079
 **********
 **   18 **HESSE 
 **********

 FCN=   6165.425     FROM HESSE     STATUS=OK           427 CALLS     3308 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          57.220        19.584        .53032E-04   -1.4194    
   2  norm          .24551        1.5158        .14012E-02   -1.5609    
   3  norm          2.9134        1.5404        .68573E-04   -1.5367    
   4  Prefactor     .10000E-03    5.9090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          11.123        6.2856        .12012E-03   -1.5041    
   6  Prefactor     78.321        61.784        .45376E-04   -1.3936    
   7  Prefactor     .10000E-03    7.3056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.6757        21.667        .15527E-03   -1.5191    
   9  Prefactor     1.2733        1.9532        .13338E-03   -1.5482    
  10  Prefactor     24.094        44.813        .81586E-04   -1.4726    
  11  norm          .10000E-03    12.362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     29.540        15.528        .73718E-04   -1.4620    
  13  Prefactor     .10000E-03    35.673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    39.891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.5501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.7848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.4747        95.920        .25559E-03   -1.5393    
  18  Prefactor     .10000E-03    6.2804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.8425        1.3743        .60587E-04   -1.5371    
  21  Prefactor     17.765        10.889        .95024E-04   -1.4865    
  22  Prefactor     .10000E-03    3.8231        .14953E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    25.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0073        .24268        .28909E-03   -.92785    
  25  Prefactor     .99108        .18238        .22371E-03   -.93027    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.73346e-10
Minuit parameter uncertainties:
  1  19.5857
  2  1.21988
  3  1.54042
  4  1.9626e-06
  5  6.28593
  6  61.8346
  7  4.47408e-07
  8  21.6929
  9  1.95328
  10  44.8751
  11  1.59001e-05
  12  15.5299
  13  1.98978e-06
  14  1.28621e-05
  15  5.10708e-06
  16  3.10778e-06
  17  30.8667
  18  1.13253e-06
  19  2.42402e-06
  20  1.37429
  21  10.8901
  22  1.91218e-06
  23  1.26435e-05
  24  0.242942
  25  0.182492
Done.

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

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  1.000e-04  1.286e-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:  9.911e-01  1.825e-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.007e+00  2.429e-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: 3.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.61e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/69059/likelihoodResults_245548801_245808001_4FGL_J0803.5+2046_daily_bin24.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) = 6165.42558299
delta logL = -0.000119347778309

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6165.42546535
delta logL = -1.71105602931e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10240E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3221       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0073       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99108       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=   6165.425     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      266 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    1297.6        .18142E-01** at limit **
   2  alpha         1.8099        3.0126        .17757        .30027E-07
   3  Normalizat    1.0073        .30297E-01    .28909E-03   -.23292E-02
   4  Prefactor     .99108        .23396E-01    .22371E-03   -.29571E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00010001
  alpha      = 1.80988
  Normalizat = 1.00734
  Prefactor  = 0.991075
 **********
 **   18 **HESSE 
 **********

 FCN=   6165.425     FROM HESSE     STATUS=OK            23 CALLS      289 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    43.146        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8099        3.8665        .71028E-02   -.27968    
   3  Normalizat    1.0073        .22894        .57818E-04   -.92785    
   4  Prefactor     .99108        .17685        .44741E-04   -.93028    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.44882e-09
Minuit parameter uncertainties:
  1  0.00133804
  2  1096.2
  3  0.229159
  4  0.176953
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/69059': 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) = 6165.42546362
delta logL = 1.457738108e-08

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  1.000e-04  1.338e-03  1.000e-04  1.000e+04 ( 1.000e-13)
274        alpha:  1.810e+00  1.096e+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:  9.911e-01  1.770e-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.007e+00  2.292e-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/69059/cmap_HighResolution_245548801_245808001_4FGL_J0803.5+2046_daily_bin24.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.61e-05', job_status='DONE', photon_flux_upper_limit='3.06e-08', time_completed='2021-08-28 23:00:45.485756', job_id='69059', GAL2='0.99', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1630216845.49', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='1.46e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='24' AND source_name='4FGL J0803.5+2046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 23:00:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 69059: <4FGL_J0803.5+2046_daily_bin24> in cluster <slac> Done

Job <4FGL_J0803.5+2046_daily_bin24> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Aug 28 22:45:53 2021
Job was executed on host(s) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 22:45:55 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:55 2021
Terminated at Sat Aug 28 23:00:46 2021
Results reported at Sat Aug 28 23:00:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0803.5+2046_daily_bin24 120.888 20.7678 245548801 245808001 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 :                                   701.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            893 sec.

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

