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


Performing analysis on: 4FGL_J0818.7+3153_daily_bin1011
RA = 124.695, Dec = 31.8862
tmin = 501379201, tmax = 501638401
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='411871', job_status='RUN', time_executed='2021-08-29 17:19:07.386085', time_epoch_executed='1630282747.39' WHERE source_name='4FGL J0818.7+3153' and cadence='daily' and bin_id='1011'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/411871

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/411871/ft1_4FGL_J0818.7+3153_daily_bin1011.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/411871/ft2_4FGL_J0818.7+3153_daily_bin1011.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/411871/ft1_4FGL_J0818.7+3153_daily_bin1011.fits outfile=/scratch/kocevski/411871/ft1_filteredMKT_4FGL_J0818.7+3153_daily_bin1011.fits ra=124.695 dec=31.8862 rad=12.0 tmin=501379201.0 tmax=501638401.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.75
user 3.35
sys 1.70

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/411871/ft1_filtered_4FGL_J0818.7+3153_daily_bin1011.fits" evtable="EVENTS" scfile=/scratch/kocevski/411871/ft2_4FGL_J0818.7+3153_daily_bin1011.fits sctable="SC_DATA" outfile=/scratch/kocevski/411871/ltcube_501379201_501638401_4FGL_J0818.7+3153_daily_bin1011.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/411871/ft2_4FGL_J0818.7+3153_daily_bin1011.fits
.....................!
real 13.77
user 11.60
sys 1.97

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/411871/ft1_filtered_4FGL_J0818.7+3153_daily_bin1011.fits evtable="EVENTS" scfile=/scratch/kocevski/411871/ft2_4FGL_J0818.7+3153_daily_bin1011.fits sctable="SC_DATA" expcube=/scratch/kocevski/411871/ltcube_501379201_501638401_4FGL_J0818.7+3153_daily_bin1011.fits outfile=/scratch/kocevski/411871/expmap_501379201_501638401_4FGL_J0818.7+3153_daily_bin1011.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/411871/ltcube_501379201_501638401_4FGL_J0818.7+3153_daily_bin1011.fits
.....................!
real 191.87
user 185.20
sys 6.29

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/411871/ft1_filtered_4FGL_J0818.7+3153_daily_bin1011.fits scfile=/scratch/kocevski/411871/ft2_4FGL_J0818.7+3153_daily_bin1011.fits outfile=/scratch/kocevski/411871/cmap_501379201_501638401_4FGL_J0818.7+3153_daily_bin1011.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.96
user 0.40
sys 1.54

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/411871/ft1_filtered_4FGL_J0818.7+3153_daily_bin1011.fits scfile=/scratch/kocevski/411871/ft2_4FGL_J0818.7+3153_daily_bin1011.fits outfile=/scratch/kocevski/411871/cmap_HighResolution_501379201_501638401_4FGL_J0818.7+3153_daily_bin1011.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 2.19
user 0.38
sys 1.61

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/411871/ft1_filtered_4FGL_J0818.7+3153_daily_bin1011.fits evtable="EVENTS" scfile=/scratch/kocevski/411871/ft2_4FGL_J0818.7+3153_daily_bin1011.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/411871/Model_4FGL_J0818.7+3153_daily_bin1011.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/411871/ft1_filtered_4FGL_J0818.7+3153_daily_bin1011.fits.....................!
real 72.53
user 68.97
sys 3.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10137E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11336E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.469       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.4103       1.0000         .10000E-03   10000.    
     6 'norm      '    88.660       1.0000         .10000E-03   10000.    
     7 'norm      '    .11644E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .38012E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10426E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .46994       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.0235       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10421E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.7161       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .12315E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.804       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.1368       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .98264E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.2512       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .92223       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0313       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=   7226.929     FROM MIGRAD    STATUS=CONVERGED    489 CALLS     2087 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.5793       -.12894E-06** at limit **
   2  norm          .10000E-03    1.7554        .56599E-08** at limit **
   3  Prefactor     .10000E-03    19.489        .66668E-06** at limit **
   4  Prefactor     22.468        18.308        .65768E-05    .65074E-04
   5  Prefactor     1.2365        208.65       -.29256E-04   -.41614E-04
   6  norm          88.671        17.949       -.25466E-05    .27586E-04
   7  norm          .10000E-03    45.704        .10293E-04** at limit **
   8  Prefactor     .10000E-03    2.0054        .18289E-06** at limit **
   9  Prefactor     .10000E-03    12.765        .66259E-08** at limit **
  10  norm          .46973        .47322        .87080E-07   -.36334E-03
  11  Prefactor     5.0031        39.119        .56949E-05   -.15719E-04
  12  Prefactor     .10000E-03    4.9781       -.33948E-07** at limit **
  13  Prefactor     .10000E-03    7.2839        .14729E-06** at limit **
  14  Prefactor     4.7138        19.848       -.71818E-05   -.14493E-03
  15  Prefactor     .10000E-03    .58883        .34009E-09** at limit **
  16  norm          .10000E-03    .55888        .24029E-06** at limit **
  17  Prefactor     13.809        21.738       -.71859E-05   -.25254E-04
  18  Prefactor     2.1411        7.7749        .24555E-05   -.43073E-03
  19  Prefactor     .10000E-03    52.347       -.40827E-04** at limit **
  20  Prefactor     2.2513        2.1493        .42830E-07    .36754E-03
  21  Normalizat    .92214        .16859        .14656E-05    .37909E-03
  22  Prefactor     1.0314        .13403        .14440E-06    .45321E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.4682
  Prefactor  = 1.23654
  norm       = 88.6705
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.46973
  Prefactor  = 5.00307
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.71375
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 13.8085
  Prefactor  = 2.14114
  Prefactor  = 0.000100004
  Prefactor  = 2.25132
  Normalizat = 0.922139
  Prefactor  = 1.03135
 **********
 **   18 **HESSE 
 **********

 FCN=   7226.929     FROM HESSE     STATUS=OK           344 CALLS     2431 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.5859        .15707E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.7632        .10977E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    19.509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     22.468        18.259        .84503E-04   -1.4760    
   5  Prefactor     1.2365        217.20        .36482E-03   -1.5486    
   6  norm          88.671        17.985        .21336E-03   -1.3822    
   7  norm          .10000E-03    45.686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.823        .22633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .46973        .43823        .55070E-03   -1.5571    
  11  Prefactor     5.0031        38.922        .17941E-03   -1.5261    
  12  Prefactor     .10000E-03    4.9792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.3224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.7138        17.955        .18529E-03   -1.5274    
  15  Prefactor     .10000E-03    .59123        .63680E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.1795        .11124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.809        21.720        .10781E-03   -1.4965    
  18  Prefactor     2.1411        7.6461        .28200E-03   -1.5415    
  19  Prefactor     .10000E-03    52.703        .41548E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.2513        2.1632        .11847E-03   -1.5408    
  21  Normalizat    .92214        .19029        .27457E-03   -.95687    
  22  Prefactor     1.0314        .15257        .21152E-03   -.91692    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77305e-09
Minuit parameter uncertainties:
  1  9.14307e-07
  2  7.76592e-06
  3  6.56174e-05
  4  18.2637
  5  32.8969
  6  17.986
  7  2.42123e-05
  8  0.000372627
  9  2.65608e-05
  10  0.438234
  11  27.9341
  12  9.71998e-07
  13  2.30175e-05
  14  17.9756
  15  9.23093e-07
  16  0.000110798
  17  21.7324
  18  7.64955
  19  0.000865914
  20  2.16325
  21  0.190428
  22  0.152629
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  9.720e-07  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.031e+00  1.526e-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.221e-01  1.904e-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: 3.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.32e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/411871/likelihoodResults_501379201_501638401_4FGL_J0818.7+3153_daily_bin1011.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) = 7226.92989914
delta logL = -0.000950763027504

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7226.92894767
delta logL = 7.00545569998e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0908       1.0000          .0000       10.000    
     3 'Normalizat'    .92214       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0314       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=   7226.929     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      234 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10151E-03    25.007        .18142E-02** at limit **
   2  Index         2.0285        5.9177        .50000        .55886E-04
   3  Normalizat    .92214        .87399E-02    .27456E-03   -.56087E-03
   4  Prefactor     1.0314        .71187E-02    .21152E-03   -.55406E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101508
  Index      = 2.02852
  Normalizat = 0.922136
  Prefactor  = 1.03135
 **********
 **   18 **HESSE 
 **********

 FCN=   7226.929     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      263 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10151E-03    110.16        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0285        8.2659        .50000       -.63639    
   3  Normalizat    .92214        .18650E-01    .54913E-04   -.95687    
   4  Prefactor     1.0314        .15191E-01    .42304E-04   -.91692    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.65215e-08
Minuit parameter uncertainties:
  1  0.0258215
  2  164.857
  3  0.0186506
  4  0.0151909
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/411871': 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) = 7226.92894684
delta logL = 1.53365726874e-06

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.015e-04  2.582e-02  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  2.029e+00  1.649e+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:  1.031e+00  1.519e-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.221e-01  1.865e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/411871/cmap_HighResolution_501379201_501638401_4FGL_J0818.7+3153_daily_bin1011.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.32e-03', job_status='DONE', photon_flux_upper_limit='3.06e-08', time_completed='2021-08-29 17:30:52.705218', job_id='411871', GAL2='1.03', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1630283452.71', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='1.53e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1011' AND source_name='4FGL J0818.7+3153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:30:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 411871: <4FGL_J0818.7+3153_daily_bin1011> in cluster <slac> Done

Job <4FGL_J0818.7+3153_daily_bin1011> 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) <bullet0244>, 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:30:53 2021
Results reported at Sun Aug 29 17:30:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_daily_bin1011 124.695 31.8862 501379201 501638401 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 :                                   723.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             311.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   917 sec.
    Turnaround time :                            918 sec.

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

