/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 76 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 = 7380
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0818.7+3153_daily_bin1419
RA = 124.695, Dec = 31.8862
tmin = 607132801, tmax = 607392001
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='413597', job_status='RUN', time_executed='2021-08-29 17:22:42.499559', time_epoch_executed='1630282962.5' WHERE source_name='4FGL J0818.7+3153' and cadence='daily' and bin_id='1419'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/413597

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/413597/ft1_4FGL_J0818.7+3153_daily_bin1419.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/413597/ft2_4FGL_J0818.7+3153_daily_bin1419.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/413597/ft1_4FGL_J0818.7+3153_daily_bin1419.fits outfile=/scratch/kocevski/413597/ft1_filteredMKT_4FGL_J0818.7+3153_daily_bin1419.fits ra=124.695 dec=31.8862 rad=12.0 tmin=607132801.0 tmax=607392001.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.19
user 5.04
sys 2.11

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/413597/ft1_filtered_4FGL_J0818.7+3153_daily_bin1419.fits" evtable="EVENTS" scfile=/scratch/kocevski/413597/ft2_4FGL_J0818.7+3153_daily_bin1419.fits sctable="SC_DATA" outfile=/scratch/kocevski/413597/ltcube_607132801_607392001_4FGL_J0818.7+3153_daily_bin1419.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/413597/ft2_4FGL_J0818.7+3153_daily_bin1419.fits
.....................!
real 14.04
user 11.49
sys 2.44

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/413597/ft1_filtered_4FGL_J0818.7+3153_daily_bin1419.fits evtable="EVENTS" scfile=/scratch/kocevski/413597/ft2_4FGL_J0818.7+3153_daily_bin1419.fits sctable="SC_DATA" expcube=/scratch/kocevski/413597/ltcube_607132801_607392001_4FGL_J0818.7+3153_daily_bin1419.fits outfile=/scratch/kocevski/413597/expmap_607132801_607392001_4FGL_J0818.7+3153_daily_bin1419.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/413597/ltcube_607132801_607392001_4FGL_J0818.7+3153_daily_bin1419.fits
.....................!
real 195.59
user 188.65
sys 6.59

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/413597/ft1_filtered_4FGL_J0818.7+3153_daily_bin1419.fits scfile=/scratch/kocevski/413597/ft2_4FGL_J0818.7+3153_daily_bin1419.fits outfile=/scratch/kocevski/413597/cmap_607132801_607392001_4FGL_J0818.7+3153_daily_bin1419.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 2.44
user 0.36
sys 2.00

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/413597/ft1_filtered_4FGL_J0818.7+3153_daily_bin1419.fits scfile=/scratch/kocevski/413597/ft2_4FGL_J0818.7+3153_daily_bin1419.fits outfile=/scratch/kocevski/413597/cmap_HighResolution_607132801_607392001_4FGL_J0818.7+3153_daily_bin1419.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.46
user 0.38
sys 1.98

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/413597/ft1_filtered_4FGL_J0818.7+3153_daily_bin1419.fits evtable="EVENTS" scfile=/scratch/kocevski/413597/ft2_4FGL_J0818.7+3153_daily_bin1419.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/413597/Model_4FGL_J0818.7+3153_daily_bin1419.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/413597/ft1_filtered_4FGL_J0818.7+3153_daily_bin1419.fits....................!
real 64.34
user 60.14
sys 3.64

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.446       1.0000         .10000E-03   10000.    
     2 'norm      '    .10324E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    53.394       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10306E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    8.2103       1.0000         .10000E-03   10000.    
     7 'norm      '    113.32       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.2493       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.0788       1.0000         .10000E-03   10000.    
    10 'norm      '    1.0834       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.8990       1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.132       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .19746       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.0490       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .94556       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .97025       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=   6500.164     FROM MIGRAD    STATUS=CONVERGED    481 CALLS     2380 TOTAL
                     EDM=   .90E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.446        11.767       -.16460E-07   -.14095E-05
   2  norm          .10000E-03    2.8603       -.75510E-07** at limit **
   3  Prefactor     .10000E-03    14.532        .84511E-07** at limit **
   4  Prefactor     53.397        23.771        .10940E-05    .68846E-05
   5  Prefactor     .10000E-03    53.566        .48757E-06** at limit **
   6  norm          8.2107        10.583        .25842E-07   -.79922E-04
   7  norm          113.32        111.78       -.64279E-06   -.42483E-07
   8  Prefactor     2.2493        3.4933       -.16645E-07   -.26588E-04
   9  Prefactor     7.0703        21.708       -.52567E-05   -.31817E-05
  10  norm          1.0834        .52300       -.35483E-08   -.41457E-05
  11  Prefactor     .10000E-03    12.682        .73828E-07** at limit **
  12  Prefactor     .10000E-03    9.3159        .47898E-07** at limit **
  13  Prefactor     2.8980        2.7204        .54045E-07   -.28454E-03
  14  Prefactor     16.131        15.403        .54520E-07    .45639E-05
  15  Prefactor     .10000E-03    .70028        .11693E-07** at limit **
  16  norm          .19695        .78538       -.11512E-07   -.45747E-04
  17  Prefactor     .10000E-03    30.399       -.12849E-06** at limit **
  18  Prefactor     .10000E-03    2.9943        .73738E-08** at limit **
  19  Prefactor     6.0491        13.953       -.64406E-07   -.21507E-05
  20  Prefactor     .10000E-03    1.2648       -.55146E-08** at limit **
  21  Normalizat    .94555        .17136        .17671E-06    .75383E-06
  22  Prefactor     .97025        .13774       -.60802E-07    .14911E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.4459
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 53.3969
  Prefactor  = 0.0001
  norm       = 8.21071
  norm       = 113.32
  Prefactor  = 2.24934
  Prefactor  = 7.07025
  norm       = 1.08336
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.89802
  Prefactor  = 16.1315
  Prefactor  = 0.0001
  norm       = 0.196952
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.04907
  Prefactor  = 0.0001
  Normalizat = 0.945546
  Prefactor  = 0.970252
 **********
 **   18 **HESSE 
 **********

 FCN=   6500.164     FROM HESSE     STATUS=OK           346 CALLS     2726 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.446        11.769        .11354E-03   -1.5002    
   2  norm          .10000E-03    2.9324        .26593E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    14.549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     53.397        23.766        .54890E-04   -1.4245    
   5  Prefactor     .10000E-03    53.911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          8.2107        10.861        .69959E-03   -1.5135    
   7  norm          113.32        111.86        .37791E-04   -1.3575    
   8  Prefactor     2.2493        3.4674        .17801E-03   -1.5408    
   9  Prefactor     7.0703        21.710        .15077E-03   -1.5176    
  10  norm          1.0834        .52701        .38819E-04   -1.5500    
  11  Prefactor     .10000E-03    12.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.3260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.8980        8.8729        .11933E-02   -1.5367    
  14  Prefactor     16.131        15.318        .99719E-04   -1.4904    
  15  Prefactor     .10000E-03    .70606        .65855E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .19695        1.3733        .12707E-02   -1.5619    
  17  Prefactor     .10000E-03    30.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.0022        .13622E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.0491        14.020        .16325E-03   -1.5216    
  20  Prefactor     .10000E-03    1.2720        .88537E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .94555        .19835        .25669E-03   -.94878    
  22  Prefactor     .97025        .16039        .20963E-03   -.93728    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.65358e-08
Minuit parameter uncertainties:
  1  11.7714
  2  1.3576e-05
  3  6.5248e-06
  4  23.7704
  5  4.77545e-05
  6  10.864
  7  112.068
  8  3.46772
  9  21.7338
  10  0.527017
  11  2.48928e-05
  12  3.66014e-06
  13  8.87689
  14  15.322
  15  9.3152e-08
  16  1.03992
  17  2.39641e-06
  18  9.39572e-08
  19  14.0281
  20  1.42465e-07
  21  0.198509
  22  0.160472
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  3.660e-06  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.703e-01  1.605e-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.455e-01  1.985e-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: 4.61e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.50e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/413597/likelihoodResults_607132801_607392001_4FGL_J0818.7+3153_daily_bin1419.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) = 6500.16499417
delta logL = -0.000510764569299

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6500.16448336
delta logL = 5.04669515067e-08

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 'Index     '    2.1194       1.0000          .0000       10.000    
     3 'Normalizat'    .94555       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97025       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=   6500.164     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      200 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    147.90        .90712E-02** at limit **
   2  Index         2.1041        8.9264        .50000        .13257E-04
   3  Normalizat    .94555        .17072E-01    .45481E-01   -.43474E-05
   4  Prefactor     .97025        .14182E-01    .45894E-01    .31522E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.1041
  Normalizat = 0.945546
  Prefactor  = 0.970252
 **********
 **   18 **HESSE 
 **********

 FCN=   6500.164     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      233 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    563.79        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1041        5.6791        .50000       -.61772    
   3  Normalizat    .94555        .35439E-01    .25669E-03   -.94878    
   4  Prefactor     .97025        .29442E-01    .20963E-03   -.93728    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.91566e-09
Minuit parameter uncertainties:
  1  0.000775293
  2  31.7501
  3  0.0354396
  4  0.0294421
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/413597': 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) = 6500.16448331
delta logL = 1.00915713119e-07

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  7.753e-04  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  2.104e+00  3.175e+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:  9.703e-01  2.944e-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.455e-01  3.544e-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/413597/cmap_HighResolution_607132801_607392001_4FGL_J0818.7+3153_daily_bin1419.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.50e-03', job_status='DONE', photon_flux_upper_limit='4.61e-08', time_completed='2021-08-29 17:34:35.077475', job_id='413597', GAL2='0.97', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1630283675.08', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.01e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1419' AND source_name='4FGL J0818.7+3153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:34:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 413597: <4FGL_J0818.7+3153_daily_bin1419> in cluster <slac> Done

Job <4FGL_J0818.7+3153_daily_bin1419> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Aug 29 17:20:35 2021
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 17:20:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 17:20:37 2021
Terminated at Sun Aug 29 17:34:39 2021
Results reported at Sun Aug 29 17:34:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_daily_bin1419 124.695 31.8862 607132801 607392001 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 :                                   732.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             292.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   839 sec.
    Turnaround time :                            844 sec.

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

