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


Performing analysis on: 4FGL_J0800.9+4401_daily_bin1209
RA = 120.246, Dec = 44.0181
tmin = 552700801, tmax = 552960001
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='46062', job_status='RUN', time_executed='2021-08-28 21:34:43.625601', time_epoch_executed='1630211683.63' WHERE source_name='4FGL J0800.9+4401' and cadence='daily' and bin_id='1209'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/46062

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/46062/ft1_4FGL_J0800.9+4401_daily_bin1209.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/46062/ft2_4FGL_J0800.9+4401_daily_bin1209.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/46062/ft1_4FGL_J0800.9+4401_daily_bin1209.fits outfile=/scratch/kocevski/46062/ft1_filteredMKT_4FGL_J0800.9+4401_daily_bin1209.fits ra=120.246 dec=44.0181 rad=12.0 tmin=552700801.0 tmax=552960001.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.29
user 2.74
sys 0.50

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/46062/ft1_filtered_4FGL_J0800.9+4401_daily_bin1209.fits" evtable="EVENTS" scfile=/scratch/kocevski/46062/ft2_4FGL_J0800.9+4401_daily_bin1209.fits sctable="SC_DATA" outfile=/scratch/kocevski/46062/ltcube_552700801_552960001_4FGL_J0800.9+4401_daily_bin1209.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/46062/ft2_4FGL_J0800.9+4401_daily_bin1209.fits
.....................!
real 12.79
user 12.05
sys 0.70

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/46062/ft1_filtered_4FGL_J0800.9+4401_daily_bin1209.fits evtable="EVENTS" scfile=/scratch/kocevski/46062/ft2_4FGL_J0800.9+4401_daily_bin1209.fits sctable="SC_DATA" expcube=/scratch/kocevski/46062/ltcube_552700801_552960001_4FGL_J0800.9+4401_daily_bin1209.fits outfile=/scratch/kocevski/46062/expmap_552700801_552960001_4FGL_J0800.9+4401_daily_bin1209.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/46062/ltcube_552700801_552960001_4FGL_J0800.9+4401_daily_bin1209.fits
.....................!
real 190.27
user 185.25
sys 4.68

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/46062/ft1_filtered_4FGL_J0800.9+4401_daily_bin1209.fits scfile=/scratch/kocevski/46062/ft2_4FGL_J0800.9+4401_daily_bin1209.fits outfile=/scratch/kocevski/46062/cmap_552700801_552960001_4FGL_J0800.9+4401_daily_bin1209.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.86
user 0.36
sys 0.48

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/46062/ft1_filtered_4FGL_J0800.9+4401_daily_bin1209.fits scfile=/scratch/kocevski/46062/ft2_4FGL_J0800.9+4401_daily_bin1209.fits outfile=/scratch/kocevski/46062/cmap_HighResolution_552700801_552960001_4FGL_J0800.9+4401_daily_bin1209.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.86
user 0.36
sys 0.48

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12233E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    31.896       1.0000         .10000E-03   10000.    
     5 'norm      '    11.099       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.970       1.0000         .10000E-03   10000.    
     8 'norm      '    .52761       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10604E-03   1.0000         .10000E-03   10000.    
    11 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    12 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11795E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .68033E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    16 'norm      '    8.0799       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    10000.       1.0000         .10000E-03   10000.    
    19 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .18586E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .82463E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .31057E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .15107E-03   1.0000         .10000E-03   10000.    
    24 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    25 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    28 'Prefactor '    .23144       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=   503.7251     FROM MIGRAD    STATUS=CONVERGED    676 CALLS     4790 TOTAL
                     EDM=   .13E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.9824       -.32781E-07** at limit **
   2  norm          .10000E-03    3.1048        .16171E-07** at limit **
   3  Prefactor     .10000E-03    29.304       -.11325E-05** at limit **
   4  Prefactor     31.902        32.219       -.62703E-06    .81957E-05
   5  norm          11.091        16.952        .45414E-06    .14005E-04
   6  Prefactor     .10000E-03    92.752       -.11814E-03** at limit **
   7  Prefactor     22.950        42.792       -.45421E-05   -.28042E-06
   8  norm          .52766        .99945       -.14038E-07   -.13673E-04
   9  Prefactor     .10000E-03    13.622        .43803E-06** at limit **
  10  Prefactor     .10000E-03    58.643        .22066E-04** at limit **
  11  norm          10000.        8998.1        .33805E-03** at limit **
  12  norm          .10000E-03    7.0410       -.80927E-07** at limit **
  13  Prefactor     .10000E-03    134.20        .11114E-03** at limit **
  14  Prefactor     .10000E-03    7737.5       -.43250E-03** at limit **
  15  Prefactor     10000.        1165.7        .60254E-03** at limit **
  16  norm          8.0805        9.2342        .28891E-05    .28436E-04
  17  norm          .10000E-03    2.8978       -.82208E-08** at limit **
  18  norm         10000.0        200.47       -.18227E-03** at limit **
  19  Prefactor     10000.        7696.4        .41774E-03** at limit **
  20  Prefactor     .10000E-03    874.37       -.34193E-03** at limit **
  21  Prefactor     .10000E-03    2247.4       -.39288E-03** at limit **
  22  Prefactor     .10000E-03    7924.2       -.10047E-02** at limit **
  23  Prefactor     .10000E-03    544.04       -.56026E-03** at limit **
  24  norm          10000.        1797.6        .48293E-03** at limit **
  25  norm          10000.        1070.3        .20894E-03** at limit **
  26  Prefactor     .10000E-03    13.325       -.26092E-06** at limit **
  27  Normalizat    .10000E-01    .93640E-01    .17450E-06** at limit **
  28  Prefactor     .23139        .19119        .78314E-06    .75568E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.9015
  norm       = 11.0909
  Prefactor  = 0.0001
  Prefactor  = 22.9503
  norm       = 0.52766
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10000
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10000
  norm       = 8.08054
  norm       = 0.0001
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10000
  norm       = 10000
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.231386
 **********
 **   18 **HESSE 
 **********

 FCN=   503.7251     FROM HESSE     STATUS=OK           501 CALLS     5291 TOTAL
                     EDM=   .26E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.0323        .65702E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    3.1063        .38637E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    29.827        .23641E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     31.902        32.411        .70948E-04   -1.4578    
   5  norm          11.091        17.150        .10207E-03   -1.5042    
   6  Prefactor     .10000E-03    92.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     22.950        42.831        .83576E-04   -1.4749    
   8  norm          .52766        .97500        .29938E-04   -1.5563    
   9  Prefactor     .10000E-03    13.624        .80952E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    58.643        .16809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          10000.        8998.0        .21237E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    7.0684        .58192E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    134.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7737.5        .20996E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10000.        1165.7        .19791E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.0805        9.2346        .71134E-04   -1.5139    
  17  norm          .10000E-03    2.8980        .37330E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm         10000.0        200.53        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10000.        7696.3        .21026E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    874.36        .20294E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2247.4        .20884E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7924.2        .19791E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    544.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          10000.        1797.6        .20535E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          10000.        1070.3        .21061E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    13.325        .80064E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .10000E-01    .93866E-01    .21172E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .23139        .19359        .23517E-03   -1.2654    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.55541e-12
Minuit parameter uncertainties:
  1  4.13449e-06
  2  7.49961e-07
  3  2.58617e-05
  4  32.4291
  5  17.1578
  6  8.93528e-07
  7  42.8888
  8  0.975027
  9  3.48644e-06
  10  3.37119e-07
  11  4.31088e-05
  12  1.26774e-07
  13  1.35119e-06
  14  6.72547e-05
  15  9.34748e-06
  16  9.2362
  17  2.61473e-06
  18  9.95026e-05
  19  1.2484e-05
  20  5.9375e-06
  21  1.31254e-05
  22  3.97797e-05
  23  4.29377e-05
  24  3.33816e-05
  25  3.50973e-05
  26  5.76145e-08
  27  1.00239e-07
  28  0.194128
Done.

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

Extracting fit parameters...

4FGL J0800.9+4401
   Spectrum: PowerLaw
278    Prefactor:  1.000e-04  1.351e-06  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:  2.314e-01  1.941e-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.002e-07  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.82e-06 ph cm-2 s-1
Energy Flux Upper Limit: 2.15e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/46062/likelihoodResults_552700801_552960001_4FGL_J0800.9+4401_daily_bin1209.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) = 503.725175935
delta logL = -3.53360531449e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 503.725141344
delta logL = -7.45719432871e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19924E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4744       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .23141       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=   503.7251     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      274 TOTAL
                     EDM=   .86E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10405E-03    79.344        .18142E-01** at limit **
   2  Index         2.3812        8.6544        .50000        .29618E-05
   3  Normalizat    .10000E-01    .14504E-03    .21172E-02** at limit **
   4  Prefactor     .23139        .63091E-02    .23517E-03    .63451E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104053
  Index      = 2.38121
  Normalizat = 0.01
  Prefactor  = 0.231386
 **********
 **   18 **HESSE 
 **********

 FCN=   503.7251     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      303 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10405E-03    610.31        .22287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3812        6.7412        .50000       -.55126    
   3  Normalizat    .10000E-01    .11482E-02    .42343E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .23139        .17751E-01    .94066E-05   -1.2654    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.82615e-10
Minuit parameter uncertainties:
  1  0.100508
  2  719.491
  3  3.81677e-10
  4  0.0177512
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/46062': 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) = 503.725140731
delta logL = -1.32761670102e-07

Extracting fit parameters...

4FGL J0800.9+4401
   Spectrum: PowerLaw
278    Prefactor:  1.041e-04  1.005e-01  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  2.381e+00  7.195e+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:  2.314e-01  1.775e-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.000e-02  3.817e-10  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/46062/cmap_HighResolution_552700801_552960001_4FGL_J0800.9+4401_daily_bin1209.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.15e-01', job_status='DONE', photon_flux_upper_limit='2.82e-06', time_completed='2021-08-28 21:41:25.568360', job_id='46062', GAL2='0.23', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630212085.57', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.23', dlogl='-1.33e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='1209' AND source_name='4FGL J0800.9+4401' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 21:41:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 46062: <4FGL_J0800.9+4401_daily_bin1209> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0800.9+4401_daily_bin1209 120.246 44.0181 552700801 552960001 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 :                                   399.00 sec.
    Max Memory :                                 1248 MB
    Average Memory :                             230.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   653 sec.
    Turnaround time :                            655 sec.

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

