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


Performing analysis on: 4FGL_J0818.7+3153_daily_bin80
RA = 124.695, Dec = 31.8862
tmin = 260064001, tmax = 260323201
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='406433', job_status='RUN', time_executed='2021-08-29 17:00:44.776674', time_epoch_executed='1630281644.78' WHERE source_name='4FGL J0818.7+3153' and cadence='daily' and bin_id='80'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/406433

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/406433/ft1_4FGL_J0818.7+3153_daily_bin80.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/406433/ft2_4FGL_J0818.7+3153_daily_bin80.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/406433/ft1_4FGL_J0818.7+3153_daily_bin80.fits outfile=/scratch/kocevski/406433/ft1_filteredMKT_4FGL_J0818.7+3153_daily_bin80.fits ra=124.695 dec=31.8862 rad=12.0 tmin=260064001.0 tmax=260323201.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.15
user 1.30
sys 0.80

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/406433/ft1_filtered_4FGL_J0818.7+3153_daily_bin80.fits" evtable="EVENTS" scfile=/scratch/kocevski/406433/ft2_4FGL_J0818.7+3153_daily_bin80.fits sctable="SC_DATA" outfile=/scratch/kocevski/406433/ltcube_260064001_260323201_4FGL_J0818.7+3153_daily_bin80.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/406433/ft2_4FGL_J0818.7+3153_daily_bin80.fits
.....................!
real 14.00
user 12.52
sys 1.04

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/406433/ft1_filtered_4FGL_J0818.7+3153_daily_bin80.fits evtable="EVENTS" scfile=/scratch/kocevski/406433/ft2_4FGL_J0818.7+3153_daily_bin80.fits sctable="SC_DATA" expcube=/scratch/kocevski/406433/ltcube_260064001_260323201_4FGL_J0818.7+3153_daily_bin80.fits outfile=/scratch/kocevski/406433/expmap_260064001_260323201_4FGL_J0818.7+3153_daily_bin80.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/406433/ltcube_260064001_260323201_4FGL_J0818.7+3153_daily_bin80.fits
.....................!
real 193.90
user 187.06
sys 4.84

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/406433/ft1_filtered_4FGL_J0818.7+3153_daily_bin80.fits scfile=/scratch/kocevski/406433/ft2_4FGL_J0818.7+3153_daily_bin80.fits outfile=/scratch/kocevski/406433/cmap_260064001_260323201_4FGL_J0818.7+3153_daily_bin80.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.18
user 0.37
sys 0.78

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/406433/ft1_filtered_4FGL_J0818.7+3153_daily_bin80.fits scfile=/scratch/kocevski/406433/ft2_4FGL_J0818.7+3153_daily_bin80.fits outfile=/scratch/kocevski/406433/cmap_HighResolution_260064001_260323201_4FGL_J0818.7+3153_daily_bin80.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.18
user 0.38
sys 0.78

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/406433/ft1_filtered_4FGL_J0818.7+3153_daily_bin80.fits evtable="EVENTS" scfile=/scratch/kocevski/406433/ft2_4FGL_J0818.7+3153_daily_bin80.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/406433/Model_4FGL_J0818.7+3153_daily_bin80.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/406433/ft1_filtered_4FGL_J0818.7+3153_daily_bin80.fits.....................!
real 60.62
user 58.39
sys 2.03

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10215E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.1197       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10251E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13609       1.0000         .10000E-03   10000.    
     5 'Prefactor '    44.726       1.0000         .10000E-03   10000.    
     6 'norm      '    4.2949       1.0000         .10000E-03   10000.    
     7 'norm      '    .10076E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .34994       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.917       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.117       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .18828E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    1.2807       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.1312       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.7513       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .87451       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .96108       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=   6266.168     FROM MIGRAD    STATUS=CONVERGED    847 CALLS     3124 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.093        .36285E-03** at limit **
   2  norm          5.1224        4.8775        .13783E-03   -.43519E-03
   3  Prefactor     .10000E-03    13.097        .18142E-02** at limit **
   4  Prefactor     .12735        25.133        .83538E-01    .14941E-03
   5  Prefactor     44.740        37.790        .59949E-04   -.13165E-03
   6  norm          4.2949        11.345        .19440E-03   -.54155E-04
   7  norm          .10000E-03    28.172        .18142E-02** at limit **
   8  Prefactor     .10000E-03    4.1281        .30857E-03** at limit **
   9  Prefactor     .10000E-03    16.554        .18142E-02** at limit **
  10  norm          .34986        .45852        .62535E-03    .53319E-03
  11  Prefactor     15.911        22.334        .10039E-03    .41448E-04
  12  Prefactor     .10000E-03    6.2403        .18142E-02** at limit **
  13  Prefactor     15.129        11.923        .10301E-03   -.13023E-03
  14  Prefactor     .10000E-03    8.5174        .18142E-02** at limit **
  15  Prefactor     .10000E-03    42.293        .16481E-02** at limit **
  16  norm          1.2797        1.0653        .72006E-04   -.25467E-03
  17  Prefactor     1.1138        100.53        .43911E-02    .24451E-04
  18  Prefactor     .10000E-03    7.9116        .18142E-02** at limit **
  19  Prefactor     7.7508        13.309        .14403E-03   -.22496E-04
  20  Prefactor     .10000E-03    5.1485        .23641E-02** at limit **
  21  Normalizat    .87455        .19303        .25416E-03    .28672E-04
  22  Prefactor     .96111        .15689        .20054E-03   -.22361E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.12243
  Prefactor  = 0.0001
  Prefactor  = 0.127345
  Prefactor  = 44.7399
  norm       = 4.29487
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.349862
  Prefactor  = 15.9114
  Prefactor  = 0.0001
  Prefactor  = 15.1295
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 1.27966
  Prefactor  = 1.11384
  Prefactor  = 0.0001
  Prefactor  = 7.75078
  Prefactor  = 0.0001
  Normalizat = 0.874549
  Prefactor  = 0.961108
 **********
 **   18 **HESSE 
 **********

 FCN=   6266.168     FROM HESSE     STATUS=OK           334 CALLS     3458 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.094        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.1224        4.8591        .55131E-05   -1.5255    
   3  Prefactor     .10000E-03    13.098        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .12735        22.858        .88170E-01   -1.5637    
   5  Prefactor     44.740        37.787        .11990E-04   -1.4369    
   6  norm          4.2949        11.342        .77758E-05   -1.5293    
   7  norm          .10000E-03    28.172        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.1283        .61714E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    16.557        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .34986        .45805        .25014E-04   -1.5590    
  11  Prefactor     15.911        22.335        .40156E-05   -1.4910    
  12  Prefactor     .10000E-03    6.2404        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     15.129        11.872        .41206E-05   -1.4930    
  14  Prefactor     .10000E-03    8.5211        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    43.331        .65923E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.2797        1.0651        .28802E-05   -1.5482    
  17  Prefactor     1.1138        100.44        .17565E-03   -1.5497    
  18  Prefactor     .10000E-03    7.9159        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.7508        13.307        .57612E-05   -1.5151    
  20  Prefactor     .10000E-03    5.1748        .47283E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .87455        .19303        .10167E-04   -.97360    
  22  Prefactor     .96111        .15701        .40107E-04   -.94037    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.21e-10
Minuit parameter uncertainties:
  1  4.00994e-05
  2  4.85952
  3  1.27181e-05
  4  3.41226
  5  37.8072
  6  11.348
  7  0.000122961
  8  9.76948e-06
  9  5.70999e-05
  10  0.458051
  11  22.3464
  12  3.94725e-06
  13  11.8743
  14  7.20615e-06
  15  0.000612596
  16  1.0651
  17  21.1896
  18  4.13382e-05
  19  13.3116
  20  6.16459e-05
  21  0.193181
  22  0.157082
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  3.947e-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.611e-01  1.571e-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:  8.745e-01  1.932e-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: 3.73e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.82e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/406433/likelihoodResults_260064001_260323201_4FGL_J0818.7+3153_daily_bin80.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) = 6266.16889658
delta logL = -0.000761048950153

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6266.16813515
delta logL = 3.78703589377e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0997       1.0000          .0000       10.000    
     3 'Normalizat'    .87454       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96112       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=   6266.168     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      238 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10161E-03    37.311        .18142E-02** at limit **
   2  Index         2.0389        6.1152        .50000        .37761E-04
   3  Normalizat    .87454        .94965E-02    .25416E-03   -.42371E-03
   4  Prefactor     .96111        .78639E-02    .20054E-03   -.21297E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101608
  Index      = 2.03889
  Normalizat = 0.874544
  Prefactor  = 0.961112
 **********
 **   18 **HESSE 
 **********

 FCN=   6266.168     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      267 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10161E-03    167.87        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0389        7.4734        .50000       -.63381    
   3  Normalizat    .87454        .20594E-01    .50832E-04   -.97360    
   4  Prefactor     .96111        .17053E-01    .40107E-04   -.94037    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.03603e-08
Minuit parameter uncertainties:
  1  0.0329492
  2  264.891
  3  0.0205937
  4  0.0170528
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/406433': 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) = 6266.16813466
delta logL = 8.7319767772e-07

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.016e-04  3.295e-02  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  2.039e+00  2.649e+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:  9.611e-01  1.705e-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:  8.745e-01  2.059e-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/406433/cmap_HighResolution_260064001_260323201_4FGL_J0818.7+3153_daily_bin80.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.82e-03', job_status='DONE', photon_flux_upper_limit='3.73e-08', time_completed='2021-08-29 17:12:43.018477', job_id='406433', GAL2='0.96', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1630282363.02', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='8.73e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='80' AND source_name='4FGL J0818.7+3153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:12:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 406433: <4FGL_J0818.7+3153_daily_bin80> in cluster <slac> Done

Job <4FGL_J0818.7+3153_daily_bin80> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Aug 29 17:00:17 2021
Job was executed on host(s) <bullet0227>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 17:00:19 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:00:19 2021
Terminated at Sun Aug 29 17:12:43 2021
Results reported at Sun Aug 29 17:12:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_daily_bin80 124.695 31.8862 260064001 260323201 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 :                                   726.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             325.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   744 sec.
    Turnaround time :                            746 sec.

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

