/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 157 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_J0800.9+4401_daily_bin1390
RA = 120.246, Dec = 44.0181
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='47580', job_status='RUN', time_executed='2021-08-28 21:38:55.537510', time_epoch_executed='1630211935.54' WHERE source_name='4FGL J0800.9+4401' and cadence='daily' and bin_id='1390'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/47580

Creating custom pfile directory:
/scratch/kocevski/47580/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/47580/ft1_4FGL_J0800.9+4401_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/47580/ft2_4FGL_J0800.9+4401_daily_bin1390.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/47580/ft1_4FGL_J0800.9+4401_daily_bin1390.fits outfile=/scratch/kocevski/47580/ft1_filteredMKT_4FGL_J0800.9+4401_daily_bin1390.fits ra=120.246 dec=44.0181 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 5.60
user 2.31
sys 3.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/47580/ft2_4FGL_J0800.9+4401_daily_bin1390.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/47580/ft2_4FGL_J0800.9+4401_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/47580/ft1_filteredMKT_4FGL_J0800.9+4401_daily_bin1390.fits evtable="EVENTS" outfile="/scratch/kocevski/47580/ft1_filtered_4FGL_J0800.9+4401_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 3.62
user 0.33
sys 3.23

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/47580/ft1_filtered_4FGL_J0800.9+4401_daily_bin1390.fits" evtable="EVENTS" scfile=/scratch/kocevski/47580/ft2_4FGL_J0800.9+4401_daily_bin1390.fits sctable="SC_DATA" outfile=/scratch/kocevski/47580/ltcube_599616001_599875201_4FGL_J0800.9+4401_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/47580/ft2_4FGL_J0800.9+4401_daily_bin1390.fits
.....................!
real 15.71
user 11.90
sys 3.76

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/47580/ft1_filtered_4FGL_J0800.9+4401_daily_bin1390.fits evtable="EVENTS" scfile=/scratch/kocevski/47580/ft2_4FGL_J0800.9+4401_daily_bin1390.fits sctable="SC_DATA" expcube=/scratch/kocevski/47580/ltcube_599616001_599875201_4FGL_J0800.9+4401_daily_bin1390.fits outfile=/scratch/kocevski/47580/expmap_599616001_599875201_4FGL_J0800.9+4401_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/47580/ltcube_599616001_599875201_4FGL_J0800.9+4401_daily_bin1390.fits
.....................!
real 194.12
user 184.11
sys 9.67

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 206 point sources and 0 extended sources

Setting source of interest to:
4FGL J0800.9+4401 @ 120.246 44.0181

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/47580/ft1_filtered_4FGL_J0800.9+4401_daily_bin1390.fits scfile=/scratch/kocevski/47580/ft2_4FGL_J0800.9+4401_daily_bin1390.fits outfile=/scratch/kocevski/47580/cmap_599616001_599875201_4FGL_J0800.9+4401_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.246 yref=44.0181 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.24
user 0.38
sys 2.84

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/47580/ft1_filtered_4FGL_J0800.9+4401_daily_bin1390.fits scfile=/scratch/kocevski/47580/ft2_4FGL_J0800.9+4401_daily_bin1390.fits outfile=/scratch/kocevski/47580/cmap_HighResolution_599616001_599875201_4FGL_J0800.9+4401_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.246 yref=44.0181 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.70
user 0.39
sys 3.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/47580/ft1_filtered_4FGL_J0800.9+4401_daily_bin1390.fits evtable="EVENTS" scfile=/scratch/kocevski/47580/ft2_4FGL_J0800.9+4401_daily_bin1390.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/47580/Model_4FGL_J0800.9+4401_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/47580/ft1_filtered_4FGL_J0800.9+4401_daily_bin1390.fits.......................!
real 28.09
user 22.70
sys 5.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/47580/ft1_filtered_4FGL_J0800.9+4401_daily_bin1390.fits', '/scratch/kocevski/47580/ft2_4FGL_J0800.9+4401_daily_bin1390.fits', expMap='/scratch/kocevski/47580/expmap_599616001_599875201_4FGL_J0800.9+4401_daily_bin1390.fits', expCube='/scratch/kocevski/47580/ltcube_599616001_599875201_4FGL_J0800.9+4401_daily_bin1390.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/47580/Model_4FGL_J0800.9+4401_daily_bin1390.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0800.9+4401'

4FGL J0800.9+4401
   Spectrum: PowerLaw
278    Prefactor:  1.350e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  2.172e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
280        Scale:  1.600e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/47580/ft1_filtered_4FGL_J0800.9+4401_daily_bin1390.fits
Spacecraft file(s): /scratch/kocevski/47580/ft2_4FGL_J0800.9+4401_daily_bin1390.fits
Exposure map: /scratch/kocevski/47580/expmap_599616001_599875201_4FGL_J0800.9+4401_daily_bin1390.fits
Exposure cube: /scratch/kocevski/47580/ltcube_599616001_599875201_4FGL_J0800.9+4401_daily_bin1390.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/47580/Model_4FGL_J0800.9+4401_daily_bin1390.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) = 1389.45305123

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10123E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    177.57       1.0000         .10000E-03   10000.    
     5 'norm      '    16.408       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10886E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.9730       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11833E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10218E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.8574       1.0000         .10000E-03   10000.    
    17 'norm      '    5.7921       1.0000         .10000E-03   10000.    
    18 'norm      '    .95996       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11931E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.1326       1.0000         .10000E-03   10000.    
    24 'norm      '    2.9051       1.0000         .10000E-03   10000.    
    25 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .19829E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1859       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.2596       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6590E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1389.446     FROM MIGRAD    STATUS=CONVERGED    682 CALLS     3400 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    151.10        .19751E-06** at limit **
   2  norm          .10000E-03    28.074        .50936E-06** at limit **
   3  Prefactor     .10000E-03    52.116        .13479E-05** at limit **
   4  Prefactor     177.46        153.77        .33025E-05    .11956E-04
   5  norm          16.599        160.40       -.14409E-04   -.19971E-04
   6  Prefactor     .10000E-03    170.38        .17607E-05** at limit **
   7  Prefactor     .10000E-03    123.31       -.16954E-05** at limit **
   8  norm          1.9731        2.3660        .37078E-07   -.11953E-05
   9  Prefactor     .10000E-03    70.651        .38395E-06** at limit **
  10  Prefactor     .10000E-03    56.427        .10112E-05** at limit **
  11  norm          .10000E-03    79.918       -.11514E-06** at limit **
  12  norm          .10000E-03    7.2650       -.82594E-07** at limit **
  13  Prefactor     .10000E-03    20.258       -.46328E-07** at limit **
  14  Prefactor     .10000E-03    87.952       -.78834E-06** at limit **
  15  Prefactor     .10000E-03    15.152        .21413E-06** at limit **
  16  norm          2.8580        8.1866        .95700E-07   -.76094E-06
  17  norm          5.7921        4.4514        .19550E-07    .70622E-06
  18  norm          .95999        1.1124        .18617E-07   -.53343E-05
  19  Prefactor     .10000E-03    39.407       -.11578E-05** at limit **
  20  Prefactor     .10000E-03    7.5370       -.11904E-06** at limit **
  21  Prefactor     .10000E-03    85.325       -.70579E-06** at limit **
  22  Prefactor     .10000E-03    13.136       -.39050E-07** at limit **
  23  Prefactor     3.1335        11.815        .77585E-06    .17493E-04
  24  norm          2.9088        11.403        .37763E-06   -.39596E-04
  25  norm          .10000E-03    4.3984        .18566E-06** at limit **
  26  Prefactor     .10000E-03    8.6919        .12802E-05** at limit **
  27  Normalizat    1.1865        .49569        .28392E-05   -.58892E-04
  28  Prefactor     1.2591        .40247       -.20957E-05   -.37735E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 177.465
  norm       = 16.5989
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.97305
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.85803
  norm       = 5.79208
  norm       = 0.959985
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.13355
  norm       = 2.90885
  norm       = 0.0001
  Prefactor  = 0.000100005
  Normalizat = 1.18652
  Prefactor  = 1.25911
 **********
 **   18 **HESSE 
 **********

 FCN=   1389.446     FROM HESSE     STATUS=OK           505 CALLS     3905 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    151.06        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    28.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    52.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     177.46        154.14        .15144E-03   -1.3036    
   5  norm          16.599        167.27        .98876E-04   -1.4893    
   6  Prefactor     .10000E-03    170.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    123.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.9731        2.3539        .60268E-04   -1.5427    
   9  Prefactor     .10000E-03    71.010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    56.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    79.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    7.3045        .98108E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    20.272        .16391E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    87.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.238        .14173E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.8580        8.1502        .16653E-03   -1.5370    
  17  norm          5.7921        4.4450        .64258E-04   -1.5227    
  18  norm          .95999        1.1091        .41021E-04   -1.5512    
  19  Prefactor     .10000E-03    39.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.6025        .99916E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    85.452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    13.145        .13197E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.1335        11.795        .11453E-02   -1.5354    
  24  norm          2.9088        11.501        .11784E-02   -1.5367    
  25  norm          .10000E-03    4.4027        .76361E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    15.577        .19641E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.1865        .56013        .32641E-03   -.87020    
  28  Prefactor     1.2591        .46039        .25238E-03   -.84531    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.92487e-10
Minuit parameter uncertainties:
  1  0.000103212
  2  5.10423e-05
  3  0.000218015
  4  154.491
  5  105.769
  6  0.000177854
  7  0.000131715
  8  2.35403
  9  3.38951e-05
  10  9.51411e-05
  11  5.89831e-06
  12  1.12211e-07
  13  2.89414e-06
  14  4.73478e-05
  15  5.64518e-06
  16  8.15339
  17  4.44527
  18  1.10915
  19  5.97201e-05
  20  6.87295e-06
  21  8.3004e-05
  22  6.79637e-06
  23  11.8037
  24  11.5094
  25  2.08058e-06
  26  0.000556361
  27  0.562994
  28  0.461881
Done.

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

Extracting fit parameters...

4FGL J0800.9+4401
   Spectrum: PowerLaw
278    Prefactor:  1.000e-04  2.894e-06  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  2.172e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
280        Scale:  1.600e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
656    Prefactor:  1.259e+00  4.619e-01  0.000e+00  1.000e+01 ( 1.000e+00)
657        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
658        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
655   Normalization:  1.187e+00  5.630e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 120.246 44.018
Photon Flux Upper Limit: 3.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.32e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/47580/likelihoodResults_599616001_599875201_4FGL_J0800.9+4401_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): 102
logL (Free Index) = 1389.44614195
delta logL = -0.000230347728575

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1389.44591468
delta logL = -3.08254720949e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10777E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4604       1.0000          .0000       10.000    
     3 'Normalizat'    1.1862       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2589       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6590E+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=   1389.446     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      284 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10258E-03    10.362        .14135E-01** at limit **
   2  Index         2.3860        5.2893        .50000        .17950E-04
   3  Normalizat    1.1865        .10411E-01    .32640E-03    .23660E-05
   4  Prefactor     1.2591        .83010E-02    .25239E-03    .40202E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102579
  Index      = 2.38601
  Normalizat = 1.18652
  Prefactor  = 1.25911
 **********
 **   18 **HESSE 
 **********

 FCN=   1389.446     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      313 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10258E-03    125.27        .14510E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3860        7.7782        .50000       -.55013    
   3  Normalizat    1.1865        .36475E-01    .32640E-03   -.87020    
   4  Prefactor     1.2591        .29084E-01    .10096E-04   -.84531    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.77965e-09
Minuit parameter uncertainties:
  1  0.0360249
  2  281.534
  3  0.0364758
  4  0.029084
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/47580': 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) = 1389.44591235
delta logL = -7.53946551413e-07

Extracting fit parameters...

4FGL J0800.9+4401
   Spectrum: PowerLaw
278    Prefactor:  1.026e-04  3.602e-02  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  2.386e+00  2.815e+02  0.000e+00  1.000e+01 (-1.000e+00)
280        Scale:  1.600e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
656    Prefactor:  1.259e+00  2.908e-02  0.000e+00  1.000e+01 ( 1.000e+00)
657        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
658        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
655   Normalization:  1.187e+00  3.648e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 120.246 44.018

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/47580/cmap_HighResolution_599616001_599875201_4FGL_J0800.9+4401_daily_bin1390.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.32e-02', job_status='DONE', photon_flux_upper_limit='3.05e-07', time_completed='2021-08-28 21:47:17.030989', job_id='47580', GAL2='1.26', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1630212437.03', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.26', dlogl='-7.54e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='1390' AND source_name='4FGL J0800.9+4401' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 21:47:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 47580: <4FGL_J0800.9+4401_daily_bin1390> in cluster <slac> Done

Job <4FGL_J0800.9+4401_daily_bin1390> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Aug 28 21:35:17 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 21:35:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 28 21:35:19 2021
Terminated at Sat Aug 28 21:47:17 2021
Results reported at Sat Aug 28 21:47:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0800.9+4401_daily_bin1390 120.246 44.0181 599616001 599875201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0800.9+4401 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   522.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             268.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   718 sec.
    Turnaround time :                            720 sec.

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

