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


Performing analysis on: 4FGL_J0818.7+3153_daily_bin1554
RA = 124.695, Dec = 31.8862
tmin = 642124801, tmax = 642384001
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='413791', job_status='RUN', time_executed='2021-08-29 17:23:47.177343', time_epoch_executed='1630283027.18' WHERE source_name='4FGL J0818.7+3153' and cadence='daily' and bin_id='1554'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/413791

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/413791/ft1_4FGL_J0818.7+3153_daily_bin1554.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/413791/ft2_4FGL_J0818.7+3153_daily_bin1554.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/413791/ft1_4FGL_J0818.7+3153_daily_bin1554.fits outfile=/scratch/kocevski/413791/ft1_filteredMKT_4FGL_J0818.7+3153_daily_bin1554.fits ra=124.695 dec=31.8862 rad=12.0 tmin=642124801.0 tmax=642384001.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 4.58
user 4.09
sys 0.46

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/413791/ft2_4FGL_J0818.7+3153_daily_bin1554.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/413791/ft1_filteredMKT_4FGL_J0818.7+3153_daily_bin1554.fits evtable="EVENTS" outfile="/scratch/kocevski/413791/ft1_filtered_4FGL_J0818.7+3153_daily_bin1554.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.75
user 0.32
sys 0.40

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/413791/ft1_filtered_4FGL_J0818.7+3153_daily_bin1554.fits" evtable="EVENTS" scfile=/scratch/kocevski/413791/ft2_4FGL_J0818.7+3153_daily_bin1554.fits sctable="SC_DATA" outfile=/scratch/kocevski/413791/ltcube_642124801_642384001_4FGL_J0818.7+3153_daily_bin1554.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/413791/ft2_4FGL_J0818.7+3153_daily_bin1554.fits
.....................!
real 13.99
user 13.30
sys 0.63

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/413791/ft1_filtered_4FGL_J0818.7+3153_daily_bin1554.fits evtable="EVENTS" scfile=/scratch/kocevski/413791/ft2_4FGL_J0818.7+3153_daily_bin1554.fits sctable="SC_DATA" expcube=/scratch/kocevski/413791/ltcube_642124801_642384001_4FGL_J0818.7+3153_daily_bin1554.fits outfile=/scratch/kocevski/413791/expmap_642124801_642384001_4FGL_J0818.7+3153_daily_bin1554.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/413791/ltcube_642124801_642384001_4FGL_J0818.7+3153_daily_bin1554.fits
.....................!
real 190.86
user 185.54
sys 4.87

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/413791/ft1_filtered_4FGL_J0818.7+3153_daily_bin1554.fits scfile=/scratch/kocevski/413791/ft2_4FGL_J0818.7+3153_daily_bin1554.fits outfile=/scratch/kocevski/413791/cmap_642124801_642384001_4FGL_J0818.7+3153_daily_bin1554.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=124.695 yref=31.8862 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.93
user 0.38
sys 0.38

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/413791/ft1_filtered_4FGL_J0818.7+3153_daily_bin1554.fits scfile=/scratch/kocevski/413791/ft2_4FGL_J0818.7+3153_daily_bin1554.fits outfile=/scratch/kocevski/413791/cmap_HighResolution_642124801_642384001_4FGL_J0818.7+3153_daily_bin1554.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=124.695 yref=31.8862 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.85
user 0.37
sys 0.40

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/413791/ft1_filtered_4FGL_J0818.7+3153_daily_bin1554.fits evtable="EVENTS" scfile=/scratch/kocevski/413791/ft2_4FGL_J0818.7+3153_daily_bin1554.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/413791/Model_4FGL_J0818.7+3153_daily_bin1554.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/413791/ft1_filtered_4FGL_J0818.7+3153_daily_bin1554.fits.....................!
real 64.64
user 58.68
sys 1.54

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.9035       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10221E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .89614       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.2942       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.7580       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .18608       1.0000         .10000E-03   10000.    
    16 'norm      '    1.3858       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.7055       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.7201       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0853       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .96680       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=   6001.773     FROM MIGRAD    STATUS=CONVERGED    489 CALLS     2378 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.9034        14.564       -.69319E-07   -.26410E-04
   2  norm          .10000E-03    2.3176       -.54088E-07** at limit **
   3  Prefactor     .10000E-03    11.741       -.16133E-05** at limit **
   4  Prefactor     .10000E-03    6.6365        .46260E-07** at limit **
   5  Prefactor     .10000E-03    10.544        .86427E-07** at limit **
   6  norm          .10000E-03    10.123        .12447E-05** at limit **
   7  norm          .10000E-03    151.42       -.59990E-05** at limit **
   8  Prefactor     .10000E-03    2.1230       -.28482E-09** at limit **
   9  Prefactor     .10000E-03    22.694       -.15643E-04** at limit **
  10  norm          .89614        .48538        .17112E-07    .67696E-03
  11  Prefactor     .10000E-03    21.643        .15449E-04** at limit **
  12  Prefactor     5.2855        34.000       -.81080E-06   -.94866E-05
  13  Prefactor     .10000E-03    5.1532        .60195E-07** at limit **
  14  Prefactor     4.7370        53.773       -.13805E-04   -.34848E-04
  15  Prefactor     .17738        1.6752       -.12134E-05    .93697E-03
  16  norm          1.3851        1.3240        .41113E-06    .25309E-03
  17  Prefactor     .10000E-03    58.706        .28290E-05** at limit **
  18  Prefactor     .10000E-03    3.5781       -.82856E-08** at limit **
  19  Prefactor     3.6991        29.168        .10534E-05   -.42779E-04
  20  Prefactor     3.7196        4.0443       -.21930E-06   -.28603E-03
  21  Normalizat    1.0856        .19422        .15166E-05    .20493E-03
  22  Prefactor     .96658        .14094       -.11473E-06    .30672E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.90345
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.89614
  Prefactor  = 0.0001
  Prefactor  = 5.28553
  Prefactor  = 0.0001
  Prefactor  = 4.73702
  Prefactor  = 0.177381
  norm       = 1.38506
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.6991
  Prefactor  = 3.7196
  Normalizat = 1.08558
  Prefactor  = 0.966579
 **********
 **   18 **HESSE 
 **********

 FCN=   6001.773     FROM HESSE     STATUS=OK           338 CALLS     2716 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.9034        14.568        .12733E-03   -1.5078    
   2  norm          .10000E-03    2.4194        .23025E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.6456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    10.249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    151.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.1377        .11018E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    22.612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .89614        .48938        .38502E-04   -1.5519    
  11  Prefactor     .10000E-03    21.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.2855        34.043        .17468E-03   -1.5248    
  13  Prefactor     .10000E-03    5.1591        .17168E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.7370        53.142        .18446E-03   -1.5273    
  15  Prefactor     .17738        10.479        .18532E-02   -1.5624    
  16  norm          1.3851        1.2990        .75645E-04   -1.5473    
  17  Prefactor     .10000E-03    59.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.5831        .14310E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.6991        29.541        .20979E-03   -1.5323    
  20  Prefactor     3.7196        4.0454        .15742E-03   -1.5322    
  21  Normalizat    1.0856        .22847        .26423E-03   -.90216    
  22  Prefactor     .96658        .16612        .21519E-03   -.93852    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.18107e-09
Minuit parameter uncertainties:
  1  14.5735
  2  1.83978e-06
  3  2.32291e-06
  4  1.21108e-06
  5  6.56925e-07
  6  1.66004e-05
  7  5.92223e-08
  8  1.18665e-06
  9  1.96767e-05
  10  0.489378
  11  2.27586e-05
  12  26.85
  13  9.23045e-06
  14  31.7677
  15  2.72645
  16  1.29904
  17  1.12692e-05
  18  4.55424e-06
  19  20.9207
  20  4.04567
  21  0.228676
  22  0.166204
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  5.286e+00  2.685e+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:  9.666e-01  1.662e-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.086e+00  2.287e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/413791/likelihoodResults_642124801_642384001_4FGL_J0818.7+3153_daily_bin1554.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) = 5999.31727471
delta logL = 2.45545945188

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5999.26607503
delta logL = 2.50665913876

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .41787E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    6.4479       1.0000          .0000       10.000    
     3 'Normalizat'    .90620       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0573       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=   5999.266     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      399 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .40818E-03    .40381E-02    .20633E-03** at limit **
   2  Index         6.4551        1.5187        .57106E-01    .75639E-04
   3  Normalizat    .90659        .58607E-01    .64561E-01   -.57009E-05
   4  Prefactor     1.0571        .45565E-01    .39499E-01   -.89478E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000408181
  Index      = 6.45513
  Normalizat = 0.906587
  Prefactor  = 1.05713
 **********
 **   18 **HESSE 
 **********

 FCN=   5999.266     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      432 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .40818E-03    .73875E-02    .92880E-05   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.4551        2.2246        .23608E-02    .29530    
   3  Normalizat    .90659        .18171        .28557E-03   -.96229    
   4  Prefactor     1.0571        .13743        .20678E-03   -.90849    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.55737e-11
Minuit parameter uncertainties:
  1  0.00301773
  2  2.31372
  3  0.181831
  4  0.13748
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/413791': 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) = 5999.26607092
delta logL = 2.50666324469

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  4.082e-04  3.018e-03  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  6.455e+00  2.314e+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:  1.057e+00  1.375e-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.066e-01  1.818e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.65
Ra Dec: 124.695 31.886
Photon Index (Free Index): 6.46 +/- 2.31
Photon Flux (Free Index): 1.64e-07 +/- 8.59e-08
Energy Flux (Free Index): 2.00e-05 +/- 1.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/413791/cmap_HighResolution_642124801_642384001_4FGL_J0818.7+3153_daily_bin1554.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.63e-03', comment='SUCCESS', energy_flux2='2.00e-05', dlogl='2.51e+00', photon_flux2='1.64e-07', job_status='DONE', time_completed='2021-08-29 17:34:39.642156', photon_index_error2='2.31', photon_index2='6.46', ts='0.04', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='8.74e-08', energy_flux_error2='1.10e-05', EG='1.09', time_epoch_completed='1630283679.64', return_code='0', job_id='413791', GAL2='1.06', EG2='0.91', return_code2='102', photon_flux_error2='8.59e-08', ts2='5.65', photon_index='2.13' WHERE bin_id='1554' AND source_name='4FGL J0818.7+3153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:34:39 PDT 2021


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

Job <4FGL_J0818.7+3153_daily_bin1554> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Aug 29 17:20:47 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 17:20:48 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:48 2021
Terminated at Sun Aug 29 17:34:40 2021
Results reported at Sun Aug 29 17:34:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_daily_bin1554 124.695 31.8862 642124801 642384001 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 :                                   647.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             318.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   831 sec.
    Turnaround time :                            833 sec.

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

