/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 101 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 = 7496
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0800.9+4401_daily_bin5
RA = 120.246, Dec = 44.0181
tmin = 240624001, tmax = 240883201
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='38084', job_status='RUN', time_executed='2021-08-28 21:07:46.544986', time_epoch_executed='1630210066.55' WHERE source_name='4FGL J0800.9+4401' and cadence='daily' and bin_id='5'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/38084

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/38084/ft1_4FGL_J0800.9+4401_daily_bin5.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/38084/ft2_4FGL_J0800.9+4401_daily_bin5.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/38084/ft1_4FGL_J0800.9+4401_daily_bin5.fits outfile=/scratch/kocevski/38084/ft1_filteredMKT_4FGL_J0800.9+4401_daily_bin5.fits ra=120.246 dec=44.0181 rad=12.0 tmin=240624001.0 tmax=240883201.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 1.85
user 1.19
sys 0.63

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/38084/ft1_filtered_4FGL_J0800.9+4401_daily_bin5.fits" evtable="EVENTS" scfile=/scratch/kocevski/38084/ft2_4FGL_J0800.9+4401_daily_bin5.fits sctable="SC_DATA" outfile=/scratch/kocevski/38084/ltcube_240624001_240883201_4FGL_J0800.9+4401_daily_bin5.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/38084/ft2_4FGL_J0800.9+4401_daily_bin5.fits
.....................!
real 13.09
user 12.23
sys 0.82

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/38084/ft1_filtered_4FGL_J0800.9+4401_daily_bin5.fits evtable="EVENTS" scfile=/scratch/kocevski/38084/ft2_4FGL_J0800.9+4401_daily_bin5.fits sctable="SC_DATA" expcube=/scratch/kocevski/38084/ltcube_240624001_240883201_4FGL_J0800.9+4401_daily_bin5.fits outfile=/scratch/kocevski/38084/expmap_240624001_240883201_4FGL_J0800.9+4401_daily_bin5.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/38084/ltcube_240624001_240883201_4FGL_J0800.9+4401_daily_bin5.fits
.....................!
real 192.19
user 186.23
sys 5.59

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/38084/ft1_filtered_4FGL_J0800.9+4401_daily_bin5.fits scfile=/scratch/kocevski/38084/ft2_4FGL_J0800.9+4401_daily_bin5.fits outfile=/scratch/kocevski/38084/cmap_240624001_240883201_4FGL_J0800.9+4401_daily_bin5.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.95
user 0.34
sys 0.60

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/38084/ft1_filtered_4FGL_J0800.9+4401_daily_bin5.fits scfile=/scratch/kocevski/38084/ft2_4FGL_J0800.9+4401_daily_bin5.fits outfile=/scratch/kocevski/38084/cmap_HighResolution_240624001_240883201_4FGL_J0800.9+4401_daily_bin5.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.99
user 0.37
sys 0.62

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    20.514       1.0000         .10000E-03   10000.    
     2 'norm      '    .37713E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.874       1.0000         .10000E-03   10000.    
     4 'Prefactor '    30.828       1.0000         .10000E-03   10000.    
     5 'norm      '    .10169E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.1407       1.0000         .10000E-03   10000.    
     8 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11082E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.5124       1.0000         .10000E-03   10000.    
    12 'norm      '    .10250E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10219E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.1020       1.0000         .10000E-03   10000.    
    16 'norm      '    .42313E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.2685       1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.553       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10498E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    3.4193       1.0000         .10000E-03   10000.    
    25 'norm      '    2.0683       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.8999       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .80635       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .90411       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=   5464.209     FROM MIGRAD    STATUS=CONVERGED    727 CALLS     3041 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          20.513        7.7954       -.28497E-07    .22133E-03
   2  norm          .10000E-03    3.3408       -.11493E-05** at limit **
   3  Prefactor     21.873        8.0778        .12997E-05    .12487E-02
   4  Prefactor     30.772        19.802       -.19263E-06    .97161E-04
   5  norm          .10000E-03    4.1650        .13523E-06** at limit **
   6  Prefactor     .10000E-03    5.0116       -.26387E-07** at limit **
   7  Prefactor     1.0243        118.90       -.13123E-04    .27299E-03
   8  norm          .10000E-03    .28381       -.38403E-07** at limit **
   9  Prefactor     .10000E-03    11.310        .36298E-06** at limit **
  10  Prefactor     .10000E-03    7.1082        .22763E-07** at limit **
  11  norm          5.5106        10.154       -.18337E-06    .22776E-03
  12  norm          .10000E-03    1.4312       -.25367E-06** at limit **
  13  Prefactor     .10000E-03    3.7611        .29387E-07** at limit **
  14  Prefactor     .10000E-03    20.812        .31625E-07** at limit **
  15  Prefactor     2.1000        4.2663        .26312E-07    .13640E-03
  16  norm          .10000E-03    5.4652        .12213E-05** at limit **
  17  norm          .10000E-03    .90364        .18843E-06** at limit **
  18  norm          3.2682        .94711       -.18001E-07    .19980E-03
  19  Prefactor     14.556        12.213       -.21702E-06   -.78146E-05
  20  Prefactor     .10000E-03    1.5176       -.65863E-07** at limit **
  21  Prefactor     .10000E-03    49.113        .11880E-05** at limit **
  22  Prefactor     .10000E-03    14.659       -.38191E-06** at limit **
  23  Prefactor     .10000E-03    4.1590       -.22038E-06** at limit **
  24  norm          3.4168        8.4691        .39961E-07    .62654E-03
  25  norm          2.0662        5.5704        .64534E-06    .11962E-02
  26  Prefactor     1.8999        3.9941       -.20876E-06    .93608E-04
  27  Normalizat    .80657        .20070        .14545E-05    .51757E-03
  28  Prefactor     .90407        .13729        .66853E-06    .72198E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 20.5133
  norm       = 0.000100001
  Prefactor  = 21.8732
  Prefactor  = 30.7721
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.02431
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.51056
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.09997
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 3.26821
  Prefactor  = 14.5557
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.4168
  norm       = 2.06622
  Prefactor  = 1.89994
  Normalizat = 0.806574
  Prefactor  = 0.904073
 **********
 **   18 **HESSE 
 **********

 FCN=   5464.209     FROM HESSE     STATUS=OK           515 CALLS     3556 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          20.513        7.7999        .88432E-04   -1.4802    
   2  norm          .10000E-03    16.414        .25066E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     21.873        8.0864        .85641E-04   -1.4772    
   4  Prefactor     30.772        20.008        .72163E-04   -1.4598    
   5  norm          .10000E-03    4.1818        .14716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.0247        .16161E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.0243        291.13        .78538E-02   -1.5506    
   8  norm          .10000E-03    .28905        .38446E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.1194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.5106        10.233        .85564E-03   -1.5238    
  12  norm          .10000E-03    2.3868        .17161E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.7801        .13998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    20.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.1000        4.2359        .20469E-03   -1.5418    
  16  norm          .10000E-03    13.417        .23830E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.4544        .13389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.2682        .94634        .36309E-04   -1.5346    
  19  Prefactor     14.556        12.197        .10499E-03   -1.4945    
  20  Prefactor     .10000E-03    1.5481        .88781E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    49.983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    15.271        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.1629        .14726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          3.4168        8.5222        .10938E-02   -1.5338    
  25  norm          2.0662        6.4252        .14363E-02   -1.5420    
  26  Prefactor     1.8999        3.9728        .19932E-03   -1.5432    
  27  Normalizat    .80657        .23312        .29621E-03   -.99825    
  28  Prefactor     .90407        .16081        .20007E-03   -.95999    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30075e-08
Minuit parameter uncertainties:
  1  7.80028
  2  0.000281
  3  8.08683
  4  20.0119
  5  1.02217e-05
  6  9.24331e-06
  7  34.7071
  8  2.79073e-07
  9  4.60714e-05
  10  6.5641e-06
  11  10.236
  12  8.72634e-06
  13  4.90282e-06
  14  1.42546e-05
  15  4.2365
  16  0.000261642
  17  1.77903e-05
  18  0.946341
  19  12.1991
  20  4.22435e-06
  21  6.91892e-05
  22  6.17754e-05
  23  1.3107e-05
  24  8.52518
  25  6.42732
  26  3.97331
  27  0.233405
  28  0.160899
Done.

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

Extracting fit parameters...

4FGL J0800.9+4401
   Spectrum: PowerLaw
278    Prefactor:  1.000e-04  4.903e-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:  9.041e-01  1.609e-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.066e-01  2.334e-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: 5.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/38084/likelihoodResults_240624001_240883201_4FGL_J0800.9+4401_daily_bin5.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) = 5464.21050996
delta logL = -0.00125868976829

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5464.20925115
delta logL = 1.26532540889e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1490       1.0000          .0000       10.000    
     3 'Normalizat'    .80663       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90405       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5464.209     FROM MIGRAD    STATUS=FAILED        87 CALLS      239 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10175E-03    47.228        .14300E-02** at limit **
   2  Index         2.0830        6.0385        .50000        .40725E-04
   3  Normalizat    .80657        .17043E-01    .29620E-03    .54348E-04
   4  Prefactor     .90407        .12214E-01    .20007E-03    .76030E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5464.209     FROM SIMPLEX   STATUS=UNCHANGED    126 CALLS      365 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10175E-03    47.228        .33030E-03** at limit **
   2  Index         2.0830        6.0385        .63896E-03    .40725E-04
   3  Normalizat    .80657        .17043E-01    .51573E-05    .54348E-04
   4  Prefactor     .90407        .12214E-01    .14641E-05    .76030E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5464.209     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      411 TOTAL
                     EDM=   .66E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    49.733        .28601E-02** at limit **
   2  Index         1.7171        5.3584        .50000        .15705E-06
   3  Normalizat    .80657        .16176E-01    .11848E-04   -.75707E-03
   4  Prefactor     .90407        .11593E-01    .80028E-05   -.11154E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.71712
  Normalizat = 0.806571
  Prefactor  = 0.904071
 **********
 **   18 **HESSE 
 **********

 FCN=   5464.209     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      440 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    234.37        .57201E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7171        7.5809        .50000       -.71627    
   3  Normalizat    .80657        .36871E-01    .23696E-05   -.99825    
   4  Prefactor     .90407        .26426E-01    .16006E-05   -.95999    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.11266e-10
Minuit parameter uncertainties:
  1  0.00037594
  2  683.023
  3  0.0368723
  4  0.0264266
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/38084': 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) = 5464.20924853
delta logL = 2.74464673566e-06

Extracting fit parameters...

4FGL J0800.9+4401
   Spectrum: PowerLaw
278    Prefactor:  1.000e-04  3.759e-04  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  1.717e+00  6.830e+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.041e-01  2.643e-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.066e-01  3.687e-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/38084/cmap_HighResolution_240624001_240883201_4FGL_J0800.9+4401_daily_bin5.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.22e-03', job_status='DONE', photon_flux_upper_limit='5.55e-08', time_completed='2021-08-28 21:20:35.702008', job_id='38084', GAL2='0.90', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1630210835.7', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='2.74e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='5' AND source_name='4FGL J0800.9+4401' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 21:20:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 38084: <4FGL_J0800.9+4401_daily_bin5> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0800.9+4401_daily_bin5 120.246 44.0181 240624001 240883201 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 :                                   775.12 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             292.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   889 sec.
    Turnaround time :                            890 sec.

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

