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


Performing analysis on: 4FGL_J0803.5+2046_daily_bin1090
RA = 120.888, Dec = 20.7678
tmin = 521856001, tmax = 522115201
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='75055', job_status='RUN', time_executed='2021-08-28 23:06:05.918209', time_epoch_executed='1630217165.92' WHERE source_name='4FGL J0803.5+2046' and cadence='daily' and bin_id='1090'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/75055

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/75055/ft1_4FGL_J0803.5+2046_daily_bin1090.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/75055/ft2_4FGL_J0803.5+2046_daily_bin1090.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/75055/ft1_4FGL_J0803.5+2046_daily_bin1090.fits outfile=/scratch/kocevski/75055/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin1090.fits ra=120.888 dec=20.7678 rad=12.0 tmin=521856001.0 tmax=522115201.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 4.15
user 3.53
sys 0.57

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/75055/ft1_filtered_4FGL_J0803.5+2046_daily_bin1090.fits" evtable="EVENTS" scfile=/scratch/kocevski/75055/ft2_4FGL_J0803.5+2046_daily_bin1090.fits sctable="SC_DATA" outfile=/scratch/kocevski/75055/ltcube_521856001_522115201_4FGL_J0803.5+2046_daily_bin1090.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/75055/ft2_4FGL_J0803.5+2046_daily_bin1090.fits
.....................!
real 12.46
user 11.66
sys 0.74

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/75055/ft1_filtered_4FGL_J0803.5+2046_daily_bin1090.fits evtable="EVENTS" scfile=/scratch/kocevski/75055/ft2_4FGL_J0803.5+2046_daily_bin1090.fits sctable="SC_DATA" expcube=/scratch/kocevski/75055/ltcube_521856001_522115201_4FGL_J0803.5+2046_daily_bin1090.fits outfile=/scratch/kocevski/75055/expmap_521856001_522115201_4FGL_J0803.5+2046_daily_bin1090.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/75055/ltcube_521856001_522115201_4FGL_J0803.5+2046_daily_bin1090.fits
.....................!
real 193.65
user 185.67
sys 6.43

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/75055/ft1_filtered_4FGL_J0803.5+2046_daily_bin1090.fits scfile=/scratch/kocevski/75055/ft2_4FGL_J0803.5+2046_daily_bin1090.fits outfile=/scratch/kocevski/75055/cmap_521856001_522115201_4FGL_J0803.5+2046_daily_bin1090.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.96
user 0.36
sys 0.49

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/75055/ft1_filtered_4FGL_J0803.5+2046_daily_bin1090.fits scfile=/scratch/kocevski/75055/ft2_4FGL_J0803.5+2046_daily_bin1090.fits outfile=/scratch/kocevski/75055/cmap_HighResolution_521856001_522115201_4FGL_J0803.5+2046_daily_bin1090.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.90
user 0.36
sys 0.50

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.7572       1.0000         .10000E-03   10000.    
     2 'norm      '    2.3434       1.0000         .10000E-03   10000.    
     3 'norm      '    3.4587       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.036       1.0000         .10000E-03   10000.    
     5 'norm      '    12.397       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11946E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.704       1.0000         .10000E-03   10000.    
     8 'Prefactor '    26.324       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.8089       1.0000         .10000E-03   10000.    
    10 'Prefactor '    44.910       1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.0530       1.0000         .10000E-03   10000.    
    19 'Prefactor '    25.573       1.0000         .10000E-03   10000.    
    20 'norm      '    .10171E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.4862       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.1764       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2700       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2101       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=   6933.354     FROM MIGRAD    STATUS=CONVERGED    574 CALLS     2923 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.7568        11.425        .40292E-06   -.33855E-04
   2  norm          2.3434        1.4246        .17662E-07   -.12847E-03
   3  norm          3.4586        2.4118        .75306E-07    .17855E-04
   4  Prefactor     12.037        15.083       -.44019E-06    .37451E-05
   5  norm          12.399        6.3701        .21236E-06    .35324E-04
   6  Prefactor     .10001E-03    38.128       -.55653E-05** at limit **
   7  Prefactor     13.702        22.959        .27781E-07   -.74546E-05
   8  Prefactor     26.334        66.540        .51576E-05    .10329E-03
   9  Prefactor     1.8086        3.3810        .63556E-06   -.65616E-04
  10  Prefactor     44.903        46.924       -.19600E-05   -.12897E-03
  11  norm          .10000E-03    9.5381        .13233E-06** at limit **
  12  Prefactor     .10000E-03    11.594        .70328E-06** at limit **
  13  Prefactor     .10001E-03    107.37       -.50083E-05** at limit **
  14  norm          .10001E-03    25.918        .53995E-05** at limit **
  15  Prefactor     .10003E-03    42.938        .93796E-05** at limit **
  16  Prefactor     .10000E-03    12.764       -.40772E-06** at limit **
  17  Prefactor     .10001E-03    28.641       -.69030E-05** at limit **
  18  Prefactor     4.0527        15.615        .55394E-05   -.43693E-03
  19  Prefactor     25.565        22.827        .24236E-06   -.46230E-05
  20  norm          .10000E-03    .60948        .44602E-07** at limit **
  21  Prefactor     .10000E-03    11.548       -.47487E-06** at limit **
  22  Prefactor     5.4856        7.1531        .25769E-05   -.12469E-02
  23  Prefactor     6.1761        32.769       -.31763E-06   -.10898E-04
  24  Normalizat    1.2699        .22589       -.66376E-06    .73772E-04
  25  Prefactor     1.2102        .16683       -.49411E-06    .58520E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.75681
  norm       = 2.34344
  norm       = 3.4586
  Prefactor  = 12.0367
  norm       = 12.3988
  Prefactor  = 0.000100008
  Prefactor  = 13.7018
  Prefactor  = 26.3341
  Prefactor  = 1.80863
  Prefactor  = 44.9029
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  norm       = 0.000100009
  Prefactor  = 0.000100026
  Prefactor  = 0.0001
  Prefactor  = 0.000100014
  Prefactor  = 4.05267
  Prefactor  = 25.5654
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.48562
  Prefactor  = 6.17605
  Normalizat = 1.2699
  Prefactor  = 1.21021
 **********
 **   18 **HESSE 
 **********

 FCN=   6933.354     FROM HESSE     STATUS=OK           429 CALLS     3352 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.7568        11.443        .20829E-03   -1.5320    
   2  norm          2.3434        1.4223        .74960E-04   -1.5402    
   3  norm          3.4586        2.4301        .86076E-04   -1.5336    
   4  Prefactor     12.037        15.188        .11547E-03   -1.5014    
   5  norm          12.399        6.3776        .11377E-03   -1.5004    
   6  Prefactor     .10001E-03    38.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.702        22.935        .10820E-03   -1.4967    
   8  Prefactor     26.334        66.795        .78079E-04   -1.4681    
   9  Prefactor     1.8086        3.3704        .19952E-03   -1.5439    
  10  Prefactor     44.903        47.125        .59826E-04   -1.4367    
  11  norm          .10000E-03    9.5479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    108.10        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10001E-03    26.647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10003E-03    45.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    29.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.0527        16.983        .10014E-02   -1.5305    
  19  Prefactor     25.565        22.386        .79215E-04   -1.4696    
  20  norm          .10000E-03    1.0122        .12239E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.874        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.4856        7.7538        .85772E-03   -1.5239    
  23  Prefactor     6.1761        32.763        .16153E-03   -1.5211    
  24  Normalizat    1.2699        .27101        .30358E-03   -.84469    
  25  Prefactor     1.2102        .19952        .23979E-03   -.86018    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.03923e-09
Minuit parameter uncertainties:
  1  11.4501
  2  1.4223
  3  2.4302
  4  15.1932
  5  6.37793
  6  0.00111978
  7  22.9496
  8  66.9857
  9  3.37073
  10  47.1644
  11  1.15675e-05
  12  7.31458e-05
  13  0.00184718
  14  0.000966883
  15  0.0021667
  16  5.38456e-05
  17  0.00130383
  18  16.6004
  19  22.3929
  20  2.13333e-06
  21  5.65987e-05
  22  7.75518
  23  28.4738
  24  0.271315
  25  0.199647
Done.

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

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  1.000e-04  9.669e-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.210e+00  1.996e-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.270e+00  2.713e-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: 2.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.46e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/75055/likelihoodResults_521856001_522115201_4FGL_J0803.5+2046_daily_bin1090.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) = 6933.35388528
delta logL = -0.000177582902325

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6933.3537065
delta logL = 1.1892798284e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12820E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.5128       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2699       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2102       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6933.235     FROM MIGRAD    STATUS=CONVERGED    138 CALLS      325 TOTAL
                     EDM=   .22E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.5645        11.905         .0000        .13039E-01
   2  alpha         5.0000        1.1321         .0000    ** at limit **
   3  Normalizat    1.2282        .22361         .0000        .66527E-04
   4  Prefactor     1.2282        .16639         .0000        .79322E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.56451
  alpha      = 5
  Normalizat = 1.22819
  Prefactor  = 1.22821
 **********
 **   18 **HESSE 
 **********

 FCN=   6933.235     FROM HESSE     STATUS=OK            31 CALLS      356 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.5645        11.935        .18142E-02   -1.5236    
   2  alpha         5.0000        .88940        .79351E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.2282        .26548        .30801E-03   -.85736    
   4  Prefactor     1.2282        .19911        .23829E-03   -.85468    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.62956e-10
Minuit parameter uncertainties:
  1  11.9402
  2  8.21071e-07
  3  0.265775
  4  0.199234
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/75055': 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) = 6933.23493417
delta logL = 0.11877352171

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  5.565e+00  1.194e+01  1.000e-04  1.000e+04 ( 1.000e-13)
274        alpha:  5.000e+00  8.211e-07  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.228e+00  1.992e-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.228e+00  2.658e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/75055/cmap_HighResolution_521856001_522115201_4FGL_J0803.5+2046_daily_bin1090.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.46e-05', job_status='DONE', photon_flux_upper_limit='2.77e-08', time_completed='2021-08-28 23:18:56.907546', job_id='75055', GAL2='1.23', fit_tolerance='1e-08', EG2='1.23', EG='1.27', time_epoch_completed='1630217936.91', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='1.19e-01', ts2='0.26', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1090' AND source_name='4FGL J0803.5+2046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 23:18:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 75055: <4FGL_J0803.5+2046_daily_bin1090> in cluster <slac> Done

Job <4FGL_J0803.5+2046_daily_bin1090> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 28 23:05:29 2021
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 23:05:31 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:05:31 2021
Terminated at Sat Aug 28 23:18:57 2021
Results reported at Sat Aug 28 23:18:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0803.5+2046_daily_bin1090 120.888 20.7678 521856001 522115201 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 :                                   769.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             343.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   806 sec.
    Turnaround time :                            808 sec.

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

