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


Performing analysis on: 4FGL_J0803.5+2046_daily_bin1022
RA = 120.888, Dec = 20.7678
tmin = 504230401, tmax = 504489601
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='73707', job_status='RUN', time_executed='2021-08-28 23:03:25.561964', time_epoch_executed='1630217005.56' WHERE source_name='4FGL J0803.5+2046' and cadence='daily' and bin_id='1022'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/73707

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/73707/ft1_4FGL_J0803.5+2046_daily_bin1022.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/73707/ft2_4FGL_J0803.5+2046_daily_bin1022.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/73707/ft1_4FGL_J0803.5+2046_daily_bin1022.fits outfile=/scratch/kocevski/73707/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin1022.fits ra=120.888 dec=20.7678 rad=12.0 tmin=504230401.0 tmax=504489601.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 12.31
user 3.33
sys 8.92

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/73707/ft2_4FGL_J0803.5+2046_daily_bin1022.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/73707/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin1022.fits evtable="EVENTS" outfile="/scratch/kocevski/73707/ft1_filtered_4FGL_J0803.5+2046_daily_bin1022.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 9.23
user 0.34
sys 8.84

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/73707/ft1_filtered_4FGL_J0803.5+2046_daily_bin1022.fits" evtable="EVENTS" scfile=/scratch/kocevski/73707/ft2_4FGL_J0803.5+2046_daily_bin1022.fits sctable="SC_DATA" outfile=/scratch/kocevski/73707/ltcube_504230401_504489601_4FGL_J0803.5+2046_daily_bin1022.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/73707/ft2_4FGL_J0803.5+2046_daily_bin1022.fits
.....................!
real 22.42
user 12.22
sys 10.13

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/73707/ft1_filtered_4FGL_J0803.5+2046_daily_bin1022.fits evtable="EVENTS" scfile=/scratch/kocevski/73707/ft2_4FGL_J0803.5+2046_daily_bin1022.fits sctable="SC_DATA" expcube=/scratch/kocevski/73707/ltcube_504230401_504489601_4FGL_J0803.5+2046_daily_bin1022.fits outfile=/scratch/kocevski/73707/expmap_504230401_504489601_4FGL_J0803.5+2046_daily_bin1022.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/73707/ltcube_504230401_504489601_4FGL_J0803.5+2046_daily_bin1022.fits
.....................!
real 201.14
user 185.03
sys 15.59

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/73707/ft1_filtered_4FGL_J0803.5+2046_daily_bin1022.fits scfile=/scratch/kocevski/73707/ft2_4FGL_J0803.5+2046_daily_bin1022.fits outfile=/scratch/kocevski/73707/cmap_504230401_504489601_4FGL_J0803.5+2046_daily_bin1022.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 9.12
user 0.38
sys 8.71

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/73707/ft1_filtered_4FGL_J0803.5+2046_daily_bin1022.fits scfile=/scratch/kocevski/73707/ft2_4FGL_J0803.5+2046_daily_bin1022.fits outfile=/scratch/kocevski/73707/cmap_HighResolution_504230401_504489601_4FGL_J0803.5+2046_daily_bin1022.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 9.10
user 0.38
sys 8.66

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10114E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .11484E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.3529       1.0000         .10000E-03   10000.    
     5 'norm      '    11.695       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    33.092       1.0000         .10000E-03   10000.    
     8 'Prefactor '    39.997       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.3812       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    28.460       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    51.600       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.5003       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .77663       1.0000         .10000E-03   10000.    
    20 'norm      '    .63529       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.3499       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10274E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .52597       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.3943       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=   6649.570     FROM MIGRAD    STATUS=CONVERGED    587 CALLS     2969 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.0235       -.11248E-06** at limit **
   2  norm          .10000E-03    .94592       -.29758E-06** at limit **
   3  norm          .10000E-03    .95931       -.15477E-05** at limit **
   4  Prefactor     3.3642        11.249        .67998E-05    .22164E-03
   5  norm          11.695        5.9893        .77199E-07    .27322E-04
   6  Prefactor     .10000E-03    9.3734       -.19826E-07** at limit **
   7  Prefactor     33.093        24.012       -.34980E-07    .41631E-04
   8  Prefactor     40.108        53.475       -.21642E-05    .27078E-03
   9  Prefactor     1.3809        2.8320        .38222E-06   -.30446E-03
  10  Prefactor     .10000E-03    16.347       -.85752E-08** at limit **
  11  norm          .10000E-03    7.9356        .61290E-08** at limit **
  12  Prefactor     28.460        16.444        .28115E-07   -.58864E-05
  13  Prefactor     .10000E-03    57.722        .22005E-06** at limit **
  14  norm          51.598        59.138        .64848E-07    .45137E-05
  15  Prefactor     .10000E-03    6.2078        .17138E-07** at limit **
  16  Prefactor     .10000E-03    6.7124       -.58537E-07** at limit **
  17  Prefactor     6.5015        21.842        .30774E-05   -.21633E-03
  18  Prefactor     .10000E-03    11.691       -.92156E-07** at limit **
  19  Prefactor     .77717        12.026        .13735E-06   -.60588E-04
  20  norm          .63583        1.2403        .14783E-06   -.14755E-03
  21  Prefactor     9.3470        10.175        .14841E-06   -.29771E-04
  22  Prefactor     .10000E-03    10.115       -.40362E-06** at limit **
  23  Prefactor     .10000E-03    43.070       -.35028E-06** at limit **
  24  Normalizat    .52606        .21312       -.20020E-05    .16511E-03
  25  Prefactor     1.3942        .15601        .38798E-06    .34838E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.36416
  norm       = 11.6951
  Prefactor  = 0.0001
  Prefactor  = 33.0927
  Prefactor  = 40.1082
  Prefactor  = 1.38086
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 28.4604
  Prefactor  = 0.0001
  norm       = 51.5982
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.50151
  Prefactor  = 0.0001
  Prefactor  = 0.777171
  norm       = 0.63583
  Prefactor  = 9.34702
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.526056
  Prefactor  = 1.39423
 **********
 **   18 **HESSE 
 **********

 FCN=   6649.570     FROM HESSE     STATUS=OK           429 CALLS     3398 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.0503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.0599        .15240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.5089        .15265E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.3642        11.965        .22102E-03   -1.5341    
   5  norm          11.695        5.9831        .11714E-03   -1.5024    
   6  Prefactor     .10000E-03    9.3752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     33.093        24.016        .69658E-04   -1.4557    
   8  Prefactor     40.108        52.956        .63380E-04   -1.4440    
   9  Prefactor     1.3809        2.7762        .18532E-03   -1.5473    
  10  Prefactor     .10000E-03    16.364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    7.9368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     28.460        16.389        .75098E-04   -1.4640    
  13  Prefactor     .10000E-03    57.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          51.598        59.144        .55832E-04   -1.4270    
  15  Prefactor     .10000E-03    6.2081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.7125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.5015        21.524        .78705E-03   -1.5198    
  18  Prefactor     .10000E-03    11.755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .77717        65.712        .49337E-02   -1.5532    
  20  norm          .63583        1.1113        .10644E-02   -1.5548    
  21  Prefactor     9.3470        10.049        .13106E-03   -1.5096    
  22  Prefactor     .10000E-03    10.381        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    43.160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .52606        .22406        .38565E-03   -1.1122    
  25  Prefactor     1.3942        .16759        .19394E-03   -.80547    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8165e-08
Minuit parameter uncertainties:
  1  3.97432e-06
  2  5.72084e-05
  3  1.25701e-05
  4  11.9732
  5  5.98345
  6  2.86509e-06
  7  24.0234
  8  53.0178
  9  2.77643
  10  9.57099e-06
  11  9.66607e-06
  12  16.3917
  13  0.000141247
  14  59.2113
  15  1.32032e-05
  16  4.56103e-06
  17  21.5498
  18  4.25016e-05
  19  14.3079
  20  1.11129
  21  10.0511
  22  8.67784e-05
  23  4.9769e-05
  24  0.224444
  25  0.167657
Done.

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

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  5.160e+01  5.921e+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.394e+00  1.677e-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:  5.261e-01  2.244e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.97
Ra Dec: 120.888 20.768
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 9.43e-09 +/- 1.08e-08
Energy Flux (Fixed Index): 4.96e-06 +/- 5.69e-06

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

Saving results to:
/scratch/kocevski/73707/likelihoodResults_504230401_504489601_4FGL_J0803.5+2046_daily_bin1022.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) = 6648.79251928
delta logL = 0.777398546364

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6648.52044702
delta logL = 1.04947080703

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    20.843       1.0000         .10000E-03   10000.    
     2 'alpha     '    .78595E-08   1.0000          .0000       5.0000    
     3 'Normalizat'    .52805       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3958       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6648.520     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      227 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          20.887        24.986        .21933E-02   -.48153E-05
   2  alpha         .22149E-12    3.4343        .46267    ** at limit **
   3  Normalizat    .52814        .19658        .86887E-01    .41168E-04
   4  Prefactor     1.3957        .15498        .31120E-01   -.83254E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 20.8869
  alpha      = 2.21489e-13
  Normalizat = 0.52814
  Prefactor  = 1.39569
 **********
 **   18 **HESSE 
 **********

 FCN=   6648.520     FROM HESSE     STATUS=OK            33 CALLS      260 TOTAL
                     EDM=   .82E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          20.887        22.164        .87732E-04   -1.4794    
   2  alpha         .22149E-12    3.6642        .91878E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .52814        .21075        .38494E-03   -1.1113    
   4  Prefactor     1.3957        .16668        .19380E-03   -.80504    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.17846e-14
Minuit parameter uncertainties:
  1  22.1728
  2  1.58126e-06
  3  0.21107
  4  0.16674
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/73707': 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) = 6648.52044494
delta logL = 1.04947288595

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  2.089e+01  2.217e+01  1.000e-04  1.000e+04 ( 1.000e-13)
274        alpha:  2.215e-13  1.581e-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:  1.396e+00  1.667e-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:  5.281e-01  2.111e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.07
Ra Dec: 120.888 20.768
Photon Index (Free Index): 0.00 +/- 0.00
Photon Flux (Free Index): 4.04e-09 +/- 4.29e-09
Energy Flux (Free Index): 7.42e-06 +/- 7.87e-06

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/73707/cmap_HighResolution_504230401_504489601_4FGL_J0803.5+2046_daily_bin1022.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.34e-05', comment='SUCCESS', photon_flux='9.43e-09', energy_flux2='7.42e-06', photon_flux_error='1.08e-08', dlogl='1.05e+00', energy_flux='4.96e-06', photon_flux2='4.04e-09', job_status='DONE', time_completed='2021-08-28 23:17:21.325031', photon_index_error2='0.00', photon_index2='0.00', ts='1.97', fit_tolerance='1e-08', GAL='1.39', photon_index_error='0.00', photon_flux_upper_limit='4.45e-08', energy_flux_error2='7.87e-06', EG='0.53', time_epoch_completed='1630217841.33', return_code='0', job_id='73707', GAL2='1.40', EG2='0.53', return_code2='0', energy_flux_error='5.69e-06', photon_flux_error2='4.29e-09', ts2='4.07', photon_index='2.00' WHERE bin_id='1022' AND source_name='4FGL J0803.5+2046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 23:17:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 73707: <4FGL_J0803.5+2046_daily_bin1022> in cluster <slac> Done

Job <4FGL_J0803.5+2046_daily_bin1022> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Aug 28 23:00:48 2021
Job was executed on host(s) <bullet0279>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 23:00:49 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:00:49 2021
Terminated at Sat Aug 28 23:17:23 2021
Results reported at Sat Aug 28 23:17:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0803.5+2046_daily_bin1022 120.888 20.7678 504230401 504489601 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 :                                   966.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             268.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   993 sec.
    Turnaround time :                            995 sec.

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

