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


Performing analysis on: 4FGL_J0803.5+2046_daily_bin1099
RA = 120.888, Dec = 20.7678
tmin = 524188801, tmax = 524448001
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='75069', job_status='RUN', time_executed='2021-08-28 23:09:09.664776', time_epoch_executed='1630217349.66' WHERE source_name='4FGL J0803.5+2046' and cadence='daily' and bin_id='1099'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/75069

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/75069/ft1_4FGL_J0803.5+2046_daily_bin1099.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/75069/ft2_4FGL_J0803.5+2046_daily_bin1099.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/75069/ft1_4FGL_J0803.5+2046_daily_bin1099.fits outfile=/scratch/kocevski/75069/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin1099.fits ra=120.888 dec=20.7678 rad=12.0 tmin=524188801.0 tmax=524448001.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 5.18
user 3.18
sys 1.95

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/75069/ft2_4FGL_J0803.5+2046_daily_bin1099.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/75069/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin1099.fits evtable="EVENTS" outfile="/scratch/kocevski/75069/ft1_filtered_4FGL_J0803.5+2046_daily_bin1099.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 2.51
user 0.33
sys 2.09

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/75069/ft1_filtered_4FGL_J0803.5+2046_daily_bin1099.fits" evtable="EVENTS" scfile=/scratch/kocevski/75069/ft2_4FGL_J0803.5+2046_daily_bin1099.fits sctable="SC_DATA" outfile=/scratch/kocevski/75069/ltcube_524188801_524448001_4FGL_J0803.5+2046_daily_bin1099.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/75069/ft2_4FGL_J0803.5+2046_daily_bin1099.fits
.....................!
real 14.46
user 11.88
sys 2.53

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/75069/ft1_filtered_4FGL_J0803.5+2046_daily_bin1099.fits evtable="EVENTS" scfile=/scratch/kocevski/75069/ft2_4FGL_J0803.5+2046_daily_bin1099.fits sctable="SC_DATA" expcube=/scratch/kocevski/75069/ltcube_524188801_524448001_4FGL_J0803.5+2046_daily_bin1099.fits outfile=/scratch/kocevski/75069/expmap_524188801_524448001_4FGL_J0803.5+2046_daily_bin1099.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/75069/ltcube_524188801_524448001_4FGL_J0803.5+2046_daily_bin1099.fits
.....................!
real 192.82
user 185.33
sys 7.06

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/75069/ft1_filtered_4FGL_J0803.5+2046_daily_bin1099.fits scfile=/scratch/kocevski/75069/ft2_4FGL_J0803.5+2046_daily_bin1099.fits outfile=/scratch/kocevski/75069/cmap_524188801_524448001_4FGL_J0803.5+2046_daily_bin1099.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 2.46
user 0.39
sys 2.06

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/75069/ft1_filtered_4FGL_J0803.5+2046_daily_bin1099.fits scfile=/scratch/kocevski/75069/ft2_4FGL_J0803.5+2046_daily_bin1099.fits outfile=/scratch/kocevski/75069/cmap_HighResolution_524188801_524448001_4FGL_J0803.5+2046_daily_bin1099.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 2.49
user 0.40
sys 2.06

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.807       1.0000         .10000E-03   10000.    
     2 'norm      '    .30690       1.0000         .10000E-03   10000.    
     3 'norm      '    5.4501       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .53219       1.0000         .10000E-03   10000.    
     5 'norm      '    5.7895       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .15869E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    35.670       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10284E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10175E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.380       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10528E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    57.357       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10204E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    20.600       1.0000         .10000E-03   10000.    
    19 'Prefactor '    41.169       1.0000         .10000E-03   10000.    
    20 'norm      '    .10488E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.511       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3487       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .87837       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=   7364.152     FROM MIGRAD    STATUS=CONVERGED    622 CALLS     3005 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.806        13.829        .15676E-06    .16390E-03
   2  norm          .30685        .96283        .26815E-06    .66403E-04
   3  norm          5.4241        2.7185        .80256E-07    .18795E-02
   4  Prefactor     .77870        20.730       -.28224E-05    .46805E-03
   5  norm          5.7943        4.6636       -.40283E-06    .21721E-03
   6  Prefactor     .10002E-03    91.883       -.64497E-05** at limit **
   7  Prefactor     .10000E-03    8.8358       -.95187E-08** at limit **
   8  Prefactor     35.473        56.268       -.50997E-05   -.58121E-04
   9  Prefactor     .10000E-03    .69838       -.27094E-08** at limit **
  10  Prefactor     .10001E-03    42.376       -.36502E-05** at limit **
  11  norm          .10000E-03    24.620       -.32274E-06** at limit **
  12  Prefactor     16.388        14.362       -.82318E-06   -.10130E-03
  13  Prefactor     .10000E-03    32.208        .56387E-06** at limit **
  14  norm          57.319        65.876       -.17415E-05   -.81325E-04
  15  Prefactor     .10000E-03    14.505       -.64744E-07** at limit **
  16  Prefactor     .10000E-03    12.153       -.87332E-07** at limit **
  17  Prefactor     .10000E-03    8.7092       -.16452E-08** at limit **
  18  Prefactor     20.616        20.490       -.47594E-06    .57682E-04
  19  Prefactor     41.218        27.325       -.19382E-07    .63308E-03
  20  norm          .10000E-03    .82472       -.23566E-05** at limit **
  21  Prefactor     .10000E-03    4.4607       -.12001E-06** at limit **
  22  Prefactor     13.517        8.1766       -.13917E-06    .21262E-03
  23  Prefactor     .10000E-03    32.136        .83435E-06** at limit **
  24  Normalizat    1.3482        .21861        .50246E-05    .94636E-03
  25  Prefactor     .87847        .14795       -.23023E-05    .11217E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 17.8062
  norm       = 0.30685
  norm       = 5.42408
  Prefactor  = 0.778702
  norm       = 5.79431
  Prefactor  = 0.00010002
  Prefactor  = 0.0001
  Prefactor  = 35.473
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  norm       = 0.0001
  Prefactor  = 16.3885
  Prefactor  = 0.0001
  norm       = 57.3188
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.6157
  Prefactor  = 41.2179
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.5167
  Prefactor  = 0.0001
  Normalizat = 1.34819
  Prefactor  = 0.878474
 **********
 **   18 **HESSE 
 **********

 FCN=   7364.152     FROM HESSE     STATUS=OK           421 CALLS     3426 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.806        13.842        .94913E-04   -1.4864    
   2  norm          .30685        1.1639        .13863E-02   -1.5597    
   3  norm          5.4241        2.9149        .68891E-04   -1.5242    
   4  Prefactor     .77870        108.12        .45627E-02   -1.5531    
   5  norm          5.7943        4.6618        .15601E-03   -1.5226    
   6  Prefactor     .10002E-03    93.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.8685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     35.473        56.876        .67100E-04   -1.4516    
   9  Prefactor     .10000E-03    .70050        .70018E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    42.932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    24.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     16.388        14.377        .98961E-04   -1.4898    
  13  Prefactor     .10000E-03    32.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          57.319        66.101        .26485E-03   -1.4192    
  15  Prefactor     .10000E-03    14.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.7117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     20.616        20.536        .88247E-04   -1.4800    
  19  Prefactor     41.218        27.855        .62474E-04   -1.4423    
  20  norm          .10000E-03    .94335        .13042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.4771        .17697E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     13.517        8.1861        .10897E-03   -1.4972    
  23  Prefactor     .10000E-03    32.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3482        .25002        .27793E-03   -.82139    
  25  Prefactor     .87847        .16858        .24092E-03   -.96897    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05997e-08
Minuit parameter uncertainties:
  1  13.8448
  2  1.16401
  3  2.91502
  4  18.3841
  5  4.66212
  6  0.00272907
  7  3.876e-06
  8  56.9629
  9  4.15058e-07
  10  0.000997808
  11  2.12351e-06
  12  14.38
  13  0.000131129
  14  66.186
  15  1.39983e-05
  16  9.56557e-06
  17  3.75021e-06
  18  20.5431
  19  27.8638
  20  3.49e-05
  21  2.16141e-06
  22  8.18675
  23  0.00014374
  24  0.250246
  25  0.168681
Done.

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

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  5.732e+01  6.619e+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:  8.785e-01  1.687e-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.348e+00  2.502e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.71
Ra Dec: 120.888 20.768
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 1.05e-08 +/- 1.21e-08
Energy Flux (Fixed Index): 5.51e-06 +/- 6.36e-06

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

Saving results to:
/scratch/kocevski/75069/likelihoodResults_524188801_524448001_4FGL_J0803.5+2046_daily_bin1099.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) = 7363.98365605
delta logL = 0.168351577935

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7363.96512585
delta logL = 0.186881777918

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    44.485       1.0000         .10000E-03   10000.    
     2 'alpha     '    .90346       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3536       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87701       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=   7363.965     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      203 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          44.345        63.255       -.29677E-04   -.23805E-04
   2  alpha         .90020        1.4707       -.69805E-03    .75287E-06
   3  Normalizat    1.3533        .19351       -.36622E-06    .53974E-03
   4  Prefactor     .87700        .13973        .95288E-06    .49621E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 44.3446
  alpha      = 0.900204
  Normalizat = 1.35328
  Prefactor  = 0.877002
 **********
 **   18 **HESSE 
 **********

 FCN=   7363.965     FROM HESSE     STATUS=OK            29 CALLS      232 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          44.345        60.683        .30055E-03   -1.4375    
   2  alpha         .90020        1.4280        .62666E-01   -.69439    
   3  Normalizat    1.3533        .22626        .27748E-03   -.81990    
   4  Prefactor     .87700        .16342        .24109E-03   -.96949    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18228e-09
Minuit parameter uncertainties:
  1  60.7674
  2  1.60998
  3  0.226427
  4  0.16351
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/75069': 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) = 7363.96511882
delta logL = 0.186888811587

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  4.434e+01  6.077e+01  1.000e-04  1.000e+04 ( 1.000e-13)
274        alpha:  9.002e-01  1.610e+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:  8.770e-01  1.635e-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.353e+00  2.264e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.08
Ra Dec: 120.888 20.768
Photon Index (Free Index): 0.90 +/- 1.61
Photon Flux (Free Index): 6.18e-09 +/- 8.06e-09
Energy Flux (Free Index): 6.36e-06 +/- 7.62e-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/75069/cmap_HighResolution_524188801_524448001_4FGL_J0803.5+2046_daily_bin1099.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.49e-05', comment='SUCCESS', photon_flux='1.05e-08', energy_flux2='6.36e-06', photon_flux_error='1.21e-08', dlogl='1.87e-01', energy_flux='5.51e-06', photon_flux2='6.18e-09', job_status='DONE', time_completed='2021-08-28 23:22:07.975316', photon_index_error2='1.61', photon_index2='0.90', ts='1.71', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='4.73e-08', energy_flux_error2='7.62e-06', EG='1.35', time_epoch_completed='1630218127.98', return_code='0', job_id='75069', GAL2='0.88', EG2='1.35', return_code2='0', energy_flux_error='6.36e-06', photon_flux_error2='8.06e-09', ts2='2.08', photon_index='2.00' WHERE bin_id='1099' AND source_name='4FGL J0803.5+2046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 23:22:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 75069: <4FGL_J0803.5+2046_daily_bin1099> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0803.5+2046_daily_bin1099 120.888 20.7678 524188801 524448001 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 :                                   805.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             226.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   996 sec.
    Turnaround time :                            998 sec.

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

