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


Performing analysis on: 4FGL_J0803.5+2046_daily_bin1311
RA = 120.888, Dec = 20.7678
tmin = 579139201, tmax = 579398401
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='75387', job_status='RUN', time_executed='2021-08-28 23:08:44.265548', time_epoch_executed='1630217324.27' WHERE source_name='4FGL J0803.5+2046' and cadence='daily' and bin_id='1311'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/75387

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/75387/ft1_4FGL_J0803.5+2046_daily_bin1311.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/75387/ft2_4FGL_J0803.5+2046_daily_bin1311.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/75387/ft1_4FGL_J0803.5+2046_daily_bin1311.fits outfile=/scratch/kocevski/75387/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin1311.fits ra=120.888 dec=20.7678 rad=12.0 tmin=579139201.0 tmax=579398401.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.04
user 3.24
sys 0.77

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/75387/ft1_filtered_4FGL_J0803.5+2046_daily_bin1311.fits" evtable="EVENTS" scfile=/scratch/kocevski/75387/ft2_4FGL_J0803.5+2046_daily_bin1311.fits sctable="SC_DATA" outfile=/scratch/kocevski/75387/ltcube_579139201_579398401_4FGL_J0803.5+2046_daily_bin1311.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/75387/ft2_4FGL_J0803.5+2046_daily_bin1311.fits
.....................!
real 12.75
user 11.65
sys 1.06

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/75387/ft1_filtered_4FGL_J0803.5+2046_daily_bin1311.fits evtable="EVENTS" scfile=/scratch/kocevski/75387/ft2_4FGL_J0803.5+2046_daily_bin1311.fits sctable="SC_DATA" expcube=/scratch/kocevski/75387/ltcube_579139201_579398401_4FGL_J0803.5+2046_daily_bin1311.fits outfile=/scratch/kocevski/75387/expmap_579139201_579398401_4FGL_J0803.5+2046_daily_bin1311.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/75387/ltcube_579139201_579398401_4FGL_J0803.5+2046_daily_bin1311.fits
.....................!
real 190.83
user 184.72
sys 5.76

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/75387/ft1_filtered_4FGL_J0803.5+2046_daily_bin1311.fits scfile=/scratch/kocevski/75387/ft2_4FGL_J0803.5+2046_daily_bin1311.fits outfile=/scratch/kocevski/75387/cmap_579139201_579398401_4FGL_J0803.5+2046_daily_bin1311.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 1.08
user 0.37
sys 0.69

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/75387/ft1_filtered_4FGL_J0803.5+2046_daily_bin1311.fits scfile=/scratch/kocevski/75387/ft2_4FGL_J0803.5+2046_daily_bin1311.fits outfile=/scratch/kocevski/75387/cmap_HighResolution_579139201_579398401_4FGL_J0803.5+2046_daily_bin1311.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 1.18
user 0.37
sys 0.79

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.5114       1.0000         .10000E-03   10000.    
     2 'norm      '    2.0490       1.0000         .10000E-03   10000.    
     3 'norm      '    4.1616       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.3406       1.0000         .10000E-03   10000.    
     6 'Prefactor '    65.518       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.3520       1.0000         .10000E-03   10000.    
     8 'Prefactor '    27.034       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.3380       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.685       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    129.47       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.1959       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .35556       1.0000         .10000E-03   10000.    
    20 'norm      '    .10080E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    17.639       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.5724       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .68001       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=   6991.196     FROM MIGRAD    STATUS=CONVERGED    592 CALLS     2959 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.5088        13.645        .45938E-06    .43183E-04
   2  norm          2.0488        1.4189        .30510E-07   -.97674E-04
   3  norm          4.1618        1.7620        .84126E-07   -.46433E-04
   4  Prefactor     .10000E-03    10.267        .42350E-06** at limit **
   5  norm          5.3395        4.5740        .26467E-05   -.18663E-02
   6  Prefactor     65.513        36.952       -.26614E-05   -.27614E-03
   7  Prefactor     3.3512        19.865       -.30079E-05   -.46835E-04
   8  Prefactor     27.013        40.642       -.58258E-05   -.40418E-03
   9  Prefactor     8.3366        3.9831        .45579E-07   -.56602E-04
  10  Prefactor     .10000E-03    13.877       -.92792E-06** at limit **
  11  norm          .10000E-03    7.4174        .95119E-07** at limit **
  12  Prefactor     21.681        13.502        .17335E-06    .77409E-04
  13  Prefactor     .10000E-03    38.880        .22375E-05** at limit **
  14  norm          129.45        108.63       -.25727E-05   -.13562E-03
  15  Prefactor     .10000E-03    9.2251       -.38419E-06** at limit **
  16  Prefactor     .10001E-03    20.380       -.32283E-05** at limit **
  17  Prefactor     6.1928        20.522       -.16159E-06   -.16420E-04
  18  Prefactor     .10001E-03    18.828        .36308E-05** at limit **
  19  Prefactor     .12424        12.073       -.42800E-06    .70507E-04
  20  norm          .10000E-03    .50931        .79861E-07** at limit **
  21  Prefactor     .10000E-03    7.1421        .49735E-07** at limit **
  22  Prefactor     17.635        9.5491        .49898E-07    .66069E-04
  23  Prefactor     .10000E-03    38.177       -.17091E-05** at limit **
  24  Normalizat    1.5729        .20516        .15546E-06    .15371E-04
  25  Prefactor     .67990        .14564       -.19725E-06    .41841E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.5088
  norm       = 2.0488
  norm       = 4.16178
  Prefactor  = 0.0001
  norm       = 5.33948
  Prefactor  = 65.513
  Prefactor  = 3.35119
  Prefactor  = 27.0134
  Prefactor  = 8.33658
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 21.6814
  Prefactor  = 0.000100003
  norm       = 129.449
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 6.1928
  Prefactor  = 0.000100006
  Prefactor  = 0.124237
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.635
  Prefactor  = 0.000100002
  Normalizat = 1.57291
  Prefactor  = 0.679898
 **********
 **   18 **HESSE 
 **********

 FCN=   6991.196     FROM HESSE     STATUS=OK           435 CALLS     3394 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.5088        13.674        .15727E-03   -1.5198    
   2  norm          2.0488        1.4147        .79494E-04   -1.5422    
   3  norm          4.1618        1.7575        .69231E-04   -1.5300    
   4  Prefactor     .10000E-03    10.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.3395        4.8949        .79073E-03   -1.5246    
   6  Prefactor     65.513        36.965        .24791E-03   -1.4087    
   7  Prefactor     3.3512        19.861        .22105E-03   -1.5342    
   8  Prefactor     27.013        42.729        .77049E-04   -1.4668    
   9  Prefactor     8.3366        3.9835        .11002E-03   -1.5130    
  10  Prefactor     .10000E-03    13.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    7.4192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     21.681        13.501        .86014E-04   -1.4776    
  13  Prefactor     .10000E-03    39.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          129.45        109.53        .17692E-03   -1.3428    
  15  Prefactor     .10000E-03    9.2352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    20.878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.1928        20.521        .16128E-03   -1.5210    
  18  Prefactor     .10001E-03    19.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .12424        23.418        .91801E-01   -1.5637    
  20  norm          .10000E-03    .75664        .11219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.1859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     17.635        9.5793        .95363E-04   -1.4868    
  23  Prefactor     .10000E-03    38.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.5729        .24362        .26087E-03   -.75750    
  25  Prefactor     .67990        .17142        .26967E-03   -1.0432    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.8296e-09
Minuit parameter uncertainties:
  1  13.6808
  2  1.41469
  3  1.75748
  4  0.000132551
  5  4.89528
  6  36.9784
  7  16.3244
  8  42.7774
  9  3.98365
  10  0.000140364
  11  7.5448e-06
  12  13.5034
  13  0.000629362
  14  109.701
  15  5.41843e-05
  16  0.000670605
  17  20.5441
  18  0.000661007
  19  3.41136
  20  2.23801e-06
  21  7.59135e-06
  22  9.58015
  23  0.000512602
  24  0.243804
  25  0.171551
Done.

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

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  1.294e+02  1.097e+02  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:  6.799e-01  1.716e-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.573e+00  2.438e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.30
Ra Dec: 120.888 20.768
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 2.37e-08 +/- 2.01e-08
Energy Flux (Fixed Index): 1.24e-05 +/- 1.05e-05

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

Saving results to:
/scratch/kocevski/75387/likelihoodResults_579139201_579398401_4FGL_J0803.5+2046_daily_bin1311.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) = 6991.11305334
delta logL = 0.0826245073158

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6991.1047475
delta logL = 0.0909303427616

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    116.82       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9179       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5464       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69001       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6991.105     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      284 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          116.86        137.39        .18614E-03    .63214E-04
   2  alpha         2.9172        1.8949        .34986E-01    .27417E-04
   3  Normalizat    1.5464        .24593        .26266E-03    .35501E-04
   4  Prefactor     .69006        .16988        .26777E-03    .23678E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 116.861
  alpha      = 2.9172
  Normalizat = 1.54638
  Prefactor  = 0.69006
 **********
 **   18 **HESSE 
 **********

 FCN=   6991.105     FROM HESSE     STATUS=OK            25 CALLS      309 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          116.86        121.41        .74455E-05   -1.3542    
   2  alpha         2.9172        1.7190        .13995E-02    .16766    
   3  Normalizat    1.5464        .24191        .52531E-04   -.76483    
   4  Prefactor     .69006        .16843        .10711E-04   -1.0392    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.6039e-10
Minuit parameter uncertainties:
  1  121.667
  2  1.90225
  3  0.24209
  4  0.168552
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/75387': 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) = 6991.10474729
delta logL = 0.0909305562109

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  1.169e+02  1.217e+02  1.000e-04  1.000e+04 ( 1.000e-13)
274        alpha:  2.917e+00  1.902e+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:  6.901e-01  1.686e-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.546e+00  2.421e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.46
Ra Dec: 120.888 20.768
Photon Index (Free Index): 2.92 +/- 1.90
Photon Flux (Free Index): 4.34e-08 +/- 6.02e-08
Energy Flux (Free Index): 1.42e-05 +/- 1.17e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/75387/cmap_HighResolution_579139201_579398401_4FGL_J0803.5+2046_daily_bin1311.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.72e-05', comment='SUCCESS', photon_flux='2.37e-08', energy_flux2='1.42e-05', photon_flux_error='2.01e-08', dlogl='9.09e-02', energy_flux='1.24e-05', photon_flux2='4.34e-08', job_status='DONE', time_completed='2021-08-28 23:21:07.318506', photon_index_error2='1.90', photon_index2='2.92', ts='2.30', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', photon_flux_upper_limit='7.08e-08', energy_flux_error2='1.17e-05', EG='1.57', time_epoch_completed='1630218067.32', return_code='0', job_id='75387', GAL2='0.69', EG2='1.55', return_code2='0', energy_flux_error='1.05e-05', photon_flux_error2='6.02e-08', ts2='2.46', photon_index='2.00' WHERE bin_id='1311' AND source_name='4FGL J0803.5+2046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 23:21:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 75387: <4FGL_J0803.5+2046_daily_bin1311> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0803.5+2046_daily_bin1311 120.888 20.7678 579139201 579398401 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 :                                   750.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             326.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            910 sec.

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

