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


Performing analysis on: 4FGL_J0818.7+3153_daily_bin1411
RA = 124.695, Dec = 31.8862
tmin = 605059201, tmax = 605318401
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='413585', job_status='RUN', time_executed='2021-08-29 17:24:52.671017', time_epoch_executed='1630283092.67' WHERE source_name='4FGL J0818.7+3153' and cadence='daily' and bin_id='1411'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/413585

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/413585/ft1_4FGL_J0818.7+3153_daily_bin1411.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/413585/ft2_4FGL_J0818.7+3153_daily_bin1411.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/413585/ft1_4FGL_J0818.7+3153_daily_bin1411.fits outfile=/scratch/kocevski/413585/ft1_filteredMKT_4FGL_J0818.7+3153_daily_bin1411.fits ra=124.695 dec=31.8862 rad=12.0 tmin=605059201.0 tmax=605318401.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.23
user 5.09
sys 4.07

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/413585/ft1_filtered_4FGL_J0818.7+3153_daily_bin1411.fits" evtable="EVENTS" scfile=/scratch/kocevski/413585/ft2_4FGL_J0818.7+3153_daily_bin1411.fits sctable="SC_DATA" outfile=/scratch/kocevski/413585/ltcube_605059201_605318401_4FGL_J0818.7+3153_daily_bin1411.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/413585/ft2_4FGL_J0818.7+3153_daily_bin1411.fits
.....................!
real 16.10
user 11.35
sys 4.67

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/413585/ft1_filtered_4FGL_J0818.7+3153_daily_bin1411.fits evtable="EVENTS" scfile=/scratch/kocevski/413585/ft2_4FGL_J0818.7+3153_daily_bin1411.fits sctable="SC_DATA" expcube=/scratch/kocevski/413585/ltcube_605059201_605318401_4FGL_J0818.7+3153_daily_bin1411.fits outfile=/scratch/kocevski/413585/expmap_605059201_605318401_4FGL_J0818.7+3153_daily_bin1411.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/413585/ltcube_605059201_605318401_4FGL_J0818.7+3153_daily_bin1411.fits
.....................!
real 195.76
user 185.72
sys 9.22

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

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

This is gtbin version HEAD
real 4.34
user 0.38
sys 3.90

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

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

This is gtbin version HEAD
real 4.32
user 0.37
sys 3.91

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/413585/ft1_filtered_4FGL_J0818.7+3153_daily_bin1411.fits evtable="EVENTS" scfile=/scratch/kocevski/413585/ft2_4FGL_J0818.7+3153_daily_bin1411.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/413585/Model_4FGL_J0818.7+3153_daily_bin1411.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/413585/ft1_filtered_4FGL_J0818.7+3153_daily_bin1411.fits.....................!
real 64.40
user 57.78
sys 6.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .22601E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10718E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    30.319       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    13.018       1.0000         .10000E-03   10000.    
     7 'norm      '    61.450       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.7962       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.317       1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.311       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .16781E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0627       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0228       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=   5665.729     FROM MIGRAD    STATUS=CONVERGED    462 CALLS     2333 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.005       -.53712E-05** at limit **
   2  norm          .10003E-03    13.997        .38089E-06** at limit **
   3  Prefactor     .10000E-03    44.149       -.15355E-05** at limit **
   4  Prefactor     30.336        31.538        .17958E-04   -.22879E-04
   5  Prefactor     .10000E-03    19.205       -.52507E-05** at limit **
   6  norm          13.017        16.127        .21733E-06   -.27709E-04
   7  norm          61.427        97.460       -.27933E-04   -.54647E-05
   8  Prefactor     .10000E-03    2.7390        .62213E-07** at limit **
   9  Prefactor     .10000E-03    21.130       -.28633E-05** at limit **
  10  norm          1.7963        .76038        .55443E-07    .44218E-04
  11  Prefactor     .10000E-03    14.215        .31980E-05** at limit **
  12  Prefactor     .10000E-03    7.3723        .40798E-07** at limit **
  13  Prefactor     .10000E-03    17.796       -.36958E-05** at limit **
  14  Prefactor     .10000E-03    24.256        .86123E-05** at limit **
  15  Prefactor     .10000E-03    1.1574        .57779E-07** at limit **
  16  norm          .10000E-03    .88038        .16163E-07** at limit **
  17  Prefactor     .10000E-03    14.228        .33171E-05** at limit **
  18  Prefactor     13.314        13.092        .40675E-06   -.84268E-04
  19  Prefactor     14.306        17.831       -.86894E-06   -.26706E-04
  20  Prefactor     .10000E-03    2.4431        .21493E-06** at limit **
  21  Normalizat    1.0630        .20442       -.31507E-05    .71197E-04
  22  Prefactor     1.0225        .15751        .29617E-06   -.99819E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.000100028
  Prefactor  = 0.000100001
  Prefactor  = 30.3358
  Prefactor  = 0.0001
  norm       = 13.0172
  norm       = 61.4271
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.79631
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.314
  Prefactor  = 14.3063
  Prefactor  = 0.0001
  Normalizat = 1.06303
  Prefactor  = 1.02253
 **********
 **   18 **HESSE 
 **********

 FCN=   5665.729     FROM HESSE     STATUS=OK           340 CALLS     2673 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10003E-03    14.414        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    44.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     30.336        31.522        .72765E-04   -1.4606    
   5  Prefactor     .10000E-03    19.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          13.017        16.136        .11102E-03   -1.4986    
   7  norm          61.427        97.448        .25593E-03   -1.4139    
   8  Prefactor     .10000E-03    2.7674        .12157E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    21.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.7963        .75669        .41048E-04   -1.5440    
  11  Prefactor     .10000E-03    14.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.3733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    18.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    24.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.1676        .79043E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .91661        .13739E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    14.249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.314        13.066        .10976E-03   -1.4978    
  19  Prefactor     14.306        17.846        .10588E-03   -1.4951    
  20  Prefactor     .10000E-03    4.8077        .22878E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0630        .23921        .27651E-03   -.90948    
  22  Prefactor     1.0225        .18539        .21899E-03   -.91982    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.14394e-09
Minuit parameter uncertainties:
  1  4.83747e-05
  2  0.00127384
  3  0.000338997
  4  31.5395
  5  7.62375e-05
  6  16.141
  7  97.7019
  8  1.03695e-05
  9  6.95704e-06
  10  0.756695
  11  1.57409e-06
  12  3.02477e-06
  13  7.73472e-05
  14  7.61427e-06
  15  4.86682e-06
  16  1.51205e-06
  17  1.65216e-05
  18  13.0687
  19  17.8529
  20  4.64076e-05
  21  0.239456
  22  0.18551
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  3.025e-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:  1.023e+00  1.855e-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.063e+00  2.395e-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.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.43e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/413585/likelihoodResults_605059201_605318401_4FGL_J0818.7+3153_daily_bin1411.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) = 5665.72982684
delta logL = -0.000640234074126

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5665.72918694
delta logL = -3.29144313582e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10902E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1030       1.0000          .0000       10.000    
     3 'Normalizat'    1.0630       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0226       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=   5665.729     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      237 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10230E-03    56.678        .18142E-02** at limit **
   2  Index         2.0329        8.9484        .50000        .30080E-04
   3  Normalizat    1.0630        .13477E-01    .27651E-03    .28877E-03
   4  Prefactor     1.0225        .10550E-01    .21899E-03    .43608E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102305
  Index      = 2.03288
  Normalizat = 1.06303
  Prefactor  = 1.02253
 **********
 **   18 **HESSE 
 **********

 FCN=   5665.729     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      266 TOTAL
                     EDM=   .45E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10230E-03    242.30        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0329        7.8213        .50000       -.63531    
   3  Normalizat    1.0630        .28645E-01    .55302E-04   -.90948    
   4  Prefactor     1.0225        .22424E-01    .87596E-05   -.91982    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.50903e-08
Minuit parameter uncertainties:
  1  0.0474578
  2  399.753
  3  0.0286458
  4  0.0224243
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/413585': 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) = 5665.72918591
delta logL = 6.93880792824e-07

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.023e-04  4.746e-02  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  2.033e+00  3.998e+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.023e+00  2.242e-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:  1.063e+00  2.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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/413585/cmap_HighResolution_605059201_605318401_4FGL_J0818.7+3153_daily_bin1411.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.43e-03', job_status='DONE', photon_flux_upper_limit='4.52e-08', time_completed='2021-08-29 17:36:11.627751', job_id='413585', GAL2='1.02', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1630283771.63', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='6.94e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1411' AND source_name='4FGL J0818.7+3153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:36:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 413585: <4FGL_J0818.7+3153_daily_bin1411> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_daily_bin1411 124.695 31.8862 605059201 605318401 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 :                                   731.44 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             247.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   936 sec.
    Turnaround time :                            938 sec.

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

