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


Performing analysis on: 4FGL_J0803.5+2046_daily_bin1390
RA = 120.888, Dec = 20.7678
tmin = 599616001, tmax = 599875201
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='75493', job_status='RUN', time_executed='2021-08-28 23:10:30.295381', time_epoch_executed='1630217430.3' WHERE source_name='4FGL J0803.5+2046' and cadence='daily' and bin_id='1390'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/75493

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/75493/ft1_4FGL_J0803.5+2046_daily_bin1390.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/75493/ft2_4FGL_J0803.5+2046_daily_bin1390.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/75493/ft1_4FGL_J0803.5+2046_daily_bin1390.fits outfile=/scratch/kocevski/75493/ft1_filteredMKT_4FGL_J0803.5+2046_daily_bin1390.fits ra=120.888 dec=20.7678 rad=12.0 tmin=599616001.0 tmax=599875201.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 10.60
user 2.29
sys 8.02

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/75493/ft1_filtered_4FGL_J0803.5+2046_daily_bin1390.fits" evtable="EVENTS" scfile=/scratch/kocevski/75493/ft2_4FGL_J0803.5+2046_daily_bin1390.fits sctable="SC_DATA" outfile=/scratch/kocevski/75493/ltcube_599616001_599875201_4FGL_J0803.5+2046_daily_bin1390.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/75493/ft2_4FGL_J0803.5+2046_daily_bin1390.fits
.....................!
real 21.97
user 12.32
sys 9.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/75493/ft1_filtered_4FGL_J0803.5+2046_daily_bin1390.fits evtable="EVENTS" scfile=/scratch/kocevski/75493/ft2_4FGL_J0803.5+2046_daily_bin1390.fits sctable="SC_DATA" expcube=/scratch/kocevski/75493/ltcube_599616001_599875201_4FGL_J0803.5+2046_daily_bin1390.fits outfile=/scratch/kocevski/75493/expmap_599616001_599875201_4FGL_J0803.5+2046_daily_bin1390.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/75493/ltcube_599616001_599875201_4FGL_J0803.5+2046_daily_bin1390.fits
.....................!
real 201.26
user 185.09
sys 15.52

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/75493/ft1_filtered_4FGL_J0803.5+2046_daily_bin1390.fits scfile=/scratch/kocevski/75493/ft2_4FGL_J0803.5+2046_daily_bin1390.fits outfile=/scratch/kocevski/75493/cmap_599616001_599875201_4FGL_J0803.5+2046_daily_bin1390.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 8.15
user 0.38
sys 7.72

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/75493/ft1_filtered_4FGL_J0803.5+2046_daily_bin1390.fits scfile=/scratch/kocevski/75493/ft2_4FGL_J0803.5+2046_daily_bin1390.fits outfile=/scratch/kocevski/75493/cmap_HighResolution_599616001_599875201_4FGL_J0803.5+2046_daily_bin1390.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 8.38
user 0.38
sys 7.89

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.1753       1.0000         .10000E-03   10000.    
     2 'norm      '    .25413E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    .12545E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .90100       1.0000         .10000E-03   10000.    
     5 'norm      '    .16522       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.5432       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.6963       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.404       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .73055E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .23898       1.0000         .10000E-03   10000.    
    11 'norm      '    103.46       1.0000         .10000E-03   10000.    
    12 'Prefactor '    36.628       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.0379       1.0000         .10000E-03   10000.    
    14 'norm      '    10.886       1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.805       1.0000         .10000E-03   10000.    
    16 'Prefactor '    268.34       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .27646E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .62953E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .80593       1.0000         .10000E-03   10000.    
    20 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .24000E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.862       1.0000         .10000E-03   10000.    
    23 'Prefactor '    113.94       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.4986       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=   440.7595     FROM MIGRAD    STATUS=CONVERGED    385 CALLS      556 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.1753        1.0019         .0000         .0000    
   2  norm          .10000E-03    20.866       -.71825E-06** at limit **
   3  norm          .10000E-03    100.19       -.17929E-05** at limit **
   4  Prefactor     .10205E-03    429.10       -.76143E-05** at limit **
   5  norm          .10001E-03    103.76        .11953E-04** at limit **
   6  Prefactor     .21588E-03    731.23        .93936E-05** at limit **
   7  Prefactor     270.18        784.24        .17236E-03   -.22711E-02
   8  Prefactor     1416.0        1752.4        .16995E-03   -.79061E-03
   9  Prefactor     .10000E-03    26.623        .14296E-05** at limit **
  10  Prefactor     .11214E-03    848.30       -.15548E-04** at limit **
  11  norm          160.92        152.43        .76376E-05   -.12663E-02
  12  Prefactor     .10261E-01    140.22       -.97847E-04   -.12810E-01
  13  Prefactor     .40174E-03    619.51       -.11846E-04** at limit **
  14  norm          .27613E-01    8229.1       -.11377E-02    .87797E-03
  15  Prefactor     .12764        114.64        .99266E-04    .68754E-02
  16  Prefactor     306.32        228.19       -.17581E-04    .21372E-01
  17  Prefactor     .10005E-03    129.71       -.18629E-05** at limit **
  18  Prefactor     17.910        86.552       -.85505E-05   -.30929E-03
  19  Prefactor     .10003E-03    216.60        .10066E-04** at limit **
  20  norm          .10000E-03    4.3985        .80353E-06** at limit **
  21  Prefactor     .10000E-03    20.456        .84394E-06** at limit **
  22  Prefactor     15.579        23.687       -.89261E-06   -.19691E-03
  23  Prefactor     128.84        164.25       -.18174E-05   -.36938E-02
  24  Normalizat    .10000E-01    .24044        .36923E-05** at limit **
  25  Prefactor     1.3355        .45604        .13101E-04    .13826E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.17533
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.000102049
  norm       = 0.000100009
  Prefactor  = 0.000215885
  Prefactor  = 270.178
  Prefactor  = 1415.95
  Prefactor  = 0.000100001
  Prefactor  = 0.000112142
  norm       = 160.923
  Prefactor  = 0.0102612
  Prefactor  = 0.000401737
  norm       = 0.0276132
  Prefactor  = 0.127639
  Prefactor  = 306.319
  Prefactor  = 0.00010005
  Prefactor  = 17.9099
  Prefactor  = 0.000100026
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.5787
  Prefactor  = 128.843
  Normalizat = 0.01
  Prefactor  = 1.33555
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   440.7595     FROM HESSE     STATUS=FAILED        11 CALLS      567 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          503.89        495.68         .0000       -1.5136    
   2  norm          .10000E-03    .25004       -.71825E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .20637       -.17929E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10205E-03    .41031       -.76143E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10001E-03    .24097        .11953E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .21588E-03    .55737E-01    .93936E-05   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     270.18        5.5096        .17236E-03   -1.2406    
   8  Prefactor     1416.0        10.340        .16995E-03   -.79922    
   9  Prefactor     .10000E-03    .22005        .14296E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .11214E-03    .25777       -.15548E-04   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          160.92        1.2435        .76376E-05   -1.3164    
  12  Prefactor     .10261E-01    .16688E-01   -.97847E-04   -1.5728    
  13  Prefactor     .40174E-03    .41718E-01   -.11846E-04   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .27613E-01    .50354E-01   -.11377E-02   -1.5675    
  15  Prefactor     .12764        .82459E-01    .99266E-04   -1.5637    
  16  Prefactor     306.32        1.0663       -.17581E-04   -1.2189    
  17  Prefactor     .10005E-03    .20978       -.18629E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     17.910        3.9462       -.85505E-05   -1.4861    
  19  Prefactor     .10003E-03    .38825        .10066E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .20571        .80353E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    .25145        .84394E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     15.579        1.0607       -.89261E-06   -1.4918    
  23  Prefactor     128.84        1.0626       -.18174E-05   -1.3433    
  24  Normalizat    .10000E-01    .25505        .36923E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.3355        .99959        .13101E-04   -.82256    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.49483e-09
Minuit parameter uncertainties:
  1  1.00188
  2  1.08217e-05
  3  3.39113e-05
  4  0.00183396
  5  9.49499e-05
  6  0.00508293
  7  5.50962
  8  10.3399
  9  2.7383e-05
  10  0.00353829
  11  1.24353
  12  0.0166881
  13  0.00709592
  14  0.0503541
  15  0.0824595
  16  1.06635
  17  0.000204992
  18  3.94623
  19  0.000202124
  20  6.46973e-06
  21  7.17794e-06
  22  1.06072
  23  1.06258
  24  1.85459e-06
  25  1.01457
Done.

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

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  2.761e-02  5.035e-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:  1.336e+00  1.015e+00  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.855e-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: 1.34e-06 ph cm-2 s-1
Energy Flux Upper Limit: 7.04e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/75493/likelihoodResults_599616001_599875201_4FGL_J0803.5+2046_daily_bin1390.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) = 440.759546399
delta logL = -3.57704834641e-08

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 440.759544916
delta logL = 1.44684634051e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .15801E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6017       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3355       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   440.7595     FROM MIGRAD    STATUS=FAILED        79 CALLS      256 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10033E-03    8287.1        .18142E-01** at limit **
   2  alpha         3.3462        3.8703        .16478        .11508E-06
   3  Normalizat    .10000E-01    .26598E-02    .62189E-03** at limit **
   4  Prefactor     1.3355        .36535E-01    .20915E-03   -.33293E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   440.7595     FROM SIMPLEX   STATUS=UNCHANGED    161 CALLS      417 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10033E-03    8287.1        .70923E-02** at limit **
   2  alpha         3.3462        3.8703        .10899E-04    .11508E-06
   3  Normalizat    .10000E-01    .26598E-02    .12163E-02** at limit **
   4  Prefactor     1.3355        .36535E-01    .59677E-08   -.33293E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   440.7595     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      456 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .22947E-03    9995.6        .36285E-01** at limit **
   2  alpha         2.2329        2.8635        .50000        .28638E-07
   3  Normalizat    .10000E-01    .13595E-02    .12438E-03** at limit **
   4  Prefactor     1.3355        .26120E-01    .83660E-05   -.32784E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000229472
  alpha      = 2.23287
  Normalizat = 0.01
  Prefactor  = 1.33554
 **********
 **   18 **HESSE 
 **********

 FCN=   440.7595     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      483 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .22947E-03    9987.5        .72569E-02   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2329        3.1786        .20000       -.10705    
   3  Normalizat    .10000E-01    .13580E-01    .24875E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.3355        .82563E-01    .16732E-05   -.82256    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.40172e-07
Minuit parameter uncertainties:
  1  10.8382
  2  23288
  3  2.79289e-09
  4  0.0825715
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/75493': 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) = 440.759544915
delta logL = 1.44801418855e-06

Extracting fit parameters...

4FGL J0803.5+2046
   Spectrum: LogParabola
273         norm:  2.295e-04  1.084e+01  1.000e-04  1.000e+04 ( 1.000e-13)
274        alpha:  2.233e+00  2.329e+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:  1.336e+00  8.257e-02  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  2.793e-09  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/75493/cmap_HighResolution_599616001_599875201_4FGL_J0803.5+2046_daily_bin1390.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.04e-04', job_status='DONE', photon_flux_upper_limit='1.34e-06', time_completed='2021-08-28 23:17:50.775377', job_id='75493', GAL2='1.34', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630217870.78', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='1.34', dlogl='1.45e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1390' AND source_name='4FGL J0803.5+2046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 23:17:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0130>
Subject: Job 75493: <4FGL_J0803.5+2046_daily_bin1390> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0803.5+2046_daily_bin1390 120.888 20.7678 599616001 599875201 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 :                                   556.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   703 sec.
    Turnaround time :                            705 sec.

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

