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


Performing analysis on: 4FGL_J0818.7+3153_daily_bin663
RA = 124.695, Dec = 31.8862
tmin = 411177601, tmax = 411436801
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='409989', job_status='RUN', time_executed='2021-08-29 17:11:39.501911', time_epoch_executed='1630282299.5' WHERE source_name='4FGL J0818.7+3153' and cadence='daily' and bin_id='663'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/409989

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/409989/ft1_4FGL_J0818.7+3153_daily_bin663.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/409989/ft2_4FGL_J0818.7+3153_daily_bin663.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/409989/ft1_4FGL_J0818.7+3153_daily_bin663.fits outfile=/scratch/kocevski/409989/ft1_filteredMKT_4FGL_J0818.7+3153_daily_bin663.fits ra=124.695 dec=31.8862 rad=12.0 tmin=411177601.0 tmax=411436801.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 8.44
user 6.27
sys 2.12

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/409989/ft2_4FGL_J0818.7+3153_daily_bin663.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/409989/ft1_filteredMKT_4FGL_J0818.7+3153_daily_bin663.fits evtable="EVENTS" outfile="/scratch/kocevski/409989/ft1_filtered_4FGL_J0818.7+3153_daily_bin663.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 2.41
user 0.34
sys 1.98

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/409989/ft1_filtered_4FGL_J0818.7+3153_daily_bin663.fits" evtable="EVENTS" scfile=/scratch/kocevski/409989/ft2_4FGL_J0818.7+3153_daily_bin663.fits sctable="SC_DATA" outfile=/scratch/kocevski/409989/ltcube_411177601_411436801_4FGL_J0818.7+3153_daily_bin663.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/409989/ft2_4FGL_J0818.7+3153_daily_bin663.fits
.....................!
real 15.35
user 12.85
sys 2.44

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/409989/ft1_filtered_4FGL_J0818.7+3153_daily_bin663.fits evtable="EVENTS" scfile=/scratch/kocevski/409989/ft2_4FGL_J0818.7+3153_daily_bin663.fits sctable="SC_DATA" expcube=/scratch/kocevski/409989/ltcube_411177601_411436801_4FGL_J0818.7+3153_daily_bin663.fits outfile=/scratch/kocevski/409989/expmap_411177601_411436801_4FGL_J0818.7+3153_daily_bin663.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/409989/ltcube_411177601_411436801_4FGL_J0818.7+3153_daily_bin663.fits
.....................!
real 194.90
user 187.54
sys 6.74

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/409989/ft1_filtered_4FGL_J0818.7+3153_daily_bin663.fits scfile=/scratch/kocevski/409989/ft2_4FGL_J0818.7+3153_daily_bin663.fits outfile=/scratch/kocevski/409989/cmap_411177601_411436801_4FGL_J0818.7+3153_daily_bin663.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 2.35
user 0.36
sys 1.94

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/409989/ft1_filtered_4FGL_J0818.7+3153_daily_bin663.fits scfile=/scratch/kocevski/409989/ft2_4FGL_J0818.7+3153_daily_bin663.fits outfile=/scratch/kocevski/409989/cmap_HighResolution_411177601_411436801_4FGL_J0818.7+3153_daily_bin663.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 2.37
user 0.39
sys 1.97

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/409989/ft1_filtered_4FGL_J0818.7+3153_daily_bin663.fits evtable="EVENTS" scfile=/scratch/kocevski/409989/ft2_4FGL_J0818.7+3153_daily_bin663.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/409989/Model_4FGL_J0818.7+3153_daily_bin663.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/409989/ft1_filtered_4FGL_J0818.7+3153_daily_bin663.fits.....................!
real 52.67
user 47.99
sys 3.82

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5543       1.0000         .10000E-03   10000.    
     2 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    60.958       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.8180       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .20754E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    133.37       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .67962       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.104       1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.611       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .21644       1.0000         .10000E-03   10000.    
    16 'norm      '    2.5694       1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.355       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.0705       1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.420       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .90965       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .81644       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=   4659.218     FROM MIGRAD    STATUS=CONVERGED    469 CALLS     2351 TOTAL
                     EDM=   .50E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5534        19.696        .24201E-05    .59911E-05
   2  norm          .10000E-03    1.3970        .10126E-06** at limit **
   3  Prefactor     60.969        42.230        .19966E-06    .18981E-04
   4  Prefactor     9.8166        11.559        .12261E-06    .37298E-04
   5  Prefactor     .10000E-03    208.65        .13918E-05** at limit **
   6  norm          .10000E-03    7.2990       -.77214E-07** at limit **
   7  norm          133.32        112.49       -.45517E-06   -.57445E-04
   8  Prefactor     .10000E-03    3.0724       -.13447E-06** at limit **
   9  Prefactor     .10000E-03    8.1939        .21242E-07** at limit **
  10  norm          .67956        .50121       -.15090E-07   -.18604E-03
  11  Prefactor     15.104        20.406        .95510E-07   -.60012E-05
  12  Prefactor     25.606        25.705        .21743E-06    .11400E-04
  13  Prefactor     .10000E-03    9.9447       -.29818E-06** at limit **
  14  Prefactor     .10000E-03    6.9473       -.19243E-08** at limit **
  15  Prefactor     .21639        2.4414        .16652E-05   -.93428E-04
  16  norm          2.5693        1.2771        .29503E-07   -.21154E-04
  17  Prefactor     16.354        24.465       -.45749E-07   -.19025E-04
  18  Prefactor     7.0700        8.8038        .24244E-06    .11094E-04
  19  Prefactor     17.413        20.830        .60762E-06    .94503E-04
  20  Prefactor     .10000E-03    1.7112        .45394E-08** at limit **
  21  Normalizat    .90969        .18924       -.16282E-05   -.28469E-04
  22  Prefactor     .81643        .14719        .72682E-06   -.13987E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.55335
  norm       = 0.0001
  Prefactor  = 60.9689
  Prefactor  = 9.81661
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 133.323
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.679561
  Prefactor  = 15.1039
  Prefactor  = 25.6056
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.216385
  norm       = 2.56928
  Prefactor  = 16.3541
  Prefactor  = 7.06996
  Prefactor  = 17.4125
  Prefactor  = 0.0001
  Normalizat = 0.909689
  Prefactor  = 0.81643
 **********
 **   18 **HESSE 
 **********

 FCN=   4659.218     FROM HESSE     STATUS=OK           344 CALLS     2695 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5534        19.985        .34152E-03   -1.5459    
   2  norm          .10000E-03    1.4030        .78738E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     60.969        42.173        .51391E-04   -1.4145    
   4  Prefactor     9.8166        11.563        .12789E-03   -1.5081    
   5  Prefactor     .10000E-03    216.72        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    7.3457        .18005E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          133.32        113.33        .17435E-03   -1.3393    
   8  Prefactor     .10000E-03    3.1549        .23346E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.1964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .67956        .49873        .40080E-04   -1.5543    
  11  Prefactor     15.104        20.404        .10306E-03   -1.4930    
  12  Prefactor     25.606        25.728        .79157E-04   -1.4695    
  13  Prefactor     .10000E-03    10.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.9550        .17570E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .21639        2.5162        .20523E-03   -1.5615    
  16  norm          2.5693        1.2751        .51959E-04   -1.5387    
  17  Prefactor     16.354        24.440        .99037E-04   -1.4899    
  18  Prefactor     7.0700        8.8017        .15086E-03   -1.5176    
  19  Prefactor     17.413        21.034        .95961E-04   -1.4873    
  20  Prefactor     .10000E-03    1.7170        .87199E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .90969        .21351        .24154E-03   -.96120    
  22  Prefactor     .81643        .16708        .20478E-03   -.99126    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08144e-10
Minuit parameter uncertainties:
  1  11.1476
  2  6.97e-07
  3  42.1938
  4  11.5656
  5  0.000306703
  6  4.79017e-06
  7  113.515
  8  5.53738e-07
  9  8.04118e-06
  10  0.498731
  11  20.4137
  12  25.7389
  13  3.17589e-05
  14  5.36153e-06
  15  1.47551
  16  1.27508
  17  24.4548
  18  8.80332
  19  21.0434
  20  1.14075e-06
  21  0.213704
  22  0.167187
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  2.561e+01  2.574e+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:  8.164e-01  1.672e-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:  9.097e-01  2.137e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.76
Ra Dec: 124.695 31.886
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 2.76e-08 +/- 2.77e-08
Energy Flux (Fixed Index): 1.41e-05 +/- 1.41e-05

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

Saving results to:
/scratch/kocevski/409989/likelihoodResults_411177601_411436801_4FGL_J0818.7+3153_daily_bin663.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) = 4658.74388399
delta logL = 0.473932324596

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4658.73222154
delta logL = 0.485594783318

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5768       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0665       1.0000          .0000       10.000    
     3 'Normalizat'    .86632       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83708       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=   4658.732     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      252 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5481        72.094        .47040E-02   -.73052E-04
   2  Index         3.0687        2.3821        .90740E-01    .78724E-04
   3  Normalizat    .86627        .67365E-01    .44470E-01   -.27040E-03
   4  Prefactor     .83705        .49620E-01    .44198E-01   -.36623E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.54815
  Index      = 3.06875
  Normalizat = 0.866273
  Prefactor  = 0.837053
 **********
 **   18 **HESSE 
 **********

 FCN=   4658.732     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      281 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5481        126.31        .10416E-03   -1.5281    
   2  Index         3.0687        3.5808        .33149E-02   -.39656    
   3  Normalizat    .86627        .23407        .24675E-03   -.97656    
   4  Prefactor     .83705        .17549        .20244E-03   -.98377    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.60923e-10
Minuit parameter uncertainties:
  1  48.0494
  2  4.09989
  3  0.234344
  4  0.175612
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/409989': 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) = 4658.73221866
delta logL = 0.485597655225

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  4.548e+00  4.805e+01  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  3.069e+00  4.100e+00  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:  8.371e-01  1.756e-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.663e-01  2.343e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.77
Ra Dec: 124.695 31.886
Photon Index (Free Index): 3.07 +/- 4.10
Photon Flux (Free Index): 6.04e-08 +/- 8.18e-08
Energy Flux (Free Index): 1.17e-05 +/- 1.20e-05

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/409989/cmap_HighResolution_411177601_411436801_4FGL_J0818.7+3153_daily_bin663.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.32e-03', comment='SUCCESS', photon_flux='2.76e-08', energy_flux2='1.17e-05', photon_flux_error='2.77e-08', dlogl='4.86e-01', energy_flux='1.41e-05', photon_flux2='6.04e-08', job_status='DONE', time_completed='2021-08-29 17:22:09.294223', photon_index_error2='4.10', photon_index2='3.07', ts='1.76', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='9.66e-08', energy_flux_error2='1.20e-05', EG='0.91', time_epoch_completed='1630282929.29', return_code='0', job_id='409989', GAL2='0.84', EG2='0.87', return_code2='102', energy_flux_error='1.41e-05', photon_flux_error2='8.18e-08', ts2='2.77', photon_index='2.13' WHERE bin_id='663' AND source_name='4FGL J0818.7+3153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:22:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0212>
Subject: Job 409989: <4FGL_J0818.7+3153_daily_bin663> in cluster <slac> Done

Job <4FGL_J0818.7+3153_daily_bin663> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Aug 29 17:10:40 2021
Job was executed on host(s) <bullet0212>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 17:10:41 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:10:41 2021
Terminated at Sun Aug 29 17:22:10 2021
Results reported at Sun Aug 29 17:22:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_daily_bin663 124.695 31.8862 411177601 411436801 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 :                                   650.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   688 sec.
    Turnaround time :                            690 sec.

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

