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


Performing analysis on: 4FGL_J0800.9+4401_daily_bin1336
RA = 120.246, Dec = 44.0181
tmin = 585619201, tmax = 585878401
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='46263', job_status='RUN', time_executed='2021-08-28 21:34:12.154103', time_epoch_executed='1630211652.15' WHERE source_name='4FGL J0800.9+4401' and cadence='daily' and bin_id='1336'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/46263

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/46263/ft1_4FGL_J0800.9+4401_daily_bin1336.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/46263/ft2_4FGL_J0800.9+4401_daily_bin1336.fits


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

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

Done.
real 6.52
user 2.46
sys 4.01

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/46263/ft2_4FGL_J0800.9+4401_daily_bin1336.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/46263/ft1_filteredMKT_4FGL_J0800.9+4401_daily_bin1336.fits evtable="EVENTS" outfile="/scratch/kocevski/46263/ft1_filtered_4FGL_J0800.9+4401_daily_bin1336.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 4.62
user 0.31
sys 4.28

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/46263/ft1_filtered_4FGL_J0800.9+4401_daily_bin1336.fits" evtable="EVENTS" scfile=/scratch/kocevski/46263/ft2_4FGL_J0800.9+4401_daily_bin1336.fits sctable="SC_DATA" outfile=/scratch/kocevski/46263/ltcube_585619201_585878401_4FGL_J0800.9+4401_daily_bin1336.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/46263/ft2_4FGL_J0800.9+4401_daily_bin1336.fits
.....................!
real 16.98
user 12.19
sys 4.74

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/46263/ft1_filtered_4FGL_J0800.9+4401_daily_bin1336.fits evtable="EVENTS" scfile=/scratch/kocevski/46263/ft2_4FGL_J0800.9+4401_daily_bin1336.fits sctable="SC_DATA" expcube=/scratch/kocevski/46263/ltcube_585619201_585878401_4FGL_J0800.9+4401_daily_bin1336.fits outfile=/scratch/kocevski/46263/expmap_585619201_585878401_4FGL_J0800.9+4401_daily_bin1336.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/46263/ltcube_585619201_585878401_4FGL_J0800.9+4401_daily_bin1336.fits
.....................!
real 196.85
user 186.92
sys 9.27

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/46263/ft1_filtered_4FGL_J0800.9+4401_daily_bin1336.fits scfile=/scratch/kocevski/46263/ft2_4FGL_J0800.9+4401_daily_bin1336.fits outfile=/scratch/kocevski/46263/cmap_585619201_585878401_4FGL_J0800.9+4401_daily_bin1336.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 4.42
user 0.37
sys 4.00

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/46263/ft1_filtered_4FGL_J0800.9+4401_daily_bin1336.fits scfile=/scratch/kocevski/46263/ft2_4FGL_J0800.9+4401_daily_bin1336.fits outfile=/scratch/kocevski/46263/cmap_HighResolution_585619201_585878401_4FGL_J0800.9+4401_daily_bin1336.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 4.05
user 0.39
sys 3.64

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.7404       1.0000         .10000E-03   10000.    
     2 'norm      '    9998.6       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2583.9       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.0941       1.0000         .10000E-03   10000.    
     5 'norm      '    7.6078       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.5726       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .36519E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .16735E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.6753       1.0000         .10000E-03   10000.    
    12 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .72786E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11797E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.346       1.0000         .10000E-03   10000.    
    16 'norm      '    7.5180       1.0000         .10000E-03   10000.    
    17 'norm      '    3.0659       1.0000         .10000E-03   10000.    
    18 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.433       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.3523       1.0000         .10000E-03   10000.    
    21 'Prefactor '    64.483       1.0000         .10000E-03   10000.    
    22 'Prefactor '    26.123       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.5745       1.0000         .10000E-03   10000.    
    24 'norm      '    17.952       1.0000         .10000E-03   10000.    
    25 'norm      '    .57320E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.1109       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .17776       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .92816       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=   1027.597     FROM MIGRAD    STATUS=CONVERGED    272 CALLS     3268 TOTAL
                     EDM=   .85E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .19424E-02    305.07         .0000    ** at limit **
   2  norm         10000.0        968.25         .0000    ** at limit **
   3  Prefactor     2582.0        60.724         .0000        .35743E-01
   4  Prefactor     .10000E-03    246.95         .0000    ** at limit **
   5  norm          .20296        7031.9         .0000        .32764E-02
   6  Prefactor     .62432        7203.2         .0000       -.38422E-02
   7  Prefactor     .10000E-03    59.490         .0000    ** at limit **
   8  norm          .10000E-03    2.6902         .0000    ** at limit **
   9  Prefactor     .10000E-03    10.022         .0000    ** at limit **
  10  Prefactor     .10001E-03    35.335         .0000    ** at limit **
  11  norm          .12144E-01    665.29         .0000        .70745E-02
  12  norm          .10000E-03    3.1082         .0000    ** at limit **
  13  Prefactor     .10000E-03    16.493         .0000    ** at limit **
  14  Prefactor     .10000E-03    41.846         .0000    ** at limit **
  15  Prefactor     15.543        25.678         .0000       -.57267E-04
  16  norm          7.5586        6.8112         .0000        .53545E-03
  17  norm          3.0663        2.9368         .0000        .28620E-03
  18  norm          .10000E-03    1.5753         .0000    ** at limit **
  19  Prefactor     10.017        121.98         .0000        .26190E-02
  20  Prefactor     9.5122        13.910         .0000        .36559E-03
  21  Prefactor     70.570        96.350         .0000       -.15446E-01
  22  Prefactor     25.787        24.535         .0000        .32988E-03
  23  Prefactor     1.3707        28.772         .0000       -.15698E-03
  24  norm          18.045        11.878         .0000        .44190E-04
  25  norm          .10000E-03    4.2323         .0000    ** at limit **
  26  Prefactor     4.0747        4.9673         .0000        .48628E-03
  27  Normalizat    .17462        .53051         .0000        .14035E-03
  28  Prefactor     .92937        .43078         .0000        .35873E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00194238
  norm       = 10000
  Prefactor  = 2582.03
  Prefactor  = 0.000100002
  norm       = 0.202964
  Prefactor  = 0.624319
  Prefactor  = 0.000100005
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100007
  norm       = 0.0121435
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.5433
  norm       = 7.55861
  norm       = 3.06627
  norm       = 0.0001
  Prefactor  = 10.0172
  Prefactor  = 9.51224
  Prefactor  = 70.5704
  Prefactor  = 25.7869
  Prefactor  = 1.37069
  norm       = 18.0451
  norm       = 0.0001
  Prefactor  = 4.07471
  Normalizat = 0.174621
  Prefactor  = 0.929368
 **********
 **   18 **HESSE 
 **********

 FCN=   1027.597     FROM HESSE     STATUS=OK           573 CALLS     3841 TOTAL
                     EDM=   .12E-02    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .19424E-02    318.65        .38638E-02   -1.5717    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm         10000.0        965.47        .90774E-02    1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2582.0        3530.9        .22844E-03   -.50476    
   4  Prefactor     .10000E-03    247.01        .11405E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .20296        7695.3        .36348E-02   -1.5618    
   6  Prefactor     .62432        8638.2        .84734E-02   -1.5866    
   7  Prefactor     .10000E-03    59.520        .98025E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.1933        .19990E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.062        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    35.339        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .12144E-01    755.67        .62287E-02   -1.5686    
  12  norm          .10000E-03    3.1120        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    16.485        .93180E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    41.880        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     15.543        26.022        .25560E-02   -1.4919    
  16  norm          7.5586        6.8132        .36566E-02   -1.5158    
  17  norm          3.0663        2.9462        .57918E-02   -1.5358    
  18  norm          .10000E-03    1.5504        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.017        126.37        .28401E-02   -1.5075    
  20  Prefactor     9.5122        15.158        .32762E-02   -1.5091    
  21  Prefactor     70.570        114.00        .12494E-02   -1.4026    
  22  Prefactor     25.787        25.023        .19595E-02   -1.4692    
  23  Prefactor     1.3707        60.371        .84666E-02   -1.5474    
  24  norm          18.045        13.550        .23632E-02   -1.4858    
  25  norm          .10000E-03    4.2311        .10544E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     4.0747        5.9703        .49706E-02   -1.5304    
  27  Normalizat    .17462        5.8076        .13275       -1.3133    
  28  Prefactor     .92937        .93520        .45363E-01   -.95122    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.00120897
Minuit parameter uncertainties:
  1  1.54068
  2  0.516158
  3  4108.27
  4  0.00146495
  5  74.6787
  6  160.21
  7  0.00103666
  8  7.08611e-06
  9  0.000276229
  10  0.000971414
  11  6.11226
  12  1.35956e-06
  13  0.000103726
  14  3.81097e-05
  15  26.0405
  16  6.81385
  17  2.94634
  18  2.86699e-05
  19  71.3445
  20  15.1636
  21  114.35
  22  25.0333
  23  18.2124
  24  13.5524
  25  5.81034e-05
  26  5.97119
  27  1.43909
  28  0.952171
Done.

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

Extracting fit parameters...

4FGL J0800.9+4401
   Spectrum: PowerLaw
278    Prefactor:  1.000e-04  1.037e-04  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:  9.294e-01  9.522e-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.746e-01  1.439e+00  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/46263/likelihoodResults_585619201_585878401_4FGL_J0800.9+4401_daily_bin1336.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) = 1027.59732967
delta logL = -0.000284761959847

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1027.59704841
delta logL = -3.49865513272e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15524E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3718       1.0000          .0000       10.000    
     3 'Normalizat'    .17462       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92937       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=   1027.597     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      261 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10307E-03    11.516        .11211E-01** at limit **
   2  Index         2.2942        8.2399        .50000        .26958E-04
   3  Normalizat    .17462        .98175E-02    .58322E-03   -.12957E-03
   4  Prefactor     .92936        .84136E-02    .22044E-03   -.48175E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103069
  Index      = 2.29416
  Normalizat = 0.174622
  Prefactor  = 0.929355
 **********
 **   18 **HESSE 
 **********

 FCN=   1027.597     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      290 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10307E-03    106.14        .11542E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2942        8.5605        .50000       -.57183    
   3  Normalizat    .17462        .30055E-01    .23329E-04   -1.3133    
   4  Prefactor     .92936        .25759E-01    .44087E-04   -.95123    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.94034e-09
Minuit parameter uncertainties:
  1  0.0361616
  2  204.39
  3  0.0300574
  4  0.0257589
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/46263': 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) = 1027.59704567
delta logL = -7.59942622608e-07

Extracting fit parameters...

4FGL J0800.9+4401
   Spectrum: PowerLaw
278    Prefactor:  1.031e-04  3.616e-02  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  2.294e+00  2.044e+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:  9.294e-01  2.576e-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.746e-01  3.006e-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/46263/cmap_HighResolution_585619201_585878401_4FGL_J0800.9+4401_daily_bin1336.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.28e-02', job_status='DONE', photon_flux_upper_limit='2.99e-07', time_completed='2021-08-28 21:42:17.801837', job_id='46263', GAL2='0.93', fit_tolerance='1e-08', EG2='0.17', EG='0.17', time_epoch_completed='1630212137.8', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='-7.60e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='1336' AND source_name='4FGL J0800.9+4401' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 21:42:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 46263: <4FGL_J0800.9+4401_daily_bin1336> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0800.9+4401_daily_bin1336 120.246 44.0181 585619201 585878401 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 :                                   531.07 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             257.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   691 sec.
    Turnaround time :                            693 sec.

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

