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


Performing analysis on: 4FGL_J0803.5+2046_daily_bin192
RA = 120.888, Dec = 20.7678
tmin = 289094401, tmax = 289353601
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='69362', job_status='RUN', time_executed='2021-08-28 22:47:35.921988', time_epoch_executed='1630216055.92' WHERE source_name='4FGL J0803.5+2046' and cadence='daily' and bin_id='192'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/69362

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/69362/ft1_4FGL_J0803.5+2046_daily_bin192.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/69362/ft2_4FGL_J0803.5+2046_daily_bin192.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/69362/ft1_4FGL_J0803.5+2046_daily_bin192.fits outfile=/scratch/kocevski/69362/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin192.fits ra=120.888 dec=20.7678 rad=12.0 tmin=289094401.0 tmax=289353601.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 6.68
user 3.31
sys 3.33

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/69362/ft1_filtered_4FGL_J0803.5+2046_daily_bin192.fits" evtable="EVENTS" scfile=/scratch/kocevski/69362/ft2_4FGL_J0803.5+2046_daily_bin192.fits sctable="SC_DATA" outfile=/scratch/kocevski/69362/ltcube_289094401_289353601_4FGL_J0803.5+2046_daily_bin192.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/69362/ft2_4FGL_J0803.5+2046_daily_bin192.fits
.....................!
real 16.29
user 11.72
sys 4.48

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/69362/ft1_filtered_4FGL_J0803.5+2046_daily_bin192.fits evtable="EVENTS" scfile=/scratch/kocevski/69362/ft2_4FGL_J0803.5+2046_daily_bin192.fits sctable="SC_DATA" expcube=/scratch/kocevski/69362/ltcube_289094401_289353601_4FGL_J0803.5+2046_daily_bin192.fits outfile=/scratch/kocevski/69362/expmap_289094401_289353601_4FGL_J0803.5+2046_daily_bin192.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/69362/ltcube_289094401_289353601_4FGL_J0803.5+2046_daily_bin192.fits
.....................!
real 193.63
user 185.73
sys 7.49

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/69362/ft1_filtered_4FGL_J0803.5+2046_daily_bin192.fits scfile=/scratch/kocevski/69362/ft2_4FGL_J0803.5+2046_daily_bin192.fits outfile=/scratch/kocevski/69362/cmap_289094401_289353601_4FGL_J0803.5+2046_daily_bin192.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.38
sys 3.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/69362/ft1_filtered_4FGL_J0803.5+2046_daily_bin192.fits scfile=/scratch/kocevski/69362/ft2_4FGL_J0803.5+2046_daily_bin192.fits outfile=/scratch/kocevski/69362/cmap_HighResolution_289094401_289353601_4FGL_J0803.5+2046_daily_bin192.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.28
user 0.39
sys 2.88

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.446       1.0000         .10000E-03   10000.    
     2 'norm      '    6.8802       1.0000         .10000E-03   10000.    
     3 'norm      '    2.6011       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10227E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.3980       1.0000         .10000E-03   10000.    
     6 'Prefactor '    30.653       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.3281       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12586E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.4553       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .15308E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.0929       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.9908       1.0000         .10000E-03   10000.    
    14 'norm      '    .61891       1.0000         .10000E-03   10000.    
    15 'Prefactor '    45.818       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .15574E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    23.213       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .18547E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.6924       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .66646E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    27.503       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1710       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .65756       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=   6864.354     FROM MIGRAD    STATUS=FAILED      1076 CALLS     3492 TOTAL
                     EDM=   .70E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.453        14.258        .10191E-03    .32351E-05
   2  norm          6.8805        1.7331        .52668E-04    .86343E-05
   3  norm          2.6008        1.3963        .69278E-04    .31015E-04
   4  Prefactor     .10000E-03    7.6890        .18142E-02** at limit **
   5  norm          4.3991        4.2781        .15048E-03    .13448E-04
   6  Prefactor     30.646        34.978        .72368E-04    .83261E-05
   7  Prefactor     8.3367        13.887        .13892E-03    .17186E-05
   8  Prefactor     .10000E-03    172.39        .18142E-02** at limit **
   9  Prefactor     2.4559        2.7103        .67792E-03    .24568E-04
  10  Prefactor     .10000E-03    20.694        .18142E-02** at limit **
  11  norm          .10000E-03    39.369        .18142E-02** at limit **
  12  Prefactor     4.0759        8.2092        .19928E-03    .33146E-04
  13  Prefactor     2.1284        374.65        .29364E-03    .60011E-05
  14  norm          .64025        88.156        .22297        .14000E-02
  15  Prefactor     45.837        38.783        .59233E-04    .28022E-04
  16  Prefactor     .10000E-03    44.817        .18142E-02** at limit **
  17  Prefactor     23.242        26.830        .83138E-04    .72475E-05
  18  Prefactor     .10000E-03    4.0229        .16212E-02** at limit **
  19  Prefactor     .10010E-03    109.07        .47166E-02** at limit **
  20  norm          .10000E-03    .44548        .10610E-03** at limit **
  21  Prefactor     5.6852        7.8833        .16836E-03    .10257E-03
  22  Prefactor     .10010E-03    6.0806        .54470E-01** at limit **
  23  Prefactor     27.488        34.116        .76390E-04    .77389E-05
  24  Normalizat    1.1710        .21142        .24782E-03    .72619E-04
  25  Prefactor     .65735        .14733        .23234E-03    .11479E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6864.354     FROM SIMPLEX   STATUS=UNCHANGED   1073 CALLS     4565 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.453        14.258        .28510E-06   -1.4922    
   2  norm          6.8805        1.7331        .22717E-06   -1.5183    
   3  norm          2.6008        1.3963        .22322E-06   -1.5385    
   4  Prefactor     .10000E-03    7.6890        .36146E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.3991        4.2781        .21435E-06   -1.5288    
   6  Prefactor     30.646        34.978        .20703E-06   -1.4600    
   7  Prefactor     8.3367        13.887        .21226E-06   -1.5130    
   8  Prefactor     .10000E-03    172.39        .12214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.4559        2.7103        .21564E-06   -1.5395    
  10  Prefactor     .10000E-03    20.694        .68489E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    39.369        .30740E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.0759        8.2092        .21447E-06   -1.5304    
  13  Prefactor     2.1284        374.65        .27569E-06   -1.5416    
  14  norm          .64025        88.156        .27365E-06   -1.5548    
  15  Prefactor     45.837        38.783        .20217E-06   -1.4353    
  16  Prefactor     .10000E-03    44.817        .84316E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     23.242        26.830        .20679E-06   -1.4743    
  18  Prefactor     .10000E-03    4.0229        .36822E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10010E-03    109.07        .37747E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .44548        .41016E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.6852        7.8833        .21330E-06   -1.5231    
  22  Prefactor     .10010E-03    6.0806        .10595E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     27.488        34.116        .20541E-06   -1.4659    
  24  Normalizat    1.1710        .21142        .12269E-06   -.87504    
  25  Prefactor     .65735        .14733        .14749E-06   -1.0522    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6864.354     FROM MIGRAD    STATUS=CONVERGED    427 CALLS     4992 TOTAL
                     EDM=   .99E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.453        14.255        .40764E-05   -.16733E-05
   2  norm          6.8805        1.7329        .21067E-05   -.97136E-05
   3  norm          2.6008        1.3959        .27711E-05   -.29538E-04
   4  Prefactor     .10000E-03    7.6908        .36285E-03** at limit **
   5  norm          4.3991        4.2773        .60193E-05   -.13221E-04
   6  Prefactor     30.646        34.986        .28947E-05   -.23564E-05
   7  Prefactor     8.3367        13.885        .55567E-05   -.85929E-05
   8  Prefactor     .10000E-03    172.53        .36285E-03** at limit **
   9  Prefactor     2.4559        2.7089        .27117E-04   -.67080E-05
  10  Prefactor     .10000E-03    20.697        .36285E-03** at limit **
  11  norm          .10000E-03    39.389        .36285E-03** at limit **
  12  Prefactor     4.0759        8.2067        .79710E-05   -.77018E-05
  13  Prefactor     2.1283        374.88        .11745E-04   -.15487E-05
  14  norm          .64047        49.316        .34900       -.25027E-04
  15  Prefactor     45.837        38.773        .23693E-05   -.76773E-06
  16  Prefactor     .10000E-03    44.823        .36285E-03** at limit **
  17  Prefactor     23.242        26.829        .33255E-05   -.68372E-06
  18  Prefactor     .10000E-03    4.0232        .32424E-03** at limit **
  19  Prefactor     .10000E-03    111.90        .18867E-03** at limit **
  20  norm          .10000E-03    .44549        .21221E-04** at limit **
  21  Prefactor     5.6852        7.8818        .67343E-05   -.49295E-04
  22  Prefactor     .10009E-03    5.7972        .56356E-01** at limit **
  23  Prefactor     27.488        34.110        .30556E-05   -.15627E-04
  24  Normalizat    1.1710        .21156        .99129E-05   -.11308E-03
  25  Prefactor     .65735        .14715        .92934E-05   -.12845E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 15.4534
  norm       = 6.88053
  norm       = 2.60077
  Prefactor  = 0.0001
  norm       = 4.39913
  Prefactor  = 30.646
  Prefactor  = 8.33668
  Prefactor  = 0.0001
  Prefactor  = 2.4559
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.0759
  Prefactor  = 2.12826
  norm       = 0.640469
  Prefactor  = 45.8373
  Prefactor  = 0.0001
  Prefactor  = 23.2421
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 5.68522
  Prefactor  = 0.000100089
  Prefactor  = 27.4884
  Normalizat = 1.17098
  Prefactor  = 0.657348
 **********
 **   18 **HESSE 
 **********

 FCN=   6864.354     FROM HESSE     STATUS=OK           421 CALLS     5413 TOTAL
                     EDM=   .93E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.453        14.269        .81528E-06   -1.4922    
   2  norm          6.8805        1.7334        .42134E-06   -1.5183    
   3  norm          2.6008        1.3961        .55423E-06   -1.5385    
   4  Prefactor     .10000E-03    7.6908        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.3991        4.2824        .12039E-05   -1.5288    
   6  Prefactor     30.646        35.262        .57894E-06   -1.4600    
   7  Prefactor     8.3367        13.903        .11113E-05   -1.5130    
   8  Prefactor     .10000E-03    172.53        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.4559        2.7099        .10847E-05   -1.5395    
  10  Prefactor     .10000E-03    20.697        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    39.390        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.0759        8.2051        .15942E-05   -1.5304    
  13  Prefactor     2.1283        381.62        .23491E-05   -1.5416    
  14  norm          .64047        95.142        .21165       -1.5548    
  15  Prefactor     45.837        38.793        .23693E-05   -1.4353    
  16  Prefactor     .10000E-03    44.823        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     23.242        26.983        .66510E-06   -1.4743    
  18  Prefactor     .10000E-03    4.0232        .64848E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    111.91        .37733E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .44548        .42442E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.6852        7.8839        .13469E-05   -1.5231    
  22  Prefactor     .10009E-03    5.8718        .55845E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     27.488        33.840        .61112E-06   -1.4659    
  24  Normalizat    1.1710        .21216        .19826E-05   -.87504    
  25  Prefactor     .65735        .14784        .18587E-05   -1.0522    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.33942e-11
Minuit parameter uncertainties:
  1  14.2721
  2  1.73339
  3  1.39612
  4  5.21002e-06
  5  4.28272
  6  35.2864
  7  13.9088
  8  0.000217139
  9  2.71002
  10  1.61026e-06
  11  6.45354e-06
  12  8.20736
  13  57.3712
  14  15.6364
  15  38.8147
  16  1.98899e-05
  17  26.9968
  18  6.83146e-07
  19  0.00125088
  20  2.35683e-07
  21  7.88533
  22  0.00144372
  23  33.8632
  24  0.212313
  25  0.14793
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
533    Prefactor:  6.573e-01  1.479e-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.171e+00  2.123e-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.37e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.30e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/69362/likelihoodResults_289094401_289353601_4FGL_J0803.5+2046_daily_bin192.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) = 6863.42805224
delta logL = 0.925466487738

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6863.4258697
delta logL = 0.927649025686

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    23.868       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.5320       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1056       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67406       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=   6863.426     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      337 TOTAL
                     EDM=   .96E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          23.855        77.225        .81992E-04   -.16639E-04
   2  alpha         4.5326        4.3804        .41148E-01    .53531E-04
   3  Normalizat    1.1055        .20780        .25410E-03   -.48768E-04
   4  Prefactor     .67415        .14788        .22952E-03    .14771E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 23.8549
  alpha      = 4.53256
  Normalizat = 1.10552
  Prefactor  = 0.674149
 **********
 **   18 **HESSE 
 **********

 FCN=   6863.426     FROM HESSE     STATUS=OK            25 CALLS      362 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          23.855        46.354        .32797E-05   -1.4731    
   2  alpha         4.5326        3.6089        .82295E-02    .94933    
   3  Normalizat    1.1055        .20528        .10164E-04   -.89575    
   4  Prefactor     .67415        .14532        .91807E-05   -1.0455    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26452e-10
Minuit parameter uncertainties:
  1  46.4239
  2  1.48974
  3  0.205426
  4  0.145402
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/69362': 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) = 6863.42586949
delta logL = 0.927649237847

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
533    Prefactor:  6.741e-01  1.454e-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.106e+00  2.054e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.92
Ra Dec: 120.888 20.768
Photon Index (Free Index): 4.53 +/- 1.49
Photon Flux (Free Index): 6.30e-08 +/- 5.58e-08
Energy Flux (Free Index): 1.19e-05 +/- 9.77e-06

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/69362/cmap_HighResolution_289094401_289353601_4FGL_J0803.5+2046_daily_bin192.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.30e-05', comment='SUCCESS', energy_flux2='1.19e-05', dlogl='9.28e-01', photon_flux2='6.30e-08', job_status='DONE', time_completed='2021-08-28 23:02:59.504772', photon_index_error2='1.49', photon_index2='4.53', ts='0.00', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', photon_flux_upper_limit='4.37e-08', energy_flux_error2='9.77e-06', EG='1.17', time_epoch_completed='1630216979.5', return_code='0', job_id='69362', GAL2='0.67', EG2='1.11', return_code2='0', photon_flux_error2='5.58e-08', ts2='1.92', photon_index='2.00' WHERE bin_id='192' AND source_name='4FGL J0803.5+2046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 23:02:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 69362: <4FGL_J0803.5+2046_daily_bin192> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0803.5+2046_daily_bin192 120.888 20.7678 289094401 289353601 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 :                                   970.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             316.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   991 sec.
    Turnaround time :                            992 sec.

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

