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


Performing analysis on: 4FGL_J0818.7+3153_daily_bin66
RA = 124.695, Dec = 31.8862
tmin = 256435201, tmax = 256694401
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='405250', job_status='RUN', time_executed='2021-08-29 16:59:24.199089', time_epoch_executed='1630281564.2' WHERE source_name='4FGL J0818.7+3153' and cadence='daily' and bin_id='66'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/405250

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/405250/ft1_4FGL_J0818.7+3153_daily_bin66.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/405250/ft2_4FGL_J0818.7+3153_daily_bin66.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/405250/ft1_4FGL_J0818.7+3153_daily_bin66.fits outfile=/scratch/kocevski/405250/ft1_filteredMKT_4FGL_J0818.7+3153_daily_bin66.fits ra=124.695 dec=31.8862 rad=12.0 tmin=256435201.0 tmax=256694401.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 1.81
user 1.25
sys 0.54

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/405250/ft1_filtered_4FGL_J0818.7+3153_daily_bin66.fits" evtable="EVENTS" scfile=/scratch/kocevski/405250/ft2_4FGL_J0818.7+3153_daily_bin66.fits sctable="SC_DATA" outfile=/scratch/kocevski/405250/ltcube_256435201_256694401_4FGL_J0818.7+3153_daily_bin66.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/405250/ft2_4FGL_J0818.7+3153_daily_bin66.fits
.....................!
real 13.11
user 12.29
sys 0.75

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/405250/ft1_filtered_4FGL_J0818.7+3153_daily_bin66.fits evtable="EVENTS" scfile=/scratch/kocevski/405250/ft2_4FGL_J0818.7+3153_daily_bin66.fits sctable="SC_DATA" expcube=/scratch/kocevski/405250/ltcube_256435201_256694401_4FGL_J0818.7+3153_daily_bin66.fits outfile=/scratch/kocevski/405250/expmap_256435201_256694401_4FGL_J0818.7+3153_daily_bin66.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/405250/ltcube_256435201_256694401_4FGL_J0818.7+3153_daily_bin66.fits
.....................!
real 190.83
user 184.86
sys 5.49

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

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

This is gtbin version HEAD
real 0.90
user 0.36
sys 0.51

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

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

This is gtbin version HEAD
real 0.91
user 0.37
sys 0.52

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/405250/ft1_filtered_4FGL_J0818.7+3153_daily_bin66.fits evtable="EVENTS" scfile=/scratch/kocevski/405250/ft2_4FGL_J0818.7+3153_daily_bin66.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/405250/Model_4FGL_J0818.7+3153_daily_bin66.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/405250/ft1_filtered_4FGL_J0818.7+3153_daily_bin66.fits.....................!
real 81.59
user 79.69
sys 1.64

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.0322       1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.964       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .81199       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    59.299       1.0000         .10000E-03   10000.    
    10 'norm      '    .74275       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.8559       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.0495       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.3175       1.0000         .10000E-03   10000.    
    16 'norm      '    .97288       1.0000         .10000E-03   10000.    
    17 'Prefactor '    24.912       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10244E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.2178       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0591       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .94170       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=   9103.277     FROM MIGRAD    STATUS=CONVERGED    469 CALLS     2068 TOTAL
                     EDM=   .47E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.3722       -.17910E-06** at limit **
   2  norm          1.0309        2.7049        .14488E-05    .15804E-03
   3  Prefactor     14.968        17.049       -.49637E-06   -.14047E-04
   4  Prefactor     .78514        6.9183       -.72317E-06   -.18817E-04
   5  Prefactor     .10000E-03    14.973       -.43232E-07** at limit **
   6  norm          .10000E-03    12.632       -.30753E-06** at limit **
   7  norm          .10000E-03    19.079        .30257E-07** at limit **
   8  Prefactor     .10000E-03    2.0810       -.15106E-06** at limit **
   9  Prefactor     59.319        33.335        .19314E-06    .54642E-04
  10  norm          .74290        .47971        .48810E-07    .10606E-03
  11  Prefactor     .10000E-03    10.971        .53001E-06** at limit **
  12  Prefactor     .10000E-03    12.980        .61228E-07** at limit **
  13  Prefactor     2.8633        11.116        .13259E-05    .34639E-06
  14  Prefactor     6.0523        15.863        .29824E-06   -.46472E-05
  15  Prefactor     4.3166        2.9337       -.11126E-07   -.35225E-04
  16  norm          .97301        .84012        .80521E-07    .82862E-04
  17  Prefactor     24.941        23.662        .35482E-07    .84277E-04
  18  Prefactor     .10000E-03    1.8344       -.24706E-07** at limit **
  19  Prefactor     .10000E-03    8.4952       -.46801E-07** at limit **
  20  Prefactor     1.2177        2.3337        .55483E-06    .21331E-04
  21  Normalizat    1.0589        .15405       -.12284E-05    .73975E-04
  22  Prefactor     .94184        .11889        .59027E-06   -.81435E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.03094
  Prefactor  = 14.9684
  Prefactor  = 0.785143
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 59.3188
  norm       = 0.742901
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.8633
  Prefactor  = 6.05226
  Prefactor  = 4.31656
  norm       = 0.97301
  Prefactor  = 24.9406
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.21765
  Normalizat = 1.05889
  Prefactor  = 0.941843
 **********
 **   18 **HESSE 
 **********

 FCN=   9103.277     FROM HESSE     STATUS=OK           352 CALLS     2420 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.4223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.0309        2.7464        .23014E-03   -1.5505    
   3  Prefactor     14.968        17.008        .10354E-03   -1.4934    
   4  Prefactor     .78514        43.496        .44957E-02   -1.5531    
   5  Prefactor     .10000E-03    15.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    12.957        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    19.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.0779        .26335E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     59.319        33.349        .52101E-04   -1.4166    
  10  norm          .74290        .46233        .50141E-03   -1.5536    
  11  Prefactor     .10000E-03    10.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.8633        10.881        .24057E-03   -1.5370    
  14  Prefactor     6.0523        15.654        .16324E-03   -1.5216    
  15  Prefactor     4.3166        2.8943        .11676E-03   -1.5292    
  16  norm          .97301        .80322        .73944E-03   -1.5511    
  17  Prefactor     24.941        23.617        .80257E-04   -1.4709    
  18  Prefactor     .10000E-03    1.8394        .12618E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.5502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.2177        2.2956        .19584E-03   -1.5487    
  21  Normalizat    1.0589        .17602        .25703E-03   -.91083    
  22  Prefactor     .94184        .13829        .21658E-03   -.94694    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.34491e-08
Minuit parameter uncertainties:
  1  2.50199e-07
  2  2.74673
  3  17.0139
  4  11.6959
  5  2.46681e-05
  6  9.74858e-06
  7  1.69924e-05
  8  2.33621e-05
  9  33.3593
  10  0.46233
  11  1.06569e-05
  12  2.95802e-06
  13  10.8881
  14  15.6649
  15  2.89444
  16  0.803228
  17  23.6262
  18  3.47763e-07
  19  2.25645e-05
  20  2.29574
  21  0.176116
  22  0.138341
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  2.958e-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.418e-01  1.383e-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.059e+00  1.761e-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.68e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/405250/likelihoodResults_256435201_256694401_4FGL_J0818.7+3153_daily_bin66.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) = 9103.27725876
delta logL = -0.000366021055015

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9103.2768946
delta logL = -1.86468241736e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1449       1.0000          .0000       10.000    
     3 'Normalizat'    1.0588       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94178       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=   9103.277     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      210 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    123.87        .90712E-02** at limit **
   2  Index         2.1555        7.7365        .50000       -.73771E-05
   3  Normalizat    1.0589        .11775E-01    .58123E-01    .34139E-04
   4  Prefactor     .94184        .94640E-02    .45535E-01    .31445E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.15549
  Normalizat = 1.05889
  Prefactor  = 0.941844
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    754.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1555        5.8323        .50000       -.60517    
   3  Normalizat    1.0589        .31103E-01    .25703E-03   -.91083    
   4  Prefactor     .94184        .25010E-01    .21658E-03   -.94694    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.26747e-09
Minuit parameter uncertainties:
  1  1.01666e-05
  2  31.6449
  3  0.0311033
  4  0.0250107
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/405250': 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) = 9103.2768927
delta logL = 3.46099113813e-08

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.017e-05  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  2.155e+00  3.164e+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.418e-01  2.501e-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.059e+00  3.110e-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/405250/cmap_HighResolution_256435201_256694401_4FGL_J0818.7+3153_daily_bin66.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.55e-03', job_status='DONE', photon_flux_upper_limit='4.68e-08', time_completed='2021-08-29 17:12:12.179961', job_id='405250', GAL2='0.94', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1630282332.18', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='3.46e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='66' AND source_name='4FGL J0818.7+3153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:12:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 405250: <4FGL_J0818.7+3153_daily_bin66> in cluster <slac> Done

Job <4FGL_J0818.7+3153_daily_bin66> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Aug 29 16:56:15 2021
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 16:56:16 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:16 2021
Terminated at Sun Aug 29 17:12:12 2021
Results reported at Sun Aug 29 17:12:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_daily_bin66 124.695 31.8862 256435201 256694401 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 :                                   773.16 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             254.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   956 sec.
    Turnaround time :                            957 sec.

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

