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


Performing analysis on: 4FGL_J0803.5+2046_daily_bin1619
RA = 120.888, Dec = 20.7678
tmin = 658972801, tmax = 659232001
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='251652', job_status='RUN', time_executed='2021-12-07 18:33:39.017469', time_epoch_executed='1638930819.02' WHERE source_name='4FGL J0803.5+2046' and cadence='daily' and bin_id='1619'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/251652

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/251652/ft1_4FGL_J0803.5+2046_daily_bin1619.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/251652/ft2_4FGL_J0803.5+2046_daily_bin1619.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/251652/ft1_4FGL_J0803.5+2046_daily_bin1619.fits outfile=/scratch/kocevski/251652/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin1619.fits ra=120.888 dec=20.7678 rad=12.0 tmin=658972801.0 tmax=659232001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 2.98
user 2.74
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/251652/ft2_4FGL_J0803.5+2046_daily_bin1619.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/251652/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin1619.fits evtable="EVENTS" outfile="/scratch/kocevski/251652/ft1_filtered_4FGL_J0803.5+2046_daily_bin1619.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.54
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/251652/ft1_filtered_4FGL_J0803.5+2046_daily_bin1619.fits" evtable="EVENTS" scfile=/scratch/kocevski/251652/ft2_4FGL_J0803.5+2046_daily_bin1619.fits sctable="SC_DATA" outfile=/scratch/kocevski/251652/ltcube_658972801_659232001_4FGL_J0803.5+2046_daily_bin1619.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/251652/ft2_4FGL_J0803.5+2046_daily_bin1619.fits
.....................!
real 14.16
user 13.74
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/251652/ft1_filtered_4FGL_J0803.5+2046_daily_bin1619.fits evtable="EVENTS" scfile=/scratch/kocevski/251652/ft2_4FGL_J0803.5+2046_daily_bin1619.fits sctable="SC_DATA" expcube=/scratch/kocevski/251652/ltcube_658972801_659232001_4FGL_J0803.5+2046_daily_bin1619.fits outfile=/scratch/kocevski/251652/expmap_658972801_659232001_4FGL_J0803.5+2046_daily_bin1619.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/251652/ltcube_658972801_659232001_4FGL_J0803.5+2046_daily_bin1619.fits
.....................!
real 194.20
user 186.91
sys 6.46

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/251652/ft1_filtered_4FGL_J0803.5+2046_daily_bin1619.fits scfile=/scratch/kocevski/251652/ft2_4FGL_J0803.5+2046_daily_bin1619.fits outfile=/scratch/kocevski/251652/cmap_658972801_659232001_4FGL_J0803.5+2046_daily_bin1619.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/251652/ft1_filtered_4FGL_J0803.5+2046_daily_bin1619.fits scfile=/scratch/kocevski/251652/ft2_4FGL_J0803.5+2046_daily_bin1619.fits outfile=/scratch/kocevski/251652/cmap_HighResolution_658972801_659232001_4FGL_J0803.5+2046_daily_bin1619.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.3739       1.0000         .10000E-03   10000.    
     4 'Prefactor '    28.391       1.0000         .10000E-03   10000.    
     5 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    30.373       1.0000         .10000E-03   10000.    
     7 'Prefactor '    31.144       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10340E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.3130       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    14.294       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    69.498       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.7230       1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.347       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10422E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    22.129       1.0000         .10000E-03   10000.    
    20 'norm      '    1.8246       1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.522       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .31639E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    69.735       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .65191       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0573       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=   7043.177     FROM MIGRAD    STATUS=CONVERGED    573 CALLS     2519 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.9157       -.68856E-08** at limit **
   2  norm          .10000E-03    .76369       -.67844E-07** at limit **
   3  norm          2.3745        2.3545       -.46679E-07   -.26490E-03
   4  Prefactor     28.387        15.344       -.96564E-07    .87269E-05
   5  norm          .10000E-03    2.3628       -.54775E-07** at limit **
   6  Prefactor     30.374        28.308        .61478E-06    .33633E-05
   7  Prefactor     31.144        16.358       -.14154E-06    .68785E-05
   8  Prefactor     .10000E-03    33.549       -.15135E-05** at limit **
   9  Prefactor     5.3129        3.8527       -.27494E-06   -.42761E-03
  10  Prefactor     .10000E-03    11.245       -.46958E-08** at limit **
  11  norm          14.295        13.898       -.32006E-07    .43839E-05
  12  Prefactor     .10000E-03    3.3867        .20015E-08** at limit **
  13  Prefactor     .10000E-03    47.543       -.18655E-06** at limit **
  14  norm          69.485        74.599       -.14343E-04   -.18799E-05
  15  Prefactor     8.7227        12.230        .63630E-07   -.32550E-05
  16  Prefactor     19.346        24.405       -.12035E-05   -.29392E-05
  17  Prefactor     .10000E-03    22.294       -.24400E-05** at limit **
  18  Prefactor     .10001E-03    8.0350        .49060E-06** at limit **
  19  Prefactor     22.126        17.760       -.54509E-06   -.13069E-04
  20  norm          1.8245        .99996        .80348E-08   -.25067E-03
  21  Prefactor     14.519        7.2356       -.50522E-06   -.17119E-03
  22  Prefactor     .10003E-03    4.1401        .82972E-06** at limit **
  23  Prefactor     69.727        35.913       -.58876E-05   -.31725E-04
  24  Normalizat    .65221        .17961        .13434E-05   -.11541E-03
  25  Prefactor     1.0570        .13348        .35043E-06   -.92198E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.37452
  Prefactor  = 28.3873
  norm       = 0.0001
  Prefactor  = 30.3737
  Prefactor  = 31.144
  Prefactor  = 0.0001
  Prefactor  = 5.3129
  Prefactor  = 0.0001
  norm       = 14.2946
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 69.4851
  Prefactor  = 8.72269
  Prefactor  = 19.346
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 22.126
  norm       = 1.82454
  Prefactor  = 14.5193
  Prefactor  = 0.000100032
  Prefactor  = 69.7271
  Normalizat = 0.652215
  Prefactor  = 1.05704
 **********
 **   18 **HESSE 
 **********

 FCN=   7043.177     FROM HESSE     STATUS=OK           435 CALLS     2954 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.9335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.3703        .14178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.3745        2.3409        .94249E-04   -1.5400    
   4  Prefactor     28.387        15.232        .75189E-04   -1.4642    
   5  norm          .10000E-03    2.4138        .25111E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     30.374        28.265        .72701E-04   -1.4605    
   7  Prefactor     31.144        16.332        .71798E-04   -1.4591    
   8  Prefactor     .10000E-03    33.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.3129        3.8611        .13132E-03   -1.5247    
  10  Prefactor     .10000E-03    11.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          14.295        13.895        .10594E-03   -1.4952    
  12  Prefactor     .10000E-03    3.3889        .15082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    47.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          69.485        74.601        .24075E-03   -1.4039    
  15  Prefactor     8.7227        12.221        .13572E-03   -1.5117    
  16  Prefactor     19.346        24.386        .91057E-04   -1.4828    
  17  Prefactor     .10000E-03    22.438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    34.435        .46009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     22.126        17.748        .85148E-04   -1.4767    
  20  norm          1.8245        .99307        .56802E-04   -1.5438    
  21  Prefactor     14.519        7.2286        .10511E-03   -1.4946    
  22  Prefactor     .10003E-03    24.919        .32579E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     69.727        35.925        .48069E-04   -1.4036    
  24  Normalizat    .65221        .20260        .31407E-03   -1.0581    
  25  Prefactor     1.0570        .15253        .19898E-03   -.90851    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51183e-09
Minuit parameter uncertainties:
  1  3.03261e-06
  2  7.89635e-06
  3  2.34098
  4  15.2342
  5  8.57468e-06
  6  28.2772
  7  16.3341
  8  4.22852e-06
  9  3.86132
  10  7.28813e-06
  11  13.8979
  12  2.62656e-07
  13  1.56029e-06
  14  74.7016
  15  12.2245
  16  24.399
  17  1.29803e-05
  18  0.00102527
  19  17.7522
  20  0.993076
  21  7.22901
  22  0.00178158
  23  35.9362
  24  0.202832
  25  0.152594
Done.

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

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  6.949e+01  7.470e+01  1.000e-04  1.000e+04 ( 1.000e-13)
274        alpha:  1.999e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
275         beta:  7.702e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
276           Eb:  6.928e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
533    Prefactor:  1.057e+00  1.526e-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:  6.522e-01  2.028e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.90
Ra Dec: 120.888 20.768
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 1.27e-08 +/- 1.37e-08
Energy Flux (Fixed Index): 6.68e-06 +/- 7.18e-06

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

Saving results to:
/scratch/kocevski/251652/likelihoodResults_658972801_659232001_4FGL_J0803.5+2046_daily_bin1619.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) = 7043.16604686
delta logL = 0.0113633730152

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7043.15347138
delta logL = 0.0239388523332

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    54.717       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3850       1.0000          .0000       5.0000    
     3 'Normalizat'    .65503       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0581       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=   7043.153     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      211 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          54.670        87.015       -.91010E-05   -.14613E-03
   2  alpha         1.3839        3.1868       -.17683E-03    .84437E-05
   3  Normalizat    .65490        .16695        .17937E-07    .39995E-03
   4  Prefactor     1.0582        .13310        .35866E-06    .44106E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 54.6698
  alpha      = 1.38393
  Normalizat = 0.654905
  Prefactor  = 1.05823
 **********
 **   18 **HESSE 
 **********

 FCN=   7043.153     FROM HESSE     STATUS=OK            29 CALLS      240 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          54.670        80.896        .27113E-03   -1.4228    
   2  alpha         1.3839        1.8254        .64172E-01   -.46277    
   3  Normalizat    .65490        .18989        .31345E-03   -1.0570    
   4  Prefactor     1.0582        .15167        .19888E-03   -.90813    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.5167e-08
Minuit parameter uncertainties:
  1  81.0589
  2  2.13512
  3  0.19008
  4  0.15173
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/251652': 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) = 7043.15347044
delta logL = 0.0239397890509

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  5.467e+01  8.106e+01  1.000e-04  1.000e+04 ( 1.000e-13)
274        alpha:  1.384e+00  2.135e+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.058e+00  1.517e-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:  6.549e-01  1.901e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.94
Ra Dec: 120.888 20.768
Photon Index (Free Index): 1.38 +/- 2.14
Photon Flux (Free Index): 7.88e-09 +/- 1.43e-08
Energy Flux (Free Index): 5.98e-06 +/- 6.73e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/251652/cmap_HighResolution_658972801_659232001_4FGL_J0803.5+2046_daily_bin1619.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.66e-05', comment='SUCCESS', photon_flux='1.27e-08', energy_flux2='5.98e-06', photon_flux_error='1.37e-08', dlogl='2.39e-02', energy_flux='6.68e-06', photon_flux2='7.88e-09', job_status='DONE', time_completed='2021-12-07 18:45:27.092082', photon_index_error2='2.14', photon_index2='1.38', ts='1.90', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='5.05e-08', energy_flux_error2='6.73e-06', EG='0.65', time_epoch_completed='1638931527.09', return_code='0', job_id='251652', GAL2='1.06', EG2='0.65', return_code2='0', energy_flux_error='7.18e-06', photon_flux_error2='1.43e-08', ts2='1.94', photon_index='2.00' WHERE bin_id='1619' AND source_name='4FGL J0803.5+2046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 18:45:27 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 251652: <4FGL_J0803.5+2046_daily_bin1619> in cluster <slac> Done

Job <4FGL_J0803.5+2046_daily_bin1619> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Dec  7 18:30:18 2021
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 18:33:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 18:33:33 2021
Terminated at Tue Dec  7 18:45:27 2021
Results reported at Tue Dec  7 18:45:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0803.5+2046_daily_bin1619 120.888 20.7678 658972801 659232001 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 :                                   706.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             372.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   714 sec.
    Turnaround time :                            909 sec.

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

