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


Performing analysis on: 4FGL_J0800.9+4401_daily_bin1553
RA = 120.246, Dec = 44.0181
tmin = 641865601, tmax = 642124801
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='47818', job_status='RUN', time_executed='2021-08-28 21:36:04.422438', time_epoch_executed='1630211764.42' WHERE source_name='4FGL J0800.9+4401' and cadence='daily' and bin_id='1553'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/47818

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/47818/ft1_4FGL_J0800.9+4401_daily_bin1553.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/47818/ft2_4FGL_J0800.9+4401_daily_bin1553.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/47818/ft1_4FGL_J0800.9+4401_daily_bin1553.fits outfile=/scratch/kocevski/47818/ft1_filteredMKT_4FGL_J0800.9+4401_daily_bin1553.fits ra=120.246 dec=44.0181 rad=12.0 tmin=641865601.0 tmax=642124801.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 5.45
user 4.12
sys 1.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/47818/ft1_filtered_4FGL_J0800.9+4401_daily_bin1553.fits" evtable="EVENTS" scfile=/scratch/kocevski/47818/ft2_4FGL_J0800.9+4401_daily_bin1553.fits sctable="SC_DATA" outfile=/scratch/kocevski/47818/ltcube_641865601_642124801_4FGL_J0800.9+4401_daily_bin1553.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/47818/ft2_4FGL_J0800.9+4401_daily_bin1553.fits
.....................!
real 13.21
user 11.50
sys 1.66

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/47818/ft1_filtered_4FGL_J0800.9+4401_daily_bin1553.fits evtable="EVENTS" scfile=/scratch/kocevski/47818/ft2_4FGL_J0800.9+4401_daily_bin1553.fits sctable="SC_DATA" expcube=/scratch/kocevski/47818/ltcube_641865601_642124801_4FGL_J0800.9+4401_daily_bin1553.fits outfile=/scratch/kocevski/47818/expmap_641865601_642124801_4FGL_J0800.9+4401_daily_bin1553.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/47818/ltcube_641865601_642124801_4FGL_J0800.9+4401_daily_bin1553.fits
.....................!
real 191.07
user 184.63
sys 6.01

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/47818/ft1_filtered_4FGL_J0800.9+4401_daily_bin1553.fits scfile=/scratch/kocevski/47818/ft2_4FGL_J0800.9+4401_daily_bin1553.fits outfile=/scratch/kocevski/47818/cmap_641865601_642124801_4FGL_J0800.9+4401_daily_bin1553.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.57
user 0.37
sys 1.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/47818/ft1_filtered_4FGL_J0800.9+4401_daily_bin1553.fits scfile=/scratch/kocevski/47818/ft2_4FGL_J0800.9+4401_daily_bin1553.fits outfile=/scratch/kocevski/47818/cmap_HighResolution_641865601_642124801_4FGL_J0800.9+4401_daily_bin1553.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.72
user 0.36
sys 1.31

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .15131E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.8613       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.4466       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10322E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    83.998       1.0000         .10000E-03   10000.    
     8 'norm      '    .84214E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    14.659       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.3426       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.9687       1.0000         .10000E-03   10000.    
    16 'norm      '    .10791E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.2853       1.0000         .10000E-03   10000.    
    18 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.4294       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .24957E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.3722       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10243E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .97241       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .95307       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=   7237.959     FROM MIGRAD    STATUS=CONVERGED    702 CALLS     3536 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.9477        .23989E-06** at limit **
   2  norm          6.8627        4.5966        .10616E-06    .74182E-04
   3  Prefactor     .10000E-03    3.4648       -.13791E-06** at limit **
   4  Prefactor     .10000E-03    8.4458       -.17430E-06** at limit **
   5  norm          5.4478        6.0584        .15746E-06    .36689E-04
   6  Prefactor     .10000E-03    21.113       -.18993E-06** at limit **
   7  Prefactor     84.010        39.807       -.11131E-05   -.60178E-04
   8  norm          .84142E-01    .42814        .24286E-06   -.26267E-03
   9  Prefactor     .10000E-03    3.1618        .27356E-06** at limit **
  10  Prefactor     .10000E-03    4.6129       -.76761E-07** at limit **
  11  norm          14.658        12.785        .15660E-06    .61483E-05
  12  norm          .10000E-03    .64926        .20283E-07** at limit **
  13  Prefactor     8.3423        6.6286       -.84742E-07   -.47451E-04
  14  Prefactor     .10000E-03    14.111        .80590E-06** at limit **
  15  Prefactor     2.9703        5.1299        .22864E-05   -.22527E-03
  16  norm          .10000E-03    1.5829        .44149E-06** at limit **
  17  norm          2.2850        1.4614        .55563E-07    .17148E-03
  18  norm          .10000E-03    .13848        .13634E-06** at limit **
  19  Prefactor     8.4002        13.704       -.21352E-05   -.39196E-04
  20  Prefactor     .10000E-03    2.0680       -.68849E-06** at limit **
  21  Prefactor     .10000E-03    16.552       -.96997E-07** at limit **
  22  Prefactor     .10000E-03    4.8788        .34184E-06** at limit **
  23  Prefactor     .10000E-03    2.4930        .60702E-07** at limit **
  24  norm          .10000E-03    1.4243        .27781E-07** at limit **
  25  norm          3.3723        3.7796        .75536E-07   -.12237E-04
  26  Prefactor     .10000E-03    1.2482        .13533E-06** at limit **
  27  Normalizat    .97213        .17858       -.14158E-05   -.86021E-04
  28  Prefactor     .95322        .12288       -.12951E-06   -.23805E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 6.86275
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.44779
  Prefactor  = 0.0001
  Prefactor  = 84.0101
  norm       = 0.0841418
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.6583
  norm       = 0.0001
  Prefactor  = 8.34229
  Prefactor  = 0.0001
  Prefactor  = 2.97033
  norm       = 0.000100001
  norm       = 2.28503
  norm       = 0.0001
  Prefactor  = 8.40021
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.37228
  Prefactor  = 0.0001
  Normalizat = 0.972131
  Prefactor  = 0.953221
 **********
 **   18 **HESSE 
 **********

 FCN=   7237.959     FROM HESSE     STATUS=OK           521 CALLS     4057 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.4442        .28343E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.8627        4.5980        .14433E-03   -1.5184    
   3  Prefactor     .10000E-03    3.5076        .15409E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.4434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.4478        6.0668        .17218E-03   -1.5241    
   6  Prefactor     .10000E-03    21.432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     84.010        39.902        .43829E-04   -1.3872    
   8  norm          .84142E-01    1.6802        .10465E-02   -1.5650    
   9  Prefactor     .10000E-03    3.1838        .14809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.6170        .17841E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          14.658        12.788        .10461E-03   -1.4942    
  12  norm          .10000E-03    .65523        .66944E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.3423        6.6270        .13880E-03   -1.5130    
  14  Prefactor     .10000E-03    14.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.9703        5.3608        .11783E-02   -1.5363    
  16  norm          .10000E-03    2.8082        .20468E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.2850        1.4475        .79260E-04   -1.5406    
  18  norm          .10000E-03    .14336        .62087E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.4002        13.706        .13808E-03   -1.5128    
  20  Prefactor     .10000E-03    7.8990        .19857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.9055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.5019        .13119E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.4271        .99154E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.3723        3.7706        .17042E-03   -1.5341    
  26  Prefactor     .10000E-03    2.1641        .18466E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .97213        .20214        .28267E-03   -.93970    
  28  Prefactor     .95322        .14074        .20246E-03   -.94305    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89865e-08
Minuit parameter uncertainties:
  1  4.23088e-05
  2  4.59823
  3  3.13426e-05
  4  5.5836e-05
  5  6.06746
  6  9.11666e-05
  7  39.9147
  8  0.751582
  9  2.21801e-05
  10  8.23374e-06
  11  12.7901
  12  3.30443e-06
  13  6.62761
  14  7.07693e-06
  15  5.36166
  16  9.90425e-05
  17  1.44748
  18  6.71428e-07
  19  13.711
  20  4.51755e-05
  21  2.6669e-06
  22  1.01099e-06
  23  1.36645e-06
  24  1.19474e-06
  25  3.77085
  26  7.96432e-06
  27  0.202296
  28  0.140794
Done.

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

Extracting fit parameters...

4FGL J0800.9+4401
   Spectrum: PowerLaw
278    Prefactor:  8.342e+00  6.628e+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

GAL_V02
   Spectrum: PowerLaw
656    Prefactor:  9.532e-01  1.408e-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:  9.721e-01  2.023e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.11
Ra Dec: 120.246 44.018
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 2.94e-08 +/- 2.33e-08
Energy Flux (Fixed Index): 1.39e-05 +/- 1.10e-05

TS (Fixed Index): 3.11
Ra Dec: 120.246 44.018
Photon Flux Upper Limit: 8.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.56e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/47818/likelihoodResults_641865601_642124801_4FGL_J0800.9+4401_daily_bin1553.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): 0
logL (Free Index) = 7237.69424927
delta logL = 0.264434392648

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7237.69387153
delta logL = 0.264812133179

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.356       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7864       1.0000          .0000       10.000    
     3 'Normalizat'    .98178       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94954       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.

 FCN=   7237.694     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      264 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.385        346.37        .29721E-02    .38010E-03
   2  Index         1.7882        5.3358        .18100        .31442E-04
   3  Normalizat    .98175        .15901        .45938E-01    .17820E-04
   4  Prefactor     .94948        .78573E-01    .45633E-01    .24315E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.3849
  Index      = 1.78817
  Normalizat = 0.981749
  Prefactor  = 0.94948
 **********
 **   18 **HESSE 
 **********

 FCN=   7237.694     FROM HESSE     STATUS=OK            33 CALLS      297 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.385        9.1705        .59441E-03   -1.5033    
   2  Index         1.7882        .49984        .90149E-02   -.69758    
   3  Normalizat    .98175        .19411        .28140E-03   -.93644    
   4  Prefactor     .94948        .13850        .20279E-03   -.94433    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.71231e-10
Minuit parameter uncertainties:
  1  9.17158
  2  0.50127
  3  0.194254
  4  0.138551
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/47818': 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): 0
logL (Free Index) = 7237.69385729
delta logL = 0.264826371811

Extracting fit parameters...

4FGL J0800.9+4401
   Spectrum: PowerLaw
278    Prefactor:  1.138e+01  9.172e+00  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  1.788e+00  5.013e-01  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.495e-01  1.386e-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:  9.817e-01  1.943e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.64
Ra Dec: 120.246 44.018
Photon Index (Free Index): 1.79 +/- 0.50
Photon Flux (Free Index): 2.05e-08 +/- 1.99e-08
Energy Flux (Free Index): 2.54e-05 +/- 3.10e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/47818/cmap_HighResolution_641865601_642124801_4FGL_J0800.9+4401_daily_bin1553.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.56e-03', comment='SUCCESS', photon_flux='2.94e-08', energy_flux2='2.54e-05', photon_flux_error='2.33e-08', dlogl='2.65e-01', energy_flux='1.39e-05', photon_flux2='2.05e-08', job_status='DONE', time_completed='2021-08-28 21:52:06.531468', photon_index_error2='0.50', photon_index2='1.79', ts='3.11', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='8.63e-08', energy_flux_error2='3.10e-05', EG='0.97', time_epoch_completed='1630212726.53', return_code='0', job_id='47818', GAL2='0.95', EG2='0.98', return_code2='0', energy_flux_error='1.10e-05', photon_flux_error2='1.99e-08', ts2='3.64', photon_index='2.17' WHERE bin_id='1553' AND source_name='4FGL J0800.9+4401' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 21:52:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 47818: <4FGL_J0800.9+4401_daily_bin1553> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0800.9+4401_daily_bin1553 120.246 44.0181 641865601 642124801 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 :                                   975.43 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             338.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   993 sec.
    Turnaround time :                            995 sec.

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

