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


Performing analysis on: 4FGL_J0818.7+3153_daily_bin1205
RA = 124.695, Dec = 31.8862
tmin = 551664001, tmax = 551923201
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='412165', job_status='RUN', time_executed='2021-08-29 17:20:35.565152', time_epoch_executed='1630282835.57' WHERE source_name='4FGL J0818.7+3153' and cadence='daily' and bin_id='1205'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/412165

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/412165/ft1_4FGL_J0818.7+3153_daily_bin1205.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/412165/ft2_4FGL_J0818.7+3153_daily_bin1205.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/412165/ft1_4FGL_J0818.7+3153_daily_bin1205.fits outfile=/scratch/kocevski/412165/ft1_filteredMKT_4FGL_J0818.7+3153_daily_bin1205.fits ra=124.695 dec=31.8862 rad=12.0 tmin=551664001.0 tmax=551923201.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 10.25
user 3.58
sys 6.45

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/412165/ft2_4FGL_J0818.7+3153_daily_bin1205.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/412165/ft2_4FGL_J0818.7+3153_daily_bin1205.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/412165/ft1_filteredMKT_4FGL_J0818.7+3153_daily_bin1205.fits evtable="EVENTS" outfile="/scratch/kocevski/412165/ft1_filtered_4FGL_J0818.7+3153_daily_bin1205.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 6.87
user 0.32
sys 6.43

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/412165/ft1_filtered_4FGL_J0818.7+3153_daily_bin1205.fits" evtable="EVENTS" scfile=/scratch/kocevski/412165/ft2_4FGL_J0818.7+3153_daily_bin1205.fits sctable="SC_DATA" outfile=/scratch/kocevski/412165/ltcube_551664001_551923201_4FGL_J0818.7+3153_daily_bin1205.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/412165/ft2_4FGL_J0818.7+3153_daily_bin1205.fits
.....................!
real 19.29
user 11.85
sys 7.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/412165/ft1_filtered_4FGL_J0818.7+3153_daily_bin1205.fits evtable="EVENTS" scfile=/scratch/kocevski/412165/ft2_4FGL_J0818.7+3153_daily_bin1205.fits sctable="SC_DATA" expcube=/scratch/kocevski/412165/ltcube_551664001_551923201_4FGL_J0818.7+3153_daily_bin1205.fits outfile=/scratch/kocevski/412165/expmap_551664001_551923201_4FGL_J0818.7+3153_daily_bin1205.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/412165/ltcube_551664001_551923201_4FGL_J0818.7+3153_daily_bin1205.fits
.....................!
real 200.11
user 186.89
sys 12.69

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 183 point sources and 0 extended sources

Setting source of interest to:
4FGL J0818.7+3153 @ 124.695 31.8862

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/412165/ft1_filtered_4FGL_J0818.7+3153_daily_bin1205.fits scfile=/scratch/kocevski/412165/ft2_4FGL_J0818.7+3153_daily_bin1205.fits outfile=/scratch/kocevski/412165/cmap_551664001_551923201_4FGL_J0818.7+3153_daily_bin1205.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=124.695 yref=31.8862 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 6.75
user 0.38
sys 6.28

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/412165/ft1_filtered_4FGL_J0818.7+3153_daily_bin1205.fits scfile=/scratch/kocevski/412165/ft2_4FGL_J0818.7+3153_daily_bin1205.fits outfile=/scratch/kocevski/412165/cmap_HighResolution_551664001_551923201_4FGL_J0818.7+3153_daily_bin1205.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=124.695 yref=31.8862 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 6.69
user 0.37
sys 6.26

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/412165/ft1_filtered_4FGL_J0818.7+3153_daily_bin1205.fits evtable="EVENTS" scfile=/scratch/kocevski/412165/ft2_4FGL_J0818.7+3153_daily_bin1205.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/412165/Model_4FGL_J0818.7+3153_daily_bin1205.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/412165/ft1_filtered_4FGL_J0818.7+3153_daily_bin1205.fits.....................!
real 35.16
user 25.39
sys 9.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/412165/ft1_filtered_4FGL_J0818.7+3153_daily_bin1205.fits', '/scratch/kocevski/412165/ft2_4FGL_J0818.7+3153_daily_bin1205.fits', expMap='/scratch/kocevski/412165/expmap_551664001_551923201_4FGL_J0818.7+3153_daily_bin1205.fits', expCube='/scratch/kocevski/412165/ltcube_551664001_551923201_4FGL_J0818.7+3153_daily_bin1205.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/412165/Model_4FGL_J0818.7+3153_daily_bin1205.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0818.7+3153'

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.482e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  2.135e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  2.794e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/412165/ft1_filtered_4FGL_J0818.7+3153_daily_bin1205.fits
Spacecraft file(s): /scratch/kocevski/412165/ft2_4FGL_J0818.7+3153_daily_bin1205.fits
Exposure map: /scratch/kocevski/412165/expmap_551664001_551923201_4FGL_J0818.7+3153_daily_bin1205.fits
Exposure cube: /scratch/kocevski/412165/ltcube_551664001_551923201_4FGL_J0818.7+3153_daily_bin1205.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/412165/Model_4FGL_J0818.7+3153_daily_bin1205.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) = 1555.40261116

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    125.99       1.0000         .10000E-03   10000.    
     2 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.150       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10504E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10094E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    113.98       1.0000         .10000E-03   10000.    
    12 'Prefactor '    103.07       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12862E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.302       1.0000         .10000E-03   10000.    
    16 'norm      '    .58513       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.317       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.5421       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5860E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1555.388     FROM MIGRAD    STATUS=CONVERGED    509 CALLS     2384 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     126.00        91.174        .36870E-05    .15420E-04
   2  norm          .10000E-03    8.8902        .51359E-06** at limit **
   3  Prefactor     17.129        180.52       -.19492E-04    .99127E-05
   4  Prefactor     .10000E-03    19.419        .15832E-06** at limit **
   5  Prefactor     .10000E-03    34.834        .14325E-07** at limit **
   6  norm          .10000E-03    16.596        .12310E-07** at limit **
   7  norm          .10000E-03    185.80       -.35796E-05** at limit **
   8  Prefactor     .10000E-03    122.93        .35803E-06** at limit **
   9  Prefactor     .10000E-03    45.823       -.25771E-06** at limit **
  10  norm          .10000E-03    24.781       -.51423E-06** at limit **
  11  Prefactor     113.99        97.965        .27101E-05    .19811E-04
  12  Prefactor     103.08        118.39        .36087E-05    .12258E-04
  13  Prefactor     .10001E-03    770.01        .96453E-04** at limit **
  14  Prefactor     .10000E-03    39.176        .37440E-06** at limit **
  15  Prefactor     15.284        38.557        .60706E-05   -.93038E-04
  16  norm          .58517        1.7646       -.30849E-06   -.39989E-03
  17  Prefactor     .10000E-03    929.85       -.11321E-03** at limit **
  18  Prefactor     .10000E-03    5.6820       -.16454E-07** at limit **
  19  Prefactor     17.372        85.940        .21970E-04    .12832E-04
  20  Prefactor     .10000E-03    15.934       -.17381E-07** at limit **
  21  Normalizat    .10000E-01    .27581       -.32683E-05** at limit **
  22  Prefactor     1.5421        .22509       -.44305E-06    .11931E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 126.001
  norm       = 0.000100001
  Prefactor  = 17.1287
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 113.987
  Prefactor  = 103.08
  Prefactor  = 0.000100014
  Prefactor  = 0.0001
  Prefactor  = 15.2844
  norm       = 0.585165
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.3719
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.54215
 **********
 **   18 **HESSE 
 **********

 FCN=   1555.388     FROM HESSE     STATUS=OK           328 CALLS     2712 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     126.00        91.318        .35863E-04   -1.3458    
   2  norm          .10000E-03    9.1733        .22859E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     17.129        180.25        .96714E-04   -1.4880    
   4  Prefactor     .10000E-03    19.479        .16974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    34.838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    16.603        .15696E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    185.93        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    122.92        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    45.831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    24.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     113.99        97.984        .37682E-04   -1.3569    
  12  Prefactor     103.08        118.40        .39604E-04   -1.3674    
  13  Prefactor     .10001E-03    760.50        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    39.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     15.284        38.153        .10239E-03   -1.4926    
  16  norm          .58517        1.7250        .85242E-04   -1.5555    
  17  Prefactor     .10000E-03    931.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.6930        .91820E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     17.372        85.452        .96246E-04   -1.4874    
  20  Prefactor     .10000E-03    15.934        .15380E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .10000E-01    .31855        .10833E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.5421        .21433        .17786E-03   -.76366    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.51621e-10
Minuit parameter uncertainties:
  1  91.4199
  2  0.000156647
  3  111.564
  4  7.17783e-05
  5  9.08463e-05
  6  4.01765e-06
  7  7.53161e-05
  8  0.000755262
  9  1.60312e-05
  10  0.00026023
  11  98.124
  12  118.673
  13  0.00654128
  14  3.37513e-05
  15  38.2135
  16  1.72514
  17  0.000319514
  18  4.01776e-06
  19  77.2353
  20  5.5724e-06
  21  5.85346e-06
  22  0.214459
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.031e+02  1.187e+02  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  2.135e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  2.794e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
583    Prefactor:  1.542e+00  2.145e-01  0.000e+00  1.000e+01 ( 1.000e+00)
584        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
585        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
582   Normalization:  1.000e-02  5.853e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.30
Ra Dec: 124.695 31.886
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 1.11e-07 +/- 1.28e-07
Energy Flux (Fixed Index): 5.66e-05 +/- 6.52e-05

TS (Fixed Index): 1.30
Ra Dec: 124.695 31.886
Photon Flux Upper Limit: 4.31e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.27e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/412165/likelihoodResults_551664001_551923201_4FGL_J0818.7+3153_daily_bin1205.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) = 1554.24338457
delta logL = 1.14471511276

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1552.83732487
delta logL = 2.55077481174

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     '    7.3483       1.0000          .0000       10.000    
     3 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5204       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5860E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1552.837     FROM MIGRAD    STATUS=CONVERGED    217 CALLS      566 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .46015E-03   -.19941E-06** at limit **
   2  Index         7.3482        .19015        .43272E-05    .12519E-02
   3  Normalizat    .10000E-01    .15354        .55296E-04** at limit **
   4  Prefactor     1.5207        .16528        .26566E-06   -.47284E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 7.34816
  Normalizat = 0.01
  Prefactor  = 1.52071
 **********
 **   18 **HESSE 
 **********

 FCN=   1552.837     FROM HESSE     STATUS=NOT POSDEF    43 CALLS      609 TOTAL
                     EDM=   .60E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .10092E-01    .16961E-03   -20.420    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.3482        2.3429        .36861E-01   -175.44    
   3  Normalizat    .10000E-01    .69667E-01    .21191       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.5207        .12829        .29580E-01   -2.3720    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.95745e-07
Minuit parameter uncertainties:
  1  4.05164e-08
  2  2.46971
  3  2.58857e-06
  4  0.12832
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/412165': 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) = 1552.83731904
delta logL = 2.55078064052

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  4.052e-08  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  7.348e+00  2.470e+00  0.000e+00  1.000e+01 (-1.000e+00)
303        Scale:  2.794e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
583    Prefactor:  1.521e+00  1.283e-01  0.000e+00  1.000e+01 ( 1.000e+00)
584        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
585        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
582   Normalization:  1.000e-02  2.589e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.41
Ra Dec: 124.695 31.886
Photon Index (Free Index): 7.35 +/- 2.47
Photon Flux (Free Index): 6.78e-07 +/- 5.23e-06
Energy Flux (Free Index): 8.01e-05 +/- 6.14e-04

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/412165/cmap_HighResolution_551664001_551923201_4FGL_J0818.7+3153_daily_bin1205.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.27e-02', comment='SUCCESS', photon_flux='1.11e-07', energy_flux2='8.01e-05', photon_flux_error='1.28e-07', dlogl='2.55e+00', energy_flux='5.66e-05', photon_flux2='6.78e-07', job_status='DONE', time_completed='2021-08-29 17:28:54.989255', photon_index_error2='2.47', photon_index2='7.35', ts='1.30', fit_tolerance='1e-08', GAL='1.54', photon_index_error='0.00', photon_flux_upper_limit='4.31e-07', energy_flux_error2='6.14e-04', EG='0.01', time_epoch_completed='1630283334.99', return_code='0', job_id='412165', GAL2='1.52', EG2='0.01', return_code2='102', energy_flux_error='6.52e-05', photon_flux_error2='5.23e-06', ts2='6.41', photon_index='2.13' WHERE bin_id='1205' AND source_name='4FGL J0818.7+3153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:28:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 412165: <4FGL_J0818.7+3153_daily_bin1205> in cluster <slac> Done

Job <4FGL_J0818.7+3153_daily_bin1205> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sun Aug 29 17:15:55 2021
Job was executed on host(s) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 17:15:57 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 17:15:57 2021
Terminated at Sun Aug 29 17:28:57 2021
Results reported at Sun Aug 29 17:28:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_daily_bin1205 124.695 31.8862 551664001 551923201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0818.7+3153 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   593.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             198.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   778 sec.
    Turnaround time :                            782 sec.

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

