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


Performing analysis on: 4FGL_J0800.9+4401_daily_bin1582
RA = 120.246, Dec = 44.0181
tmin = 649382401, tmax = 649641601
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='47859', job_status='RUN', time_executed='2021-08-28 21:37:46.381783', time_epoch_executed='1630211866.38' WHERE source_name='4FGL J0800.9+4401' and cadence='daily' and bin_id='1582'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/47859

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/47859/ft1_4FGL_J0800.9+4401_daily_bin1582.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/47859/ft2_4FGL_J0800.9+4401_daily_bin1582.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/47859/ft1_4FGL_J0800.9+4401_daily_bin1582.fits outfile=/scratch/kocevski/47859/ft1_filteredMKT_4FGL_J0800.9+4401_daily_bin1582.fits ra=120.246 dec=44.0181 rad=12.0 tmin=649382401.0 tmax=649641601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.20
user 2.51
sys 0.43

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/47859/ft2_4FGL_J0800.9+4401_daily_bin1582.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/47859/ft1_filteredMKT_4FGL_J0800.9+4401_daily_bin1582.fits evtable="EVENTS" outfile="/scratch/kocevski/47859/ft1_filtered_4FGL_J0800.9+4401_daily_bin1582.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 0.75
user 0.32
sys 0.39

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/47859/ft1_filtered_4FGL_J0800.9+4401_daily_bin1582.fits" evtable="EVENTS" scfile=/scratch/kocevski/47859/ft2_4FGL_J0800.9+4401_daily_bin1582.fits sctable="SC_DATA" outfile=/scratch/kocevski/47859/ltcube_649382401_649641601_4FGL_J0800.9+4401_daily_bin1582.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/47859/ft2_4FGL_J0800.9+4401_daily_bin1582.fits
.....................!
real 13.38
user 12.74
sys 0.60

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/47859/ft1_filtered_4FGL_J0800.9+4401_daily_bin1582.fits evtable="EVENTS" scfile=/scratch/kocevski/47859/ft2_4FGL_J0800.9+4401_daily_bin1582.fits sctable="SC_DATA" expcube=/scratch/kocevski/47859/ltcube_649382401_649641601_4FGL_J0800.9+4401_daily_bin1582.fits outfile=/scratch/kocevski/47859/expmap_649382401_649641601_4FGL_J0800.9+4401_daily_bin1582.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/47859/ltcube_649382401_649641601_4FGL_J0800.9+4401_daily_bin1582.fits
.....................!
real 190.44
user 185.75
sys 4.31

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/47859/ft1_filtered_4FGL_J0800.9+4401_daily_bin1582.fits scfile=/scratch/kocevski/47859/ft2_4FGL_J0800.9+4401_daily_bin1582.fits outfile=/scratch/kocevski/47859/cmap_649382401_649641601_4FGL_J0800.9+4401_daily_bin1582.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 0.79
user 0.38
sys 0.37

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/47859/ft1_filtered_4FGL_J0800.9+4401_daily_bin1582.fits scfile=/scratch/kocevski/47859/ft2_4FGL_J0800.9+4401_daily_bin1582.fits outfile=/scratch/kocevski/47859/cmap_HighResolution_649382401_649641601_4FGL_J0800.9+4401_daily_bin1582.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 0.85
user 0.38
sys 0.39

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.101       1.0000         .10000E-03   10000.    
     2 'norm      '    5.8541       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12349E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2034.8       1.0000         .10000E-03   10000.    
     8 'norm      '    7.6002       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1623.4       1.0000         .10000E-03   10000.    
    10 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .17225E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    16 'norm      '    .10102E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10143E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.251       1.0000         .10000E-03   10000.    
    23 'Prefactor '    13.085       1.0000         .10000E-03   10000.    
    24 'norm      '    9.6610       1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.5879       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    28 'Prefactor '    .37229       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6590E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   584.1708     FROM MIGRAD    STATUS=CONVERGED    315 CALLS     3813 TOTAL
                     EDM=   .32E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.102        2.8946         .0000        .12469E-03
   2  norm          5.8507        13.158         .0000       -.23306E-03
   3  Prefactor     .10000E-03    8.4729         .0000    ** at limit **
   4  Prefactor     .10009E-03    68.943         .0000    ** at limit **
   5  norm          .10000E-03    11.101         .0000    ** at limit **
   6  Prefactor     .10047E-03    97.215         .0000    ** at limit **
   7  Prefactor     2034.8        1.0144         .0000        .26959E-03
   8  norm          7.5994        6.5539         .0000        .21557E-03
   9  Prefactor     1623.4        1.0070         .0000        .17459E-03
  10  Prefactor    10000.0        327.60         .0000    ** at limit **
  11  norm          .10029E-03    124.54         .0000    ** at limit **
  12  norm          .10012E-03    49.309         .0000    ** at limit **
  13  Prefactor    10000.0        12.953         .0000    ** at limit **
  14  Prefactor     .10194E-03    311.89         .0000    ** at limit **
  15  Prefactor    10000.0        201.70         .0000    ** at limit **
  16  norm          .10000E-03    4.0702         .0000    ** at limit **
  17  norm          .10000E-03    2.7263         .0000    ** at limit **
  18  norm          .10000E-03    4.7975         .0000    ** at limit **
  19  Prefactor     .10507E-03    127.59         .0000    ** at limit **
  20  Prefactor     .10000E-03    42.652         .0000    ** at limit **
  21  Prefactor     .10001E-03    69.118         .0000    ** at limit **
  22  Prefactor     13.253        1.1164         .0000       -.34630E-04
  23  Prefactor     13.085        11.967         .0000       -.66498E-03
  24  norm          9.6618        9.5833         .0000        .57956E-03
  25  norm          .10000E-03    3.5062         .0000    ** at limit **
  26  Prefactor     2.5884        5.0990         .0000        .11128E-04
  27  Normalizat    .10000E-01    .12837         .0000    ** at limit **
  28  Prefactor     .37231        .18827         .0000        .11750E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 16.1019
  norm       = 5.85068
  Prefactor  = 0.0001
  Prefactor  = 0.000100095
  norm       = 0.0001
  Prefactor  = 0.000100465
  Prefactor  = 2034.84
  norm       = 7.5994
  Prefactor  = 1623.45
  Prefactor  = 10000
  norm       = 0.000100294
  norm       = 0.000100118
  Prefactor  = 10000
  Prefactor  = 0.000101935
  Prefactor  = 10000
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000105065
  Prefactor  = 0.000100001
  Prefactor  = 0.000100008
  Prefactor  = 13.2535
  Prefactor  = 13.085
  norm       = 9.6618
  norm       = 0.0001
  Prefactor  = 2.58836
  Normalizat = 0.01
  Prefactor  = 0.372305
 **********
 **   18 **HESSE 
 **********

 FCN=   584.1708     FROM HESSE     STATUS=OK           563 CALLS     4376 TOTAL
                     EDM=   .37E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.102        13.605        .24953E-02   -1.4905    
   2  norm          5.8507        13.830        .41496E-02   -1.5224    
   3  Prefactor     .10000E-03    8.4722        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10009E-03    121.28        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    11.101        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10047E-03    102.58        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2034.8        6001.7        .24839E-03   -.63482    
   8  norm          7.5994        6.7839        .36367E-02   -1.5157    
   9  Prefactor     1623.4        2036.3        .27117E-03   -.74139    
  10  Prefactor    10000.0        1045.7        .90712E-02    1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10029E-03    270.79        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10012E-03    117.45        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor    10000.0        985.41        .10576E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10194E-03    803.20        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor    10000.0        486.44        .90712E-02    1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.0700        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.7255        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.7974        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10507E-03    248.23        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    42.654        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    69.175        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     13.253        31.645        .27509E-02   -1.4980    
  23  Prefactor     13.085        12.180        .27683E-02   -1.4984    
  24  norm          9.6618        9.5904        .32232E-02   -1.5086    
  25  norm          .10000E-03    3.5056        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     2.5884        5.1273        .63415E-02   -1.5386    
  27  Normalizat    .10000E-01    .12738        .12122       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .37231        .20267        .37851E-01   -1.1825    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.71171e-07
Minuit parameter uncertainties:
  1  13.6072
  2  13.8379
  3  5.40845e-05
  4  0.00679713
  5  8.87362e-06
  6  0.0138394
  7  4220.04
  8  6.78462
  9  2157.23
  10  0.799114
  11  0.0179322
  12  0.00746212
  13  0.0224787
  14  0.0799496
  15  0.378934
  16  5.47121e-07
  17  9.70166e-06
  18  2.1253e-06
  19  0.0712156
  20  0.000415329
  21  0.00144602
  22  31.6846
  23  12.1827
  24  9.59189
  25  2.69255e-05
  26  5.12813
  27  1.5982e-06
  28  0.203056
Done.

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

Extracting fit parameters...

4FGL J0800.9+4401
   Spectrum: PowerLaw
278    Prefactor:  1.000e+04  2.248e-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:  3.723e-01  2.031e-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  1.598e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.78
Ra Dec: 120.246 44.018
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 3.52e-05 +/- 7.91e-11
Energy Flux (Fixed Index): 1.67e-02 +/- 3.75e-08

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) = 557.793240317
delta logL = 26.3775966769

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 557.788949953
delta logL = 26.3818870413

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4057       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .16451       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=   554.4345     FROM MIGRAD    STATUS=CONVERGED    172 CALLS      321 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     577.99        1660.5        .18162E-01   -.13661E-03
   2  Index         4.6354        1.3177        .42373E-03   -.48813E-03
   3  Normalizat    .10000E-01    .81237E-01    .42222E-03** at limit **
   4  Prefactor     .27312        .17318        .24280E-02    .86114E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 577.985
  Index      = 4.6354
  Normalizat = 0.01
  Prefactor  = 0.273121
 **********
 **   18 **HESSE 
 **********

 FCN=   554.4345     FROM HESSE     STATUS=OK            23 CALLS      344 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     577.99        833.51        .11602E-03   -1.0852    
   2  Index         4.6354        .61347        .16949E-04   -.72985E-01
   3  Normalizat    .10000E-01    .83111E-01    .84443E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .27312        .16027        .97120E-04   -1.2387    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.06469e-10
Minuit parameter uncertainties:
  1  852.332
  2  0.615029
  3  2.31185e-06
  4  0.160525
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/47859': 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) = 554.434506553
delta logL = 29.7363304413

Extracting fit parameters...

4FGL J0800.9+4401
   Spectrum: PowerLaw
278    Prefactor:  5.780e+02  8.523e+02  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  4.635e+00  6.150e-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:  2.731e-01  1.605e-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.312e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 73.27
Ra Dec: 120.246 44.018
Photon Index (Free Index): 4.64 +/- 0.62
Photon Flux (Free Index): 6.10e-04 +/- 1.32e-04
Energy Flux (Free Index): 8.39e-02 +/- 1.72e-02

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/47859/cmap_HighResolution_649382401_649641601_4FGL_J0800.9+4401_daily_bin1582.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.52e-05', energy_flux2='8.39e-02', photon_flux_error='7.91e-11', dlogl='2.97e+01', energy_flux='1.67e-02', photon_flux2='6.10e-04', job_status='DONE', time_completed='2021-08-28 21:44:21.243198', photon_index_error2='0.62', photon_index2='4.64', ts='12.78', fit_tolerance='1e-08', GAL='0.37', photon_index_error='0.00', energy_flux_error2='1.72e-02', EG='0.01', time_epoch_completed='1630212261.24', return_code='0', job_id='47859', GAL2='0.27', EG2='0.01', return_code2='0', energy_flux_error='3.75e-08', photon_flux_error2='1.32e-04', ts2='73.27', photon_index='2.17' WHERE bin_id='1582' AND source_name='4FGL J0800.9+4401' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 21:44:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 47859: <4FGL_J0800.9+4401_daily_bin1582> in cluster <slac> Done

Job <4FGL_J0800.9+4401_daily_bin1582> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Aug 28 21:35:35 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 21:35:35 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:35 2021
Terminated at Sat Aug 28 21:44:22 2021
Results reported at Sat Aug 28 21:44:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0800.9+4401_daily_bin1582 120.246 44.0181 649382401 649641601 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 :                                   383.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             235.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   526 sec.
    Turnaround time :                            527 sec.

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

