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


Performing analysis on: 4FGL_J0818.7+3153_daily_bin1015
RA = 124.695, Dec = 31.8862
tmin = 502416001, tmax = 502675201
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='411877', job_status='RUN', time_executed='2021-08-29 17:18:26.451700', time_epoch_executed='1630282706.45' WHERE source_name='4FGL J0818.7+3153' and cadence='daily' and bin_id='1015'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/411877

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/411877/ft1_4FGL_J0818.7+3153_daily_bin1015.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/411877/ft2_4FGL_J0818.7+3153_daily_bin1015.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/411877/ft1_4FGL_J0818.7+3153_daily_bin1015.fits outfile=/scratch/kocevski/411877/ft1_filteredMKT_4FGL_J0818.7+3153_daily_bin1015.fits ra=124.695 dec=31.8862 rad=12.0 tmin=502416001.0 tmax=502675201.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 9.91
user 3.30
sys 6.35

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/411877/ft1_filtered_4FGL_J0818.7+3153_daily_bin1015.fits" evtable="EVENTS" scfile=/scratch/kocevski/411877/ft2_4FGL_J0818.7+3153_daily_bin1015.fits sctable="SC_DATA" outfile=/scratch/kocevski/411877/ltcube_502416001_502675201_4FGL_J0818.7+3153_daily_bin1015.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/411877/ft2_4FGL_J0818.7+3153_daily_bin1015.fits
.....................!
real 19.12
user 11.67
sys 7.22

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/411877/ft1_filtered_4FGL_J0818.7+3153_daily_bin1015.fits evtable="EVENTS" scfile=/scratch/kocevski/411877/ft2_4FGL_J0818.7+3153_daily_bin1015.fits sctable="SC_DATA" expcube=/scratch/kocevski/411877/ltcube_502416001_502675201_4FGL_J0818.7+3153_daily_bin1015.fits outfile=/scratch/kocevski/411877/expmap_502416001_502675201_4FGL_J0818.7+3153_daily_bin1015.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/411877/ltcube_502416001_502675201_4FGL_J0818.7+3153_daily_bin1015.fits
.....................!
real 199.40
user 186.08
sys 12.47

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/411877/ft1_filtered_4FGL_J0818.7+3153_daily_bin1015.fits scfile=/scratch/kocevski/411877/ft2_4FGL_J0818.7+3153_daily_bin1015.fits outfile=/scratch/kocevski/411877/cmap_502416001_502675201_4FGL_J0818.7+3153_daily_bin1015.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.95
user 0.37
sys 6.20

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/411877/ft1_filtered_4FGL_J0818.7+3153_daily_bin1015.fits scfile=/scratch/kocevski/411877/ft2_4FGL_J0818.7+3153_daily_bin1015.fits outfile=/scratch/kocevski/411877/cmap_HighResolution_502416001_502675201_4FGL_J0818.7+3153_daily_bin1015.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.85
user 0.37
sys 6.27

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/411877/ft1_filtered_4FGL_J0818.7+3153_daily_bin1015.fits evtable="EVENTS" scfile=/scratch/kocevski/411877/ft2_4FGL_J0818.7+3153_daily_bin1015.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/411877/Model_4FGL_J0818.7+3153_daily_bin1015.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/411877/ft1_filtered_4FGL_J0818.7+3153_daily_bin1015.fits.....................!
real 70.21
user 60.02
sys 9.33

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10889E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.8710       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .27567E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    48.155       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    35.093       1.0000         .10000E-03   10000.    
     7 'norm      '    19.437       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.0949       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10302E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.3276       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11681E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .20457E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .24607       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10623E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.3028       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.4280       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .91022       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .99656       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=   6440.751     FROM MIGRAD    STATUS=CONVERGED    501 CALLS     2069 TOTAL
                     EDM=   .87E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.8240        .64672E-05** at limit **
   2  norm          1.8756        3.5310        .86446E-06   -.68914E-03
   3  Prefactor     .10000E-03    40.897        .18583E-04** at limit **
   4  Prefactor     48.197        20.742       -.33531E-05   -.94536E-04
   5  Prefactor     .10000E-03    10.402       -.39342E-05** at limit **
   6  norm          35.093        13.214        .11479E-05   -.76107E-04
   7  norm          19.251        66.948       -.20156E-04   -.92088E-07
   8  Prefactor     .10000E-03    2.6057       -.11542E-06** at limit **
   9  Prefactor     .10000E-03    8.2161        .44801E-06** at limit **
  10  norm          1.0949        .57429       -.20333E-06   -.25003E-03
  11  Prefactor     .10000E-03    8.8068       -.56846E-05** at limit **
  12  Prefactor     .10000E-03    10.870        .28550E-05** at limit **
  13  Prefactor     2.3272        20.439        .12726E-04   -.59842E-05
  14  Prefactor     .10000E-03    8.1935       -.73745E-07** at limit **
  15  Prefactor     .10001E-03    1.3618       -.62955E-06** at limit **
  16  norm          .24599        .57662       -.13454E-06   -.20779E-02
  17  Prefactor     .10000E-03    14.896       -.15190E-05** at limit **
  18  Prefactor     .10000E-03    3.1922        .75874E-07** at limit **
  19  Prefactor     3.3144        15.652        .32506E-04   -.90695E-04
  20  Prefactor     2.4288        2.6234       -.41560E-07   -.16694E-03
  21  Normalizat    .90966        .17617       -.59159E-05    .13607E-04
  22  Prefactor     .99688        .13944        .18938E-05   -.53220E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.87563
  Prefactor  = 0.0001
  Prefactor  = 48.1972
  Prefactor  = 0.0001
  norm       = 35.0932
  norm       = 19.2509
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.09493
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.32717
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  norm       = 0.245985
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.31435
  Prefactor  = 2.42876
  Normalizat = 0.90966
  Prefactor  = 0.996884
 **********
 **   18 **HESSE 
 **********

 FCN=   6440.751     FROM HESSE     STATUS=OK           342 CALLS     2411 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.9655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.8756        3.4738        .18979E-03   -1.5434    
   3  Prefactor     .10000E-03    41.247        .21425E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     48.197        20.594        .57784E-04   -1.4318    
   5  Prefactor     .10000E-03    10.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          35.093        13.209        .67648E-04   -1.4522    
   7  norm          19.251        66.980        .90848E-04   -1.4830    
   8  Prefactor     .10000E-03    2.6387        .12632E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.2213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.0949        .57036        .40375E-04   -1.5499    
  11  Prefactor     .10000E-03    8.8103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.3272        17.917        .26882E-03   -1.5403    
  14  Prefactor     .10000E-03    8.2220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    13.614        .16840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .24599        .48184        .90205E-03   -1.5609    
  17  Prefactor     .10000E-03    14.922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.2300        .14002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.3144        15.273        .22277E-03   -1.5344    
  20  Prefactor     2.4288        2.6200        .13137E-03   -1.5396    
  21  Normalizat    .90966        .20220        .26062E-03   -.96122    
  22  Prefactor     .99688        .16291        .20684E-03   -.92833    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.18046e-09
Minuit parameter uncertainties:
  1  6.8206e-06
  2  3.47413
  3  0.000128066
  4  20.5967
  5  1.28328e-05
  6  13.21
  7  67.2438
  8  1.48025e-05
  9  1.23709e-05
  10  0.570363
  11  1.19876e-05
  12  1.50945e-05
  13  12.9197
  14  3.05862e-05
  15  0.000665065
  16  0.481849
  17  4.49559e-05
  18  7.51386e-06
  19  14.2355
  20  2.62017
  21  0.202368
  22  0.16299
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.509e-05  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:  9.969e-01  1.630e-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:  9.097e-01  2.024e-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: 5.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/411877/likelihoodResults_502416001_502675201_4FGL_J0818.7+3153_daily_bin1015.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) = 6440.75180756
delta logL = -0.000437650862295

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6440.75137299
delta logL = -3.07585651171e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10308E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0957       1.0000          .0000       10.000    
     3 'Normalizat'    .90951       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99681       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=   6440.751     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      239 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10076E-03    43.601        .18142E-02** at limit **
   2  Index         2.0477        7.7807        .50000        .22591E-04
   3  Normalizat    .90966        .80074E-02    .26062E-03    .30797E-04
   4  Prefactor     .99689        .66582E-02    .20684E-03    .12202E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100757
  Index      = 2.04765
  Normalizat = 0.909656
  Prefactor  = 0.996889
 **********
 **   18 **HESSE 
 **********

 FCN=   6440.751     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      268 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10076E-03    200.25        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0477        7.8507        .50000       -.63164    
   3  Normalizat    .90966        .17438E-01    .10425E-04   -.96122    
   4  Prefactor     .99689        .14500E-01    .82734E-05   -.92833    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.37369e-09
Minuit parameter uncertainties:
  1  0.0247026
  2  189.959
  3  0.017438
  4  0.0144997
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/411877': 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) = 6440.75136939
delta logL = 5.18290107721e-07

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.008e-04  2.470e-02  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  2.048e+00  1.900e+02  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:  9.969e-01  1.450e-02  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:  9.097e-01  1.744e-02  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/411877/cmap_HighResolution_502416001_502675201_4FGL_J0818.7+3153_daily_bin1015.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.88e-03', job_status='DONE', photon_flux_upper_limit='5.11e-08', time_completed='2021-08-29 17:30:46.343693', job_id='411877', GAL2='1.00', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1630283446.34', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='5.18e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1015' AND source_name='4FGL J0818.7+3153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:30:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 411877: <4FGL_J0818.7+3153_daily_bin1015> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_daily_bin1015 124.695 31.8862 502416001 502675201 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 :                                   830.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             249.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            912 sec.

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

