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


Performing analysis on: 4FGL_J0818.7+3153_daily_bin1008
RA = 124.695, Dec = 31.8862
tmin = 500601601, tmax = 500860801
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='411866', job_status='RUN', time_executed='2021-08-29 17:18:26.696498', time_epoch_executed='1630282706.7' WHERE source_name='4FGL J0818.7+3153' and cadence='daily' and bin_id='1008'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/411866

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/411866/ft1_4FGL_J0818.7+3153_daily_bin1008.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/411866/ft2_4FGL_J0818.7+3153_daily_bin1008.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/411866/ft1_4FGL_J0818.7+3153_daily_bin1008.fits outfile=/scratch/kocevski/411866/ft1_filteredMKT_4FGL_J0818.7+3153_daily_bin1008.fits ra=124.695 dec=31.8862 rad=12.0 tmin=500601601.0 tmax=500860801.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.35
user 4.84
sys 0.47

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/411866/ft2_4FGL_J0818.7+3153_daily_bin1008.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/411866/ft1_filteredMKT_4FGL_J0818.7+3153_daily_bin1008.fits evtable="EVENTS" outfile="/scratch/kocevski/411866/ft1_filtered_4FGL_J0818.7+3153_daily_bin1008.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.73
user 0.31
sys 0.40

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/411866/ft1_filtered_4FGL_J0818.7+3153_daily_bin1008.fits" evtable="EVENTS" scfile=/scratch/kocevski/411866/ft2_4FGL_J0818.7+3153_daily_bin1008.fits sctable="SC_DATA" outfile=/scratch/kocevski/411866/ltcube_500601601_500860801_4FGL_J0818.7+3153_daily_bin1008.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/411866/ft2_4FGL_J0818.7+3153_daily_bin1008.fits
.....................!
real 16.97
user 16.33
sys 0.60

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/411866/ft1_filtered_4FGL_J0818.7+3153_daily_bin1008.fits evtable="EVENTS" scfile=/scratch/kocevski/411866/ft2_4FGL_J0818.7+3153_daily_bin1008.fits sctable="SC_DATA" expcube=/scratch/kocevski/411866/ltcube_500601601_500860801_4FGL_J0818.7+3153_daily_bin1008.fits outfile=/scratch/kocevski/411866/expmap_500601601_500860801_4FGL_J0818.7+3153_daily_bin1008.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/411866/ltcube_500601601_500860801_4FGL_J0818.7+3153_daily_bin1008.fits
.....................!
real 190.56
user 185.75
sys 4.44

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/411866/ft1_filtered_4FGL_J0818.7+3153_daily_bin1008.fits scfile=/scratch/kocevski/411866/ft2_4FGL_J0818.7+3153_daily_bin1008.fits outfile=/scratch/kocevski/411866/cmap_500601601_500860801_4FGL_J0818.7+3153_daily_bin1008.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 0.74
user 0.39
sys 0.33

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/411866/ft1_filtered_4FGL_J0818.7+3153_daily_bin1008.fits scfile=/scratch/kocevski/411866/ft2_4FGL_J0818.7+3153_daily_bin1008.fits outfile=/scratch/kocevski/411866/cmap_HighResolution_500601601_500860801_4FGL_J0818.7+3153_daily_bin1008.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 0.79
user 0.38
sys 0.39

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/411866/ft1_filtered_4FGL_J0818.7+3153_daily_bin1008.fits evtable="EVENTS" scfile=/scratch/kocevski/411866/ft2_4FGL_J0818.7+3153_daily_bin1008.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/411866/Model_4FGL_J0818.7+3153_daily_bin1008.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/411866/ft1_filtered_4FGL_J0818.7+3153_daily_bin1008.fits.....................!
real 72.14
user 70.26
sys 1.46

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/411866/ft1_filtered_4FGL_J0818.7+3153_daily_bin1008.fits', '/scratch/kocevski/411866/ft2_4FGL_J0818.7+3153_daily_bin1008.fits', expMap='/scratch/kocevski/411866/expmap_500601601_500860801_4FGL_J0818.7+3153_daily_bin1008.fits', expCube='/scratch/kocevski/411866/ltcube_500601601_500860801_4FGL_J0818.7+3153_daily_bin1008.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/411866/Model_4FGL_J0818.7+3153_daily_bin1008.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/411866/ft1_filtered_4FGL_J0818.7+3153_daily_bin1008.fits
Spacecraft file(s): /scratch/kocevski/411866/ft2_4FGL_J0818.7+3153_daily_bin1008.fits
Exposure map: /scratch/kocevski/411866/expmap_500601601_500860801_4FGL_J0818.7+3153_daily_bin1008.fits
Exposure cube: /scratch/kocevski/411866/ltcube_500601601_500860801_4FGL_J0818.7+3153_daily_bin1008.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/411866/Model_4FGL_J0818.7+3153_daily_bin1008.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) = 7166.19479564

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.559       1.0000         .10000E-03   10000.    
     2 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    100.62       1.0000         .10000E-03   10000.    
     7 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .49787       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11433E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .38534       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.5066       1.0000         .10000E-03   10000.    
    12 'Prefactor '    40.910       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .11823E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10270E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .85641       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.5711       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1512       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0564       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=   7166.127     FROM MIGRAD    STATUS=CONVERGED    511 CALLS     2119 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.559        16.357        .14675E-05    .13858E-05
   2  norm          .10000E-03    2.2494        .28624E-07** at limit **
   3  Prefactor     .10000E-03    27.502        .43299E-06** at limit **
   4  Prefactor     .10000E-03    11.370       -.13711E-05** at limit **
   5  Prefactor     .10000E-03    16.118        .13052E-06** at limit **
   6  norm          100.62        24.309        .42667E-06    .23999E-04
   7  norm          .10000E-03    69.818       -.38216E-06** at limit **
   8  Prefactor     .50371        3.4857       -.10855E-05   -.52530E-03
   9  Prefactor     .10000E-03    27.574        .40740E-09** at limit **
  10  norm          .38552        .56368        .62990E-08   -.12310E-02
  11  Prefactor     5.3714        79.091       -.55647E-05   -.16914E-04
  12  Prefactor     40.909        31.948        .83940E-05    .47233E-05
  13  Prefactor     .10000E-03    10.247       -.18585E-06** at limit **
  14  Prefactor     .10000E-03    17.436       -.18394E-06** at limit **
  15  Prefactor     .10000E-03    1.1744       -.67052E-09** at limit **
  16  norm          .10000E-03    .60906        .82789E-07** at limit **
  17  Prefactor     .10000E-03    10.590        .82597E-06** at limit **
  18  Prefactor     .10000E-03    11.512        .10522E-05** at limit **
  19  Prefactor     .82393        15.047       -.39930E-06   -.95172E-04
  20  Prefactor     6.5702        4.4998        .29993E-07   -.80523E-04
  21  Normalizat    1.1516        .20327       -.65875E-06    .95228E-04
  22  Prefactor     1.0561        .15112       -.31998E-06    .66688E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.5586
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 100.62
  norm       = 0.0001
  Prefactor  = 0.503706
  Prefactor  = 0.0001
  norm       = 0.385522
  Prefactor  = 5.37135
  Prefactor  = 40.9091
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.823931
  Prefactor  = 6.5702
  Normalizat = 1.15162
  Prefactor  = 1.05607
 **********
 **   18 **HESSE 
 **********

 FCN=   7166.127     FROM HESSE     STATUS=OK           346 CALLS     2465 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.559        16.315        .86264E-04   -1.4779    
   2  norm          .10000E-03    2.2685        .12393E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    27.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    16.129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          100.62        24.308        .40079E-04   -1.3698    
   7  norm          .10000E-03    69.851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .50371        7.3898        .29800E-02   -1.5566    
   9  Prefactor     .10000E-03    27.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .38552        .50111        .72179E-03   -1.5584    
  11  Prefactor     5.3714        79.620        .17122E-03   -1.5244    
  12  Prefactor     40.909        31.356        .62672E-04   -1.4428    
  13  Prefactor     .10000E-03    10.328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    17.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.1851        .89521E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.1271        .12596E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .82393        142.42        .61588E-02   -1.5526    
  20  Prefactor     6.5702        4.5004        .14387E-03   -1.5195    
  21  Normalizat    1.1516        .23573        .29043E-03   -.88111    
  22  Prefactor     1.0561        .17596        .23500E-03   -.90883    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.3022e-10
Minuit parameter uncertainties:
  1  16.3184
  2  2.43658e-06
  3  5.17252e-06
  4  8.14394e-06
  5  2.8486e-06
  6  24.3109
  7  1.24793e-05
  8  3.85883
  9  1.42825e-05
  10  0.501113
  11  41.4261
  12  31.3684
  13  2.26484e-05
  14  1.37834e-05
  15  2.30138e-06
  16  7.97324e-06
  17  4.90936e-06
  18  8.51998e-06
  19  21.7167
  20  4.50063
  21  0.235949
  22  0.17606
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  4.091e+01  3.137e+01  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.056e+00  1.761e-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.152e+00  2.359e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.39
Ra Dec: 124.695 31.886
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 4.41e-08 +/- 3.38e-08
Energy Flux (Fixed Index): 2.25e-05 +/- 1.72e-05

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) = 7166.12356852
delta logL = 0.00368109991814

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7166.11732839
delta logL = 0.00992122734806

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7166.117     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      271 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.698        55.019        .67078E-04    .11772E-03
   2  Index         2.2341        .85443        .65098E-02    .48237E-04
   3  Normalizat    1.1456        .22925        .29108E-03    .20677E-03
   4  Prefactor     1.0588        .17569        .23473E-03    .35416E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.6979
  Index      = 2.23408
  Normalizat = 1.14558
  Prefactor  = 1.05879
 **********
 **   18 **HESSE 
 **********

 FCN=   7166.117     FROM HESSE     STATUS=OK            25 CALLS      296 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.698        46.363        .13416E-04   -1.4512    
   2  Index         2.2341        .71998        .26039E-03   -.58618    
   3  Normalizat    1.1456        .22735        .11643E-04   -.88302    
   4  Prefactor     1.0588        .17513        .46946E-04   -.90795    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40729e-10
Minuit parameter uncertainties:
  1  46.4101
  2  0.723617
  3  0.22755
  4  0.175221
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/411866': 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) = 7166.11732818
delta logL = 0.00992143937492

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  3.570e+01  4.641e+01  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  2.234e+00  7.236e-01  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.059e+00  1.752e-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.146e+00  2.276e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.41
Ra Dec: 124.695 31.886
Photon Index (Free Index): 2.23 +/- 0.72
Photon Flux (Free Index): 4.92e-08 +/- 5.26e-08
Energy Flux (Free Index): 2.08e-05 +/- 1.88e-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/411866/cmap_HighResolution_500601601_500860801_4FGL_J0818.7+3153_daily_bin1008.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.41e-08', energy_flux2='2.08e-05', photon_flux_error='3.38e-08', dlogl='9.92e-03', energy_flux='2.25e-05', photon_flux2='4.92e-08', job_status='DONE', time_completed='2021-08-29 17:29:01.382626', photon_index_error2='0.72', photon_index2='2.23', ts='4.39', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='1.88e-05', EG='1.15', time_epoch_completed='1630283341.38', return_code='0', job_id='411866', GAL2='1.06', EG2='1.15', return_code2='0', energy_flux_error='1.72e-05', photon_flux_error2='5.26e-08', ts2='4.41', photon_index='2.13' WHERE bin_id='1008' AND source_name='4FGL J0818.7+3153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:29:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 411866: <4FGL_J0818.7+3153_daily_bin1008> in cluster <slac> Done

Job <4FGL_J0818.7+3153_daily_bin1008> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sun Aug 29 17:15:35 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 17:15:36 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:36 2021
Terminated at Sun Aug 29 17:29:01 2021
Results reported at Sun Aug 29 17:29:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_daily_bin1008 124.695 31.8862 500601601 500860801 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 :                                   635.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             314.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   805 sec.
    Turnaround time :                            806 sec.

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

