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


Performing analysis on: 4FGL_J0800.9+4401_daily_bin1280
RA = 120.246, Dec = 44.0181
tmin = 571104001, tmax = 571363201
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='46175', job_status='RUN', time_executed='2021-08-28 21:31:03.175576', time_epoch_executed='1630211463.18' WHERE source_name='4FGL J0800.9+4401' and cadence='daily' and bin_id='1280'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/46175

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/46175/ft1_4FGL_J0800.9+4401_daily_bin1280.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/46175/ft2_4FGL_J0800.9+4401_daily_bin1280.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/46175/ft1_4FGL_J0800.9+4401_daily_bin1280.fits outfile=/scratch/kocevski/46175/ft1_filteredMKT_4FGL_J0800.9+4401_daily_bin1280.fits ra=120.246 dec=44.0181 rad=12.0 tmin=571104001.0 tmax=571363201.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.61
user 2.75
sys 0.78

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/46175/ft1_filtered_4FGL_J0800.9+4401_daily_bin1280.fits" evtable="EVENTS" scfile=/scratch/kocevski/46175/ft2_4FGL_J0800.9+4401_daily_bin1280.fits sctable="SC_DATA" outfile=/scratch/kocevski/46175/ltcube_571104001_571363201_4FGL_J0800.9+4401_daily_bin1280.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/46175/ft2_4FGL_J0800.9+4401_daily_bin1280.fits
.....................!
real 12.72
user 11.74
sys 0.92

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/46175/ft1_filtered_4FGL_J0800.9+4401_daily_bin1280.fits evtable="EVENTS" scfile=/scratch/kocevski/46175/ft2_4FGL_J0800.9+4401_daily_bin1280.fits sctable="SC_DATA" expcube=/scratch/kocevski/46175/ltcube_571104001_571363201_4FGL_J0800.9+4401_daily_bin1280.fits outfile=/scratch/kocevski/46175/expmap_571104001_571363201_4FGL_J0800.9+4401_daily_bin1280.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/46175/ltcube_571104001_571363201_4FGL_J0800.9+4401_daily_bin1280.fits
.....................!
real 191.42
user 184.75
sys 6.24

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/46175/ft1_filtered_4FGL_J0800.9+4401_daily_bin1280.fits scfile=/scratch/kocevski/46175/ft2_4FGL_J0800.9+4401_daily_bin1280.fits outfile=/scratch/kocevski/46175/cmap_571104001_571363201_4FGL_J0800.9+4401_daily_bin1280.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 1.04
user 0.38
sys 0.66

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/46175/ft1_filtered_4FGL_J0800.9+4401_daily_bin1280.fits scfile=/scratch/kocevski/46175/ft2_4FGL_J0800.9+4401_daily_bin1280.fits outfile=/scratch/kocevski/46175/cmap_HighResolution_571104001_571363201_4FGL_J0800.9+4401_daily_bin1280.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 1.06
user 0.37
sys 0.68

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.7610       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.165       1.0000         .10000E-03   10000.    
     5 'norm      '    1.3414       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.0371       1.0000         .10000E-03   10000.    
     7 'Prefactor '    37.334       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.6552       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10626E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11056E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10114E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    7.7286       1.0000         .10000E-03   10000.    
    26 'Prefactor '    136.12       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .84525       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0843       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=   1856.025     FROM MIGRAD    STATUS=CONVERGED    669 CALLS     3443 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.7516       -.33755E-07** at limit **
   2  norm          .10000E-03    4.7497       -.22549E-06** at limit **
   3  Prefactor     9.7606        10.766       -.77055E-06   -.40366E-05
   4  Prefactor     14.160        14.410        .18796E-06   -.49199E-05
   5  norm          1.3422        20.107        .18451E-04   -.62067E-04
   6  Prefactor     7.0531        62.386       -.66791E-06   -.16304E-05
   7  Prefactor     37.347        60.202       -.20528E-05   -.54765E-04
   8  norm          .10000E-03    .40625       -.28610E-07** at limit **
   9  Prefactor     .10000E-03    41.526        .43890E-05** at limit **
  10  Prefactor     .10000E-03    19.886        .10973E-05** at limit **
  11  norm          .10000E-03    20.313       -.95123E-06** at limit **
  12  norm          6.6556        9.5040       -.78650E-07   -.22521E-03
  13  Prefactor     .10000E-03    11.259       -.17572E-06** at limit **
  14  Prefactor     .10000E-03    207.04        .28767E-04** at limit **
  15  Prefactor     .10000E-03    8.0479       -.10695E-06** at limit **
  16  norm          .10000E-03    2.8914       -.78273E-07** at limit **
  17  norm          .10000E-03    1.5950       -.84541E-07** at limit **
  18  norm          .10000E-03    .99358       -.82231E-07** at limit **
  19  Prefactor     .10000E-03    34.217        .31044E-06** at limit **
  20  Prefactor     .10000E-03    8.8651       -.11429E-07** at limit **
  21  Prefactor     .10000E-03    134.88       -.67986E-05** at limit **
  22  Prefactor     .10000E-03    52.346       -.10898E-05** at limit **
  23  Prefactor     .10000E-03    31.820       -.29609E-05** at limit **
  24  norm          .10001E-03    121.00       -.16094E-04** at limit **
  25  norm          7.7067        130.97        .10749E-04    .43504E-04
  26  Prefactor     136.03        311.56        .10184E-04    .12910E-04
  27  Normalizat    .84528        .45996        .15731E-05   -.50310E-04
  28  Prefactor     1.0843        .26427       -.29592E-05   -.30800E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 9.7606
  Prefactor  = 14.1597
  norm       = 1.34217
  Prefactor  = 7.05311
  Prefactor  = 37.3474
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.65564
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100008
  norm       = 7.70667
  Prefactor  = 136.027
  Normalizat = 0.845283
  Prefactor  = 1.08426
 **********
 **   18 **HESSE 
 **********

 FCN=   1856.025     FROM HESSE     STATUS=OK           505 CALLS     3948 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.7572        .69785E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.8576        .18313E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.7606        10.767        .12826E-03   -1.5083    
   4  Prefactor     14.160        14.407        .10642E-03   -1.4955    
   5  norm          1.3422        20.237        .17769E-02   -1.5476    
   6  Prefactor     7.0531        62.256        .15122E-03   -1.5177    
   7  Prefactor     37.347        60.461        .65593E-04   -1.4485    
   8  norm          .10000E-03    .40921        .26803E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    41.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    19.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    20.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.6556        9.4938        .14596E-03   -1.5192    
  13  Prefactor     .10000E-03    11.268        .14121E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    204.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.0528        .11938E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.8937        .71548E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.5979        .53137E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .99499        .41941E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    34.217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.8655        .12530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    134.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    52.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    31.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10001E-03    122.91        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          7.7067        131.60        .14424E-03   -1.5153    
  26  Prefactor     136.03        312.19        .17260E-03   -1.3370    
  27  Normalizat    .84528        .53128        .36029E-03   -.98410    
  28  Prefactor     1.0843        .30754        .19229E-03   -.89971    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.00952e-10
Minuit parameter uncertainties:
  1  4.58314e-06
  2  1.80288e-05
  3  10.7689
  4  14.4102
  5  10.4271
  6  41.9676
  7  60.56
  8  3.69596e-07
  9  4.25435e-05
  10  2.58787e-05
  11  9.2891e-06
  12  9.49593
  13  1.88605e-05
  14  0.00087402
  15  1.18133e-05
  16  5.23526e-06
  17  4.06424e-06
  18  3.52526e-06
  19  2.1861e-05
  20  6.01507e-06
  21  1.27181e-05
  22  7.29098e-05
  23  8.12925e-05
  24  0.00193489
  25  63.8575
  26  316.102
  27  0.534599
  28  0.308046
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
656    Prefactor:  1.084e+00  3.080e-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:  8.453e-01  5.346e-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: 1.93e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.47e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/46175/likelihoodResults_571104001_571363201_4FGL_J0800.9+4401_daily_bin1280.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) = 1856.02506967
delta logL = -0.000415109347614

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1856.02465452
delta logL = 4.14333953813e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1562       1.0000          .0000       10.000    
     3 'Normalizat'    .84534       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0842       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=   1856.025     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      243 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10240E-03    11.662        .14272E-01** at limit **
   2  Index         2.0576        8.3722        .50000        .96662E-05
   3  Normalizat    .84529        .10380E-01    .36029E-03    .20116E-05
   4  Prefactor     1.0843        .62423E-02    .19229E-03    .55488E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102397
  Index      = 2.05762
  Normalizat = 0.845286
  Prefactor  = 1.08426
 **********
 **   18 **HESSE 
 **********

 FCN=   1856.025     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10240E-03    238.60        .14628E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0576        5.9024        .50000       -.62917    
   3  Normalizat    .84529        .48045E-01    .14411E-04   -.98410    
   4  Prefactor     1.0843        .28894E-01    .38457E-04   -.89971    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.7233e-08
Minuit parameter uncertainties:
  1  0.0480223
  2  868.705
  3  0.0480471
  4  0.0288948
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/46175': 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) = 1856.02465436
delta logL = 2.04899606615e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
656    Prefactor:  1.084e+00  2.889e-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:  8.453e-01  4.805e-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/46175/cmap_HighResolution_571104001_571363201_4FGL_J0800.9+4401_daily_bin1280.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.47e-02', job_status='DONE', photon_flux_upper_limit='1.93e-07', time_completed='2021-08-28 21:39:10.427769', job_id='46175', GAL2='1.08', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1630211950.43', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='2.05e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='1280' AND source_name='4FGL J0800.9+4401' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 21:39:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 46175: <4FGL_J0800.9+4401_daily_bin1280> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0800.9+4401_daily_bin1280 120.246 44.0181 571104001 571363201 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 :                                   488.43 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             330.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   510 sec.
    Turnaround time :                            512 sec.

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

