/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 189 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 = 7394
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0818.7+3153_daily_bin11
RA = 124.695, Dec = 31.8862
tmin = 242179201, tmax = 242438401
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='405159', job_status='RUN', time_executed='2021-08-29 16:59:42.908844', time_epoch_executed='1630281582.91' WHERE source_name='4FGL J0818.7+3153' and cadence='daily' and bin_id='11'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/405159

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/405159/ft1_4FGL_J0818.7+3153_daily_bin11.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/405159/ft2_4FGL_J0818.7+3153_daily_bin11.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/405159/ft1_4FGL_J0818.7+3153_daily_bin11.fits outfile=/scratch/kocevski/405159/ft1_filteredMKT_4FGL_J0818.7+3153_daily_bin11.fits ra=124.695 dec=31.8862 rad=12.0 tmin=242179201.0 tmax=242438401.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 2.20
user 1.26
sys 0.92

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/405159/ft1_filtered_4FGL_J0818.7+3153_daily_bin11.fits" evtable="EVENTS" scfile=/scratch/kocevski/405159/ft2_4FGL_J0818.7+3153_daily_bin11.fits sctable="SC_DATA" outfile=/scratch/kocevski/405159/ltcube_242179201_242438401_4FGL_J0818.7+3153_daily_bin11.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/405159/ft2_4FGL_J0818.7+3153_daily_bin11.fits
.....................!
real 13.98
user 12.74
sys 1.16

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/405159/ft1_filtered_4FGL_J0818.7+3153_daily_bin11.fits evtable="EVENTS" scfile=/scratch/kocevski/405159/ft2_4FGL_J0818.7+3153_daily_bin11.fits sctable="SC_DATA" expcube=/scratch/kocevski/405159/ltcube_242179201_242438401_4FGL_J0818.7+3153_daily_bin11.fits outfile=/scratch/kocevski/405159/expmap_242179201_242438401_4FGL_J0818.7+3153_daily_bin11.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/405159/ltcube_242179201_242438401_4FGL_J0818.7+3153_daily_bin11.fits
.....................!
real 190.81
user 185.40
sys 5.02

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

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

This is gtbin version HEAD
real 1.28
user 0.38
sys 0.90

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/405159/ft1_filtered_4FGL_J0818.7+3153_daily_bin11.fits scfile=/scratch/kocevski/405159/ft2_4FGL_J0818.7+3153_daily_bin11.fits outfile=/scratch/kocevski/405159/cmap_HighResolution_242179201_242438401_4FGL_J0818.7+3153_daily_bin11.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 1.31
user 0.38
sys 0.91

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/405159/ft1_filtered_4FGL_J0818.7+3153_daily_bin11.fits evtable="EVENTS" scfile=/scratch/kocevski/405159/ft2_4FGL_J0818.7+3153_daily_bin11.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/405159/Model_4FGL_J0818.7+3153_daily_bin11.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/405159/ft1_filtered_4FGL_J0818.7+3153_daily_bin11.fits.....................!
real 80.90
user 78.37
sys 2.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.9785       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10926E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.9824       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    6.5033       1.0000         .10000E-03   10000.    
     7 'norm      '    39.102       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.776       1.0000         .10000E-03   10000.    
    10 'norm      '    1.8921       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.7339       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.0703       1.0000         .10000E-03   10000.    
    16 'norm      '    2.2258       1.0000         .10000E-03   10000.    
    17 'Prefactor '    41.871       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.169       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.5312       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0773       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .95415       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=   8598.197     FROM MIGRAD    STATUS=CONVERGED    462 CALLS     2332 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.3818        .90712E-02** at limit **
   2  norm          5.9761        4.4952        .41056E-02   -.27155E-02
   3  Prefactor     .10000E-03    62.369        .90712E-02** at limit **
   4  Prefactor     6.9801        17.096        .37955E-02   -.36381E-03
   5  Prefactor     .10000E-03    9.4188        .90712E-02** at limit **
   6  norm          6.5029        6.9018        .39344E-02    .23479E-02
   7  norm          39.102        54.724        .16025E-02   -.40978E-04
   8  Prefactor     .10000E-03    1.5644        .90712E-02** at limit **
   9  Prefactor     16.777        24.467        .24446E-02   -.64740E-03
  10  norm          1.8921        .64393        .75620E-02    .11437E-02
  11  Prefactor     .10000E-03    10.170        .90712E-02** at limit **
  12  Prefactor     .10000E-03    18.107        .90712E-02** at limit **
  13  Prefactor     .10000E-03    4.6097        .90712E-02** at limit **
  14  Prefactor     3.7197        23.524        .52240E-02    .33632E-03
  15  Prefactor     2.0706        2.1865        .71776E-02    .59252E-03
  16  norm          2.2267        1.1725        .68899E-03    .16597E-02
  17  Prefactor     41.872        25.306        .15488E-02   -.21572E-03
  18  Prefactor     .10000E-03    9.6109        .90712E-02** at limit **
  19  Prefactor     13.172        16.851        .27595E-02    .22594E-03
  20  Prefactor     5.5316        4.0449        .42708E-02   -.23916E-02
  21  Normalizat    1.0772        .16420        .60073E-01   -.13425E-02
  22  Prefactor     .95424        .12554        .45691E-01   -.14140E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.97605
  Prefactor  = 0.000100001
  Prefactor  = 6.98011
  Prefactor  = 0.0001
  norm       = 6.50294
  norm       = 39.1018
  Prefactor  = 0.0001
  Prefactor  = 16.7772
  norm       = 1.89208
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.71968
  Prefactor  = 2.07064
  norm       = 2.22666
  Prefactor  = 41.8719
  Prefactor  = 0.000100003
  Prefactor  = 13.172
  Prefactor  = 5.53155
  Normalizat = 1.07717
  Prefactor  = 0.954238
 **********
 **   18 **HESSE 
 **********

 FCN=   8598.197     FROM HESSE     STATUS=OK           338 CALLS     2670 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.3876        .16653E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.9761        4.4725        .14363E-03   -1.5219    
   3  Prefactor     .10000E-03    63.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.9801        17.005        .15182E-03   -1.5180    
   5  Prefactor     .10000E-03    9.4216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          6.5029        6.9008        .78687E-03   -1.5198    
   7  norm          39.102        54.733        .64099E-04   -1.4457    
   8  Prefactor     .10000E-03    1.5808        .11321E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.777        24.476        .97785E-04   -1.4889    
  10  norm          1.8921        .64148        .41730E-04   -1.5433    
  11  Prefactor     .10000E-03    10.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    18.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.6256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.7197        23.016        .20896E-03   -1.5322    
  15  Prefactor     2.0706        2.1737        .13458E-03   -1.5420    
  16  norm          2.2267        1.1599        .13780E-03   -1.5410    
  17  Prefactor     41.872        25.319        .61950E-04   -1.4413    
  18  Prefactor     .10000E-03    9.9035        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     13.172        16.982        .11038E-03   -1.4982    
  20  Prefactor     5.5316        4.0534        .15307E-03   -1.5238    
  21  Normalizat    1.0772        .19431        .26568E-03   -.90488    
  22  Prefactor     .95424        .14803        .22453E-03   -.94271    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.30823e-09
Minuit parameter uncertainties:
  1  2.158e-05
  2  4.47275
  3  0.000470924
  4  17.0172
  5  4.09917e-05
  6  6.90167
  7  54.8037
  8  2.83224e-06
  9  24.491
  10  0.641485
  11  0.000372705
  12  9.51848e-05
  13  4.13108e-06
  14  18.5158
  15  2.17376
  16  1.15987
  17  25.3255
  18  0.000339797
  19  16.988
  20  4.05364
  21  0.19444
  22  0.148096
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  9.518e-05  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.542e-01  1.481e-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.077e+00  1.944e-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: 5.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.06e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/405159/likelihoodResults_242179201_242438401_4FGL_J0818.7+3153_daily_bin11.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) = 8598.19746348
delta logL = -0.0002620892501

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8598.19720154
delta logL = -1.48262188304e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10530E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1735       1.0000          .0000       10.000    
     3 'Normalizat'    1.0771       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95432       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=   8598.197     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      215 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    112.43        .90712E-02** at limit **
   2  Index         2.2207        5.7816        .50000       -.25144E-04
   3  Normalizat    1.0772        .93778E-02    .60073E-01    .40638E-04
   4  Prefactor     .95424        .75465E-02    .45694E-01    .42767E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Index      = 2.22066
  Normalizat = 1.07717
  Prefactor  = 0.954238
 **********
 **   18 **HESSE 
 **********

 FCN=   8598.197     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      248 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    265.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2207        8.4807        .50000       -.58941    
   3  Normalizat    1.0772        .14496E-01    .26568E-03   -.90488    
   4  Prefactor     .95424        .11672E-01    .22453E-03   -.94271    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.81154e-08
Minuit parameter uncertainties:
  1  0.0019652
  2  14.7255
  3  0.0144957
  4  0.0116715
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/405159': 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) = 8598.19720096
delta logL = 4.31640728493e-07

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.965e-03  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  2.221e+00  1.473e+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.542e-01  1.167e-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.077e+00  1.450e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 124.695 31.886

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/405159/cmap_HighResolution_242179201_242438401_4FGL_J0818.7+3153_daily_bin11.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.06e-03', job_status='DONE', photon_flux_upper_limit='5.36e-08', time_completed='2021-08-29 17:12:35.393599', job_id='405159', GAL2='0.95', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1630282355.39', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='4.32e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='11' AND source_name='4FGL J0818.7+3153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:12:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0140>
Subject: Job 405159: <4FGL_J0818.7+3153_daily_bin11> in cluster <slac> Done

Job <4FGL_J0818.7+3153_daily_bin11> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Aug 29 16:56:09 2021
Job was executed on host(s) <bullet0140>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 16:56:10 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 16:56:10 2021
Terminated at Sun Aug 29 17:12:36 2021
Results reported at Sun Aug 29 17:12:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_daily_bin11 124.695 31.8862 242179201 242438401 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 :                                   784.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             250.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   985 sec.
    Turnaround time :                            987 sec.

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

