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


Performing analysis on: 4FGL_J0803.5+2046_daily_bin541
RA = 120.888, Dec = 20.7678
tmin = 379555201, tmax = 379814401
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='72010', job_status='RUN', time_executed='2021-08-28 22:56:32.767023', time_epoch_executed='1630216592.77' WHERE source_name='4FGL J0803.5+2046' and cadence='daily' and bin_id='541'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/72010

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/72010/ft1_4FGL_J0803.5+2046_daily_bin541.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/72010/ft2_4FGL_J0803.5+2046_daily_bin541.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/72010/ft1_4FGL_J0803.5+2046_daily_bin541.fits outfile=/scratch/kocevski/72010/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin541.fits ra=120.888 dec=20.7678 rad=12.0 tmin=379555201.0 tmax=379814401.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.46
user 3.22
sys 3.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/72010/ft2_4FGL_J0803.5+2046_daily_bin541.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/72010/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin541.fits evtable="EVENTS" outfile="/scratch/kocevski/72010/ft1_filtered_4FGL_J0803.5+2046_daily_bin541.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 3.66
user 0.33
sys 3.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/72010/ft1_filtered_4FGL_J0803.5+2046_daily_bin541.fits" evtable="EVENTS" scfile=/scratch/kocevski/72010/ft2_4FGL_J0803.5+2046_daily_bin541.fits sctable="SC_DATA" outfile=/scratch/kocevski/72010/ltcube_379555201_379814401_4FGL_J0803.5+2046_daily_bin541.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/72010/ft2_4FGL_J0803.5+2046_daily_bin541.fits
.....................!
real 15.61
user 11.85
sys 3.67

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/72010/ft1_filtered_4FGL_J0803.5+2046_daily_bin541.fits evtable="EVENTS" scfile=/scratch/kocevski/72010/ft2_4FGL_J0803.5+2046_daily_bin541.fits sctable="SC_DATA" expcube=/scratch/kocevski/72010/ltcube_379555201_379814401_4FGL_J0803.5+2046_daily_bin541.fits outfile=/scratch/kocevski/72010/expmap_379555201_379814401_4FGL_J0803.5+2046_daily_bin541.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/72010/ltcube_379555201_379814401_4FGL_J0803.5+2046_daily_bin541.fits
.....................!
real 193.89
user 185.40
sys 8.05

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/72010/ft1_filtered_4FGL_J0803.5+2046_daily_bin541.fits scfile=/scratch/kocevski/72010/ft2_4FGL_J0803.5+2046_daily_bin541.fits outfile=/scratch/kocevski/72010/cmap_379555201_379814401_4FGL_J0803.5+2046_daily_bin541.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=120.888 yref=20.7678 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 3.50
user 0.38
sys 3.08

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/72010/ft1_filtered_4FGL_J0803.5+2046_daily_bin541.fits scfile=/scratch/kocevski/72010/ft2_4FGL_J0803.5+2046_daily_bin541.fits outfile=/scratch/kocevski/72010/cmap_HighResolution_379555201_379814401_4FGL_J0803.5+2046_daily_bin541.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=120.888 yref=20.7678 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 3.50
user 0.38
sys 3.10

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.2339       1.0000         .10000E-03   10000.    
     2 'norm      '    .59218       1.0000         .10000E-03   10000.    
     3 'norm      '    .81206       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.3111       1.0000         .10000E-03   10000.    
     5 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10999E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.1388       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10941E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    40.952       1.0000         .10000E-03   10000.    
    11 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .23844E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    44.471       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.4338       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .71142       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2313       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=   5945.993     FROM MIGRAD    STATUS=CONVERGED    574 CALLS     2880 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.2349        12.410        .42606E-05   -.10062E-03
   2  norm          .59226        .90430        .25479E-07   -.35680E-04
   3  norm          .80943        1.4834        .49518E-07    .78389E-04
   4  Prefactor     8.3185        11.671        .19945E-06    .68786E-05
   5  norm          .10000E-03    1.7865       -.10693E-06** at limit **
   6  Prefactor     .10000E-03    48.180       -.17971E-05** at limit **
   7  Prefactor     7.1379        11.756        .19882E-05   -.56237E-04
   8  Prefactor     .10002E-03    64.743        .44515E-05** at limit **
   9  Prefactor     .10000E-03    2.4325        .15847E-07** at limit **
  10  Prefactor     40.947        33.023       -.43221E-06   -.53399E-04
  11  norm          .10000E-03    14.515       -.23296E-06** at limit **
  12  Prefactor     .10028E-03    10.105       -.21673E-05** at limit **
  13  Prefactor     .10003E-03    89.722       -.64840E-05** at limit **
  14  norm          .10000E-03    49.360       -.10972E-05** at limit **
  15  Prefactor     .10000E-03    21.417        .46112E-06** at limit **
  16  Prefactor     44.475        34.849        .44566E-06    .59671E-04
  17  Prefactor     .10000E-03    10.342       -.71284E-07** at limit **
  18  Prefactor     .10000E-03    6.1413       -.16921E-07** at limit **
  19  Prefactor     .10000E-03    11.539        .13315E-06** at limit **
  20  norm          4.4337        1.4561        .14158E-07   -.11421E-03
  21  Prefactor     .10000E-03    3.4474        .21492E-07** at limit **
  22  Prefactor     .10000E-03    2.7631        .13607E-07** at limit **
  23  Prefactor     .10002E-03    63.106        .45924E-05** at limit **
  24  Normalizat    .71151        .19469       -.12112E-06    .94104E-04
  25  Prefactor     1.2312        .15205       -.47649E-06    .14849E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.23488
  norm       = 0.592262
  norm       = 0.809428
  Prefactor  = 8.31851
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 7.13787
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  Prefactor  = 40.9474
  norm       = 0.0001
  Prefactor  = 0.000100282
  Prefactor  = 0.000100035
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 44.4751
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.43372
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100016
  Normalizat = 0.711511
  Prefactor  = 1.23121
 **********
 **   18 **HESSE 
 **********

 FCN=   5945.993     FROM HESSE     STATUS=OK           419 CALLS     3299 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.2349        12.684        .80389E-03   -1.5209    
   2  norm          .59226        .90440        .46566E-04   -1.5554    
   3  norm          .80943        1.1735        .10563E-02   -1.5528    
   4  Prefactor     8.3185        10.981        .13906E-03   -1.5131    
   5  norm          .10000E-03    1.8073        .10052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    48.845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.1379        11.820        .75067E-03   -1.5174    
   8  Prefactor     .10002E-03    67.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.5113        .23439E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     40.947        32.993        .62639E-04   -1.4427    
  11  norm          .10000E-03    14.539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10028E-03    54.097        .44711E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10003E-03    95.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    49.542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    21.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     44.475        34.856        .60119E-04   -1.4373    
  17  Prefactor     .10000E-03    10.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.1593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.4337        1.4566        .50929E-04   -1.5287    
  21  Prefactor     .10000E-03    3.4706        .13977E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.7786        .12516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10002E-03    65.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .71151        .21912        .31141E-03   -1.0344    
  25  Prefactor     1.2312        .17284        .19431E-03   -.85376    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.03521e-09
Minuit parameter uncertainties:
  1  12.6897
  2  0.90442
  3  1.17351
  4  10.9832
  5  4.3449e-06
  6  0.000613774
  7  11.824
  8  0.00202646
  9  9.10535e-06
  10  33.0081
  11  1.91147e-05
  12  0.00782015
  13  0.00362954
  14  0.000448859
  15  9.57585e-05
  16  34.8715
  17  1.51615e-05
  18  2.08335e-06
  19  2.40552e-05
  20  1.45656
  21  2.39182e-06
  22  3.46468e-07
  23  0.00206235
  24  0.219392
  25  0.172919
Done.

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

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  1.000e-04  4.489e-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:  1.231e+00  1.729e-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:  7.115e-01  2.194e-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: 3.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.88e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/72010/likelihoodResults_379555201_379814401_4FGL_J0803.5+2046_daily_bin541.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) = 5945.99314075
delta logL = -9.60685365499e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5945.99304685
delta logL = -2.16396165342e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    .13137       1.0000          .0000       5.0000    
     3 'Normalizat'    .71151       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2312       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=   5945.993     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      216 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    15.836        .90712E-02** at limit **
   2  alpha         .13494        2.7036        .49476       -.24681E-05
   3  Normalizat    .71151        .18604        .70367E-01   -.27007E-03
   4  Prefactor     1.2312        .14958        .33931E-01   -.57191E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100016
  alpha      = 0.134936
  Normalizat = 0.711511
  Prefactor  = 1.23121
 **********
 **   18 **HESSE 
 **********

 FCN=   5945.993     FROM HESSE     STATUS=OK            29 CALLS      245 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    15.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         .13494        2.7028        .19791       -1.2407    
   3  Normalizat    .71151        .21035        .31141E-03   -1.0344    
   4  Prefactor     1.2312        .16949        .19431E-03   -.85376    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21865e-09
Minuit parameter uncertainties:
  1  0.00100425
  2  0.810271
  3  0.21059
  4  0.169562
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/72010': 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) = 5945.99304682
delta logL = -2.13585644815e-06

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  1.000e-04  1.004e-03  1.000e-04  1.000e+04 ( 1.000e-13)
274        alpha:  1.349e-01  8.103e-01  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.231e+00  1.696e-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:  7.115e-01  2.106e-01  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/72010/cmap_HighResolution_379555201_379814401_4FGL_J0803.5+2046_daily_bin541.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.88e-05', job_status='DONE', photon_flux_upper_limit='3.57e-08', time_completed='2021-08-28 23:08:23.142318', job_id='72010', GAL2='1.23', fit_tolerance='1e-08', EG2='0.71', EG='0.71', time_epoch_completed='1630217303.14', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='-2.14e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='541' AND source_name='4FGL J0803.5+2046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 23:08:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 72010: <4FGL_J0803.5+2046_daily_bin541> in cluster <slac> Done

Job <4FGL_J0803.5+2046_daily_bin541> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Aug 28 22:55:33 2021
Job was executed on host(s) <bullet0209>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 22:55:34 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:55:34 2021
Terminated at Sat Aug 28 23:08:24 2021
Results reported at Sat Aug 28 23:08:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0803.5+2046_daily_bin541 120.888 20.7678 379555201 379814401 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 :                                   754.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             308.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   769 sec.
    Turnaround time :                            771 sec.

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

