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


Performing analysis on: 4FGL_J0153.9+0823_weekly_bin611
RA = 28.4972, Dec = 8.3931
tmin = 608515201, tmax = 609120001
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='274333', job_status='RUN', time_executed='2021-07-04 03:18:57.572043', time_epoch_executed='1625393937.57' WHERE source_name='4FGL J0153.9+0823' and cadence='weekly' and bin_id='611'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/274333

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/274333/ft1_4FGL_J0153.9+0823_weekly_bin611.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/274333/ft2_4FGL_J0153.9+0823_weekly_bin611.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/274333/ft1_4FGL_J0153.9+0823_weekly_bin611.fits outfile=/scratch/kocevski/274333/ft1_filteredMKT_4FGL_J0153.9+0823_weekly_bin611.fits ra=28.4972 dec=8.3931 rad=12.0 tmin=608515201.0 tmax=609120001.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.72
user 7.34
sys 0.32

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/274333/ft2_4FGL_J0153.9+0823_weekly_bin611.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/274333/ft2_4FGL_J0153.9+0823_weekly_bin611.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/274333/ft1_filteredMKT_4FGL_J0153.9+0823_weekly_bin611.fits evtable="EVENTS" outfile="/scratch/kocevski/274333/ft1_filtered_4FGL_J0153.9+0823_weekly_bin611.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.23
user 0.39
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/274333/ft1_filtered_4FGL_J0153.9+0823_weekly_bin611.fits" evtable="EVENTS" scfile=/scratch/kocevski/274333/ft2_4FGL_J0153.9+0823_weekly_bin611.fits sctable="SC_DATA" outfile=/scratch/kocevski/274333/ltcube_608515201_609120001_4FGL_J0153.9+0823_weekly_bin611.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/274333/ft2_4FGL_J0153.9+0823_weekly_bin611.fits
.....................!
real 28.13
user 26.27
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/274333/ft1_filtered_4FGL_J0153.9+0823_weekly_bin611.fits evtable="EVENTS" scfile=/scratch/kocevski/274333/ft2_4FGL_J0153.9+0823_weekly_bin611.fits sctable="SC_DATA" expcube=/scratch/kocevski/274333/ltcube_608515201_609120001_4FGL_J0153.9+0823_weekly_bin611.fits outfile=/scratch/kocevski/274333/expmap_608515201_609120001_4FGL_J0153.9+0823_weekly_bin611.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/274333/ltcube_608515201_609120001_4FGL_J0153.9+0823_weekly_bin611.fits
.....................!
real 202.22
user 185.93
sys 4.12

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 174 point sources and 0 extended sources

Setting source of interest to:
4FGL J0153.9+0823 @ 28.4972 8.3931

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/274333/ft1_filtered_4FGL_J0153.9+0823_weekly_bin611.fits scfile=/scratch/kocevski/274333/ft2_4FGL_J0153.9+0823_weekly_bin611.fits outfile=/scratch/kocevski/274333/cmap_608515201_609120001_4FGL_J0153.9+0823_weekly_bin611.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=28.4972 yref=8.3931 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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/274333/ft1_filtered_4FGL_J0153.9+0823_weekly_bin611.fits scfile=/scratch/kocevski/274333/ft2_4FGL_J0153.9+0823_weekly_bin611.fits outfile=/scratch/kocevski/274333/cmap_HighResolution_608515201_609120001_4FGL_J0153.9+0823_weekly_bin611.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=28.4972 yref=8.3931 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.87
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/274333/ft1_filtered_4FGL_J0153.9+0823_weekly_bin611.fits evtable="EVENTS" scfile=/scratch/kocevski/274333/ft2_4FGL_J0153.9+0823_weekly_bin611.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/274333/Model_4FGL_J0153.9+0823_weekly_bin611.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/274333/ft1_filtered_4FGL_J0153.9+0823_weekly_bin611.fits.....................!
real 74.95
user 56.53
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/274333/ft1_filtered_4FGL_J0153.9+0823_weekly_bin611.fits', '/scratch/kocevski/274333/ft2_4FGL_J0153.9+0823_weekly_bin611.fits', expMap='/scratch/kocevski/274333/expmap_608515201_609120001_4FGL_J0153.9+0823_weekly_bin611.fits', expCube='/scratch/kocevski/274333/ltcube_608515201_609120001_4FGL_J0153.9+0823_weekly_bin611.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/274333/Model_4FGL_J0153.9+0823_weekly_bin611.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0153.9+0823'

4FGL J0153.9+0823
   Spectrum: LogParabola
236         norm:  7.272e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
237        alpha:  1.822e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
238         beta:  7.988e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
239           Eb:  1.487e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/274333/ft1_filtered_4FGL_J0153.9+0823_weekly_bin611.fits
Spacecraft file(s): /scratch/kocevski/274333/ft2_4FGL_J0153.9+0823_weekly_bin611.fits
Exposure map: /scratch/kocevski/274333/expmap_608515201_609120001_4FGL_J0153.9+0823_weekly_bin611.fits
Exposure cube: /scratch/kocevski/274333/ltcube_608515201_609120001_4FGL_J0153.9+0823_weekly_bin611.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/274333/Model_4FGL_J0153.9+0823_weekly_bin611.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) = 4364.61836578

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.6260       1.0000         .10000E-03   10000.    
     4 'norm      '    54.182       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.5581       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.0664       1.0000         .10000E-03   10000.    
     9 'norm      '    .98880       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10367E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.0173       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.011       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.2388       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.0669       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.2944       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4364.502     FROM MIGRAD    STATUS=CONVERGED    321 CALLS     1391 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.156       -.62377E-06** at limit **
   2  Prefactor     .10000E-03    44.092        .36575E-04** at limit **
   3  Prefactor     2.6133        7.6865        .68378E-05   -.32980E-03
   4  norm          54.178        39.542       -.31763E-05    .81343E-05
   5  Prefactor     3.5558        9.3643       -.46057E-05   -.14242E-03
   6  Prefactor     .10000E-03    1.1898        .30466E-08** at limit **
   7  norm          .10000E-03    3.9917        .76724E-07** at limit **
   8  Prefactor     5.0665        4.7243       -.46027E-07    .19841E-04
   9  norm          .98887        .87688       -.36162E-07   -.59203E-04
  10  Prefactor     .10000E-03    38.873       -.21097E-04** at limit **
  11  Prefactor     .10000E-03    6.8211        .25000E-06** at limit **
  12  Prefactor     .10000E-03    67.948       -.20734E-04** at limit **
  13  Prefactor     2.0058        21.230       -.84242E-05   -.14247E-03
  14  Prefactor     10.014        38.283        .57236E-05    .37115E-04
  15  Prefactor     5.2347        14.656       -.15578E-05   -.88326E-05
  16  Normalizat    1.0669        .27608       -.19405E-05    .44433E-04
  17  Prefactor     1.2945        .19784        .11536E-05   -.35377E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.61334
  norm       = 54.178
  Prefactor  = 3.55585
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.0665
  norm       = 0.988867
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.00579
  Prefactor  = 10.0136
  Prefactor  = 5.23469
  Normalizat = 1.06689
  Prefactor  = 1.29446
 **********
 **   18 **HESSE 
 **********

 FCN=   4364.502     FROM HESSE     STATUS=OK           221 CALLS     1612 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    44.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.6133        7.5587        .25166E-03   -1.5385    
   4  norm          54.178        39.548        .54492E-04   -1.4235    
   5  Prefactor     3.5558        9.3857        .21427E-03   -1.5331    
   6  Prefactor     .10000E-03    1.1916        .70373E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    4.0036        .12888E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.0665        4.7157        .13229E-03   -1.5258    
   9  norm          .98887        .89112        .56264E-04   -1.5509    
  10  Prefactor     .10000E-03    38.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.8318        .16833E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    67.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.0058        21.583        .29141E-03   -1.5425    
  14  Prefactor     10.014        38.250        .12664E-03   -1.5075    
  15  Prefactor     5.2347        14.624        .17562E-03   -1.5250    
  16  Normalizat    1.0669        .32152        .33763E-03   -.90822    
  17  Prefactor     1.2945        .23231        .22103E-03   -.83472    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.85301e-10
Minuit parameter uncertainties:
  1  2.81227e-06
  2  3.40857e-05
  3  7.56149
  4  39.5672
  5  9.38956
  6  1.68523e-06
  7  1.08326e-05
  8  4.71605
  9  0.891134
  10  5.74526e-06
  11  7.01945e-05
  12  5.77369e-05
  13  13.1648
  14  38.3441
  15  14.6341
  16  0.322114
  17  0.232499
Done.

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

Extracting fit parameters...

4FGL J0153.9+0823
   Spectrum: LogParabola
236         norm:  5.418e+01  3.957e+01  1.000e-04  1.000e+04 ( 1.000e-13)
237        alpha:  1.822e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
238         beta:  7.988e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
239           Eb:  1.487e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
546    Prefactor:  1.294e+00  2.325e-01  0.000e+00  1.000e+01 ( 1.000e+00)
547        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
548        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  1.067e+00  3.221e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.99
Ra Dec: 28.497 8.393
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 6.86e-08 +/- 5.01e-08
Energy Flux (Fixed Index): 6.87e-05 +/- 5.02e-05

TS (Fixed Index): 3.99
Ra Dec: 28.497 8.393
Photon Flux Upper Limit: 1.86e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.86e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/274333/likelihoodResults_608515201_609120001_4FGL_J0153.9+0823_weekly_bin611.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) = 4364.40371949
delta logL = 0.0981561805393

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4364.39863889
delta logL = 0.103236788936

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    50.605       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1161       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0457       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2988       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5490E+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=   4364.399     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      282 TOTAL
                     EDM=   .68E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          50.601        39.577        .56375E-04    .29725E-04
   2  alpha         2.1163        .65628        .11995E-01    .72450E-05
   3  Normalizat    1.0454        .32216        .34058E-03    .42727E-04
   4  Prefactor     1.2990        .22818        .22063E-03    .48673E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 50.6015
  alpha      = 2.11634
  Normalizat = 1.04535
  Prefactor  = 1.29904
 **********
 **   18 **HESSE 
 **********

 FCN=   4364.399     FROM HESSE     STATUS=OK            25 CALLS      307 TOTAL
                     EDM=   .73E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          50.601        38.593        .11275E-04   -1.4284    
   2  alpha         2.1163        .63944        .47979E-03   -.15407    
   3  Normalizat    1.0454        .32186        .13623E-04   -.91526    
   4  Prefactor     1.2990        .22820        .44126E-04   -.83336    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.3042e-12
Minuit parameter uncertainties:
  1  38.6125
  2  0.646803
  3  0.322461
  4  0.228379
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/274333': 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): 0
logL (Free Index) = 4364.39863816
delta logL = 0.103237514225

Extracting fit parameters...

4FGL J0153.9+0823
   Spectrum: LogParabola
236         norm:  5.060e+01  3.861e+01  1.000e-04  1.000e+04 ( 1.000e-13)
237        alpha:  2.116e+00  6.468e-01  0.000e+00  5.000e+00 ( 1.000e+00)
238         beta:  7.988e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
239           Eb:  1.487e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
546    Prefactor:  1.299e+00  2.284e-01  0.000e+00  1.000e+01 ( 1.000e+00)
547        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
548        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  1.045e+00  3.225e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.18
Ra Dec: 28.497 8.393
Photon Index (Free Index): 2.12 +/- 0.65
Photon Flux (Free Index): 1.01e-07 +/- 1.01e-07
Energy Flux (Free Index): 5.57e-05 +/- 4.33e-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/274333/cmap_HighResolution_608515201_609120001_4FGL_J0153.9+0823_weekly_bin611.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.86e-04', comment='SUCCESS', photon_flux='6.86e-08', energy_flux2='5.57e-05', photon_flux_error='5.01e-08', dlogl='1.03e-01', energy_flux='6.87e-05', photon_flux2='1.01e-07', job_status='DONE', time_completed='2021-07-04 03:28:40.465054', photon_index_error2='0.65', photon_index2='2.12', ts='3.99', fit_tolerance='1e-08', GAL='1.29', photon_index_error='0.00', photon_flux_upper_limit='1.86e-07', energy_flux_error2='4.33e-05', EG='1.07', time_epoch_completed='1625394520.47', return_code='0', job_id='274333', GAL2='1.30', EG2='1.05', return_code2='0', energy_flux_error='5.02e-05', photon_flux_error2='1.01e-07', ts2='4.18', photon_index='1.82' WHERE bin_id='611' AND source_name='4FGL J0153.9+0823' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 03:28:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 274333: <4FGL_J0153.9+0823_weekly_bin611> in cluster <slac> Done

Job <4FGL_J0153.9+0823_weekly_bin611> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Jul  4 03:13:38 2021
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 03:13:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jul  4 03:13:39 2021
Terminated at Sun Jul  4 03:28:46 2021
Results reported at Sun Jul  4 03:28:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0153.9+0823_weekly_bin611 28.4972 8.3931 608515201 609120001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0153.9+0823 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   519.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             227.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   906 sec.
    Turnaround time :                            908 sec.

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

