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


Performing analysis on: 4FGL_J0800.9+4401_daily_bin1512
RA = 120.246, Dec = 44.0181
tmin = 631238401, tmax = 631497601
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='47760', job_status='RUN', time_executed='2021-08-28 21:38:28.037985', time_epoch_executed='1630211908.04' WHERE source_name='4FGL J0800.9+4401' and cadence='daily' and bin_id='1512'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/47760

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/47760/ft1_4FGL_J0800.9+4401_daily_bin1512.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/47760/ft2_4FGL_J0800.9+4401_daily_bin1512.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/47760/ft1_4FGL_J0800.9+4401_daily_bin1512.fits outfile=/scratch/kocevski/47760/ft1_filteredMKT_4FGL_J0800.9+4401_daily_bin1512.fits ra=120.246 dec=44.0181 rad=12.0 tmin=631238401.0 tmax=631497601.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.00
user 2.53
sys 0.44

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/47760/ft1_filtered_4FGL_J0800.9+4401_daily_bin1512.fits" evtable="EVENTS" scfile=/scratch/kocevski/47760/ft2_4FGL_J0800.9+4401_daily_bin1512.fits sctable="SC_DATA" outfile=/scratch/kocevski/47760/ltcube_631238401_631497601_4FGL_J0800.9+4401_daily_bin1512.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/47760/ft2_4FGL_J0800.9+4401_daily_bin1512.fits
.....................!
real 12.53
user 11.86
sys 0.63

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/47760/ft1_filtered_4FGL_J0800.9+4401_daily_bin1512.fits evtable="EVENTS" scfile=/scratch/kocevski/47760/ft2_4FGL_J0800.9+4401_daily_bin1512.fits sctable="SC_DATA" expcube=/scratch/kocevski/47760/ltcube_631238401_631497601_4FGL_J0800.9+4401_daily_bin1512.fits outfile=/scratch/kocevski/47760/expmap_631238401_631497601_4FGL_J0800.9+4401_daily_bin1512.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/47760/ltcube_631238401_631497601_4FGL_J0800.9+4401_daily_bin1512.fits
.....................!
real 190.72
user 185.42
sys 4.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/47760/ft1_filtered_4FGL_J0800.9+4401_daily_bin1512.fits scfile=/scratch/kocevski/47760/ft2_4FGL_J0800.9+4401_daily_bin1512.fits outfile=/scratch/kocevski/47760/cmap_631238401_631497601_4FGL_J0800.9+4401_daily_bin1512.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.78
user 0.37
sys 0.40

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/47760/ft1_filtered_4FGL_J0800.9+4401_daily_bin1512.fits scfile=/scratch/kocevski/47760/ft2_4FGL_J0800.9+4401_daily_bin1512.fits outfile=/scratch/kocevski/47760/cmap_HighResolution_631238401_631497601_4FGL_J0800.9+4401_daily_bin1512.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.83
user 0.38
sys 0.42

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .13136E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .30150E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13122E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10839E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .48381E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10211E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .13905E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    4.8735       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .25552E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13714E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    22.380       1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.309       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12388E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.1192       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .14696E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.6494       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .41320       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .92193       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=   830.2900     FROM MIGRAD    STATUS=CONVERGED    146 CALLS     3119 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm         10000.0        22.638       -.48667E-06** at limit **
   2  norm          .14199E-03    96.257        .12146E-05** at limit **
   3  Prefactor     .10139E-03    4.0289       -.58430E-06** at limit **
   4  Prefactor     .10625E-03    80.516       -.18213E-05** at limit **
   5  norm          .10045E-03    61.535       -.77915E-06** at limit **
   6  Prefactor     .12672E-03    295.74        .23154E-05** at limit **
   7  Prefactor     .10026E-03    50.107       -.61106E-06** at limit **
   8  norm          .20251E-01    20.294        .61314E-05    .85261E-04
   9  Prefactor     .10000E-03    12.930       -.11214E-06** at limit **
  10  Prefactor     .10008E-03    30.423        .57660E-06** at limit **
  11  norm          .10325E-03    14.981       -.98421E-06** at limit **
  12  norm          4.8666        6.0074       -.66115E-07   -.37387E-02
  13  Prefactor     .10019E-03    8.6100       -.27458E-07** at limit **
  14  Prefactor     .10001E-03    .97692        .12662E-06** at limit **
  15  Prefactor     .10000E-03    10.177       -.33244E-06** at limit **
  16  norm          .10000E-03    2.9601       -.90678E-07** at limit **
  17  norm          .10000E-03    1.6266        .39796E-06** at limit **
  18  norm          .10000E-03    .74253        .28651E-06** at limit **
  19  Prefactor     22.428        12.113       -.18648E-06   -.38183E-02
  20  Prefactor     13.298        11.155       -.36622E-06   -.16477E-02
  21  Prefactor     .10003E-03    23.743        .81083E-06** at limit **
  22  Prefactor     4.0690        2.8614       -.17681E-06    .17318E-03
  23  Prefactor     .10016E-03    9.6633       -.37224E-06** at limit **
  24  norm          .10000E-03    8.5569       -.76590E-06** at limit **
  25  norm          .10000E-03    5.4956       -.47129E-06** at limit **
  26  Prefactor     2.6528        5.6587        .34772E-09   -.90589E-04
  27  Normalizat    .41408        .51883        .51572E-06   -.34066E-04
  28  Prefactor     .92114        .40944       -.19720E-05   -.61953E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10000
  norm       = 0.000141991
  Prefactor  = 0.000101386
  Prefactor  = 0.000106251
  norm       = 0.000100454
  Prefactor  = 0.000126724
  Prefactor  = 0.000100257
  norm       = 0.020251
  Prefactor  = 0.000100003
  Prefactor  = 0.00010008
  norm       = 0.000103251
  norm       = 4.86661
  Prefactor  = 0.000100189
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 22.4281
  Prefactor  = 13.2979
  Prefactor  = 0.000100026
  Prefactor  = 4.06899
  Prefactor  = 0.000100156
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.65284
  Normalizat = 0.414084
  Prefactor  = 0.921143
 **********
 **   18 **HESSE 
 **********

 FCN=   830.2900     FROM HESSE     STATUS=OK           567 CALLS     3686 TOTAL
                     EDM=   .75E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm         10000.0        1235.7        .10350E-01    1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .14199E-03    234.54        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10139E-03    174.08        .10694E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10625E-03    157.04        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10045E-03    175.81        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .12672E-03    477.31        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10026E-03    55.449        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .20251E-01    2.0020        .22755E-01   -1.5680    
   9  Prefactor     .10000E-03    12.980        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10008E-03    36.186        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10325E-03    184.12        .10265E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.8666        6.6658        .45553E-02   -1.5267    
  13  Prefactor     .10019E-03    13.740        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    57.850        .10728E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.173        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.9602        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.6184        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .73744        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     22.428        74.193        .21167E-02   -1.4760    
  20  Prefactor     13.298        19.412        .27448E-02   -1.4978    
  21  Prefactor     .10003E-03    48.204        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.0690        56.557        .49655E-02   -1.5305    
  23  Prefactor     .10016E-03    13.656        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    8.5258        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    5.4663        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     2.6528        5.6922        .62614E-02   -1.5382    
  27  Normalizat    .41408        .48160        .76315E-01   -1.1658    
  28  Prefactor     .92114        .36201        .45284E-01   -.95406    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.50295e-07
Minuit parameter uncertainties:
  1  0.840505
  2  0.199262
  3  0.031159
  4  0.0628274
  5  0.0179151
  6  0.22772
  7  0.00756176
  8  0.40172
  9  0.000361989
  10  0.00340185
  11  0.0490825
  12  6.66683
  13  0.00322289
  14  0.00173285
  15  8.28618e-05
  16  3.24909e-06
  17  1.17987e-05
  18  5.65876e-06
  19  74.5006
  20  19.4209
  21  0.0022607
  22  30.3746
  23  0.00291791
  24  1.47927e-05
  25  2.65862e-05
  26  5.69333
  27  0.486544
  28  0.362959
Done.

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

Extracting fit parameters...

4FGL J0800.9+4401
   Spectrum: PowerLaw
278    Prefactor:  1.002e-04  3.223e-03  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.211e-01  3.630e-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.141e-01  4.865e-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: 2.74e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.08e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/47760/likelihoodResults_631238401_631497601_4FGL_J0800.9+4401_daily_bin1512.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) = 830.290335549
delta logL = -0.000304062499936

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 830.290033316
delta logL = -1.82898793355e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4698       1.0000          .0000       10.000    
     3 'Normalizat'    .41411       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92113       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=   830.2900     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      275 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10349E-03    14.521        .87516E-02** at limit **
   2  Index         2.3845        8.7982        .50000        .30807E-04
   3  Normalizat    .41408        .12478E-01    .33797E-03   -.27827E-04
   4  Prefactor     .92114        .10283E-01    .18912E-03   -.45880E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010349
  Index      = 2.38446
  Normalizat = 0.414084
  Prefactor  = 0.921144
 **********
 **   18 **HESSE 
 **********

 FCN=   830.2900     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      304 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10349E-03    129.09        .90674E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3845        5.2563        .50000       -.55049    
   3  Normalizat    .41408        .37700E-01    .13519E-04   -1.1658    
   4  Prefactor     .92114        .31069E-01    .37824E-04   -.95406    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.47198e-08
Minuit parameter uncertainties:
  1  0.0425418
  2  294.026
  3  0.0377022
  4  0.0310699
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/47760': 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) = 830.290032829
delta logL = -1.34192828227e-06

Extracting fit parameters...

4FGL J0800.9+4401
   Spectrum: PowerLaw
278    Prefactor:  1.035e-04  4.254e-02  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  2.384e+00  2.940e+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.211e-01  3.107e-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:  4.141e-01  3.770e-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/47760/cmap_HighResolution_631238401_631497601_4FGL_J0800.9+4401_daily_bin1512.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.08e-02', job_status='DONE', photon_flux_upper_limit='2.74e-07', time_completed='2021-08-28 21:45:24.167857', job_id='47760', GAL2='0.92', fit_tolerance='1e-08', EG2='0.41', EG='0.41', time_epoch_completed='1630212324.17', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='-1.34e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='1512' AND source_name='4FGL J0800.9+4401' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 21:45:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 47760: <4FGL_J0800.9+4401_daily_bin1512> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0800.9+4401_daily_bin1512 120.246 44.0181 631238401 631497601 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 :                                   395.25 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             247.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   594 sec.
    Turnaround time :                            598 sec.

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

