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


Performing analysis on: 4FGL_J0803.5+2046_daily_bin1283
RA = 120.888, Dec = 20.7678
tmin = 571881601, tmax = 572140801
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='75352', job_status='RUN', time_executed='2021-08-28 23:09:00.607311', time_epoch_executed='1630217340.61' WHERE source_name='4FGL J0803.5+2046' and cadence='daily' and bin_id='1283'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/75352

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/75352/ft1_4FGL_J0803.5+2046_daily_bin1283.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/75352/ft2_4FGL_J0803.5+2046_daily_bin1283.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/75352/ft1_4FGL_J0803.5+2046_daily_bin1283.fits outfile=/scratch/kocevski/75352/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin1283.fits ra=120.888 dec=20.7678 rad=12.0 tmin=571881601.0 tmax=572140801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.97
user 2.35
sys 1.58

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/75352/ft1_filtered_4FGL_J0803.5+2046_daily_bin1283.fits" evtable="EVENTS" scfile=/scratch/kocevski/75352/ft2_4FGL_J0803.5+2046_daily_bin1283.fits sctable="SC_DATA" outfile=/scratch/kocevski/75352/ltcube_571881601_572140801_4FGL_J0803.5+2046_daily_bin1283.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/75352/ft2_4FGL_J0803.5+2046_daily_bin1283.fits
.....................!
real 13.86
user 11.87
sys 1.95

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/75352/ft1_filtered_4FGL_J0803.5+2046_daily_bin1283.fits evtable="EVENTS" scfile=/scratch/kocevski/75352/ft2_4FGL_J0803.5+2046_daily_bin1283.fits sctable="SC_DATA" expcube=/scratch/kocevski/75352/ltcube_571881601_572140801_4FGL_J0803.5+2046_daily_bin1283.fits outfile=/scratch/kocevski/75352/expmap_571881601_572140801_4FGL_J0803.5+2046_daily_bin1283.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/75352/ltcube_571881601_572140801_4FGL_J0803.5+2046_daily_bin1283.fits
.....................!
real 193.31
user 187.28
sys 5.61

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/75352/ft1_filtered_4FGL_J0803.5+2046_daily_bin1283.fits scfile=/scratch/kocevski/75352/ft2_4FGL_J0803.5+2046_daily_bin1283.fits outfile=/scratch/kocevski/75352/cmap_571881601_572140801_4FGL_J0803.5+2046_daily_bin1283.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 1.96
user 0.37
sys 1.53

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/75352/ft1_filtered_4FGL_J0803.5+2046_daily_bin1283.fits scfile=/scratch/kocevski/75352/ft2_4FGL_J0803.5+2046_daily_bin1283.fits outfile=/scratch/kocevski/75352/cmap_HighResolution_571881601_572140801_4FGL_J0803.5+2046_daily_bin1283.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 1.95
user 0.36
sys 1.53

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

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

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 272.666986915

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 268.026749805

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.2257       1.0000         .10000E-03   10000.    
     3 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10897E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .22999E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    622.10       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.1043       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.7921       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.7199       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .26642       1.0000         .10000E-03   10000.    
    11 'norm      '    .98724E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .55127       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .36872       1.0000         .10000E-03   10000.    
    14 'norm      '    723.57       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .76072       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.6917       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.4821       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .71916E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.1476       1.0000         .10000E-03   10000.    
    20 'norm      '    105.12       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.6259       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .39343       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.4154       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .35708       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .42099       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   267.9992     FROM MIGRAD    STATUS=CONVERGED    281 CALLS      818 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    14.879       -.16794E-05** at limit **
   2  norm          3.2273        3.0405       -.42965E-06   -.41528E-04
   3  norm          .10000E-03    2.8779       -.49539E-06** at limit **
   4  Prefactor     .10000E-03    20.258       -.64976E-08** at limit **
   5  norm          .10000E-03    163.79        .37165E-04** at limit **
   6  Prefactor     688.86        555.23        .12377E-03    .31679E-02
   7  Prefactor     .18608        280.10       -.18046E-03    .26433E-02
   8  Prefactor     .10121E-03    524.59       -.66502E-04** at limit **
   9  Prefactor     8.8830        20.989        .37462E-04    .28268E-04
  10  Prefactor     .10006E-03    397.61       -.19198E-03** at limit **
  11  norm          .10000E-03    74.886        .10777E-05** at limit **
  12  Prefactor     .10000E-03    132.08       -.40105E-04** at limit **
  13  Prefactor     .10004E-03    955.39        .76308E-05** at limit **
  14  norm          627.42        768.30       -.44189E-04   -.15703E-02
  15  Prefactor     .10000E-03    1076.2        .23489E-04** at limit **
  16  Prefactor     .20418E-02    377.30       -.44002E-04** at limit **
  17  Prefactor     1.4821        1.0727         .0000         .0000    
  18  Prefactor     .10000E-03    149.42       -.16550E-04** at limit **
  19  Prefactor     .10026E-03    1412.0       -.87441E-04** at limit **
  20  norm          105.26        106.94        .13692E-04   -.30837E-02
  21  Prefactor     .10357E-03    702.40       -.65729E-04** at limit **
  22  Prefactor     .10000E-03    310.64       -.32653E-05** at limit **
  23  Prefactor     .76540E-03    452.01       -.75917E-04** at limit **
  24  Normalizat    .35833        .83541       -.41658E-04    .20655E-04
  25  Prefactor     .42089        .42761       -.95285E-06    .73078E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 3.22734
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 688.864
  Prefactor  = 0.18608
  Prefactor  = 0.000101213
  Prefactor  = 8.88296
  Prefactor  = 0.000100056
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100038
  norm       = 627.416
  Prefactor  = 0.0001
  Prefactor  = 0.00204184
  Prefactor  = 1.48211
  Prefactor  = 0.000100001
  Prefactor  = 0.000100262
  norm       = 105.257
  Prefactor  = 0.000103569
  Prefactor  = 0.000100001
  Prefactor  = 0.000765397
  Normalizat = 0.35833
  Prefactor  = 0.420886
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   267.9992     FROM HESSE     STATUS=FAILED        73 CALLS      891 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    14.903        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.2273        2.9934        .56387E-02   -1.5349    
   3  norm          .10000E-03    2.8883        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    20.503        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    162.22        .91375E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     688.86        524.13        .41402E-03   -1.0397    
   7  Prefactor     .18608        2298.4        .40625E-02   -1.5794    
   8  Prefactor     .10121E-03    536.24        .45946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.8830        16.451        .33935E-02   -1.5112    
  10  Prefactor     .10006E-03    399.78        .10277E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    74.852        .90724E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    130.69        .11478E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10004E-03    961.46        .10723E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          627.42        751.60        .38598E-03   -1.0644    
  15  Prefactor     .10000E-03    1075.2        .12293E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .20418E-02    975.61        .80904E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     578.15        576.47         .0000       -1.5464    
  18  Prefactor     .10000E-03    .21752       -.16550E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10026E-03    .29234       -.87441E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          105.26        1.0006        .13692E-04   -1.3652    
  21  Prefactor     .10357E-03    .98961E-01   -.65729E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    .29309       -.32653E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .76540E-03    .10839       -.75917E-04   -1.5713    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .35833        .67129       -.41658E-04   -1.1951    
  25  Prefactor     .42089        .75509       -.95285E-06   -1.1576    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.58343e-10
Minuit parameter uncertainties:
  1  4.91188e-06
  2  2.99351
  3  9.20979e-07
  4  2.94362e-05
  5  0.000840458
  6  527.943
  7  43.125
  8  0.0514759
  9  16.4593
  10  0.00950623
  11  1.50926e-05
  12  0.000856196
  13  0.012275
  14  764.188
  15  0.00136218
  16  2.79966
  17  1.07271
  18  2.21573e-05
  19  0.000553675
  20  1.00064
  21  0.00118854
  22  2.70467e-05
  23  0.0169852
  24  0.687287
  25  0.774123
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 267.999201658

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  6.274e+02  7.642e+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:  4.209e-01  7.741e-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:  3.583e-01  6.873e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.59
Ra Dec: 120.888 20.768
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 1.15e-07 +/- 1.40e-07
Energy Flux (Fixed Index): 6.03e-05 +/- 7.35e-05

TS (Fixed Index): 1.59
Ra Dec: 120.888 20.768
Photon Flux Upper Limit: 6.00e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.15e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/75352/likelihoodResults_571881601_572140801_4FGL_J0803.5+2046_daily_bin1283.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) = 267.721855812
delta logL = 0.277345845893

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 267.683693273
delta logL = 0.315508384621

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    433.15       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5087       1.0000          .0000       5.0000    
     3 'Normalizat'    .27573       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .43748       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=   267.6837     FROM MIGRAD    STATUS=CONVERGED     76 CALLS      251 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          433.38        650.31        .98249E-04   -.89648E-05
   2  alpha         3.5081        1.7197        .90168E-03   -.38842E-05
   3  Normalizat    .27584        .69984        .37093E-03   -.22309E-04
   4  Prefactor     .43743        .40242        .16701E-03   -.62459E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 433.379
  alpha      = 3.50811
  Normalizat = 0.275842
  Prefactor  = 0.437427
 **********
 **   18 **HESSE 
 **********

 FCN=   267.6837     FROM HESSE     STATUS=OK            23 CALLS      274 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          433.38        649.08        .19650E-04   -1.1514    
   2  alpha         3.5081        1.7170        .36067E-04    .41506    
   3  Normalizat    .27584        .69981        .14837E-04   -1.2431    
   4  Prefactor     .43743        .40244        .33401E-04   -1.1494    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.42404e-11
Minuit parameter uncertainties:
  1  660.613
  2  1.942
  3  0.724033
  4  0.405083
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/75352': 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) = 267.683693201
delta logL = 0.315508457264

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  4.334e+02  6.606e+02  1.000e-04  1.000e+04 ( 1.000e-13)
274        alpha:  3.508e+00  1.942e+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:  4.374e-01  4.051e-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:  2.758e-01  7.240e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.20
Ra Dec: 120.888 20.768
Photon Index (Free Index): 3.51 +/- 1.94
Photon Flux (Free Index): 3.03e-07 +/- 4.85e-07
Energy Flux (Free Index): 7.75e-05 +/- 9.10e-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/75352/cmap_HighResolution_571881601_572140801_4FGL_J0803.5+2046_daily_bin1283.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.15e-04', comment='SUCCESS', photon_flux='1.15e-07', energy_flux2='7.75e-05', photon_flux_error='1.40e-07', dlogl='3.16e-01', energy_flux='6.03e-05', photon_flux2='3.03e-07', job_status='DONE', time_completed='2021-08-28 23:14:42.279684', photon_index_error2='1.94', photon_index2='3.51', ts='1.59', fit_tolerance='1e-08', GAL='0.42', photon_index_error='0.00', photon_flux_upper_limit='6.00e-07', energy_flux_error2='9.10e-05', EG='0.36', time_epoch_completed='1630217682.28', return_code='101', job_id='75352', GAL2='0.44', EG2='0.28', return_code2='0', energy_flux_error='7.35e-05', photon_flux_error2='4.85e-07', ts2='2.20', photon_index='2.00' WHERE bin_id='1283' AND source_name='4FGL J0803.5+2046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 23:14:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0139>
Subject: Job 75352: <4FGL_J0803.5+2046_daily_bin1283> in cluster <slac> Done

Job <4FGL_J0803.5+2046_daily_bin1283> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 28 23:05:54 2021
Job was executed on host(s) <bullet0139>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 23:05:56 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:56 2021
Terminated at Sat Aug 28 23:14:43 2021
Results reported at Sat Aug 28 23:14:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0803.5+2046_daily_bin1283 120.888 20.7678 571881601 572140801 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 :                                   361.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             408.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   526 sec.
    Turnaround time :                            529 sec.

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

