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


Performing analysis on: 4FGL_J0803.5+2046_daily_bin5
RA = 120.888, Dec = 20.7678
tmin = 240624001, tmax = 240883201
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='69031', job_status='RUN', time_executed='2021-08-28 22:49:11.167533', time_epoch_executed='1630216151.17' WHERE source_name='4FGL J0803.5+2046' and cadence='daily' and bin_id='5'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/69031

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/69031/ft1_4FGL_J0803.5+2046_daily_bin5.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/69031/ft2_4FGL_J0803.5+2046_daily_bin5.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/69031/ft1_4FGL_J0803.5+2046_daily_bin5.fits outfile=/scratch/kocevski/69031/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin5.fits ra=120.888 dec=20.7678 rad=12.0 tmin=240624001.0 tmax=240883201.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 9.02
user 1.20
sys 7.78

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/69031/ft1_filtered_4FGL_J0803.5+2046_daily_bin5.fits" evtable="EVENTS" scfile=/scratch/kocevski/69031/ft2_4FGL_J0803.5+2046_daily_bin5.fits sctable="SC_DATA" outfile=/scratch/kocevski/69031/ltcube_240624001_240883201_4FGL_J0803.5+2046_daily_bin5.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/69031/ft2_4FGL_J0803.5+2046_daily_bin5.fits
.....................!
real 24.09
user 15.06
sys 8.94

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/69031/ft1_filtered_4FGL_J0803.5+2046_daily_bin5.fits evtable="EVENTS" scfile=/scratch/kocevski/69031/ft2_4FGL_J0803.5+2046_daily_bin5.fits sctable="SC_DATA" expcube=/scratch/kocevski/69031/ltcube_240624001_240883201_4FGL_J0803.5+2046_daily_bin5.fits outfile=/scratch/kocevski/69031/expmap_240624001_240883201_4FGL_J0803.5+2046_daily_bin5.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/69031/ltcube_240624001_240883201_4FGL_J0803.5+2046_daily_bin5.fits
.....................!
real 200.40
user 185.64
sys 14.32

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/69031/ft1_filtered_4FGL_J0803.5+2046_daily_bin5.fits scfile=/scratch/kocevski/69031/ft2_4FGL_J0803.5+2046_daily_bin5.fits outfile=/scratch/kocevski/69031/cmap_240624001_240883201_4FGL_J0803.5+2046_daily_bin5.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 8.09
user 0.38
sys 7.67

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/69031/ft1_filtered_4FGL_J0803.5+2046_daily_bin5.fits scfile=/scratch/kocevski/69031/ft2_4FGL_J0803.5+2046_daily_bin5.fits outfile=/scratch/kocevski/69031/cmap_HighResolution_240624001_240883201_4FGL_J0803.5+2046_daily_bin5.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 8.24
user 0.38
sys 7.78

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    43.086       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.4123       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.0054       1.0000         .10000E-03   10000.    
     5 'norm      '    4.1769       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10526E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .15414E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    30.052       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.0849       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    15.625       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12643E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10647E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    30.156       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.4337       1.0000         .10000E-03   10000.    
    18 'Prefactor '    36.699       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.2740       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.8602       1.0000         .10000E-03   10000.    
    23 'Prefactor '    29.672       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .87315       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0320       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=   5746.909     FROM MIGRAD    STATUS=CONVERGED    608 CALLS     2971 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          43.092        16.652       -.23909E-06    .27939E-04
   2  norm          .10000E-03    .38236       -.69868E-07** at limit **
   3  norm          3.4117        2.2448        .15703E-06   -.11325E-03
   4  Prefactor     4.0164        12.697       -.20184E-05    .62229E-04
   5  norm          4.1801        4.1233        .76118E-06    .28060E-03
   6  Prefactor     .10000E-03    31.721        .22205E-05** at limit **
   7  Prefactor     .10002E-03    88.984        .20976E-04** at limit **
   8  Prefactor     29.985        46.009        .74729E-06    .73851E-04
   9  Prefactor     5.0886        3.9028       -.59441E-06    .11451E-03
  10  Prefactor     .10000E-03    64.410        .45194E-05** at limit **
  11  norm          15.627        15.751       -.25587E-06   -.24052E-04
  12  Prefactor     .10001E-03    6.5935       -.16175E-05** at limit **
  13  Prefactor     .10000E-03    38.369       -.26018E-05** at limit **
  14  norm          .10000E-03    469.23        .14516E-04** at limit **
  15  Prefactor     30.179        31.257       -.37907E-07    .72072E-04
  16  Prefactor     .10000E-03    23.844       -.45380E-06** at limit **
  17  Prefactor     6.3437        55.595       -.47273E-05   -.21636E-05
  18  Prefactor     36.698        20.729       -.39595E-06    .35312E-04
  19  Prefactor     .10000E-03    15.187       -.27179E-06** at limit **
  20  norm          .10000E-03    .66498       -.29090E-06** at limit **
  21  Prefactor     5.2792        9.4363        .40105E-06    .49044E-03
  22  Prefactor     4.8530        7.7633       -.10579E-05    .11474E-03
  23  Prefactor     29.681        39.586       -.34777E-06    .31389E-04
  24  Normalizat    .87294        .21378        .26314E-05    .38583E-03
  25  Prefactor     1.0320        .14850        .97691E-06    .86450E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 43.0919
  norm       = 0.0001
  norm       = 3.41174
  Prefactor  = 4.01637
  norm       = 4.18006
  Prefactor  = 0.0001
  Prefactor  = 0.000100025
  Prefactor  = 29.9848
  Prefactor  = 5.08856
  Prefactor  = 0.000100001
  norm       = 15.6268
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 30.1789
  Prefactor  = 0.0001
  Prefactor  = 6.34366
  Prefactor  = 36.6982
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 5.27919
  Prefactor  = 4.85302
  Prefactor  = 29.6811
  Normalizat = 0.872942
  Prefactor  = 1.03203
 **********
 **   18 **HESSE 
 **********

 FCN=   5746.909     FROM HESSE     STATUS=OK           431 CALLS     3402 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          43.092        16.665        .61075E-04   -1.4394    
   2  norm          .10000E-03    .58469        .91306E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.4117        2.2845        .67281E-04   -1.5339    
   4  Prefactor     4.0164        12.853        .20151E-03   -1.5307    
   5  norm          4.1801        4.0333        .14138E-03   -1.5299    
   6  Prefactor     .10000E-03    31.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10002E-03    90.538        .52248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     29.985        45.947        .73086E-04   -1.4612    
   9  Prefactor     5.0886        3.8942        .12226E-03   -1.5257    
  10  Prefactor     .10000E-03    64.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          15.627        15.458        .10132E-03   -1.4917    
  12  Prefactor     .10001E-03    21.628        .36069E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    38.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    470.79        .18152E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     30.179        31.287        .72961E-04   -1.4609    
  16  Prefactor     .10000E-03    23.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.3437        55.698        .15823E-03   -1.5204    
  18  Prefactor     36.698        20.750        .66156E-04   -1.4496    
  19  Prefactor     .10000E-03    15.258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.0125        .11497E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.2792        9.4143        .17502E-03   -1.5248    
  22  Prefactor     4.8530        7.7683        .18246E-03   -1.5267    
  23  Prefactor     29.681        39.623        .73552E-04   -1.4618    
  24  Normalizat    .87294        .24530        .29143E-03   -.97418    
  25  Prefactor     1.0320        .17286        .20829E-03   -.91669    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.49722e-09
Minuit parameter uncertainties:
  1  16.6668
  2  7.97872e-06
  3  2.28451
  4  12.8618
  5  4.03356
  6  0.000219491
  7  0.00298792
  8  46.0009
  9  3.89444
  10  0.000531812
  11  15.4618
  12  0.00073448
  13  0.00018936
  14  0.000767865
  15  31.3037
  16  9.24223e-05
  17  37.6407
  18  20.7544
  19  2.55998e-05
  20  5.39807e-05
  21  9.41691
  22  7.7699
  23  39.6581
  24  0.245616
  25  0.172948
Done.

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

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  1.000e-04  7.679e-04  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.032e+00  1.729e-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:  8.729e-01  2.456e-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.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.61e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/69031/likelihoodResults_240624001_240883201_4FGL_J0803.5+2046_daily_bin5.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) = 5746.90911646
delta logL = -9.96788457996e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5746.90911646
delta logL = -9.96750623017e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96363E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9991       1.0000          .0000       5.0000    
     3 'Normalizat'    .87295       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0320       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=   5746.909     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      196 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    498.93        .90712E-02** at limit **
   2  alpha         2.0750        3.4449        .42247       -.81169E-06
   3  Normalizat    .87294        .18868        .65882E-01   -.59405E-04
   4  Prefactor     1.0320        .14630        .41102E-01    .29866E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100017
  alpha      = 2.075
  Normalizat = 0.872942
  Prefactor  = 1.03203
 **********
 **   18 **HESSE 
 **********

 FCN=   5746.909     FROM HESSE     STATUS=OK            31 CALLS      227 TOTAL
                     EDM=   .75E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    491.62        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0750        3.4389        .16899       -.17083    
   3  Normalizat    .87294        .21678        .29144E-03   -.97418    
   4  Prefactor     1.0320        .16831        .20829E-03   -.91669    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.47323e-11
Minuit parameter uncertainties:
  1  0.0058829
  2  2.46411
  3  0.216993
  4  0.168398
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/69031': 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) = 5746.90910646
delta logL = 2.47764546657e-08

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  1.000e-04  5.883e-03  1.000e-04  1.000e+04 ( 1.000e-13)
274        alpha:  2.075e+00  2.464e+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.032e+00  1.684e-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:  8.729e-01  2.170e-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/69031/cmap_HighResolution_240624001_240883201_4FGL_J0803.5+2046_daily_bin5.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.61e-05', job_status='DONE', photon_flux_upper_limit='4.97e-08', time_completed='2021-08-28 23:02:00.114016', job_id='69031', GAL2='1.03', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1630216920.11', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='2.48e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='5' AND source_name='4FGL J0803.5+2046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 23:02:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0134>
Subject: Job 69031: <4FGL_J0803.5+2046_daily_bin5> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0803.5+2046_daily_bin5 120.888 20.7678 240624001 240883201 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 :                                   890.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   968 sec.
    Turnaround time :                            971 sec.

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

