/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 5 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 = 7408
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0803.5+2046_daily_bin450
RA = 120.888, Dec = 20.7678
tmin = 355968001, tmax = 356227201
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='70672', job_status='RUN', time_executed='2021-08-28 22:51:01.170064', time_epoch_executed='1630216261.17' WHERE source_name='4FGL J0803.5+2046' and cadence='daily' and bin_id='450'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/70672

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/70672/ft1_4FGL_J0803.5+2046_daily_bin450.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/70672/ft2_4FGL_J0803.5+2046_daily_bin450.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/70672/ft1_4FGL_J0803.5+2046_daily_bin450.fits outfile=/scratch/kocevski/70672/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin450.fits ra=120.888 dec=20.7678 rad=12.0 tmin=355968001.0 tmax=356227201.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.34
user 3.15
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/70672/ft1_filtered_4FGL_J0803.5+2046_daily_bin450.fits" evtable="EVENTS" scfile=/scratch/kocevski/70672/ft2_4FGL_J0803.5+2046_daily_bin450.fits sctable="SC_DATA" outfile=/scratch/kocevski/70672/ltcube_355968001_356227201_4FGL_J0803.5+2046_daily_bin450.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/70672/ft2_4FGL_J0803.5+2046_daily_bin450.fits
.....................!
real 11.73
user 11.37
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/70672/ft1_filtered_4FGL_J0803.5+2046_daily_bin450.fits evtable="EVENTS" scfile=/scratch/kocevski/70672/ft2_4FGL_J0803.5+2046_daily_bin450.fits sctable="SC_DATA" expcube=/scratch/kocevski/70672/ltcube_355968001_356227201_4FGL_J0803.5+2046_daily_bin450.fits outfile=/scratch/kocevski/70672/expmap_355968001_356227201_4FGL_J0803.5+2046_daily_bin450.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/70672/ltcube_355968001_356227201_4FGL_J0803.5+2046_daily_bin450.fits
.....................!
real 191.08
user 185.78
sys 4.91

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/70672/ft1_filtered_4FGL_J0803.5+2046_daily_bin450.fits scfile=/scratch/kocevski/70672/ft2_4FGL_J0803.5+2046_daily_bin450.fits outfile=/scratch/kocevski/70672/cmap_355968001_356227201_4FGL_J0803.5+2046_daily_bin450.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.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/70672/ft1_filtered_4FGL_J0803.5+2046_daily_bin450.fits scfile=/scratch/kocevski/70672/ft2_4FGL_J0803.5+2046_daily_bin450.fits outfile=/scratch/kocevski/70672/cmap_HighResolution_355968001_356227201_4FGL_J0803.5+2046_daily_bin450.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.53
user 0.37
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/70672/ft1_filtered_4FGL_J0803.5+2046_daily_bin450.fits', '/scratch/kocevski/70672/ft2_4FGL_J0803.5+2046_daily_bin450.fits', expMap='/scratch/kocevski/70672/expmap_355968001_356227201_4FGL_J0803.5+2046_daily_bin450.fits', expCube='/scratch/kocevski/70672/ltcube_355968001_356227201_4FGL_J0803.5+2046_daily_bin450.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/70672/Model_4FGL_J0803.5+2046_daily_bin450.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/70672/ft1_filtered_4FGL_J0803.5+2046_daily_bin450.fits
Spacecraft file(s): /scratch/kocevski/70672/ft2_4FGL_J0803.5+2046_daily_bin450.fits
Exposure map: /scratch/kocevski/70672/expmap_355968001_356227201_4FGL_J0803.5+2046_daily_bin450.fits
Exposure cube: /scratch/kocevski/70672/ltcube_355968001_356227201_4FGL_J0803.5+2046_daily_bin450.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/70672/Model_4FGL_J0803.5+2046_daily_bin450.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 6431.22252112

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.2702       1.0000         .10000E-03   10000.    
     3 'norm      '    8.9329       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.1561       1.0000         .10000E-03   10000.    
     5 'norm      '    .11008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.547       1.0000         .10000E-03   10000.    
     7 'Prefactor '    42.777       1.0000         .10000E-03   10000.    
     8 'Prefactor '    141.27       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12870       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10339E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .26561E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.205       1.0000         .10000E-03   10000.    
    20 'norm      '    1.0047       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .97316       1.0000         .10000E-03   10000.    
    23 'Prefactor '    23.143       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0435       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .87904       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=   6431.181     FROM MIGRAD    STATUS=CONVERGED    617 CALLS     2573 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.8755        .42987E-07** at limit **
   2  norm          1.2700        1.2781        .19002E-08   -.25621E-04
   3  norm          8.9299        3.0422        .66610E-07   -.39152E-04
   4  Prefactor     4.1782        14.010       -.38481E-06   -.12202E-04
   5  norm          .10000E-03    1.6939        .19993E-06** at limit **
   6  Prefactor     24.566        24.717       -.20423E-06   -.55881E-04
   7  Prefactor     42.794        19.039        .10402E-06   -.11073E-03
   8  Prefactor     141.23        53.056       -.71572E-06   -.32473E-04
   9  Prefactor     .12706        12.670        .12405E-05    .37355E-03
  10  Prefactor     .10000E-03    8.1359        .10229E-06** at limit **
  11  norm          .10000E-03    6.7191        .14275E-07** at limit **
  12  Prefactor     .10000E-03    5.7100        .73449E-07** at limit **
  13  Prefactor     .10000E-03    93.835       -.25203E-05** at limit **
  14  norm          .10000E-03    130.35        .72047E-05** at limit **
  15  Prefactor     .10000E-03    15.166        .57338E-07** at limit **
  16  Prefactor     .10000E-03    24.809        .12016E-06** at limit **
  17  Prefactor     .10152E-03    49.593       -.32517E-05** at limit **
  18  Prefactor     .10000E-03    4.5254        .40147E-07** at limit **
  19  Prefactor     19.221        20.812       -.34588E-06   -.35617E-04
  20  norm          1.0034        1.4322        .12872E-06    .10324E-03
  21  Prefactor     .10000E-03    4.1618       -.31389E-06** at limit **
  22  Prefactor     .97289        4.6839       -.11834E-05   -.10848E-03
  23  Prefactor     23.145        34.780       -.85066E-07   -.68358E-05
  24  Normalizat    1.0430        .19288       -.13593E-05   -.10443E-03
  25  Prefactor     .87951        .13950        .14092E-06   -.17088E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.26996
  norm       = 8.92989
  Prefactor  = 4.17824
  norm       = 0.000100001
  Prefactor  = 24.5657
  Prefactor  = 42.7937
  Prefactor  = 141.234
  Prefactor  = 0.12706
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000101521
  Prefactor  = 0.0001
  Prefactor  = 19.2208
  norm       = 1.00335
  Prefactor  = 0.0001
  Prefactor  = 0.972888
  Prefactor  = 23.1447
  Normalizat = 1.04297
  Prefactor  = 0.879507
 **********
 **   18 **HESSE 
 **********

 FCN=   6431.181     FROM HESSE     STATUS=OK           439 CALLS     3012 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.8777        .13282E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.2700        1.2584        .87176E-04   -1.5483    
   3  norm          8.9299        3.0330        .60239E-04   -1.5110    
   4  Prefactor     4.1782        13.903        .19771E-03   -1.5299    
   5  norm          .10000E-03    8.3022        .19085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     24.566        24.465        .80851E-04   -1.4716    
   7  Prefactor     42.794        18.734        .61293E-04   -1.4399    
   8  Prefactor     141.23        52.838        .16947E-03   -1.3325    
   9  Prefactor     .12706        14.638        .18180E-02   -1.5637    
  10  Prefactor     .10000E-03    8.1373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    6.7231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.7335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    93.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    129.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    25.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10152E-03    16.816        .10932       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.5288        .16662E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     19.221        20.520        .91395E-04   -1.4831    
  20  norm          1.0034        1.3948        .99035E-04   -1.5508    
  21  Prefactor     .10000E-03    4.1675        .15941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .97289        4.6910        .33845E-03   -1.5511    
  23  Prefactor     23.145        34.782        .83263E-04   -1.4745    
  24  Normalizat    1.0430        .22388        .26757E-03   -.91604    
  25  Prefactor     .87951        .16381        .22161E-03   -.96861    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7332e-09
Minuit parameter uncertainties:
  1  1.6523e-06
  2  1.25843
  3  3.03307
  4  13.9137
  5  0.000176877
  6  24.4752
  7  18.7365
  8  52.8556
  9  2.72715
  10  2.79343e-06
  11  2.52324e-06
  12  6.36636e-06
  13  1.0926e-05
  14  0.000301016
  15  1.36608e-05
  16  2.44264e-05
  17  0.0101182
  18  2.92354e-06
  19  20.5274
  20  1.39484
  21  1.36338e-06
  22  4.27295
  23  34.8126
  24  0.224082
  25  0.1639
Done.

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

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  1.000e-04  3.010e-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:  8.795e-01  1.639e-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.043e+00  2.241e-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: 4.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.40e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/70672/likelihoodResults_355968001_356227201_4FGL_J0803.5+2046_daily_bin450.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) = 6431.1807789
delta logL = -3.67429147445e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6431.18077889
delta logL = -3.67420780094e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96363E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9991       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0430       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87951       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=   6431.181     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      194 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    138.61        .90712E-02** at limit **
   2  alpha         2.0458        3.4381        .42247       -.18296E-05
   3  Normalizat    1.0430        .17814        .60503E-01   -.12681E-03
   4  Prefactor     .87951        .13742        .44743E-01    .69439E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100021
  alpha      = 2.04582
  Normalizat = 1.04297
  Prefactor  = 0.879509
 **********
 **   18 **HESSE 
 **********

 FCN=   6431.181     FROM HESSE     STATUS=OK            31 CALLS      225 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    134.19        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0458        3.4301        .16899       -.18269    
   3  Normalizat    1.0430        .20822        .26757E-03   -.91605    
   4  Prefactor     .87951        .16074        .22161E-03   -.96861    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.01365e-10
Minuit parameter uncertainties:
  1  0.00337792
  2  2.45911
  3  0.208386
  4  0.160821
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/70672': 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) = 6431.18074212
delta logL = 3.39778125635e-08

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
533    Prefactor:  8.795e-01  1.608e-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.043e+00  2.084e-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/70672/cmap_HighResolution_355968001_356227201_4FGL_J0803.5+2046_daily_bin450.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.40e-05', job_status='DONE', photon_flux_upper_limit='4.56e-08', time_completed='2021-08-28 23:02:16.532694', job_id='70672', GAL2='0.88', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1630216936.53', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='3.40e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='450' AND source_name='4FGL J0803.5+2046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 23:02:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0256>
Subject: Job 70672: <4FGL_J0803.5+2046_daily_bin450> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0803.5+2046_daily_bin450 120.888 20.7678 355968001 356227201 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 :                                   674.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             354.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   690 sec.
    Turnaround time :                            691 sec.

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

