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


Performing analysis on: 4FGL_J0803.5+2046_daily_bin8
RA = 120.888, Dec = 20.7678
tmin = 241401601, tmax = 241660801
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='69035', job_status='RUN', time_executed='2021-08-28 22:47:48.114773', time_epoch_executed='1630216068.11' WHERE source_name='4FGL J0803.5+2046' and cadence='daily' and bin_id='8'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/69035

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/69035/ft1_4FGL_J0803.5+2046_daily_bin8.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/69035/ft2_4FGL_J0803.5+2046_daily_bin8.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/69035/ft1_4FGL_J0803.5+2046_daily_bin8.fits outfile=/scratch/kocevski/69035/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin8.fits ra=120.888 dec=20.7678 rad=12.0 tmin=241401601.0 tmax=241660801.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.56
user 1.27
sys 3.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/69035/ft1_filtered_4FGL_J0803.5+2046_daily_bin8.fits" evtable="EVENTS" scfile=/scratch/kocevski/69035/ft2_4FGL_J0803.5+2046_daily_bin8.fits sctable="SC_DATA" outfile=/scratch/kocevski/69035/ltcube_241401601_241660801_4FGL_J0803.5+2046_daily_bin8.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/69035/ft2_4FGL_J0803.5+2046_daily_bin8.fits
.....................!
real 16.84
user 13.09
sys 3.70

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/69035/ft1_filtered_4FGL_J0803.5+2046_daily_bin8.fits evtable="EVENTS" scfile=/scratch/kocevski/69035/ft2_4FGL_J0803.5+2046_daily_bin8.fits sctable="SC_DATA" expcube=/scratch/kocevski/69035/ltcube_241401601_241660801_4FGL_J0803.5+2046_daily_bin8.fits outfile=/scratch/kocevski/69035/expmap_241401601_241660801_4FGL_J0803.5+2046_daily_bin8.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/69035/ltcube_241401601_241660801_4FGL_J0803.5+2046_daily_bin8.fits
.....................!
real 194.22
user 185.39
sys 8.46

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/69035/ft1_filtered_4FGL_J0803.5+2046_daily_bin8.fits scfile=/scratch/kocevski/69035/ft2_4FGL_J0803.5+2046_daily_bin8.fits outfile=/scratch/kocevski/69035/cmap_241401601_241660801_4FGL_J0803.5+2046_daily_bin8.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 3.57
user 0.37
sys 3.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/69035/ft1_filtered_4FGL_J0803.5+2046_daily_bin8.fits scfile=/scratch/kocevski/69035/ft2_4FGL_J0803.5+2046_daily_bin8.fits outfile=/scratch/kocevski/69035/cmap_HighResolution_241401601_241660801_4FGL_J0803.5+2046_daily_bin8.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 3.51
user 0.38
sys 3.10

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13344       1.0000         .10000E-03   10000.    
     2 'norm      '    1.0913       1.0000         .10000E-03   10000.    
     3 'norm      '    .73043E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.274       1.0000         .10000E-03   10000.    
     5 'norm      '    1.8415       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .31442       1.0000         .10000E-03   10000.    
     7 'Prefactor '    108.21       1.0000         .10000E-03   10000.    
     8 'Prefactor '    48.889       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    34.930       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .11513E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.335       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    20.374       1.0000         .10000E-03   10000.    
    19 'Prefactor '    25.156       1.0000         .10000E-03   10000.    
    20 'norm      '    2.6557       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.9304       1.0000         .10000E-03   10000.    
    22 'Prefactor '    16.349       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .84477       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1229       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=   6690.366     FROM MIGRAD    STATUS=CONVERGED   1079 CALLS     3464 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .90500E-01    8.9897        .77555E-01    .48078E-03
   2  norm          1.0914        1.0378        .78902E-04    .25748E-03
   3  norm          .74486E-01    4.2645        .15975E-02    .74253E-03
   4  Prefactor     13.279        11.060        .10994E-03    .82149E-03
   5  norm          1.8185        5.9654        .26395E-03    .30150E-05
   6  Prefactor     .72144        57.291        .12954        .21165E-03
   7  Prefactor     108.24        33.280        .38663E-04   -.22818E-04
   8  Prefactor     48.894        48.885        .57351E-04    .10617E-03
   9  Prefactor     .10000E-03    .79364        .70988E-03** at limit **
  10  Prefactor     .10000E-03    13.746        .18142E-02** at limit **
  11  norm          34.931        19.769        .67806E-04   -.41917E-05
  12  Prefactor     .10000E-03    3.2409        .14371E-02** at limit **
  13  Prefactor     .10000E-03    110.90        .18142E-02** at limit **
  14  norm          .10005E-03    453.01        .18142E-02** at limit **
  15  Prefactor     .10000E-03    6.6244        .18142E-02** at limit **
  16  Prefactor     11.336        18.371        .11899E-03   -.35637E-04
  17  Prefactor     .10000E-03    7.0326        .18142E-02** at limit **
  18  Prefactor     20.377        18.707        .88735E-04    .22421E-04
  19  Prefactor     25.158        22.864        .79867E-04   -.11701E-03
  20  norm          2.6558        1.3834        .62220E-04   -.78714E-03
  21  Prefactor     1.9309        6.8018        .29894E-03    .65867E-04
  22  Prefactor     16.350        9.0244        .99056E-04   -.20739E-03
  23  Prefactor     .10000E-03    22.880        .18142E-02** at limit **
  24  Normalizat    .84465        .24069        .31714E-03    .23240E-03
  25  Prefactor     1.1229        .17277        .21573E-03   -.27062E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0905001
  norm       = 1.09141
  norm       = 0.0744857
  Prefactor  = 13.2787
  norm       = 1.81846
  Prefactor  = 0.721444
  Prefactor  = 108.237
  Prefactor  = 48.8936
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 34.9306
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100049
  Prefactor  = 0.0001
  Prefactor  = 11.3357
  Prefactor  = 0.0001
  Prefactor  = 20.3772
  Prefactor  = 25.1584
  norm       = 2.6558
  Prefactor  = 1.93085
  Prefactor  = 16.3498
  Prefactor  = 0.0001
  Normalizat = 0.844653
  Prefactor  = 1.1229
 **********
 **   18 **HESSE 
 **********

 FCN=   6690.366     FROM HESSE     STATUS=OK           423 CALLS     3887 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .90500E-01    8.6930        .79939E-01   -1.5648    
   2  norm          1.0914        1.0377        .31561E-05   -1.5499    
   3  norm          .74486E-01    4.0597        .63899E-04   -1.5653    
   4  Prefactor     13.279        10.755        .43975E-05   -1.4979    
   5  norm          1.8185        5.9326        .10558E-04   -1.5438    
   6  Prefactor     .72144        55.278        .13174       -1.5538    
   7  Prefactor     108.24        33.246        .77326E-05   -1.3623    
   8  Prefactor     48.894        48.865        .11470E-04   -1.4308    
   9  Prefactor     .10000E-03    .79366        .14198E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.746        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          34.931        19.768        .27122E-05   -1.4525    
  12  Prefactor     .10000E-03    3.2410        .28743E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    110.91        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10005E-03    453.08        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.6244        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.336        18.370        .47596E-05   -1.5034    
  17  Prefactor     .10000E-03    7.0327        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     20.377        18.706        .35494E-05   -1.4805    
  19  Prefactor     25.158        22.864        .31947E-05   -1.4704    
  20  norm          2.6558        1.3833        .24888E-05   -1.5382    
  21  Prefactor     1.9309        6.7996        .11958E-04   -1.5430    
  22  Prefactor     16.350        9.0242        .39622E-05   -1.4899    
  23  Prefactor     .10000E-03    22.882        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .84465        .24069        .12686E-04   -.98433    
  25  Prefactor     1.1229        .17273        .43145E-04   -.88738    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.43703e-09
Minuit parameter uncertainties:
  1  1.77322
  2  1.03777
  3  1.09914
  4  10.7563
  5  5.93453
  6  12.6414
  7  33.252
  8  48.9052
  9  1.08466e-06
  10  6.96128e-06
  11  19.7715
  12  1.91131e-06
  13  0.000196489
  14  0.00952392
  15  3.05006e-06
  16  18.3795
  17  2.00634e-06
  18  18.7114
  19  22.8721
  20  1.38335
  21  6.80232
  22  9.02497
  23  1.20292e-05
  24  0.240992
  25  0.172819
Done.

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

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  1.000e-04  9.524e-03  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.123e+00  1.728e-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:  8.447e-01  2.410e-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: 6.17e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.24e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/69035/likelihoodResults_241401601_241660801_4FGL_J0803.5+2046_daily_bin8.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) = 6690.3656822
delta logL = -1.03657166619e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6690.3656822
delta logL = -1.03654301711e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96366E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9991       1.0000          .0000       5.0000    
     3 'Normalizat'    .84465       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1229       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.

 FCN=   6685.717     FROM MIGRAD    STATUS=CONVERGED    175 CALLS      310 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          33.832        22.857        .90712E-02    .12100E-03
   2  alpha         5.0000        1.0693        .42247    ** at limit **
   3  Normalizat    .66266        .20148        .79568E-01   -.10219E-03
   4  Prefactor     1.1806        .15292        .36775E-01   -.13948E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 33.8318
  alpha      = 5
  Normalizat = 0.662657
  Prefactor  = 1.18057
 **********
 **   18 **HESSE 
 **********

 FCN=   6685.717     FROM HESSE     STATUS=OK            33 CALLS      343 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          33.832        18.563        .17825E-03   -1.4544    
   2  alpha         5.0000        .70093        .43554        1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .66266        .22431        .35228E-03   -1.0539    
   4  Prefactor     1.1806        .17035        .21018E-03   -.86931    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.44544e-10
Minuit parameter uncertainties:
  1  18.5657
  2  0.000100296
  3  0.224618
  4  0.17043
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/69035': 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) = 6685.71735345
delta logL = 4.64831838499

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  3.383e+01  1.857e+01  1.000e-04  1.000e+04 ( 1.000e-13)
274        alpha:  5.000e+00  1.003e-04  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.181e+00  1.704e-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:  6.627e-01  2.246e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.79
Ra Dec: 120.888 20.768
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.76e-07 +/- 9.64e-08
Energy Flux (Free Index): 3.01e-05 +/- 1.65e-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/69035/cmap_HighResolution_241401601_241660801_4FGL_J0803.5+2046_daily_bin8.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.24e-05', comment='SUCCESS', energy_flux2='3.01e-05', dlogl='4.65e+00', photon_flux2='1.76e-07', job_status='DONE', time_completed='2021-08-28 23:01:13.527857', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='6.17e-08', energy_flux_error2='1.65e-05', EG='0.84', time_epoch_completed='1630216873.53', return_code='0', job_id='69035', GAL2='1.18', EG2='0.66', return_code2='0', photon_flux_error2='9.64e-08', ts2='9.79', photon_index='2.00' WHERE bin_id='8' AND source_name='4FGL J0803.5+2046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 23:01:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 69035: <4FGL_J0803.5+2046_daily_bin8> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0803.5+2046_daily_bin8 120.888 20.7678 241401601 241660801 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 :                                   853.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   921 sec.
    Turnaround time :                            924 sec.

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

