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


Performing analysis on: 4FGL_J0818.7+3153_daily_bin1417
RA = 124.695, Dec = 31.8862
tmin = 606614401, tmax = 606873601
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='413594', job_status='RUN', time_executed='2021-08-29 17:24:51.067322', time_epoch_executed='1630283091.07' WHERE source_name='4FGL J0818.7+3153' and cadence='daily' and bin_id='1417'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/413594

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/413594/ft1_4FGL_J0818.7+3153_daily_bin1417.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/413594/ft2_4FGL_J0818.7+3153_daily_bin1417.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/413594/ft1_4FGL_J0818.7+3153_daily_bin1417.fits outfile=/scratch/kocevski/413594/ft1_filteredMKT_4FGL_J0818.7+3153_daily_bin1417.fits ra=124.695 dec=31.8862 rad=12.0 tmin=606614401.0 tmax=606873601.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.84
user 4.81
sys 0.98

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/413594/ft1_filtered_4FGL_J0818.7+3153_daily_bin1417.fits" evtable="EVENTS" scfile=/scratch/kocevski/413594/ft2_4FGL_J0818.7+3153_daily_bin1417.fits sctable="SC_DATA" outfile=/scratch/kocevski/413594/ltcube_606614401_606873601_4FGL_J0818.7+3153_daily_bin1417.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/413594/ft2_4FGL_J0818.7+3153_daily_bin1417.fits
.....................!
real 13.31
user 11.95
sys 0.98

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/413594/ft1_filtered_4FGL_J0818.7+3153_daily_bin1417.fits evtable="EVENTS" scfile=/scratch/kocevski/413594/ft2_4FGL_J0818.7+3153_daily_bin1417.fits sctable="SC_DATA" expcube=/scratch/kocevski/413594/ltcube_606614401_606873601_4FGL_J0818.7+3153_daily_bin1417.fits outfile=/scratch/kocevski/413594/expmap_606614401_606873601_4FGL_J0818.7+3153_daily_bin1417.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/413594/ltcube_606614401_606873601_4FGL_J0818.7+3153_daily_bin1417.fits
.....................!
real 191.13
user 184.81
sys 5.76

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/413594/ft1_filtered_4FGL_J0818.7+3153_daily_bin1417.fits scfile=/scratch/kocevski/413594/ft2_4FGL_J0818.7+3153_daily_bin1417.fits outfile=/scratch/kocevski/413594/cmap_606614401_606873601_4FGL_J0818.7+3153_daily_bin1417.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 1.19
user 0.37
sys 0.73

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/413594/ft1_filtered_4FGL_J0818.7+3153_daily_bin1417.fits scfile=/scratch/kocevski/413594/ft2_4FGL_J0818.7+3153_daily_bin1417.fits outfile=/scratch/kocevski/413594/cmap_HighResolution_606614401_606873601_4FGL_J0818.7+3153_daily_bin1417.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 1.14
user 0.40
sys 0.70

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/413594/ft1_filtered_4FGL_J0818.7+3153_daily_bin1417.fits evtable="EVENTS" scfile=/scratch/kocevski/413594/ft2_4FGL_J0818.7+3153_daily_bin1417.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/413594/Model_4FGL_J0818.7+3153_daily_bin1417.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/413594/ft1_filtered_4FGL_J0818.7+3153_daily_bin1417.fits.....................!
real 64.07
user 61.32
sys 1.97

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1804       1.0000         .10000E-03   10000.    
     2 'norm      '    .36197       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    11.302       1.0000         .10000E-03   10000.    
     7 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .16589       1.0000         .10000E-03   10000.    
     9 'Prefactor '    53.051       1.0000         .10000E-03   10000.    
    10 'norm      '    .68238       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .97352E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.9793       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13701       1.0000         .10000E-03   10000.    
    16 'norm      '    .48440       1.0000         .10000E-03   10000.    
    17 'Prefactor '    29.700       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.8852       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3024       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .86254       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=   6352.128     FROM MIGRAD    STATUS=CONVERGED    514 CALLS     2800 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1835        14.304        .22403E-05   -.11782E-03
   2  norm          .35623        2.4360       -.22386E-06   -.19933E-03
   3  Prefactor     .10000E-03    27.023       -.53206E-05** at limit **
   4  Prefactor     .10000E-03    11.816       -.23325E-06** at limit **
   5  Prefactor     .10000E-03    12.925        .60041E-06** at limit **
   6  norm          11.300        9.5283        .48108E-06    .31235E-05
   7  norm          .10000E-03    86.925        .36272E-06** at limit **
   8  Prefactor     .17031        2.0615       -.31605E-07   -.27976E-03
   9  Prefactor     53.041        38.341        .24167E-05    .14325E-04
  10  norm          .68253        .54044        .87609E-07   -.36061E-04
  11  Prefactor     .10000E-03    26.825        .43968E-05** at limit **
  12  Prefactor     .10016E-03    27.068       -.83237E-06** at limit **
  13  Prefactor     6.9786        11.206        .42005E-06   -.89734E-04
  14  Prefactor     .10000E-03    16.470       -.32239E-06** at limit **
  15  Prefactor     .12923        1.2850        .64445E-07   -.22086E-03
  16  norm          .48528        1.1871       -.14242E-05   -.25484E-02
  17  Prefactor     29.711        31.515       -.68615E-05   -.15666E-04
  18  Prefactor     1.8713        17.833        .10339E-04   -.15896E-03
  19  Prefactor     .10000E-03    4.7111       -.29489E-07** at limit **
  20  Prefactor     .10000E-03    3.0705        .20638E-07** at limit **
  21  Normalizat    1.3029        .18991       -.38160E-06    .12081E-03
  22  Prefactor     .86212        .14540        .15710E-06    .59643E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.18348
  norm       = 0.356232
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.3001
  norm       = 0.0001
  Prefactor  = 0.170314
  Prefactor  = 53.0408
  norm       = 0.682529
  Prefactor  = 0.0001
  Prefactor  = 0.000100158
  Prefactor  = 6.97863
  Prefactor  = 0.0001
  Prefactor  = 0.129228
  norm       = 0.485284
  Prefactor  = 29.7106
  Prefactor  = 1.87127
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.30291
  Prefactor  = 0.862121
 **********
 **   18 **HESSE 
 **********

 FCN=   6352.128     FROM HESSE     STATUS=OK           358 CALLS     3158 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1835        14.084        .22723E-03   -1.5351    
   2  norm          .35623        14.330        .23480E-02   -1.5589    
   3  Prefactor     .10000E-03    26.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          11.300        9.5217        .11916E-03   -1.5036    
   7  norm          .10000E-03    86.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .17031        15.925        .21535E-02   -1.5625    
   9  Prefactor     53.041        38.266        .55066E-04   -1.4250    
  10  norm          .68253        .52565        .48727E-04   -1.5543    
  11  Prefactor     .10000E-03    26.760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10016E-03    29.254        .11776       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.9786        11.141        .15186E-03   -1.5180    
  14  Prefactor     .10000E-03    16.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .12923        8.4598        .16387E-02   -1.5636    
  16  norm          .48528        1.2598        .13265E-03   -1.5569    
  17  Prefactor     29.711        31.178        .73518E-04   -1.4617    
  18  Prefactor     1.8713        16.458        .30313E-03   -1.5434    
  19  Prefactor     .10000E-03    4.7162        .16895E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.1412        .13630E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3029        .22244        .24489E-03   -.83480    
  22  Prefactor     .86212        .17066        .23310E-03   -.97478    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.86586e-09
Minuit parameter uncertainties:
  1  13.3968
  2  4.51922
  3  1.0687e-05
  4  5.43344e-06
  5  1.10163e-06
  6  9.52302
  7  1.10953e-06
  8  3.29368
  9  38.2835
  10  0.525656
  11  5.99055e-05
  12  0.00429806
  13  11.1446
  14  3.64175e-05
  15  2.09067
  16  1.25991
  17  31.1948
  18  11.103
  19  3.25269e-07
  20  1.86445e-06
  21  0.222608
  22  0.17077
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.002e-04  4.298e-03  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:  8.621e-01  1.708e-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.303e+00  2.226e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 124.695 31.886
Photon Flux Upper Limit: 7.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.06e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/413594/likelihoodResults_606614401_606873601_4FGL_J0818.7+3153_daily_bin1417.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) = 6352.12825435
delta logL = -1.2360744222e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6352.12825435
delta logL = -1.23601539599e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96362E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1347       1.0000          .0000       10.000    
     3 'Normalizat'    1.3029       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86213       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.

 FCN=   6351.757     FROM MIGRAD    STATUS=CONVERGED    110 CALLS      292 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .53827        9.1312        .90712E-02    .14062E-02
   2  Index         3.7419        1.7472        .11059        .13955E-03
   3  Normalizat    1.2449        .35751E-01    .56436E-01    .56781E-04
   4  Prefactor     .88547        .28488E-01    .44520E-01    .86283E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.538267
  Index      = 3.74186
  Normalizat = 1.24489
  Prefactor  = 0.885474
 **********
 **   18 **HESSE 
 **********

 FCN=   6351.757     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      325 TOTAL
                     EDM=   .55E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .53827        35.565        .65917E-04   -1.5561    
   2  Index         3.7419        6.8276        .40282E-02   -.25436    
   3  Normalizat    1.2449        .18316        .24957E-03   -.85227    
   4  Prefactor     .88547        .14326        .23025E-03   -.96651    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.50319e-07
Minuit parameter uncertainties:
  1  8.75529
  2  5.46834
  3  0.18325
  4  0.143317
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/413594': 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) = 6351.75741904
delta logL = 0.370822949933

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  5.383e-01  8.755e+00  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  3.742e+00  5.468e+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:  8.855e-01  1.433e-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.245e+00  1.833e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 124.695 31.886

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/413594/cmap_HighResolution_606614401_606873601_4FGL_J0818.7+3153_daily_bin1417.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.06e-03', job_status='DONE', photon_flux_upper_limit='7.99e-08', time_completed='2021-08-29 17:36:56.984666', job_id='413594', GAL2='0.89', fit_tolerance='1e-08', EG2='1.24', EG='1.30', time_epoch_completed='1630283816.98', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='3.71e-01', ts2='0.79', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1417' AND source_name='4FGL J0818.7+3153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:36:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 413594: <4FGL_J0818.7+3153_daily_bin1417> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_daily_bin1417 124.695 31.8862 606614401 606873601 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 :                                   728.20 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             254.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            982 sec.

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

