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


Performing analysis on: 4FGL_J0803.5+2046_daily_bin1282
RA = 120.888, Dec = 20.7678
tmin = 571622401, tmax = 571881601
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='75350', job_status='RUN', time_executed='2021-08-28 23:11:43.326966', time_epoch_executed='1630217503.33' WHERE source_name='4FGL J0803.5+2046' and cadence='daily' and bin_id='1282'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/75350

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/75350/ft1_4FGL_J0803.5+2046_daily_bin1282.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/75350/ft2_4FGL_J0803.5+2046_daily_bin1282.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/75350/ft1_4FGL_J0803.5+2046_daily_bin1282.fits outfile=/scratch/kocevski/75350/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin1282.fits ra=120.888 dec=20.7678 rad=12.0 tmin=571622401.0 tmax=571881601.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 11.97
user 2.46
sys 9.38

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/75350/ft2_4FGL_J0803.5+2046_daily_bin1282.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/75350/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin1282.fits evtable="EVENTS" outfile="/scratch/kocevski/75350/ft1_filtered_4FGL_J0803.5+2046_daily_bin1282.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 9.79
user 0.32
sys 9.27

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/75350/ft1_filtered_4FGL_J0803.5+2046_daily_bin1282.fits evtable="EVENTS" scfile=/scratch/kocevski/75350/ft2_4FGL_J0803.5+2046_daily_bin1282.fits sctable="SC_DATA" expcube=/scratch/kocevski/75350/ltcube_571622401_571881601_4FGL_J0803.5+2046_daily_bin1282.fits outfile=/scratch/kocevski/75350/expmap_571622401_571881601_4FGL_J0803.5+2046_daily_bin1282.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/75350/ltcube_571622401_571881601_4FGL_J0803.5+2046_daily_bin1282.fits
.....................!
real 202.90
user 185.45
sys 16.45

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/75350/ft1_filtered_4FGL_J0803.5+2046_daily_bin1282.fits scfile=/scratch/kocevski/75350/ft2_4FGL_J0803.5+2046_daily_bin1282.fits outfile=/scratch/kocevski/75350/cmap_571622401_571881601_4FGL_J0803.5+2046_daily_bin1282.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 9.76
user 0.37
sys 9.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/75350/ft1_filtered_4FGL_J0803.5+2046_daily_bin1282.fits scfile=/scratch/kocevski/75350/ft2_4FGL_J0803.5+2046_daily_bin1282.fits outfile=/scratch/kocevski/75350/cmap_HighResolution_571622401_571881601_4FGL_J0803.5+2046_daily_bin1282.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 9.73
user 0.38
sys 8.99

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    3.5191       1.0000         .10000E-03   10000.    
     3 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.1760       1.0000         .10000E-03   10000.    
     5 'norm      '    21.773       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.869       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .57909E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    982.00       1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10240E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    25 'Prefactor '    .72738       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=   303.6041     FROM MIGRAD    STATUS=CONVERGED    549 CALLS     2835 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    12.667        .28751E-07** at limit **
   2  norm          3.5197        4.6493       -.36715E-06    .11952E-03
   3  norm          .10000E-03    4.4287       -.68658E-06** at limit **
   4  Prefactor     4.1759        71.568        .13157E-04   -.65155E-05
   5  norm          21.752        25.104        .18580E-07    .51821E-04
   6  Prefactor     .10000E-03    185.34       -.11156E-06** at limit **
   7  Prefactor     .10000E-03    54.902       -.15044E-06** at limit **
   8  Prefactor     .10000E-03    102.86       -.29267E-06** at limit **
   9  Prefactor     10.867        20.902       -.10235E-05    .58850E-04
  10  Prefactor     .10000E-03    1158.4       -.10599E-05** at limit **
  11  norm          .10000E-03    55.734       -.56449E-07** at limit **
  12  Prefactor     .10000E-03    44.226       -.23780E-06** at limit **
  13  Prefactor     981.61        1169.0        .14170E-05    .61580E-05
  14  norm          .10000E-03    559.01        .24397E-07** at limit **
  15  Prefactor     .10000E-03    460.91        .32384E-06** at limit **
  16  Prefactor     .10000E-03    949.76       -.62164E-06** at limit **
  17  Prefactor     .10001E-03    6154.6       -.16892E-05** at limit **
  18  Prefactor     .10000E-03    142.89       -.32496E-06** at limit **
  19  Prefactor     .10000E-03    520.78        .19934E-06** at limit **
  20  norm          .10000E-03    104.03        .97186E-08** at limit **
  21  Prefactor     .10000E-03    1130.3       -.84278E-06** at limit **
  22  Prefactor     .10000E-03    599.30        .44257E-07** at limit **
  23  Prefactor     .10000E-03    1576.8       -.12850E-05** at limit **
  24  Normalizat    .10000E-01    .42980       -.95674E-05** at limit **
  25  Prefactor     .72731        .26355       -.19195E-06    .84425E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 3.51975
  norm       = 0.0001
  Prefactor  = 4.17592
  norm       = 21.7518
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.8668
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 981.606
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Normalizat = 0.01
  Prefactor  = 0.727313
 **********
 **   18 **HESSE 
 **********

 FCN=   303.6041     FROM HESSE     STATUS=OK           411 CALLS     3246 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.670        .60619E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.5197        4.6543        .38051E-04   -1.5333    
   3  norm          .10000E-03    4.6141        .36333E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.1759        70.153        .98612E-03   -1.5299    
   5  norm          21.752        25.195        .85839E-04   -1.4775    
   6  Prefactor     .10000E-03    185.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    54.907        .12629E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    102.89        .17303E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.867        20.668        .92619E-04   -1.5049    
  10  Prefactor     .10000E-03    1160.8        .21083E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    55.737        .12726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    44.230        .11333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     981.61        1170.3        .67208E-04   -.93345    
  14  norm          .10000E-03    559.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    460.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    949.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    6154.8        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    142.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    520.79        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    104.03        .17400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1130.4        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    599.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1577.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .10000E-01    .47724        .68593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .72731        .26126        .14315E-03   -1.0247    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.67491e-10
Minuit parameter uncertainties:
  1  3.71824e-06
  2  4.65475
  3  6.70866e-05
  4  34.2786
  5  25.207
  6  0.000193421
  7  3.54677e-05
  8  0.000100083
  9  20.6812
  10  0.000233497
  11  4.31699e-05
  12  2.02767e-05
  13  1202.79
  14  0.000326858
  15  0.000759068
  16  0.00187774
  17  0.00833581
  18  0.000165003
  19  0.000507754
  20  1.18555e-05
  21  0.00290042
  22  0.000110586
  23  0.00516027
  24  5.60698e-06
  25  0.261705
Done.

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

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  1.000e-04  3.269e-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:  7.273e-01  2.617e-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.000e-02  5.607e-06  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.38e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.30e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/75350/likelihoodResults_571622401_571881601_4FGL_J0803.5+2046_daily_bin1282.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) = 303.60408136
delta logL = -9.29842855157e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 303.604072196
delta logL = -1.34821902975e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14020E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3246       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72731       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=   303.6041     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      278 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10013E-03    8908.0        .18142E-01** at limit **
   2  alpha         2.2266        3.0262        .17766        .27492E-07
   3  Normalizat    .10000E-01    .21070E-01    .68593E-02** at limit **
   4  Prefactor     .72730        .45514E-01    .14315E-03   -.63882E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100133
  alpha      = 2.22663
  Normalizat = 0.01
  Prefactor  = 0.7273
 **********
 **   18 **HESSE 
 **********

 FCN=   303.6041     FROM HESSE     STATUS=NOT POSDEF    23 CALLS      301 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10013E-03    5018.8        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2266        3.0550        .71065E-02   -.10957    
   3  Normalizat    .10000E-01    .24344        .13719E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .72730        .15518        .28630E-04   -1.0247    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.34023e-07
Minuit parameter uncertainties:
  1  0.22448
  2  50924.9
  3  1.40681e-06
  4  0.155276
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/75350': 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): 102
logL (Free Index) = 303.604072064
delta logL = -2.45961473411e-09

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
533    Prefactor:  7.273e-01  1.553e-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.000e-02  1.407e-06  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/75350/cmap_HighResolution_571622401_571881601_4FGL_J0803.5+2046_daily_bin1282.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.30e-04', job_status='DONE', photon_flux_upper_limit='4.38e-07', time_completed='2021-08-28 23:19:33.652380', job_id='75350', GAL2='0.73', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630217973.65', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='-2.46e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1282' AND source_name='4FGL J0803.5+2046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 23:19:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0133>
Subject: Job 75350: <4FGL_J0803.5+2046_daily_bin1282> in cluster <slac> Done

Job <4FGL_J0803.5+2046_daily_bin1282> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 28 23:05:53 2021
Job was executed on host(s) <bullet0133>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 23:05:55 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 28 23:05:55 2021
Terminated at Sat Aug 28 23:19:36 2021
Results reported at Sat Aug 28 23:19:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0803.5+2046_daily_bin1282 120.888 20.7678 571622401 571881601 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 :                                   603.32 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             193.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            823 sec.

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

