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


Performing analysis on: 4FGL_J0800.9+4401_daily_bin1263
RA = 120.246, Dec = 44.0181
tmin = 566697601, tmax = 566956801
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='46149', job_status='RUN', time_executed='2021-08-28 21:36:23.461076', time_epoch_executed='1630211783.46' WHERE source_name='4FGL J0800.9+4401' and cadence='daily' and bin_id='1263'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/46149

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/46149/ft1_4FGL_J0800.9+4401_daily_bin1263.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/46149/ft2_4FGL_J0800.9+4401_daily_bin1263.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/46149/ft1_4FGL_J0800.9+4401_daily_bin1263.fits outfile=/scratch/kocevski/46149/ft1_filteredMKT_4FGL_J0800.9+4401_daily_bin1263.fits ra=120.246 dec=44.0181 rad=12.0 tmin=566697601.0 tmax=566956801.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 11.01
user 1.80
sys 9.07

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/46149/ft1_filtered_4FGL_J0800.9+4401_daily_bin1263.fits" evtable="EVENTS" scfile=/scratch/kocevski/46149/ft2_4FGL_J0800.9+4401_daily_bin1263.fits sctable="SC_DATA" outfile=/scratch/kocevski/46149/ltcube_566697601_566956801_4FGL_J0800.9+4401_daily_bin1263.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/46149/ft2_4FGL_J0800.9+4401_daily_bin1263.fits
.....................!
real 23.15
user 12.70
sys 10.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/46149/ft1_filtered_4FGL_J0800.9+4401_daily_bin1263.fits evtable="EVENTS" scfile=/scratch/kocevski/46149/ft2_4FGL_J0800.9+4401_daily_bin1263.fits sctable="SC_DATA" expcube=/scratch/kocevski/46149/ltcube_566697601_566956801_4FGL_J0800.9+4401_daily_bin1263.fits outfile=/scratch/kocevski/46149/expmap_566697601_566956801_4FGL_J0800.9+4401_daily_bin1263.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/46149/ltcube_566697601_566956801_4FGL_J0800.9+4401_daily_bin1263.fits
.....................!
real 204.01
user 187.65
sys 15.91

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/46149/ft1_filtered_4FGL_J0800.9+4401_daily_bin1263.fits scfile=/scratch/kocevski/46149/ft2_4FGL_J0800.9+4401_daily_bin1263.fits outfile=/scratch/kocevski/46149/cmap_566697601_566956801_4FGL_J0800.9+4401_daily_bin1263.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 10.47
user 0.38
sys 9.80

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/46149/ft1_filtered_4FGL_J0800.9+4401_daily_bin1263.fits scfile=/scratch/kocevski/46149/ft2_4FGL_J0800.9+4401_daily_bin1263.fits outfile=/scratch/kocevski/46149/cmap_HighResolution_566697601_566956801_4FGL_J0800.9+4401_daily_bin1263.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 8.80
user 0.39
sys 8.00

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/46149/ft1_filtered_4FGL_J0800.9+4401_daily_bin1263.fits evtable="EVENTS" scfile=/scratch/kocevski/46149/ft2_4FGL_J0800.9+4401_daily_bin1263.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/46149/Model_4FGL_J0800.9+4401_daily_bin1263.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/46149/ft1_filtered_4FGL_J0800.9+4401_daily_bin1263.fits....................................!
real 30.07
user 15.52
sys 12.63

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/46149/ft1_filtered_4FGL_J0800.9+4401_daily_bin1263.fits', '/scratch/kocevski/46149/ft2_4FGL_J0800.9+4401_daily_bin1263.fits', expMap='/scratch/kocevski/46149/expmap_566697601_566956801_4FGL_J0800.9+4401_daily_bin1263.fits', expCube='/scratch/kocevski/46149/ltcube_566697601_566956801_4FGL_J0800.9+4401_daily_bin1263.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/46149/Model_4FGL_J0800.9+4401_daily_bin1263.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/46149/ft1_filtered_4FGL_J0800.9+4401_daily_bin1263.fits
Spacecraft file(s): /scratch/kocevski/46149/ft2_4FGL_J0800.9+4401_daily_bin1263.fits
Exposure map: /scratch/kocevski/46149/expmap_566697601_566956801_4FGL_J0800.9+4401_daily_bin1263.fits
Exposure cube: /scratch/kocevski/46149/ltcube_566697601_566956801_4FGL_J0800.9+4401_daily_bin1263.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/46149/Model_4FGL_J0800.9+4401_daily_bin1263.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) = 431.630078795

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     2 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     4 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     5 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .26083E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     8 'norm      '    10000.       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .16207E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10266E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    63.499       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11081E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12058E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    45.438       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    34.570       1.0000         .10000E-03   10000.    
    25 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .41039       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .56580       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=   416.8151     FROM MIGRAD    STATUS=CONVERGED    657 CALLS     4091 TOTAL
                     EDM=   .36E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10000.        8204.4        .14735E-02** at limit **
   2  norm          10000.        9916.8        .95340E-03** at limit **
   3  Prefactor    10000.0        8479.2        .17859E-02** at limit **
   4  Prefactor     10000.        8773.4        .11323E-02** at limit **
   5  norm          10000.        8752.0        .45006E-03** at limit **
   6  Prefactor     .10000E-03    1091.4       -.59918E-04** at limit **
   7  Prefactor    10000.0        8917.2        .18145E-02** at limit **
   8  norm          10000.        620.25        .21092E-03** at limit **
   9  Prefactor     .10000E-03    2019.8       -.12702E-02** at limit **
  10  Prefactor     .10000E-03    653.55       -.26514E-03** at limit **
  11  norm          .10000E-03    79.640       -.38697E-04** at limit **
  12  norm          .10000E-03    131.80       -.10253E-04** at limit **
  13  Prefactor     63.507        157.81        .86543E-05    .12551E-04
  14  Prefactor     .10000E-03    342.45        .29257E-03** at limit **
  15  Prefactor     .10000E-03    55.349       -.10031E-04** at limit **
  16  norm          .10000E-03    60.621        .66168E-04** at limit **
  17  norm          .10000E-03    18.400       -.66439E-06** at limit **
  18  norm          .10000E-03    1.8168       -.22300E-06** at limit **
  19  Prefactor     .10000E-03    30.088       -.84273E-06** at limit **
  20  Prefactor     .10000E-03    6.1606       -.65734E-06** at limit **
  21  Prefactor     .10000E-03    54.698       -.28748E-04** at limit **
  22  Prefactor     45.445        48.397       -.13520E-06    .49430E-04
  23  Prefactor     .10000E-03    10.750       -.40887E-06** at limit **
  24  norm          34.576        25.438        .10957E-06    .14818E-04
  25  norm          .10000E-03    8.1747       -.16942E-06** at limit **
  26  Prefactor     .10000E-03    3.1812       -.17972E-06** at limit **
  27  Normalizat    .41022        .52741        .35001E-05    .30965E-04
  28  Prefactor     .56580        .47242       -.88563E-06    .39699E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10000
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 0.0001
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 63.5071
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.4452
  Prefactor  = 0.0001
  norm       = 34.5765
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.410218
  Prefactor  = 0.565796
 **********
 **   18 **HESSE 
 **********

 FCN=   416.8151     FROM HESSE     STATUS=OK           495 CALLS     4586 TOTAL
                     EDM=   .67E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10000.        8204.5        .19005E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          10000.        9916.8        .19973E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor    10000.0        8479.2        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10000.        8773.5        .19669E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          10000.        8752.0        .20959E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1091.4        .21448E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor    10000.0        8917.2        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          10000.        620.26        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2019.8        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    653.55        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    79.642        .17827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    131.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     63.507        156.82        .50358E-04   -1.4112    
  14  Prefactor     .10000E-03    342.41        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    55.416        .14842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    60.622        .15548E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    18.403        .85599E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.8197        .26683E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    30.096        .10947E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.1711        .49491E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    54.701        .14767E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     45.445        48.362        .59479E-04   -1.4359    
  23  Prefactor     .10000E-03    10.750        .65419E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          34.576        25.431        .68156E-04   -1.4531    
  25  norm          .10000E-03    8.1790        .57040E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    3.2085        .35562E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .41022        .57036        .32119E-03   -1.1678    
  28  Prefactor     .56580        .51496        .24095E-03   -1.0905    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.66129e-11
Minuit parameter uncertainties:
  1  0.000300581
  2  0.000133293
  3  0.00123256
  4  0.000223534
  5  6.02472e-05
  6  7.26412e-05
  7  0.000232884
  8  3.01074e-05
  9  0.00026481
  10  0.000243326
  11  7.58069e-06
  12  3.54e-05
  13  157.853
  14  0.000208239
  15  0.000189832
  16  1.13209e-06
  17  1.26879e-06
  18  1.99707e-05
  19  1.96492e-05
  20  7.48942e-06
  21  1.50397e-05
  22  48.4033
  23  4.61004e-07
  24  25.4386
  25  2.41017e-06
  26  2.81754e-06
  27  0.578745
  28  0.519325
Done.

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

Extracting fit parameters...

4FGL J0800.9+4401
   Spectrum: PowerLaw
278    Prefactor:  6.351e+01  1.579e+02  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:  5.658e-01  5.193e-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:  4.102e-01  5.787e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.23
Ra Dec: 120.246 44.018
Photon Flux Upper Limit: 2.12e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.61e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/46149/likelihoodResults_566697601_566956801_4FGL_J0800.9+4401_daily_bin1263.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) = 416.802490209
delta logL = 0.0125767687824

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 416.127445021
delta logL = 0.687621956708

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    8.5828       1.0000          .0000       10.000    
     3 'Normalizat'    .10154E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82283       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.

 FCN=   416.1274     FROM MIGRAD    STATUS=CONVERGED    425 CALLS      908 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .13744E-02    .15980E-03** at limit **
   2  Index         8.5828        1.0207        .46039E-01    .24271E-04
   3  Normalizat    .10000E-01    6.5447        .19580    ** at limit **
   4  Prefactor     .82208        .51143        .44014E-01   -.68110E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 8.58278
  Normalizat = 0.01
  Prefactor  = 0.822078
 **********
 **   18 **HESSE 
 **********

 FCN=   416.1274     FROM HESSE     STATUS=OK            37 CALLS      945 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .26470E-02    .51400E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.5828        .37485        .20285E-03   -10.224    
   3  Normalizat    .10000E-01    6.8553        .14902       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .82208        .45008        .20392E-03   -2.1524    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30295e-10
Minuit parameter uncertainties:
  1  1.75871e-08
  2  0.375578
  3  0.0002906
  4  0.452117
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/46149': 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) = 416.127427035
delta logL = 0.68763994251

Extracting fit parameters...

4FGL J0800.9+4401
   Spectrum: PowerLaw
278    Prefactor:  1.000e-04  1.759e-08  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  8.583e+00  3.756e-01  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:  8.221e-01  4.521e-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.000e-02  2.906e-04  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.18
Ra Dec: 120.246 44.018
Photon Index (Free Index): 8.58 +/- 0.38
Photon Flux (Free Index): 2.92e-06 +/- 2.83e-06
Energy Flux (Free Index): 3.34e-04 +/- 3.23e-04

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/46149/cmap_HighResolution_566697601_566956801_4FGL_J0800.9+4401_daily_bin1263.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.61e-01', comment='SUCCESS', energy_flux2='3.34e-04', dlogl='6.88e-01', photon_flux2='2.92e-06', job_status='DONE', time_completed='2021-08-28 21:45:20.317434', photon_index_error2='0.38', photon_index2='8.58', ts='0.23', fit_tolerance='1e-08', GAL='0.57', photon_index_error='0.00', photon_flux_upper_limit='2.12e-06', energy_flux_error2='3.23e-04', EG='0.41', time_epoch_completed='1630212320.32', return_code='0', job_id='46149', GAL2='0.82', EG2='0.01', return_code2='0', photon_flux_error2='2.83e-06', ts2='2.18', photon_index='2.17' WHERE bin_id='1263' AND source_name='4FGL J0800.9+4401' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 21:45:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 46149: <4FGL_J0800.9+4401_daily_bin1263> in cluster <slac> Done

Job <4FGL_J0800.9+4401_daily_bin1263> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Aug 28 21:30:37 2021
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 21:30:38 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:30:38 2021
Terminated at Sat Aug 28 21:45:22 2021
Results reported at Sat Aug 28 21:45:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0800.9+4401_daily_bin1263 120.246 44.0181 566697601 566956801 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 :                                   638.11 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             182.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   883 sec.
    Turnaround time :                            885 sec.

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

