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


Performing analysis on: 4FGL_J0818.7+3153_daily_bin1022
RA = 124.695, Dec = 31.8862
tmin = 504230401, tmax = 504489601
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='411887', job_status='RUN', time_executed='2021-08-29 17:18:41.608341', time_epoch_executed='1630282721.61' WHERE source_name='4FGL J0818.7+3153' and cadence='daily' and bin_id='1022'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/411887

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/411887/ft1_4FGL_J0818.7+3153_daily_bin1022.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/411887/ft2_4FGL_J0818.7+3153_daily_bin1022.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/411887/ft1_4FGL_J0818.7+3153_daily_bin1022.fits outfile=/scratch/kocevski/411887/ft1_filteredMKT_4FGL_J0818.7+3153_daily_bin1022.fits ra=124.695 dec=31.8862 rad=12.0 tmin=504230401.0 tmax=504489601.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 6.77
user 3.35
sys 3.35

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/411887/ft2_4FGL_J0818.7+3153_daily_bin1022.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/411887/ft1_filteredMKT_4FGL_J0818.7+3153_daily_bin1022.fits evtable="EVENTS" outfile="/scratch/kocevski/411887/ft1_filtered_4FGL_J0818.7+3153_daily_bin1022.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 3.66
user 0.31
sys 3.30

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/411887/ft1_filtered_4FGL_J0818.7+3153_daily_bin1022.fits" evtable="EVENTS" scfile=/scratch/kocevski/411887/ft2_4FGL_J0818.7+3153_daily_bin1022.fits sctable="SC_DATA" outfile=/scratch/kocevski/411887/ltcube_504230401_504489601_4FGL_J0818.7+3153_daily_bin1022.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/411887/ft2_4FGL_J0818.7+3153_daily_bin1022.fits
.....................!
real 15.51
user 11.56
sys 3.85

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/411887/ft1_filtered_4FGL_J0818.7+3153_daily_bin1022.fits evtable="EVENTS" scfile=/scratch/kocevski/411887/ft2_4FGL_J0818.7+3153_daily_bin1022.fits sctable="SC_DATA" expcube=/scratch/kocevski/411887/ltcube_504230401_504489601_4FGL_J0818.7+3153_daily_bin1022.fits outfile=/scratch/kocevski/411887/expmap_504230401_504489601_4FGL_J0818.7+3153_daily_bin1022.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/411887/ltcube_504230401_504489601_4FGL_J0818.7+3153_daily_bin1022.fits
.....................!
real 193.96
user 184.79
sys 8.58

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/411887/ft1_filtered_4FGL_J0818.7+3153_daily_bin1022.fits scfile=/scratch/kocevski/411887/ft2_4FGL_J0818.7+3153_daily_bin1022.fits outfile=/scratch/kocevski/411887/cmap_504230401_504489601_4FGL_J0818.7+3153_daily_bin1022.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 3.72
user 0.36
sys 3.24

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/411887/ft1_filtered_4FGL_J0818.7+3153_daily_bin1022.fits scfile=/scratch/kocevski/411887/ft2_4FGL_J0818.7+3153_daily_bin1022.fits outfile=/scratch/kocevski/411887/cmap_HighResolution_504230401_504489601_4FGL_J0818.7+3153_daily_bin1022.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 3.65
user 0.39
sys 3.22

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/411887/ft1_filtered_4FGL_J0818.7+3153_daily_bin1022.fits evtable="EVENTS" scfile=/scratch/kocevski/411887/ft2_4FGL_J0818.7+3153_daily_bin1022.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/411887/Model_4FGL_J0818.7+3153_daily_bin1022.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/411887/ft1_filtered_4FGL_J0818.7+3153_daily_bin1022.fits.....................!
real 65.02
user 59.16
sys 5.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.995       1.0000         .10000E-03   10000.    
     2 'norm      '    13.739       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    38.218       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    30.249       1.0000         .10000E-03   10000.    
     7 'norm      '    102.71       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.1450       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.1306       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.591       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.5390       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.9587       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .30028       1.0000         .10000E-03   10000.    
    16 'norm      '    1.0089       1.0000         .10000E-03   10000.    
    17 'Prefactor '    38.519       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.8358       1.0000         .10000E-03   10000.    
    19 'Prefactor '    22.166       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .38170       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2330       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=   6245.312     FROM MIGRAD    STATUS=CONVERGED    462 CALLS     2386 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.994        16.585       -.12527E-05    .19024E-03
   2  norm          13.739        6.2630       -.67920E-07   -.45974E-04
   3  Prefactor     .10000E-03    10.300       -.65387E-06** at limit **
   4  Prefactor     38.217        25.376       -.67238E-06    .10323E-03
   5  Prefactor     .10000E-03    20.445        .15019E-05** at limit **
   6  norm          30.248        13.464       -.32532E-06    .10364E-03
   7  norm          102.71        98.486        .15833E-05   -.61479E-04
   8  Prefactor     3.1449        3.1658        .32250E-06   -.95639E-04
   9  Prefactor     .10000E-03    6.7239       -.44197E-06** at limit **
  10  norm          1.1307        .53020        .18658E-06    .12951E-03
  11  Prefactor     .10000E-03    7.2753        .72909E-06** at limit **
  12  Prefactor     12.588        22.083       -.48995E-05    .36200E-03
  13  Prefactor     1.5153        27.709       -.20483E-04   -.14858E-03
  14  Prefactor     4.9620        16.509        .34762E-05   -.26086E-03
  15  Prefactor     .30105        2.5994        .24986E-05   -.45888E-03
  16  norm          1.0078        1.3034       -.37420E-06   -.12172E-02
  17  Prefactor     38.519        25.295        .14626E-05   -.85437E-04
  18  Prefactor     9.8381        9.9859       -.38258E-06    .39327E-04
  19  Prefactor     22.166        16.703       -.45349E-06    .41132E-04
  20  Prefactor     .10000E-03    1.7450       -.22144E-07** at limit **
  21  Normalizat    .38169        .19358        .21642E-05   -.10105E-03
  22  Prefactor     1.2330        .15306        .16230E-06   -.12595E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.9944
  norm       = 13.7393
  Prefactor  = 0.0001
  Prefactor  = 38.2173
  Prefactor  = 0.000100001
  norm       = 30.2484
  norm       = 102.712
  Prefactor  = 3.14492
  Prefactor  = 0.0001
  norm       = 1.13068
  Prefactor  = 0.0001
  Prefactor  = 12.5882
  Prefactor  = 1.51534
  Prefactor  = 4.96197
  Prefactor  = 0.301048
  norm       = 1.00782
  Prefactor  = 38.5188
  Prefactor  = 9.8381
  Prefactor  = 22.166
  Prefactor  = 0.0001
  Normalizat = 0.381694
  Prefactor  = 1.233
 **********
 **   18 **HESSE 
 **********

 FCN=   6245.312     FROM HESSE     STATUS=OK           348 CALLS     2734 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.994        16.537        .89571E-04   -1.4813    
   2  norm          13.739        6.2628        .10806E-03   -1.4966    
   3  Prefactor     .10000E-03    10.297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     38.217        25.390        .64833E-04   -1.4471    
   5  Prefactor     .10000E-03    20.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          30.248        13.456        .72849E-04   -1.4607    
   7  norm          102.71        98.443        .19837E-03   -1.3678    
   8  Prefactor     3.1449        3.1517        .13382E-03   -1.5353    
   9  Prefactor     .10000E-03    6.7228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.1307        .53299        .37026E-04   -1.5495    
  11  Prefactor     .10000E-03    7.2702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.588        21.814        .11289E-03   -1.4998    
  13  Prefactor     1.5153        28.826        .34374E-03   -1.5462    
  14  Prefactor     4.9620        16.206        .18061E-03   -1.5262    
  15  Prefactor     .30105        4.0119        .19646E-02   -1.5598    
  16  norm          1.0078        1.1901        .88934E-03   -1.5507    
  17  Prefactor     38.519        25.259        .64580E-04   -1.4466    
  18  Prefactor     9.8381        9.8789        .12777E-03   -1.5081    
  19  Prefactor     22.166        16.670        .85077E-04   -1.4766    
  20  Prefactor     .10000E-03    1.7615        .10192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .38169        .19656        .38559E-03   -1.1826    
  22  Prefactor     1.2330        .16095        .18760E-03   -.85322    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28811e-09
Minuit parameter uncertainties:
  1  16.5408
  2  6.2631
  3  6.54241e-05
  4  25.3969
  5  0.000226376
  6  13.4569
  7  98.5996
  8  3.1519
  9  3.67216e-05
  10  0.53299
  11  6.43711e-05
  12  21.8282
  13  13.2253
  14  16.2203
  15  2.19779
  16  1.19011
  17  25.2664
  18  9.88052
  19  16.6739
  20  3.71069e-06
  21  0.196918
  22  0.161013
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.259e+01  2.183e+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:  1.233e+00  1.610e-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:  3.817e-01  1.969e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/411887/likelihoodResults_504230401_504489601_4FGL_J0818.7+3153_daily_bin1022.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) = 6245.1431919
delta logL = 0.168509899717

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6245.13194438
delta logL = 0.17975742156

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.7581       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6895       1.0000          .0000       10.000    
     3 'Normalizat'    .36967       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2367       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=   6245.132     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      296 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7548        21.119        .16738E-03   -.29974E-03
   2  Index         2.6897        1.3891        .63080E-02   -.13327E-03
   3  Normalizat    .36968        .19036        .39166E-03    .26592E-03
   4  Prefactor     1.2366        .15996        .18733E-03    .52642E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.75477
  Index      = 2.68967
  Normalizat = 0.369677
  Prefactor  = 1.23665
 **********
 **   18 **HESSE 
 **********

 FCN=   6245.132     FROM HESSE     STATUS=OK            25 CALLS      321 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.7548        14.274        .66952E-05   -1.5228    
   2  Index         2.6897        .94606        .25232E-03   -.48032    
   3  Normalizat    .36968        .18977        .15666E-04   -1.1890    
   4  Prefactor     1.2366        .15960        .37466E-04   -.85211    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.19057e-10
Minuit parameter uncertainties:
  1  14.2825
  2  0.953392
  3  0.190099
  4  0.159667
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/411887': 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): 0
logL (Free Index) = 6245.13194433
delta logL = 0.179757468906

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  5.755e+00  1.428e+01  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  2.690e+00  9.534e-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:  1.237e+00  1.597e-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:  3.697e-01  1.901e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.44
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/411887/cmap_HighResolution_504230401_504489601_4FGL_J0818.7+3153_daily_bin1022.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.66e-03', job_status='DONE', photon_flux_upper_limit='7.47e-08', time_completed='2021-08-29 17:30:23.447618', job_id='411887', GAL2='1.24', fit_tolerance='1e-08', EG2='0.37', EG='0.38', time_epoch_completed='1630283423.45', return_code2='0', ts='0.44', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='1.80e-01', ts2='0.80', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1022' AND source_name='4FGL J0818.7+3153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:30:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 411887: <4FGL_J0818.7+3153_daily_bin1022> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_daily_bin1022 124.695 31.8862 504230401 504489601 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 :                                   747.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   886 sec.
    Turnaround time :                            888 sec.

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

