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


Performing analysis on: 4FGL_J0803.5+2046_daily_bin6
RA = 120.888, Dec = 20.7678
tmin = 240883201, tmax = 241142401
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='69032', job_status='RUN', time_executed='2021-08-28 22:47:58.655737', time_epoch_executed='1630216078.66' WHERE source_name='4FGL J0803.5+2046' and cadence='daily' and bin_id='6'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/69032

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/69032/ft1_4FGL_J0803.5+2046_daily_bin6.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/69032/ft2_4FGL_J0803.5+2046_daily_bin6.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/69032/ft1_4FGL_J0803.5+2046_daily_bin6.fits outfile=/scratch/kocevski/69032/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin6.fits ra=120.888 dec=20.7678 rad=12.0 tmin=240883201.0 tmax=241142401.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 7.11
user 1.30
sys 5.62

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/69032/ft1_filtered_4FGL_J0803.5+2046_daily_bin6.fits" evtable="EVENTS" scfile=/scratch/kocevski/69032/ft2_4FGL_J0803.5+2046_daily_bin6.fits sctable="SC_DATA" outfile=/scratch/kocevski/69032/ltcube_240883201_241142401_4FGL_J0803.5+2046_daily_bin6.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/69032/ft2_4FGL_J0803.5+2046_daily_bin6.fits
.....................!
real 19.27
user 12.75
sys 6.43

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/69032/ft1_filtered_4FGL_J0803.5+2046_daily_bin6.fits evtable="EVENTS" scfile=/scratch/kocevski/69032/ft2_4FGL_J0803.5+2046_daily_bin6.fits sctable="SC_DATA" expcube=/scratch/kocevski/69032/ltcube_240883201_241142401_4FGL_J0803.5+2046_daily_bin6.fits outfile=/scratch/kocevski/69032/expmap_240883201_241142401_4FGL_J0803.5+2046_daily_bin6.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/69032/ltcube_240883201_241142401_4FGL_J0803.5+2046_daily_bin6.fits
.....................!
real 198.35
user 185.72
sys 12.21

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/69032/ft1_filtered_4FGL_J0803.5+2046_daily_bin6.fits scfile=/scratch/kocevski/69032/ft2_4FGL_J0803.5+2046_daily_bin6.fits outfile=/scratch/kocevski/69032/cmap_240883201_241142401_4FGL_J0803.5+2046_daily_bin6.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 5.86
user 0.39
sys 5.41

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/69032/ft1_filtered_4FGL_J0803.5+2046_daily_bin6.fits scfile=/scratch/kocevski/69032/ft2_4FGL_J0803.5+2046_daily_bin6.fits outfile=/scratch/kocevski/69032/cmap_HighResolution_240883201_241142401_4FGL_J0803.5+2046_daily_bin6.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 5.91
user 0.39
sys 5.49

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    21.655       1.0000         .10000E-03   10000.    
     2 'norm      '    1.0394       1.0000         .10000E-03   10000.    
     3 'norm      '    4.5314       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .17121       1.0000         .10000E-03   10000.    
     5 'norm      '    .19022       1.0000         .10000E-03   10000.    
     6 'Prefactor '    94.925       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.5915       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    41.177       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    65.034       1.0000         .10000E-03   10000.    
    14 'norm      '    .12311E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.6094       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .11371       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.4378       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    32.814       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0527       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .87316       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=   5306.547     FROM MIGRAD    STATUS=FAILED      1061 CALLS     4160 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          21.658        16.206        .86074E-04   -.63531E-04
   2  norm          1.0395        1.0231        .73155E-03   -.71134E-03
   3  norm          4.5344        3.1505        .64192E-04   -.26575E-02
   4  Prefactor     .14561        473.20        .33881E-02   -.37643E-03
   5  norm          .20989        20.086        .21191E-02   -.87837E-03
   6  Prefactor     94.769        54.286        .20626E-03   -.16326E-03
   7  Prefactor     .10000E-03    20.740        .36285E-03** at limit **
   8  Prefactor     .10000E-03    62.559        .18142E-02** at limit **
   9  Prefactor     1.5914        1.8663        .10477E-03   -.84093E-04
  10  Prefactor     .10000E-03    37.704        .18142E-02** at limit **
  11  norm          41.187        25.292        .62468E-04    .21089E-03
  12  Prefactor     .10000E-03    8.2919        .18142E-02** at limit **
  13  Prefactor     65.054        75.308        .24882E-03   -.43670E-04
  14  norm          .11755E-03    80.068        .21121    ** at limit **
  15  Prefactor     .10000E-03    18.245        .18142E-02** at limit **
  16  Prefactor     .10000E-03    13.848        .18142E-02** at limit **
  17  Prefactor     .10000E-03    9.6419        .18142E-02** at limit **
  18  Prefactor     4.6134        10.888        .18748E-03   -.81865E-04
  19  Prefactor     .10000E-03    7.7613        .18142E-02** at limit **
  20  norm          .11361        1.6527        .12496E-02   -.56957E-03
  21  Prefactor     4.4382        11.196        .19116E-03    .63161E-04
  22  Prefactor     .10000E-03    3.9687        .14111E-02** at limit **
  23  Prefactor     32.814        44.424        .69951E-04    .10067E-03
  24  Normalizat    1.0527        .25305        .26013E-03    .48817E-04
  25  Prefactor     .87309        .17811        .21618E-03   -.23510E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5306.547     FROM SIMPLEX   STATUS=PROGRESS    1013 CALLS     5173 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          21.658        16.206        .24322E-06   -1.4777    
   2  norm          1.0396        1.0231        .14977E-06   -1.5504    
   3  norm          4.5344        3.1505        .16740E-06   -1.5282    
   4  Prefactor     .14688        473.20        .33300E-04   -1.5631    
   5  norm          .21023        20.086        .73574E-05   -1.5616    
   6  Prefactor     94.769        54.286        .94003E-06   -1.3758    
   7  Prefactor     .10000E-03    20.740        .56242E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    62.559        .12363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.5914        1.8663        .12402E-06   -1.5456    
  10  Prefactor     .10000E-03    37.704        .85066E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          41.187        25.292        .11636E-06   -1.4424    
  12  Prefactor     .10000E-03    8.2919        .18541E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     65.054        75.308        .11844E-06   -1.4093    
  14  norm          .11755E-03    80.068        .56966E-04   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    18.245        .50784E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    13.848        .24437E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.6419        .39206E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.6134        10.888        .12256E-06   -1.5278    
  19  Prefactor     .10000E-03    7.7613        .31614E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .11361        1.6527        .12562E-06   -1.5641    
  21  Prefactor     4.4382        11.196        .12296E-06   -1.5287    
  22  Prefactor     .10000E-03    3.9687        .13509E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     32.814        44.424        .11696E-06   -1.4562    
  24  Normalizat    1.0527        .25305        .73335E-07   -.91284    
  25  Prefactor     .87309        .17811        .77995E-07   -.97088    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5306.547     FROM MIGRAD    STATUS=CONVERGED    423 CALLS     5596 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          21.658        16.203        .34430E-05    .78588E-04
   2  norm          1.0396        1.0222        .29262E-04    .11655E-03
   3  norm          4.5342        2.5725        .12838E-04    .71710E-03
   4  Prefactor     .14764        314.21        .13552E-03    .96974E-04
   5  norm          .21023        19.262        .84764E-04    .74170E-04
   6  Prefactor     94.768        53.184        .82505E-05    .14138E-03
   7  Prefactor     .10000E-03    20.740        .72569E-04** at limit **
   8  Prefactor     .10000E-03    62.561        .36285E-03** at limit **
   9  Prefactor     1.5914        1.8661        .41910E-05    .20074E-04
  10  Prefactor     .10000E-03    37.706        .36285E-03** at limit **
  11  norm          41.187        25.285        .12494E-04    .53688E-04
  12  Prefactor     .10000E-03    8.2927        .36285E-03** at limit **
  13  Prefactor     65.055        75.306        .49764E-04   -.80871E-05
  14  norm          .11595E-03    81.054        .20904    ** at limit **
  15  Prefactor     .10000E-03    18.246        .36285E-03** at limit **
  16  Prefactor     .10000E-03    13.848        .36285E-03** at limit **
  17  Prefactor     .10000E-03    9.6420        .36285E-03** at limit **
  18  Prefactor     4.6135        10.884        .74990E-05   -.17283E-04
  19  Prefactor     .10000E-03    7.7614        .36285E-03** at limit **
  20  norm          .11363        1.6401        .49985E-04   -.15785E-03
  21  Prefactor     4.4383        11.137        .76462E-05    .74342E-05
  22  Prefactor     .10000E-03    3.9695        .28222E-03** at limit **
  23  Prefactor     32.814        44.346        .13990E-04    .22428E-04
  24  Normalizat    1.0527        .24764        .10405E-04    .15865E-03
  25  Prefactor     .87309        .17758        .43235E-04    .98290E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 21.6583
  norm       = 1.03955
  norm       = 4.53419
  Prefactor  = 0.147641
  norm       = 0.210228
  Prefactor  = 94.7682
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.59137
  Prefactor  = 0.0001
  norm       = 41.1866
  Prefactor  = 0.0001
  Prefactor  = 65.0546
  norm       = 0.000115954
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.61347
  Prefactor  = 0.0001
  norm       = 0.113627
  Prefactor  = 4.43834
  Prefactor  = 0.0001
  Prefactor  = 32.8145
  Normalizat = 1.05271
  Prefactor  = 0.873093
 **********
 **   18 **HESSE 
 **********

 FCN=   5306.547     FROM HESSE     STATUS=OK           411 CALLS     6007 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          21.658        16.221        .68859E-06   -1.4777    
   2  norm          1.0396        1.0222        .11705E-05   -1.5504    
   3  norm          4.5342        2.5568        .25677E-05   -1.5282    
   4  Prefactor     .14764        310.18        .54209E-05   -1.5631    
   5  norm          .21023        19.206        .33905E-05   -1.5616    
   6  Prefactor     94.768        53.148        .16501E-05   -1.3758    
   7  Prefactor     .10000E-03    20.741        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    62.561        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.5914        1.8665        .83819E-06   -1.5456    
  10  Prefactor     .10000E-03    37.707        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          41.187        25.280        .24987E-05   -1.4424    
  12  Prefactor     .10000E-03    8.2927        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     65.055        75.304        .99529E-05   -1.4093    
  14  norm          .11595E-03    80.889        .20939       -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    18.246        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    13.848        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.6420        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.6135        10.875        .14998E-05   -1.5278    
  19  Prefactor     .10000E-03    7.7615        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .11363        1.6395        .19994E-05   -1.5641    
  21  Prefactor     4.4383        11.138        .15292E-05   -1.5287    
  22  Prefactor     .10000E-03    3.9696        .56445E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     32.814        44.333        .27980E-05   -1.4562    
  24  Normalizat    1.0527        .24727        .20810E-05   -.91285    
  25  Prefactor     .87309        .17754        .86471E-05   -.97088    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36735e-09
Minuit parameter uncertainties:
  1  16.2246
  2  1.02223
  3  2.55689
  4  13.6008
  5  4.01911
  6  53.1742
  7  5.18149e-05
  8  8.50429e-05
  9  1.8666
  10  5.72646e-05
  11  25.287
  12  7.92829e-05
  13  75.4147
  14  0.0719442
  15  2.05023e-05
  16  1.13663e-05
  17  4.34128e-06
  18  10.8796
  19  1.42248e-06
  20  0.862867
  21  11.1436
  22  2.92795e-07
  23  44.3776
  24  0.24754
  25  0.177662
Done.

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

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  1.160e-04  7.194e-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:  8.731e-01  1.777e-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.053e+00  2.475e-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.43e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.33e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/69032/likelihoodResults_240883201_241142401_4FGL_J0803.5+2046_daily_bin6.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5306.54744951
delta logL = -2.80009498965e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5306.54744951
delta logL = -2.79980849882e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96367E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9991       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0527       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87309       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=   5305.838     FROM MIGRAD    STATUS=CONVERGED    129 CALLS      296 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.371        21.655        .90712E-02    .25296E-03
   2  alpha         4.3035        .91355        .42247       -.23776E-04
   3  Normalizat    1.0156        .19455        .59746E-01    .18285E-03
   4  Prefactor     .88087        .14757        .44661E-01    .20370E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 19.3709
  alpha      = 4.30355
  Normalizat = 1.01556
  Prefactor  = 0.88087
 **********
 **   18 **HESSE 
 **********

 FCN=   5305.838     FROM HESSE     STATUS=OK            31 CALLS      327 TOTAL
                     EDM=   .71E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.371        30.765        .31979E-03   -1.4827    
   2  alpha         4.3035        1.1548        .36300E-01    2.3357    
   3  Normalizat    1.0156        .22900        .26423E-03   -.92511    
   4  Prefactor     .88087        .17364        .21515E-03   -.96813    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.05717e-11
Minuit parameter uncertainties:
  1  30.7904
  2  1.26425
  3  0.229224
  4  0.173752
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/69032': 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) = 5305.83783326
delta logL = 0.709613450153

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  1.937e+01  3.079e+01  1.000e-04  1.000e+04 ( 1.000e-13)
274        alpha:  4.304e+00  1.264e+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.809e-01  1.738e-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.016e+00  2.292e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.44
Ra Dec: 120.888 20.768
Photon Index (Free Index): 4.30 +/- 1.26
Photon Flux (Free Index): 3.72e-08 +/- 1.16e-07
Energy Flux (Free Index): 7.44e-06 +/- 2.08e-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/69032/cmap_HighResolution_240883201_241142401_4FGL_J0803.5+2046_daily_bin6.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.33e-05', comment='SUCCESS', energy_flux2='7.44e-06', dlogl='7.10e-01', photon_flux2='3.72e-08', job_status='DONE', time_completed='2021-08-28 23:02:21.407743', photon_index_error2='1.26', photon_index2='4.30', ts='-0.00', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='4.43e-08', energy_flux_error2='2.08e-05', EG='1.05', time_epoch_completed='1630216941.41', return_code='0', job_id='69032', GAL2='0.88', EG2='1.02', return_code2='0', photon_flux_error2='1.16e-07', ts2='1.44', photon_index='2.00' WHERE bin_id='6' AND source_name='4FGL J0803.5+2046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 23:02:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0300>
Subject: Job 69032: <4FGL_J0803.5+2046_daily_bin6> in cluster <slac> Done

Job <4FGL_J0803.5+2046_daily_bin6> 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) <bullet0300>, 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:02:25 2021
Results reported at Sat Aug 28 23:02:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0803.5+2046_daily_bin6 120.888 20.7678 240883201 241142401 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 :                                   946.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   989 sec.
    Turnaround time :                            995 sec.

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

