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


Performing analysis on: 4FGL_J0803.5+2046_daily_bin1228
RA = 120.888, Dec = 20.7678
tmin = 557625601, tmax = 557884801
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='75269', job_status='RUN', time_executed='2021-08-28 23:08:57.778931', time_epoch_executed='1630217337.78' WHERE source_name='4FGL J0803.5+2046' and cadence='daily' and bin_id='1228'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/75269

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/75269/ft1_4FGL_J0803.5+2046_daily_bin1228.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/75269/ft2_4FGL_J0803.5+2046_daily_bin1228.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/75269/ft1_4FGL_J0803.5+2046_daily_bin1228.fits outfile=/scratch/kocevski/75269/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin1228.fits ra=120.888 dec=20.7678 rad=12.0 tmin=557625601.0 tmax=557884801.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 3.44
user 3.23
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/75269/ft1_filtered_4FGL_J0803.5+2046_daily_bin1228.fits" evtable="EVENTS" scfile=/scratch/kocevski/75269/ft2_4FGL_J0803.5+2046_daily_bin1228.fits sctable="SC_DATA" outfile=/scratch/kocevski/75269/ltcube_557625601_557884801_4FGL_J0803.5+2046_daily_bin1228.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/75269/ft2_4FGL_J0803.5+2046_daily_bin1228.fits
.....................!
real 12.52
user 12.02
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/75269/ft1_filtered_4FGL_J0803.5+2046_daily_bin1228.fits evtable="EVENTS" scfile=/scratch/kocevski/75269/ft2_4FGL_J0803.5+2046_daily_bin1228.fits sctable="SC_DATA" expcube=/scratch/kocevski/75269/ltcube_557625601_557884801_4FGL_J0803.5+2046_daily_bin1228.fits outfile=/scratch/kocevski/75269/expmap_557625601_557884801_4FGL_J0803.5+2046_daily_bin1228.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/75269/ltcube_557625601_557884801_4FGL_J0803.5+2046_daily_bin1228.fits
.....................!
real 192.88
user 186.98
sys 4.44

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/75269/ft1_filtered_4FGL_J0803.5+2046_daily_bin1228.fits scfile=/scratch/kocevski/75269/ft2_4FGL_J0803.5+2046_daily_bin1228.fits outfile=/scratch/kocevski/75269/cmap_557625601_557884801_4FGL_J0803.5+2046_daily_bin1228.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/75269/ft1_filtered_4FGL_J0803.5+2046_daily_bin1228.fits scfile=/scratch/kocevski/75269/ft2_4FGL_J0803.5+2046_daily_bin1228.fits outfile=/scratch/kocevski/75269/cmap_HighResolution_557625601_557884801_4FGL_J0803.5+2046_daily_bin1228.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.56
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    23.362       1.0000         .10000E-03   10000.    
     2 'norm      '    3.4934       1.0000         .10000E-03   10000.    
     3 'norm      '    .92736       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.4681       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.124       1.0000         .10000E-03   10000.    
     8 'Prefactor '    62.244       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    47.482       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.5292       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10908E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    99.887       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.8328       1.0000         .10000E-03   10000.    
    18 'Prefactor '    34.133       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.1111       1.0000         .10000E-03   10000.    
    20 'norm      '    .50012E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.010       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0387       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0985       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=   4758.175     FROM MIGRAD    STATUS=CONVERGED    568 CALLS     2954 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          23.367        18.805        .27575E-06   -.29660E-06
   2  norm          3.4932        1.6059       -.93287E-07   -.12371E-03
   3  norm          .92749        .92278       -.48963E-06   -.77736E-03
   4  Prefactor     .10000E-03    3.2890       -.49336E-06** at limit **
   5  norm          2.4681        4.3635        .34178E-07   -.46763E-03
   6  Prefactor     .10000E-03    18.775       -.74193E-05** at limit **
   7  Prefactor     17.123        15.272        .50629E-06   -.12492E-04
   8  Prefactor     62.298        53.862        .47557E-04    .99214E-05
   9  Prefactor     .10000E-03    .86689       -.30078E-07** at limit **
  10  Prefactor     .10000E-03    12.559       -.18597E-06** at limit **
  11  norm          47.479        38.357        .14384E-05    .65597E-05
  12  Prefactor     3.5150        26.748       -.18168E-05   -.86423E-04
  13  Prefactor     .10000E-03    44.203       -.84164E-05** at limit **
  14  norm          99.683        141.68       -.19407E-03    .68547E-05
  15  Prefactor     .10000E-03    26.437       -.45554E-05** at limit **
  16  Prefactor     .10000E-03    22.681        .10503E-04** at limit **
  17  Prefactor     3.8979        145.83        .19163E-03    .61023E-05
  18  Prefactor     34.144        24.113        .17573E-05   -.29214E-04
  19  Prefactor     6.1285        48.381        .21810E-04    .12336E-03
  20  norm          .10002E-03    1.2290       -.87535E-06** at limit **
  21  Prefactor     10.021        18.459       -.20822E-06    .10752E-03
  22  Prefactor     .10000E-03    15.371        .23384E-05** at limit **
  23  Prefactor     .10000E-03    95.799        .27305E-04** at limit **
  24  Normalizat    1.0383        .24645       -.13150E-04    .35763E-03
  25  Prefactor     1.0988        .17640        .54310E-05   -.44791E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 23.3666
  norm       = 3.49321
  norm       = 0.927492
  Prefactor  = 0.000100001
  norm       = 2.46806
  Prefactor  = 0.0001
  Prefactor  = 17.1231
  Prefactor  = 62.2977
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 47.4793
  Prefactor  = 3.51499
  Prefactor  = 0.0001
  norm       = 99.6827
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.89794
  Prefactor  = 34.1442
  Prefactor  = 6.12854
  norm       = 0.000100024
  Prefactor  = 10.0209
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.03828
  Prefactor  = 1.09881
 **********
 **   18 **HESSE 
 **********

 FCN=   4758.175     FROM HESSE     STATUS=OK           429 CALLS     3383 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          23.367        18.844        .82873E-04   -1.4741    
   2  norm          3.4932        1.6068        .56840E-04   -1.5334    
   3  norm          .92749        .93944        .64110E-04   -1.5515    
   4  Prefactor     .10000E-03    3.2961        .12212E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.4681        4.3381        .17773E-03   -1.5394    
   6  Prefactor     .10000E-03    18.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     17.123        15.239        .96788E-04   -1.4880    
   8  Prefactor     62.298        53.892        .50861E-04   -1.4128    
   9  Prefactor     .10000E-03    .87017        .62707E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          47.479        37.613        .58191E-04   -1.4329    
  12  Prefactor     3.5150        25.704        .21518E-03   -1.5333    
  13  Prefactor     .10000E-03    44.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          99.683        141.76        .20112E-03   -1.3708    
  15  Prefactor     .10000E-03    26.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    22.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.8979        144.08        .20615E-03   -1.5313    
  18  Prefactor     34.144        24.130        .68590E-04   -1.4539    
  19  Prefactor     6.1285        41.494        .16241E-03   -1.5213    
  20  norm          .10002E-03    29.374        .13031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     10.021        18.126        .12665E-03   -1.5075    
  22  Prefactor     .10000E-03    15.611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    96.060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0383        .28173        .30398E-03   -.91759    
  25  Prefactor     1.0988        .20212        .21953E-03   -.89505    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.90341e-09
Minuit parameter uncertainties:
  1  18.8484
  2  1.60684
  3  0.939456
  4  8.77869e-05
  5  4.33865
  6  2.52084e-05
  7  15.242
  8  53.9342
  9  2.38569e-06
  10  5.88847e-06
  11  37.6315
  12  19.0218
  13  8.988e-06
  14  142.245
  15  0.000201743
  16  0.000173424
  17  47.5204
  18  24.1367
  19  31.9251
  20  0.00166322
  21  18.1363
  22  9.15001e-05
  23  0.000177521
  24  0.282132
  25  0.202263
Done.

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

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  9.968e+01  1.422e+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:  1.099e+00  2.023e-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.038e+00  2.821e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/75269/likelihoodResults_557625601_557884801_4FGL_J0803.5+2046_daily_bin1228.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) = 4756.56145802
delta logL = 1.61346225903

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4756.5318191
delta logL = 1.64310118588

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    36.017       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.6665       1.0000          .0000       5.0000    
     3 'Normalizat'    .91735       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1455       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=   4756.532     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      313 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          36.006        80.075        .66778E-04    .13279E-04
   2  alpha         4.6677        4.0369        .31724E-01   -.54684E-04
   3  Normalizat    .91703        .27685        .32046E-03   -.40797E-05
   4  Prefactor     1.1456        .20067        .21516E-03   -.59782E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 36.0061
  alpha      = 4.66766
  Normalizat = 0.917032
  Prefactor  = 1.1456
 **********
 **   18 **HESSE 
 **********

 FCN=   4756.532     FROM HESSE     STATUS=OK            25 CALLS      338 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          36.006        61.937        .26711E-05   -1.4507    
   2  alpha         4.6677        3.6437        .63448E-02    1.0493    
   3  Normalizat    .91703        .27468        .12819E-04   -.95864    
   4  Prefactor     1.1456        .19920        .43032E-04   -.88022    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34295e-11
Minuit parameter uncertainties:
  1  62.0476
  2  1.3665
  3  0.275104
  4  0.199331
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/75269': 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) = 4756.53181659
delta logL = 1.64310368913

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  3.601e+01  6.205e+01  1.000e-04  1.000e+04 ( 1.000e-13)
274        alpha:  4.668e+00  1.367e+00  0.000e+00  5.000e+00 ( 1.000e+00)
275         beta:  7.702e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
276           Eb:  6.928e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
533    Prefactor:  1.146e+00  1.993e-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.170e-01  2.751e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.12
Ra Dec: 120.888 20.768
Photon Index (Free Index): 4.67 +/- 1.37
Photon Flux (Free Index): 1.15e-07 +/- 8.10e-08
Energy Flux (Free Index): 2.11e-05 +/- 1.30e-05

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/75269/cmap_HighResolution_557625601_557884801_4FGL_J0803.5+2046_daily_bin1228.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.38e-05', comment='SUCCESS', energy_flux2='2.11e-05', dlogl='1.64e+00', photon_flux2='1.15e-07', job_status='DONE', time_completed='2021-08-28 23:19:06.901908', photon_index_error2='1.37', photon_index2='4.67', ts='0.70', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='8.33e-08', energy_flux_error2='1.30e-05', EG='1.04', time_epoch_completed='1630217946.9', return_code='0', job_id='75269', GAL2='1.15', EG2='0.92', return_code2='0', photon_flux_error2='8.10e-08', ts2='4.12', photon_index='2.00' WHERE bin_id='1228' AND source_name='4FGL J0803.5+2046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 23:19:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 75269: <4FGL_J0803.5+2046_daily_bin1228> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0803.5+2046_daily_bin1228 120.888 20.7678 557625601 557884801 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 :                                   602.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            801 sec.

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

