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


Performing analysis on: 4FGL_J0818.7+3153_daily_bin1138
RA = 124.695, Dec = 31.8862
tmin = 534297601, tmax = 534556801
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='412069', job_status='RUN', time_executed='2021-08-29 17:19:46.029842', time_epoch_executed='1630282786.03' WHERE source_name='4FGL J0818.7+3153' and cadence='daily' and bin_id='1138'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/412069

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/412069/ft1_4FGL_J0818.7+3153_daily_bin1138.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/412069/ft2_4FGL_J0818.7+3153_daily_bin1138.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/412069/ft1_4FGL_J0818.7+3153_daily_bin1138.fits outfile=/scratch/kocevski/412069/ft1_filteredMKT_4FGL_J0818.7+3153_daily_bin1138.fits ra=124.695 dec=31.8862 rad=12.0 tmin=534297601.0 tmax=534556801.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 7.59
user 3.33
sys 4.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/412069/ft2_4FGL_J0818.7+3153_daily_bin1138.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/412069/ft1_filteredMKT_4FGL_J0818.7+3153_daily_bin1138.fits evtable="EVENTS" outfile="/scratch/kocevski/412069/ft1_filtered_4FGL_J0818.7+3153_daily_bin1138.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 4.54
user 0.33
sys 4.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/412069/ft1_filtered_4FGL_J0818.7+3153_daily_bin1138.fits" evtable="EVENTS" scfile=/scratch/kocevski/412069/ft2_4FGL_J0818.7+3153_daily_bin1138.fits sctable="SC_DATA" outfile=/scratch/kocevski/412069/ltcube_534297601_534556801_4FGL_J0818.7+3153_daily_bin1138.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/412069/ft2_4FGL_J0818.7+3153_daily_bin1138.fits
.....................!
real 16.62
user 11.77
sys 4.80

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/412069/ft1_filtered_4FGL_J0818.7+3153_daily_bin1138.fits evtable="EVENTS" scfile=/scratch/kocevski/412069/ft2_4FGL_J0818.7+3153_daily_bin1138.fits sctable="SC_DATA" expcube=/scratch/kocevski/412069/ltcube_534297601_534556801_4FGL_J0818.7+3153_daily_bin1138.fits outfile=/scratch/kocevski/412069/expmap_534297601_534556801_4FGL_J0818.7+3153_daily_bin1138.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/412069/ltcube_534297601_534556801_4FGL_J0818.7+3153_daily_bin1138.fits
.....................!
real 196.08
user 185.83
sys 9.14

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/412069/ft1_filtered_4FGL_J0818.7+3153_daily_bin1138.fits scfile=/scratch/kocevski/412069/ft2_4FGL_J0818.7+3153_daily_bin1138.fits outfile=/scratch/kocevski/412069/cmap_534297601_534556801_4FGL_J0818.7+3153_daily_bin1138.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 4.50
user 0.37
sys 4.08

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/412069/ft1_filtered_4FGL_J0818.7+3153_daily_bin1138.fits scfile=/scratch/kocevski/412069/ft2_4FGL_J0818.7+3153_daily_bin1138.fits outfile=/scratch/kocevski/412069/cmap_HighResolution_534297601_534556801_4FGL_J0818.7+3153_daily_bin1138.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 4.50
user 0.38
sys 4.08

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/412069/ft1_filtered_4FGL_J0818.7+3153_daily_bin1138.fits evtable="EVENTS" scfile=/scratch/kocevski/412069/ft2_4FGL_J0818.7+3153_daily_bin1138.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/412069/Model_4FGL_J0818.7+3153_daily_bin1138.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/412069/ft1_filtered_4FGL_J0818.7+3153_daily_bin1138.fits.....................!
real 66.67
user 60.29
sys 5.79

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4528       1.0000         .10000E-03   10000.    
     2 'norm      '    .16385E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.8365       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.651       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    27.064       1.0000         .10000E-03   10000.    
     7 'norm      '    .10315E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.5912       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14738E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    .76182       1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.386       1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.630       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.656       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.9557       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.4630       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.590       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .82909       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.6193       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .74696       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0930       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=   6627.799     FROM MIGRAD    STATUS=CONVERGED    483 CALLS     2064 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4551        11.607       -.29628E-05   -.14246E-03
   2  norm          .10000E-03    2.0780       -.74377E-06** at limit **
   3  Prefactor     7.8850        26.546        .31443E-04    .18302E-03
   4  Prefactor     13.672        14.070       -.13534E-04    .13213E-03
   5  Prefactor     .10000E-03    26.624       -.25650E-04** at limit **
   6  norm          27.064        13.176       -.10017E-05    .23145E-04
   7  norm          .10000E-03    28.269        .22659E-04** at limit **
   8  Prefactor     6.5902        4.2416        .13940E-07   -.96171E-04
   9  Prefactor     .10018E-03    18.294       -.11311E-05** at limit **
  10  norm          .76179        .46686        .49957E-08   -.20045E-03
  11  Prefactor     23.399        21.010       -.96800E-06    .62664E-04
  12  Prefactor     13.627        14.384        .11441E-05    .16691E-04
  13  Prefactor     10.654        10.008       -.82127E-06   -.46950E-04
  14  Prefactor     .10000E-03    18.661        .54269E-06** at limit **
  15  Prefactor     1.9555        2.6266       -.37433E-07   -.62084E-03
  16  norm          .10000E-03    .40550       -.13289E-06** at limit **
  17  Prefactor     4.4594        13.966        .29933E-05   -.60200E-04
  18  Prefactor     11.587        9.2604        .22056E-05   -.19390E-05
  19  Prefactor     .85166        10.274        .83167E-06   -.52766E-03
  20  Prefactor     1.6191        2.1936       -.39069E-07   -.19322E-03
  21  Normalizat    .74695        .16918       -.10038E-06    .14983E-03
  22  Prefactor     1.0931        .13648       -.19102E-06    .27634E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.45511
  norm       = 0.000100001
  Prefactor  = 7.88501
  Prefactor  = 13.6721
  Prefactor  = 0.000100002
  norm       = 27.0643
  norm       = 0.0001
  Prefactor  = 6.59021
  Prefactor  = 0.00010018
  norm       = 0.761789
  Prefactor  = 23.3992
  Prefactor  = 13.6274
  Prefactor  = 10.6543
  Prefactor  = 0.0001
  Prefactor  = 1.95546
  norm       = 0.0001
  Prefactor  = 4.45939
  Prefactor  = 11.5871
  Prefactor  = 0.851658
  Prefactor  = 1.61913
  Normalizat = 0.746948
  Prefactor  = 1.09314
 **********
 **   18 **HESSE 
 **********

 FCN=   6627.799     FROM HESSE     STATUS=OK           358 CALLS     2422 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4551        11.613        .21765E-03   -1.5336    
   2  norm          .10000E-03    3.5963        .21660E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.8850        25.944        .14324E-03   -1.5146    
   4  Prefactor     13.672        13.782        .10841E-03   -1.4968    
   5  Prefactor     .10000E-03    26.920        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          27.064        13.183        .77006E-04   -1.4667    
   7  norm          .10000E-03    28.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.5902        4.2330        .12788E-03   -1.5194    
   9  Prefactor     .10018E-03    126.31        .66462E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .76179        .45835        .41866E-04   -1.5533    
  11  Prefactor     23.399        20.803        .82831E-04   -1.4740    
  12  Prefactor     13.627        14.383        .10849E-03   -1.4969    
  13  Prefactor     10.654        9.9475        .12274E-03   -1.5055    
  14  Prefactor     .10000E-03    18.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.9555        2.5932        .13938E-03   -1.5428    
  16  norm          .10000E-03    .67075        .99417E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.4594        13.937        .19060E-03   -1.5286    
  18  Prefactor     11.587        9.1830        .11767E-03   -1.5027    
  19  Prefactor     .85166        47.111        .49300E-02   -1.5523    
  20  Prefactor     1.6191        2.1752        .13653E-03   -1.5453    
  21  Normalizat    .74695        .19126        .28375E-03   -1.0207    
  22  Prefactor     1.0931        .15593        .20010E-03   -.89686    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.70575e-09
Minuit parameter uncertainties:
  1  11.6206
  2  0.000129904
  3  25.9807
  4  13.7853
  5  0.000443268
  6  13.1844
  7  7.86026e-06
  8  4.23315
  9  0.00955817
  10  0.458357
  11  20.8094
  12  14.3871
  13  9.94902
  14  1.14335e-05
  15  2.59331
  16  9.65656e-06
  17  13.9472
  18  9.18407
  19  12.6783
  20  2.17532
  21  0.19143
  22  0.155999
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.363e+01  1.439e+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.093e+00  1.560e-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:  7.469e-01  1.914e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.64
Ra Dec: 124.695 31.886
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 1.47e-08 +/- 1.55e-08
Energy Flux (Fixed Index): 7.49e-06 +/- 7.91e-06

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

Saving results to:
/scratch/kocevski/412069/likelihoodResults_534297601_534556801_4FGL_J0818.7+3153_daily_bin1138.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) = 6627.28662769
delta logL = 0.512011155536

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6627.15843535
delta logL = 0.640203497578

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.830       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3337       1.0000          .0000       10.000    
     3 'Normalizat'    .75583       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0903       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=   6627.158     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      251 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.830        26.147        .80390E-04   -.16769E-03
   2  Index         1.3337        .64887        .10970E-01   -.63720E-04
   3  Normalizat    .75582        .18255        .28217E-03    .35254E-04
   4  Prefactor     1.0903        .15411        .20030E-03    .49231E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.8299
  Index      = 1.33369
  Normalizat = 0.75582
  Prefactor  = 1.09032
 **********
 **   18 **HESSE 
 **********

 FCN=   6627.158     FROM HESSE     STATUS=OK            23 CALLS      274 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.830        26.251        .16078E-04   -1.4711    
   2  Index         1.3337        .65156        .43879E-03   -.82311    
   3  Normalizat    .75582        .18267        .11287E-04   -1.0173    
   4  Prefactor     1.0903        .15422        .40061E-04   -.89776    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.65446e-10
Minuit parameter uncertainties:
  1  26.2633
  2  0.655617
  3  0.182822
  4  0.154279
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/412069': 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) = 6627.15843532
delta logL = 0.640203523642

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  2.483e+01  2.626e+01  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  1.334e+00  6.556e-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.090e+00  1.543e-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:  7.558e-01  1.828e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.92
Ra Dec: 124.695 31.886
Photon Index (Free Index): 1.33 +/- 0.66
Photon Flux (Free Index): 5.69e-09 +/- 7.75e-09
Energy Flux (Free Index): 3.12e-05 +/- 5.10e-05

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/412069/cmap_HighResolution_534297601_534556801_4FGL_J0818.7+3153_daily_bin1138.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.66e-03', comment='SUCCESS', photon_flux='1.47e-08', energy_flux2='3.12e-05', photon_flux_error='1.55e-08', dlogl='6.40e-01', energy_flux='7.49e-06', photon_flux2='5.69e-09', job_status='DONE', time_completed='2021-08-29 17:31:42.401722', photon_index_error2='0.66', photon_index2='1.33', ts='2.64', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='6.15e-08', energy_flux_error2='5.10e-05', EG='0.75', time_epoch_completed='1630283502.4', return_code='0', job_id='412069', GAL2='1.09', EG2='0.76', return_code2='0', energy_flux_error='7.91e-06', photon_flux_error2='7.75e-09', ts2='3.92', photon_index='2.13' WHERE bin_id='1138' AND source_name='4FGL J0818.7+3153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:31:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0144>
Subject: Job 412069: <4FGL_J0818.7+3153_daily_bin1138> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_daily_bin1138 124.695 31.8862 534297601 534556801 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 :                                   775.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             243.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   953 sec.
    Turnaround time :                            955 sec.

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

