aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 163 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 = 17159
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0818.7+3153_weekly_bin436
RA = 124.695, Dec = 31.8862
tmin = 502675201, tmax = 503280001
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='574272', job_status='RUN', time_executed='2021-07-13 14:53:56.289657', time_epoch_executed='1626213236.29' WHERE source_name='4FGL J0818.7+3153' and cadence='weekly' and bin_id='436'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/574272

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/574272/ft1_4FGL_J0818.7+3153_weekly_bin436.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/574272/ft2_4FGL_J0818.7+3153_weekly_bin436.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/574272/ft1_4FGL_J0818.7+3153_weekly_bin436.fits outfile=/scratch/kocevski/574272/ft1_filteredMKT_4FGL_J0818.7+3153_weekly_bin436.fits ra=124.695 dec=31.8862 rad=12.0 tmin=502675201.0 tmax=503280001.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.21
user 7.83
sys 0.30

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/574272/ft2_4FGL_J0818.7+3153_weekly_bin436.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/574272/ft1_filteredMKT_4FGL_J0818.7+3153_weekly_bin436.fits evtable="EVENTS" outfile="/scratch/kocevski/574272/ft1_filtered_4FGL_J0818.7+3153_weekly_bin436.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.57
user 0.39
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/574272/ft1_filtered_4FGL_J0818.7+3153_weekly_bin436.fits" evtable="EVENTS" scfile=/scratch/kocevski/574272/ft2_4FGL_J0818.7+3153_weekly_bin436.fits sctable="SC_DATA" outfile=/scratch/kocevski/574272/ltcube_502675201_503280001_4FGL_J0818.7+3153_weekly_bin436.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/574272/ft2_4FGL_J0818.7+3153_weekly_bin436.fits
.....................!
real 32.54
user 31.73
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/574272/ft1_filtered_4FGL_J0818.7+3153_weekly_bin436.fits evtable="EVENTS" scfile=/scratch/kocevski/574272/ft2_4FGL_J0818.7+3153_weekly_bin436.fits sctable="SC_DATA" expcube=/scratch/kocevski/574272/ltcube_502675201_503280001_4FGL_J0818.7+3153_weekly_bin436.fits outfile=/scratch/kocevski/574272/expmap_502675201_503280001_4FGL_J0818.7+3153_weekly_bin436.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/574272/ltcube_502675201_503280001_4FGL_J0818.7+3153_weekly_bin436.fits
.....................!
real 196.47
user 189.11
sys 5.38

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/574272/ft1_filtered_4FGL_J0818.7+3153_weekly_bin436.fits scfile=/scratch/kocevski/574272/ft2_4FGL_J0818.7+3153_weekly_bin436.fits outfile=/scratch/kocevski/574272/cmap_502675201_503280001_4FGL_J0818.7+3153_weekly_bin436.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.61
user 0.42
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/574272/ft1_filtered_4FGL_J0818.7+3153_weekly_bin436.fits scfile=/scratch/kocevski/574272/ft2_4FGL_J0818.7+3153_weekly_bin436.fits outfile=/scratch/kocevski/574272/cmap_HighResolution_502675201_503280001_4FGL_J0818.7+3153_weekly_bin436.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.63
user 0.42
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/574272/ft1_filtered_4FGL_J0818.7+3153_weekly_bin436.fits evtable="EVENTS" scfile=/scratch/kocevski/574272/ft2_4FGL_J0818.7+3153_weekly_bin436.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/574272/Model_4FGL_J0818.7+3153_weekly_bin436.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/574272/ft1_filtered_4FGL_J0818.7+3153_weekly_bin436.fits.....................!
real 125.07
user 123.26
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/574272/ft1_filtered_4FGL_J0818.7+3153_weekly_bin436.fits', '/scratch/kocevski/574272/ft2_4FGL_J0818.7+3153_weekly_bin436.fits', expMap='/scratch/kocevski/574272/expmap_502675201_503280001_4FGL_J0818.7+3153_weekly_bin436.fits', expCube='/scratch/kocevski/574272/ltcube_502675201_503280001_4FGL_J0818.7+3153_weekly_bin436.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/574272/Model_4FGL_J0818.7+3153_weekly_bin436.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/574272/ft1_filtered_4FGL_J0818.7+3153_weekly_bin436.fits
Spacecraft file(s): /scratch/kocevski/574272/ft2_4FGL_J0818.7+3153_weekly_bin436.fits
Exposure map: /scratch/kocevski/574272/expmap_502675201_503280001_4FGL_J0818.7+3153_weekly_bin436.fits
Exposure cube: /scratch/kocevski/574272/ltcube_502675201_503280001_4FGL_J0818.7+3153_weekly_bin436.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/574272/Model_4FGL_J0818.7+3153_weekly_bin436.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 14416.8780552

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.002       1.0000         .10000E-03   10000.    
     2 'norm      '    1.5328       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10247E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    38.266       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.022       1.0000         .10000E-03   10000.    
     6 'norm      '    40.313       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .24620       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .97088       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.3679       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.0713       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.2653       1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.879       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.4318       1.0000         .10000E-03   10000.    
    16 'norm      '    .25533       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.2548       1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.618       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .95648       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .98140       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .95933       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=   14416.70     FROM MIGRAD    STATUS=CONVERGED    474 CALLS     2116 TOTAL
                     EDM=   .63E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.001        7.1674        .70907E-07   -.23087E-03
   2  norm          1.5336        2.8516       -.99596E-07   -.18317E-03
   3  Prefactor     .10000E-03    21.201       -.26074E-06** at limit **
   4  Prefactor     38.267        13.103        .24304E-07    .18650E-04
   5  Prefactor     14.024        16.712        .11572E-05    .10155E-04
   6  norm          40.313        9.4883        .44304E-07    .49138E-05
   7  norm          .10000E-03    25.333        .42549E-06** at limit **
   8  Prefactor     .24868        1.2534        .64452E-08   -.13629E-03
   9  Prefactor     .10000E-03    5.7281        .14619E-07** at limit **
  10  norm          .97087        .38047        .37422E-08   -.27644E-04
  11  Prefactor     3.3676        13.089       -.44897E-06   -.11513E-05
  12  Prefactor     3.0711        6.7405        .54622E-06   -.24654E-03
  13  Prefactor     3.2635        7.2291       -.75961E-07   -.27530E-04
  14  Prefactor     21.886        15.045        .21897E-05    .23277E-03
  15  Prefactor     1.4322        1.6230        .17963E-07   -.63598E-04
  16  norm          .25574        .72877       -.32123E-06   -.65629E-04
  17  Prefactor     .10000E-03    8.6151       -.23968E-07** at limit **
  18  Prefactor     3.2583        6.7430       -.87930E-06    .11070E-03
  19  Prefactor     13.618        9.5014        .12642E-06   -.90613E-04
  20  Prefactor     .95665        1.9648        .46921E-07   -.16944E-03
  21  Normalizat    .98143        .12099       -.12316E-06    .17340E-03
  22  Prefactor     .95931        .95479E-01   -.69629E-07    .15235E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.0015
  norm       = 1.53364
  Prefactor  = 0.0001
  Prefactor  = 38.2668
  Prefactor  = 14.0238
  norm       = 40.3131
  norm       = 0.0001
  Prefactor  = 0.248678
  Prefactor  = 0.0001
  norm       = 0.97087
  Prefactor  = 3.36761
  Prefactor  = 3.07106
  Prefactor  = 3.26347
  Prefactor  = 21.8863
  Prefactor  = 1.43218
  norm       = 0.255741
  Prefactor  = 0.0001
  Prefactor  = 3.25833
  Prefactor  = 13.6175
  Prefactor  = 0.956649
  Normalizat = 0.981434
  Prefactor  = 0.959307
 **********
 **   18 **HESSE 
 **********

 FCN=   14416.70     FROM HESSE     STATUS=OK           360 CALLS     2476 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.001        7.5097        .63352E-03   -1.5075    
   2  norm          1.5336        2.8733        .24594E-03   -1.5460    
   3  Prefactor     .10000E-03    21.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     38.267        12.956        .64792E-04   -1.4470    
   5  Prefactor     14.024        16.582        .10696E-03   -1.4959    
   6  norm          40.313        9.4896        .63132E-04   -1.4437    
   7  norm          .10000E-03    25.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .24868        3.0760        .25770E-02   -1.5608    
   9  Prefactor     .10000E-03    5.7333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .97087        .37582        .43694E-04   -1.5511    
  11  Prefactor     3.3676        13.076        .22050E-03   -1.5341    
  12  Prefactor     3.0711        11.727        .11573E-02   -1.5357    
  13  Prefactor     3.2635        7.0763        .22411E-03   -1.5347    
  14  Prefactor     21.886        15.044        .85633E-04   -1.4772    
  15  Prefactor     1.4322        1.5815        .14673E-03   -1.5469    
  16  norm          .25574        .85718        .13019E-02   -1.5607    
  17  Prefactor     .10000E-03    8.6493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.2583        6.3245        .22449E-03   -1.5347    
  19  Prefactor     13.618        9.6675        .54271E-03   -1.4970    
  20  Prefactor     .95665        1.9831        .23777E-03   -1.5512    
  21  Normalizat    .98143        .14111        .26173E-03   -.93655    
  22  Prefactor     .95931        .11079        .21709E-03   -.94098    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7096e-07
Minuit parameter uncertainties:
  1  7.51041
  2  2.87353
  3  1.37868e-05
  4  12.9574
  5  16.5873
  6  9.48998
  7  1.40766e-06
  8  1.74898
  9  1.23205e-06
  10  0.375822
  11  13.0868
  12  11.7354
  13  7.07807
  14  15.0466
  15  1.58155
  16  0.857222
  17  1.71468e-06
  18  6.32578
  19  9.66866
  20  1.98328
  21  0.141159
  22  0.11082
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  3.071e+00  1.174e+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:  9.593e-01  1.108e-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.814e-01  1.412e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/574272/likelihoodResults_502675201_503280001_4FGL_J0818.7+3153_weekly_bin436.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) = 14416.1209832
delta logL = 0.578860564821

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 14416.1170341
delta logL = 0.582809704994

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .48697       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5920       1.0000          .0000       10.000    
     3 'Normalizat'    .94847       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97362       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=   14416.12     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      317 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .47777        5.8209        .11217E-01    .36644E-02
   2  Index         3.5985        1.6880        .99138E-01    .43806E-03
   3  Normalizat    .94843        .22730E-01    .45518E-01    .38077E-04
   4  Prefactor     .97367        .18704E-01    .45937E-01    .19490E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.477774
  Index      = 3.59854
  Normalizat = 0.948428
  Prefactor  = 0.973665
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .47777        21.757        .78418E-04   -1.5570    
   2  Index         3.5985        4.0325        .58387E-02   -.28410    
   3  Normalizat    .94843        .11234        .26575E-03   -.94779    
   4  Prefactor     .97367        .88823E-01    .21564E-03   -.93613    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.11194e-09
Minuit parameter uncertainties:
  1  6.45007
  2  4.78816
  3  0.112367
  4  0.0888367
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/574272': 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) = 14416.1170237
delta logL = 0.582820070531

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  4.778e-01  6.450e+00  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  3.599e+00  4.788e+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:  9.737e-01  8.884e-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:  9.484e-01  1.124e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.29
Ra Dec: 124.695 31.886
Photon Index (Free Index): 3.60 +/- 4.79
Photon Flux (Free Index): 2.95e-08 +/- 3.32e-08
Energy Flux (Free Index): 4.79e-06 +/- 5.10e-06

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/574272/cmap_HighResolution_502675201_503280001_4FGL_J0818.7+3153_weekly_bin436.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.86e-03', comment='SUCCESS', energy_flux2='4.79e-06', dlogl='5.83e-01', photon_flux2='2.95e-08', job_status='DONE', time_completed='2021-07-13 15:20:38.744529', photon_index_error2='4.79', photon_index2='3.60', ts='0.08', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='3.77e-08', energy_flux_error2='5.10e-06', EG='0.98', time_epoch_completed='1626214838.74', return_code='0', job_id='574272', GAL2='0.97', EG2='0.95', return_code2='102', photon_flux_error2='3.32e-08', ts2='1.29', photon_index='2.13' WHERE bin_id='436' AND source_name='4FGL J0818.7+3153' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:20:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 574272: <4FGL_J0818.7+3153_weekly_bin436> in cluster <slac> Done

Job <4FGL_J0818.7+3153_weekly_bin436> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Jul 12 07:48:04 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul 12 07:54:50 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jul 12 07:54:50 2021
Terminated at Tue Jul 13 15:20:39 2021
Results reported at Tue Jul 13 15:20:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_weekly_bin436 124.695 31.8862 502675201 503280001 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 :                                   1152.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             12.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1805 sec.
    Turnaround time :                            113555 sec.

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

