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


Performing analysis on: 4FGL_J0803.5+2046_daily_bin23
RA = 120.888, Dec = 20.7678
tmin = 245289601, tmax = 245548801
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='69058', job_status='RUN', time_executed='2021-08-28 22:49:47.538113', time_epoch_executed='1630216187.54' WHERE source_name='4FGL J0803.5+2046' and cadence='daily' and bin_id='23'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/69058

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/69058/ft1_4FGL_J0803.5+2046_daily_bin23.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/69058/ft2_4FGL_J0803.5+2046_daily_bin23.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/69058/ft1_4FGL_J0803.5+2046_daily_bin23.fits outfile=/scratch/kocevski/69058/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin23.fits ra=120.888 dec=20.7678 rad=12.0 tmin=245289601.0 tmax=245548801.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 1.68
user 1.27
sys 0.39

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/69058/ft1_filtered_4FGL_J0803.5+2046_daily_bin23.fits" evtable="EVENTS" scfile=/scratch/kocevski/69058/ft2_4FGL_J0803.5+2046_daily_bin23.fits sctable="SC_DATA" outfile=/scratch/kocevski/69058/ltcube_245289601_245548801_4FGL_J0803.5+2046_daily_bin23.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/69058/ft2_4FGL_J0803.5+2046_daily_bin23.fits
.....................!
real 12.80
user 12.15
sys 0.60

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/69058/ft1_filtered_4FGL_J0803.5+2046_daily_bin23.fits evtable="EVENTS" scfile=/scratch/kocevski/69058/ft2_4FGL_J0803.5+2046_daily_bin23.fits sctable="SC_DATA" expcube=/scratch/kocevski/69058/ltcube_245289601_245548801_4FGL_J0803.5+2046_daily_bin23.fits outfile=/scratch/kocevski/69058/expmap_245289601_245548801_4FGL_J0803.5+2046_daily_bin23.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/69058/ltcube_245289601_245548801_4FGL_J0803.5+2046_daily_bin23.fits
.....................!
real 190.48
user 185.75
sys 4.36

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/69058/ft1_filtered_4FGL_J0803.5+2046_daily_bin23.fits scfile=/scratch/kocevski/69058/ft2_4FGL_J0803.5+2046_daily_bin23.fits outfile=/scratch/kocevski/69058/cmap_245289601_245548801_4FGL_J0803.5+2046_daily_bin23.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.74
user 0.37
sys 0.35

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/69058/ft1_filtered_4FGL_J0803.5+2046_daily_bin23.fits scfile=/scratch/kocevski/69058/ft2_4FGL_J0803.5+2046_daily_bin23.fits outfile=/scratch/kocevski/69058/cmap_HighResolution_245289601_245548801_4FGL_J0803.5+2046_daily_bin23.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.74
user 0.39
sys 0.34

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    53.826       1.0000         .10000E-03   10000.    
     2 'norm      '    .73895       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10119E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    25.402       1.0000         .10000E-03   10000.    
     7 'Prefactor '    33.274       1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.427       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10208E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.8370       1.0000         .10000E-03   10000.    
    13 'Prefactor '    27.107       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    36.103       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.3452       1.0000         .10000E-03   10000.    
    20 'norm      '    .73507       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.5939       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .39903E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0257       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .90494       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=   5386.953     FROM MIGRAD    STATUS=CONVERGED    587 CALLS     2928 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          53.827        19.765       -.92640E-07    .72712E-05
   2  norm          .73873        1.0648       -.16475E-06   -.55695E-03
   3  norm          .10000E-03    .59844       -.24960E-06** at limit **
   4  Prefactor     .10000E-03    8.8398       -.97358E-06** at limit **
   5  norm          .10000E-03    9.8015        .11909E-04** at limit **
   6  Prefactor     25.449        42.441        .49999E-05   -.22611E-04
   7  Prefactor     33.285        22.752        .24198E-05    .12943E-03
   8  Prefactor     18.390        31.093        .17990E-05    .53461E-04
   9  Prefactor     .10000E-03    .78017        .12107E-07** at limit **
  10  Prefactor     .10000E-03    28.159        .36564E-06** at limit **
  11  norm          .10000E-03    8.0282       -.99468E-07** at limit **
  12  Prefactor     5.8357        7.2134       -.12410E-07    .35530E-04
  13  Prefactor     27.144        108.94       -.61838E-05   -.18912E-04
  14  norm          .10000E-03    51.733       -.23913E-05** at limit **
  15  Prefactor     36.066        34.614        .16125E-05   -.53945E-05
  16  Prefactor     .10001E-03    32.824       -.15823E-06** at limit **
  17  Prefactor     .10000E-03    11.757        .10609E-05** at limit **
  18  Prefactor     .10000E-03    6.7946       -.51351E-07** at limit **
  19  Prefactor     1.3444        35.508        .50653E-06    .10401E-03
  20  norm          .73502        .83528       -.11808E-07   -.17429E-04
  21  Prefactor     9.5949        7.6945        .93107E-07    .14397E-03
  22  Prefactor     .10000E-03    7.6147        .72588E-05** at limit **
  23  Prefactor     .10000E-03    16.281       -.46906E-06** at limit **
  24  Normalizat    1.0258        .20311       -.16726E-06    .95553E-04
  25  Prefactor     .90507        .15100        .11547E-05    .39666E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 53.8269
  norm       = 0.738731
  norm       = 0.0001
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 25.4487
  Prefactor  = 33.2848
  Prefactor  = 18.3896
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 5.83572
  Prefactor  = 27.1443
  norm       = 0.000100001
  Prefactor  = 36.066
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.34443
  norm       = 0.73502
  Prefactor  = 9.59493
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Normalizat = 1.0258
  Prefactor  = 0.905074
 **********
 **   18 **HESSE 
 **********

 FCN=   5386.953     FROM HESSE     STATUS=OK           431 CALLS     3359 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          53.827        19.768        .54671E-04   -1.4239    
   2  norm          .73873        .95640        .87716E-03   -1.5536    
   3  norm          .10000E-03    .61512        .11101E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.1587        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    10.659        .21031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     25.449        42.463        .79482E-04   -1.4699    
   7  Prefactor     33.285        22.723        .69468E-04   -1.4553    
   8  Prefactor     18.390        31.102        .93303E-04   -1.4850    
   9  Prefactor     .10000E-03    .78469        .63289E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    28.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    8.0363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.8357        7.2100        .16623E-03   -1.5225    
  13  Prefactor     27.144        109.02        .76945E-04   -1.4665    
  14  norm          .10000E-03    51.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     36.066        34.534        .66698E-04   -1.4506    
  16  Prefactor     .10001E-03    32.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.8037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.3444        35.026        .37758E-03   -1.5476    
  20  norm          .73502        .78902        .66952E-03   -1.5537    
  21  Prefactor     9.5949        7.6879        .12938E-03   -1.5088    
  22  Prefactor     .10000E-03    27.882        .32020E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    16.295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0258        .23476        .26281E-03   -.92171    
  25  Prefactor     .90507        .17569        .21313E-03   -.95964    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70154e-09
Minuit parameter uncertainties:
  1  19.7704
  2  0.956418
  3  1.94584e-05
  4  0.000376665
  5  0.000116115
  6  42.5133
  7  22.7292
  8  31.129
  9  3.12251e-06
  10  0.000254697
  11  4.98874e-06
  12  7.21111
  13  109.149
  14  0.000376836
  15  34.5536
  16  0.000997552
  17  1.68273e-05
  18  1.31576e-05
  19  13.7329
  20  0.789032
  21  7.68872
  22  0.000588289
  23  5.55424e-05
  24  0.235002
  25  0.175804
Done.

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

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  1.000e-04  3.768e-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:  9.051e-01  1.758e-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.026e+00  2.350e-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: 3.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.95e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/69058/likelihoodResults_245289601_245548801_4FGL_J0803.5+2046_daily_bin23.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): 102
logL (Free Index) = 5386.95266799
delta logL = -9.18361301956e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5386.8064138
delta logL = 0.146162353674

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.5237       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.9419       1.0000          .0000       5.0000    
     3 'Normalizat'    .99656       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91458       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5386.806     FROM MIGRAD    STATUS=FAILED        89 CALLS      314 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.5175        13.643        .17095E-03   -.60518E-05
   2  alpha         4.9426        4.9713        .15509       -.35811E-03
   3  Normalizat    .99656        .23081        .26622E-03   -.18021E-04
   4  Prefactor     .91457        .17417        .21210E-03    .69358E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5386.806     FROM SIMPLEX   STATUS=UNCHANGED     71 CALLS      385 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.5175        13.643        .41006E-03   -1.5238    
   2  alpha         4.9426        4.9713        .17229E-01    1.3561    
   3  Normalizat    .99656        .23081        .10274E-03   -.93146    
   4  Prefactor     .91457        .17417        .13817E-03   -.95634    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5386.806     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      413 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.5175        19.388        .68380E-05    .39902E-05
   2  alpha         4.9426        3.9921        .31018E-01   -.14316E-04
   3  Normalizat    .99656        .23143        .10649E-04    .14947E-05
   4  Prefactor     .91457        .17464        .84841E-05    .13400E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.51749
  alpha      = 4.94258
  Normalizat = 0.996561
  Prefactor  = 0.914573
 **********
 **   18 **HESSE 
 **********

 FCN=   5386.806     FROM HESSE     STATUS=OK            25 CALLS      438 TOTAL
                     EDM=   .77E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.5175        21.294        .13676E-05   -1.5238    
   2  alpha         4.9426        3.4406        .62036E-02    1.3561    
   3  Normalizat    .99656        .23168        .21297E-05   -.93146    
   4  Prefactor     .91457        .17478        .16968E-05   -.95634    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.73021e-12
Minuit parameter uncertainties:
  1  21.3238
  2  2.51675
  3  0.231918
  4  0.174887
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/69058': 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) = 5386.80641375
delta logL = 0.146162398712

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  5.517e+00  2.132e+01  1.000e-04  1.000e+04 ( 1.000e-13)
274        alpha:  4.943e+00  2.517e+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:  9.146e-01  1.749e-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:  9.966e-01  2.319e-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/69058/cmap_HighResolution_245289601_245548801_4FGL_J0803.5+2046_daily_bin23.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.95e-05', job_status='DONE', photon_flux_upper_limit='3.71e-08', time_completed='2021-08-28 23:00:26.444822', job_id='69058', GAL2='0.91', fit_tolerance='1e-08', EG2='1.00', EG='1.03', time_epoch_completed='1630216826.44', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='1.46e-01', ts2='0.32', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='23' AND source_name='4FGL J0803.5+2046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 23:00:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 69058: <4FGL_J0803.5+2046_daily_bin23> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0803.5+2046_daily_bin23 120.888 20.7678 245289601 245548801 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 :                                   640.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             229.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   871 sec.
    Turnaround time :                            874 sec.

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

