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


Performing analysis on: 4FGL_J0818.7+3153_daily_bin1102
RA = 124.695, Dec = 31.8862
tmin = 524966401, tmax = 525225601
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='412017', job_status='RUN', time_executed='2021-08-29 17:16:06.553956', time_epoch_executed='1630282566.55' WHERE source_name='4FGL J0818.7+3153' and cadence='daily' and bin_id='1102'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/412017

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/412017/ft1_4FGL_J0818.7+3153_daily_bin1102.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/412017/ft2_4FGL_J0818.7+3153_daily_bin1102.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/412017/ft1_4FGL_J0818.7+3153_daily_bin1102.fits outfile=/scratch/kocevski/412017/ft1_filteredMKT_4FGL_J0818.7+3153_daily_bin1102.fits ra=124.695 dec=31.8862 rad=12.0 tmin=524966401.0 tmax=525225601.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 3.56
user 3.22
sys 0.32

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/412017/ft1_filtered_4FGL_J0818.7+3153_daily_bin1102.fits" evtable="EVENTS" scfile=/scratch/kocevski/412017/ft2_4FGL_J0818.7+3153_daily_bin1102.fits sctable="SC_DATA" outfile=/scratch/kocevski/412017/ltcube_524966401_525225601_4FGL_J0818.7+3153_daily_bin1102.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/412017/ft2_4FGL_J0818.7+3153_daily_bin1102.fits
.....................!
real 12.07
user 11.54
sys 0.50

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/412017/ft1_filtered_4FGL_J0818.7+3153_daily_bin1102.fits evtable="EVENTS" scfile=/scratch/kocevski/412017/ft2_4FGL_J0818.7+3153_daily_bin1102.fits sctable="SC_DATA" expcube=/scratch/kocevski/412017/ltcube_524966401_525225601_4FGL_J0818.7+3153_daily_bin1102.fits outfile=/scratch/kocevski/412017/expmap_524966401_525225601_4FGL_J0818.7+3153_daily_bin1102.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/412017/ltcube_524966401_525225601_4FGL_J0818.7+3153_daily_bin1102.fits
.....................!
real 191.75
user 186.28
sys 5.07

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/412017/ft1_filtered_4FGL_J0818.7+3153_daily_bin1102.fits scfile=/scratch/kocevski/412017/ft2_4FGL_J0818.7+3153_daily_bin1102.fits outfile=/scratch/kocevski/412017/cmap_524966401_525225601_4FGL_J0818.7+3153_daily_bin1102.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.68
user 0.35
sys 0.30

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/412017/ft1_filtered_4FGL_J0818.7+3153_daily_bin1102.fits scfile=/scratch/kocevski/412017/ft2_4FGL_J0818.7+3153_daily_bin1102.fits outfile=/scratch/kocevski/412017/cmap_HighResolution_524966401_525225601_4FGL_J0818.7+3153_daily_bin1102.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.67
user 0.37
sys 0.29

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/412017/ft1_filtered_4FGL_J0818.7+3153_daily_bin1102.fits evtable="EVENTS" scfile=/scratch/kocevski/412017/ft2_4FGL_J0818.7+3153_daily_bin1102.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/412017/Model_4FGL_J0818.7+3153_daily_bin1102.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/412017/ft1_filtered_4FGL_J0818.7+3153_daily_bin1102.fits.....................!
real 59.32
user 57.56
sys 1.38

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.1403       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.950       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    103.48       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .73412       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.335       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.0356       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .87544       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.1714       1.0000         .10000E-03   10000.    
    16 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    32.889       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10234E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.1066       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0458       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .83711       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=   6169.500     FROM MIGRAD    STATUS=CONVERGED    501 CALLS     2398 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.4068       -.20278E-07** at limit **
   2  norm          4.1421        4.0855       -.38720E-07   -.11678E-03
   3  Prefactor     .10002E-03    22.275       -.77912E-05** at limit **
   4  Prefactor     15.950        18.230       -.65620E-06   -.34279E-03
   5  Prefactor     .10001E-03    19.254        .52139E-05** at limit **
   6  norm          .10000E-03    3.0830       -.10157E-07** at limit **
   7  norm          103.48        92.320       -.33011E-05    .14749E-03
   8  Prefactor     .10000E-03    1.1936        .28270E-07** at limit **
   9  Prefactor     .10000E-03    11.960       -.45943E-06** at limit **
  10  norm          .73416        .49631        .10266E-06    .80819E-03
  11  Prefactor     12.338        25.117       -.10223E-05    .63208E-04
  12  Prefactor     .10000E-03    26.431        .31350E-05** at limit **
  13  Prefactor     1.0443        12.925       -.10657E-04   -.34009E-03
  14  Prefactor     .86600        9.8420       -.76580E-06   -.41220E-04
  15  Prefactor     4.1706        3.0368        .65398E-06    .45998E-03
  16  norm          .10000E-03    .78001        .32415E-07** at limit **
  17  Prefactor     32.886        23.191        .61430E-06    .37751E-04
  18  Prefactor     .10000E-03    3.8951       -.38659E-08** at limit **
  19  Prefactor     .10001E-03    14.032       -.32980E-06** at limit **
  20  Prefactor     1.1064        3.0877       -.70654E-06   -.72451E-03
  21  Normalizat    1.0457        .17317        .50240E-06    .23625E-03
  22  Prefactor     .83727        .13421        .17908E-06    .21779E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.14207
  Prefactor  = 0.000100021
  Prefactor  = 15.9501
  Prefactor  = 0.000100009
  norm       = 0.0001
  norm       = 103.481
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.73416
  Prefactor  = 12.3385
  Prefactor  = 0.000100004
  Prefactor  = 1.04426
  Prefactor  = 0.865997
  Prefactor  = 4.17062
  norm       = 0.0001
  Prefactor  = 32.8864
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 1.10643
  Normalizat = 1.04566
  Prefactor  = 0.837274
 **********
 **   18 **HESSE 
 **********

 FCN=   6169.500     FROM HESSE     STATUS=OK           344 CALLS     2742 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.4391        .17835E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.1421        4.0630        .14224E-03   -1.5301    
   3  Prefactor     .10002E-03    21.097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.950        18.319        .50143E-03   -1.4909    
   5  Prefactor     .10001E-03    18.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.0901        .13468E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          103.48        91.871        .19763E-03   -1.3670    
   8  Prefactor     .10000E-03    1.1988        .83771E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .73416        .48331        .43410E-04   -1.5537    
  11  Prefactor     12.338        25.089        .11406E-03   -1.5005    
  12  Prefactor     .10000E-03    26.366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.0443        18.088        .49531E-03   -1.5504    
  14  Prefactor     .86600        50.837        .44763E-02   -1.5522    
  15  Prefactor     4.1706        3.0278        .10560E-03   -1.5299    
  16  norm          .10000E-03    1.3474        .12699E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     32.886        23.188        .69872E-04   -1.4560    
  18  Prefactor     .10000E-03    3.9173        .15136E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    147.63        .55726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.1064        3.1026        .22689E-03   -1.5498    
  21  Normalizat    1.0457        .19562        .23825E-03   -.91516    
  22  Prefactor     .83727        .15489        .21224E-03   -.98369    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.28798e-08
Minuit parameter uncertainties:
  1  2.78785e-06
  2  4.06327
  3  0.0013333
  4  18.3254
  5  0.000835779
  6  1.19278e-06
  7  91.9974
  8  2.62876e-06
  9  6.37217e-05
  10  0.483316
  11  25.1106
  12  0.000627966
  13  8.69489
  14  13.2813
  15  3.02792
  16  3.26954e-06
  17  23.1938
  18  6.56655e-07
  19  0.0018358
  20  3.10309
  21  0.195754
  22  0.154974
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  6.280e-04  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.373e-01  1.550e-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.046e+00  1.958e-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: 6.03e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.57e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/412017/likelihoodResults_524966401_525225601_4FGL_J0818.7+3153_daily_bin1102.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) = 6169.50057352
delta logL = -0.00018068717327

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6169.18960079
delta logL = 0.31079204053

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24352       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8434       1.0000          .0000       10.000    
     3 'Normalizat'    1.0074       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85341       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=   6169.190     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      270 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .24322        4.3177        .10175E-01    .21997E-02
   2  Index         3.8439        1.6631        .12332        .14152E-03
   3  Normalizat    1.0074        .27453E-01    .46260E-01    .16085E-04
   4  Prefactor     .85342        .22250E-01    .44408E-01    .16197E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.243225
  Index      = 3.84385
  Normalizat = 1.00741
  Prefactor  = 0.853417
 **********
 **   18 **HESSE 
 **********

 FCN=   6169.190     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      305 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .24322        21.515        .51262E-03   -1.5609    
   2  Index         3.8439        6.9184        .43036E-02   -.23334    
   3  Normalizat    1.0074        .13210        .24218E-03   -.92782    
   4  Prefactor     .85342        .10609        .21038E-03   -.97788    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.03126e-08
Minuit parameter uncertainties:
  1  4.57588
  2  6.24641
  3  0.132147
  4  0.106118
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/412017': 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) = 6169.18960073
delta logL = 0.310792102037

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  2.432e-01  4.576e+00  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  3.844e+00  6.246e+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.534e-01  1.061e-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.007e+00  1.321e-01  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/412017/cmap_HighResolution_524966401_525225601_4FGL_J0818.7+3153_daily_bin1102.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.57e-03', job_status='DONE', photon_flux_upper_limit='6.03e-08', time_completed='2021-08-29 17:27:02.467969', job_id='412017', GAL2='0.85', fit_tolerance='1e-08', EG2='1.01', EG='1.05', time_epoch_completed='1630283222.47', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='3.11e-01', ts2='0.65', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1102' AND source_name='4FGL J0818.7+3153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:27:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 412017: <4FGL_J0818.7+3153_daily_bin1102> in cluster <slac> Done

Job <4FGL_J0818.7+3153_daily_bin1102> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sun Aug 29 17:15:45 2021
Job was executed on host(s) <bullet0036>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 17:15:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 17:15:46 2021
Terminated at Sun Aug 29 17:27:03 2021
Results reported at Sun Aug 29 17:27:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_daily_bin1102 124.695 31.8862 524966401 525225601 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 :                                   654.19 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             334.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   676 sec.
    Turnaround time :                            678 sec.

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

