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


Performing analysis on: 4FGL_J0803.5+2046_daily_bin1462
RA = 120.888, Dec = 20.7678
tmin = 618278401, tmax = 618537601
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='75650', job_status='RUN', time_executed='2021-08-28 23:07:15.947411', time_epoch_executed='1630217235.95' WHERE source_name='4FGL J0803.5+2046' and cadence='daily' and bin_id='1462'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/75650

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/75650/ft1_4FGL_J0803.5+2046_daily_bin1462.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/75650/ft2_4FGL_J0803.5+2046_daily_bin1462.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/75650/ft1_4FGL_J0803.5+2046_daily_bin1462.fits outfile=/scratch/kocevski/75650/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin1462.fits ra=120.888 dec=20.7678 rad=12.0 tmin=618278401.0 tmax=618537601.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.05
user 3.53
sys 2.47

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/75650/ft1_filtered_4FGL_J0803.5+2046_daily_bin1462.fits" evtable="EVENTS" scfile=/scratch/kocevski/75650/ft2_4FGL_J0803.5+2046_daily_bin1462.fits sctable="SC_DATA" outfile=/scratch/kocevski/75650/ltcube_618278401_618537601_4FGL_J0803.5+2046_daily_bin1462.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/75650/ft2_4FGL_J0803.5+2046_daily_bin1462.fits
.....................!
real 14.25
user 11.38
sys 2.82

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/75650/ft1_filtered_4FGL_J0803.5+2046_daily_bin1462.fits evtable="EVENTS" scfile=/scratch/kocevski/75650/ft2_4FGL_J0803.5+2046_daily_bin1462.fits sctable="SC_DATA" expcube=/scratch/kocevski/75650/ltcube_618278401_618537601_4FGL_J0803.5+2046_daily_bin1462.fits outfile=/scratch/kocevski/75650/expmap_618278401_618537601_4FGL_J0803.5+2046_daily_bin1462.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/75650/ltcube_618278401_618537601_4FGL_J0803.5+2046_daily_bin1462.fits
.....................!
real 192.54
user 184.90
sys 7.31

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/75650/ft1_filtered_4FGL_J0803.5+2046_daily_bin1462.fits scfile=/scratch/kocevski/75650/ft2_4FGL_J0803.5+2046_daily_bin1462.fits outfile=/scratch/kocevski/75650/cmap_618278401_618537601_4FGL_J0803.5+2046_daily_bin1462.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 2.72
user 0.39
sys 2.31

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/75650/ft1_filtered_4FGL_J0803.5+2046_daily_bin1462.fits scfile=/scratch/kocevski/75650/ft2_4FGL_J0803.5+2046_daily_bin1462.fits outfile=/scratch/kocevski/75650/cmap_HighResolution_618278401_618537601_4FGL_J0803.5+2046_daily_bin1462.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 2.74
user 0.37
sys 2.34

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .90768       1.0000         .10000E-03   10000.    
     3 'norm      '    4.1518       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.5046       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10182E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.703       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.7351       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.5378       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    35.786       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    23.702       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.6397       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .89563E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.6478       1.0000         .10000E-03   10000.    
    23 'Prefactor '    81.385       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1242       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1112       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=   6869.349     FROM MIGRAD    STATUS=CONVERGED    570 CALLS     3638 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.7114        .50752E-08** at limit **
   2  norm          .90781        1.4574        .33685E-06   -.49388E-04
   3  norm          4.1522        1.7999        .67795E-08   -.58624E-04
   4  Prefactor     .10000E-03    3.4449        .26081E-07** at limit **
   5  norm          1.5044        3.4631        .79908E-06   -.89284E-04
   6  Prefactor     .10000E-03    31.364        .44083E-05** at limit **
   7  Prefactor     15.701        19.378       -.19562E-06   -.53475E-04
   8  Prefactor     7.7354        30.142        .48858E-06   -.30736E-05
   9  Prefactor     .10000E-03    1.7624        .61292E-07** at limit **
  10  Prefactor     7.5280        25.094       -.10841E-05   -.61976E-04
  11  norm          .10000E-03    9.5005        .10817E-06** at limit **
  12  Prefactor     .10000E-03    7.4075        .70613E-06** at limit **
  13  Prefactor     .10000E-03    49.672       -.38130E-05** at limit **
  14  norm          35.785        75.914        .14988E-06   -.28589E-05
  15  Prefactor     .10000E-03    18.184       -.24769E-05** at limit **
  16  Prefactor     .10000E-03    12.531        .13588E-05** at limit **
  17  Prefactor     23.700        24.595       -.96059E-07   -.19582E-04
  18  Prefactor     2.6279        44.057       -.40824E-06   -.31130E-04
  19  Prefactor     .10000E-03    7.9801       -.79124E-06** at limit **
  20  norm          .89769E-01    .72311        .20816E-06   -.46535E-03
  21  Prefactor     .10000E-03    9.1005       -.45944E-06** at limit **
  22  Prefactor     5.6475        6.8626        .25557E-05   -.35706E-03
  23  Prefactor     81.388        54.646        .27355E-07    .16799E-04
  24  Normalizat    1.1242        .20538       -.72623E-06   -.71860E-04
  25  Prefactor     1.1112        .15359       -.31173E-06   -.93856E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.907813
  norm       = 4.15217
  Prefactor  = 0.0001
  norm       = 1.50443
  Prefactor  = 0.000100003
  Prefactor  = 15.7006
  Prefactor  = 7.73542
  Prefactor  = 0.0001
  Prefactor  = 7.52801
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 35.7853
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 23.7001
  Prefactor  = 2.62787
  Prefactor  = 0.0001
  norm       = 0.0897688
  Prefactor  = 0.0001
  Prefactor  = 5.64751
  Prefactor  = 81.3881
  Normalizat = 1.12423
  Prefactor  = 1.11116
 **********
 **   18 **HESSE 
 **********

 FCN=   6869.349     FROM HESSE     STATUS=OK           427 CALLS     4065 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.7232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .90781        1.4335        .12045E-03   -1.5517    
   3  norm          4.1522        1.7984        .70361E-04   -1.5300    
   4  Prefactor     .10000E-03    3.4523        .15014E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.5044        3.4021        .21321E-03   -1.5463    
   6  Prefactor     .10000E-03    32.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     15.701        19.204        .10107E-03   -1.4915    
   8  Prefactor     7.7354        30.134        .14418E-03   -1.5152    
   9  Prefactor     .10000E-03    1.7858        .10740E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.5280        25.168        .14607E-03   -1.5159    
  11  norm          .10000E-03    9.5082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.4625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    50.565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          35.785        75.967        .66992E-04   -1.4511    
  15  Prefactor     .10000E-03    18.581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     23.700        24.606        .82277E-04   -1.4734    
  18  Prefactor     2.6279        44.616        .25096E-03   -1.5384    
  19  Prefactor     .10000E-03    8.0236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .89769E-01    1.7023        .13363E-02   -1.5648    
  21  Prefactor     .10000E-03    9.2275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.6475        7.0294        .84516E-03   -1.5233    
  23  Prefactor     81.388        54.756        .44522E-04   -1.3901    
  24  Normalizat    1.1242        .24039        .28886E-03   -.88978    
  25  Prefactor     1.1112        .18045        .22072E-03   -.89111    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.94507e-08
Minuit parameter uncertainties:
  1  9.55127e-08
  2  1.43355
  3  1.7984
  4  9.26787e-07
  5  3.40255
  6  0.000618672
  7  19.212
  8  30.1931
  9  1.99961e-06
  10  25.2038
  11  7.75528e-06
  12  4.68376e-05
  13  0.000651418
  14  76.1735
  15  0.000250464
  16  0.000119241
  17  24.6167
  18  21.6746
  19  5.27757e-05
  20  0.781418
  21  4.0847e-05
  22  7.03042
  23  54.7895
  24  0.240627
  25  0.180549
Done.

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

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  3.579e+01  7.617e+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:  1.111e+00  1.805e-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.124e+00  2.406e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.30
Ra Dec: 120.888 20.768
Photon Flux Upper Limit: 4.82e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.54e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/75650/likelihoodResults_618278401_618537601_4FGL_J0803.5+2046_daily_bin1462.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) = 6869.17270943
delta logL = 0.176633788414

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6869.17221997
delta logL = 0.177123244026

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    34.802       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9916       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1194       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1110       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=   6869.172     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      270 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          34.806        69.121        .67930E-04    .12016E-04
   2  alpha         2.9915        1.6081        .41955E-01    .62597E-05
   3  Normalizat    1.1193        .23150        .28938E-03   -.24986E-04
   4  Prefactor     1.1111        .17711        .22068E-03    .23182E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 34.806
  alpha      = 2.99152
  Normalizat = 1.11929
  Prefactor  = 1.11107
 **********
 **   18 **HESSE 
 **********

 FCN=   6869.172     FROM HESSE     STATUS=OK            25 CALLS      295 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          34.806        64.185        .13586E-04   -1.4527    
   2  alpha         2.9915        1.5112        .16782E-02    .19790    
   3  Normalizat    1.1193        .23159        .11575E-04   -.89135    
   4  Prefactor     1.1111        .17717        .88273E-05   -.89113    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0448e-11
Minuit parameter uncertainties:
  1  64.3129
  2  1.62836
  3  0.231803
  4  0.177267
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/75650': 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) = 6869.1722199
delta logL = 0.17712331365

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  3.481e+01  6.431e+01  1.000e-04  1.000e+04 ( 1.000e-13)
274        alpha:  2.992e+00  1.628e+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:  1.111e+00  1.773e-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.119e+00  2.318e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.30
Ra Dec: 120.888 20.768

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/75650/cmap_HighResolution_618278401_618537601_4FGL_J0803.5+2046_daily_bin1462.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.54e-05', job_status='DONE', photon_flux_upper_limit='4.82e-08', time_completed='2021-08-28 23:20:50.162709', job_id='75650', GAL2='1.11', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1630218050.16', return_code2='0', ts='0.30', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='1.77e-01', ts2='0.66', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1462' AND source_name='4FGL J0803.5+2046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 23:20:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 75650: <4FGL_J0803.5+2046_daily_bin1462> in cluster <slac> Done

Job <4FGL_J0803.5+2046_daily_bin1462> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 28 23:06:26 2021
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 23:06:27 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:06:27 2021
Terminated at Sat Aug 28 23:20:51 2021
Results reported at Sat Aug 28 23:20:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0803.5+2046_daily_bin1462 120.888 20.7678 618278401 618537601 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 :                                   846.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             358.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   863 sec.
    Turnaround time :                            865 sec.

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

