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


Performing analysis on: 4FGL_J0153.9+0823_weekly_bin281
RA = 28.4972, Dec = 8.3931
tmin = 408931201, tmax = 409536001
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='273738', job_status='RUN', time_executed='2021-07-04 03:15:09.254514', time_epoch_executed='1625393709.25' WHERE source_name='4FGL J0153.9+0823' and cadence='weekly' and bin_id='281'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/273738

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

Retrieving the FT1 file...

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

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

Retrieving 109 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/273738/ft1_4FGL_J0153.9+0823_weekly_bin281.fits


Retrieving the FT1 file...

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

Retrieving 109 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/273738/ft2_4FGL_J0153.9+0823_weekly_bin281.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/273738/ft1_4FGL_J0153.9+0823_weekly_bin281.fits outfile=/scratch/kocevski/273738/ft1_filteredMKT_4FGL_J0153.9+0823_weekly_bin281.fits ra=28.4972 dec=8.3931 rad=12.0 tmin=408931201.0 tmax=409536001.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 11.35
user 10.66
sys 0.38

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/273738/ft2_4FGL_J0153.9+0823_weekly_bin281.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/273738/ft1_filteredMKT_4FGL_J0153.9+0823_weekly_bin281.fits evtable="EVENTS" outfile="/scratch/kocevski/273738/ft1_filtered_4FGL_J0153.9+0823_weekly_bin281.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 1.70
user 0.38
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/273738/ft1_filtered_4FGL_J0153.9+0823_weekly_bin281.fits" evtable="EVENTS" scfile=/scratch/kocevski/273738/ft2_4FGL_J0153.9+0823_weekly_bin281.fits sctable="SC_DATA" outfile=/scratch/kocevski/273738/ltcube_408931201_409536001_4FGL_J0153.9+0823_weekly_bin281.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/273738/ft2_4FGL_J0153.9+0823_weekly_bin281.fits
.....................!
real 27.85
user 25.92
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/273738/ft1_filtered_4FGL_J0153.9+0823_weekly_bin281.fits evtable="EVENTS" scfile=/scratch/kocevski/273738/ft2_4FGL_J0153.9+0823_weekly_bin281.fits sctable="SC_DATA" expcube=/scratch/kocevski/273738/ltcube_408931201_409536001_4FGL_J0153.9+0823_weekly_bin281.fits outfile=/scratch/kocevski/273738/expmap_408931201_409536001_4FGL_J0153.9+0823_weekly_bin281.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/273738/ltcube_408931201_409536001_4FGL_J0153.9+0823_weekly_bin281.fits
.....................!
real 202.78
user 185.67
sys 4.71

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/273738/ft1_filtered_4FGL_J0153.9+0823_weekly_bin281.fits scfile=/scratch/kocevski/273738/ft2_4FGL_J0153.9+0823_weekly_bin281.fits outfile=/scratch/kocevski/273738/cmap_408931201_409536001_4FGL_J0153.9+0823_weekly_bin281.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 1.00
user 0.43
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/273738/ft1_filtered_4FGL_J0153.9+0823_weekly_bin281.fits scfile=/scratch/kocevski/273738/ft2_4FGL_J0153.9+0823_weekly_bin281.fits outfile=/scratch/kocevski/273738/cmap_HighResolution_408931201_409536001_4FGL_J0153.9+0823_weekly_bin281.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.17
user 0.42
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/273738/ft1_filtered_4FGL_J0153.9+0823_weekly_bin281.fits', '/scratch/kocevski/273738/ft2_4FGL_J0153.9+0823_weekly_bin281.fits', expMap='/scratch/kocevski/273738/expmap_408931201_409536001_4FGL_J0153.9+0823_weekly_bin281.fits', expCube='/scratch/kocevski/273738/ltcube_408931201_409536001_4FGL_J0153.9+0823_weekly_bin281.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/273738/Model_4FGL_J0153.9+0823_weekly_bin281.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/273738/ft1_filtered_4FGL_J0153.9+0823_weekly_bin281.fits
Spacecraft file(s): /scratch/kocevski/273738/ft2_4FGL_J0153.9+0823_weekly_bin281.fits
Exposure map: /scratch/kocevski/273738/expmap_408931201_409536001_4FGL_J0153.9+0823_weekly_bin281.fits
Exposure cube: /scratch/kocevski/273738/ltcube_408931201_409536001_4FGL_J0153.9+0823_weekly_bin281.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/273738/Model_4FGL_J0153.9+0823_weekly_bin281.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) = 9792.93173327

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    14.583       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.5946       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    6.8004       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .72176       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    35.717       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .18473       1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.034       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.0486       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.4406       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .83593       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=   9792.862     FROM MIGRAD    STATUS=CONVERGED    351 CALLS     1422 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.2992       -.16489E-06** at limit **
   2  Prefactor     .10000E-03    20.886       -.55730E-06** at limit **
   3  Prefactor     .10000E-03    1.9921        .63714E-07** at limit **
   4  norm          14.587        13.723        .35283E-05   -.14272E-04
   5  Prefactor     3.5957        4.6784        .17370E-07   -.44306E-03
   6  Prefactor     .10000E-03    .85799       -.57888E-08** at limit **
   7  norm          6.8007        3.6880        .28226E-06   -.53658E-04
   8  Prefactor     .72103        1.7000       -.36451E-06   -.19062E-02
   9  norm          .10000E-03    .17471       -.16342E-08** at limit **
  10  Prefactor     .10000E-03    17.945        .32208E-06** at limit **
  11  Prefactor     .10000E-03    2.0741       -.42980E-08** at limit **
  12  Prefactor     35.706        36.475       -.18027E-04   -.19372E-05
  13  Prefactor     .31587        4.0405        .35457E-06   -.15362E-04
  14  Prefactor     22.035        17.135        .24072E-05    .43353E-05
  15  Prefactor     5.0454        6.4938       -.19655E-05   -.15532E-03
  16  Normalizat    1.4405        .15876       -.28149E-06   -.58521E-06
  17  Prefactor     .83580        .10721        .43844E-06   -.11029E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.5872
  Prefactor  = 3.59572
  Prefactor  = 0.0001
  norm       = 6.80069
  Prefactor  = 0.721033
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.7065
  Prefactor  = 0.315873
  Prefactor  = 22.0353
  Prefactor  = 5.04542
  Normalizat = 1.44055
  Prefactor  = 0.8358
 **********
 **   18 **HESSE 
 **********

 FCN=   9792.862     FROM HESSE     STATUS=OK           229 CALLS     1651 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.3230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    20.916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.0436        .27272E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          14.587        13.715        .10488E-03   -1.4944    
   5  Prefactor     3.5957        4.6687        .21313E-03   -1.5329    
   6  Prefactor     .10000E-03    2.2855        .17778E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.8007        3.6839        .13443E-03   -1.5186    
   8  Prefactor     .72103        1.6966        .18901E-03   -1.5538    
   9  norm          .10000E-03    .18154        .80681E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    18.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.0790        .13907E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     35.706        35.765        .33529E-03   -1.4512    
  13  Prefactor     .31587        58.219        .37330E-02   -1.5596    
  14  Prefactor     22.035        17.130        .85330E-04   -1.4769    
  15  Prefactor     5.0454        6.5002        .17896E-03   -1.5259    
  16  Normalizat    1.4405        .18154        .26936E-03   -.79463    
  17  Prefactor     .83580        .12329        .22352E-03   -.98422    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.10898e-08
Minuit parameter uncertainties:
  1  7.8647e-07
  2  1.50822e-06
  3  1.20607e-06
  4  13.7179
  5  4.66913
  6  3.01915e-06
  7  3.68398
  8  1.69667
  9  3.99939e-08
  10  7.88813e-05
  11  5.1773e-06
  12  35.7863
  13  8.58381
  14  17.1335
  15  6.50109
  16  0.181621
  17  0.12333
Done.

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

Extracting fit parameters...

4FGL J0153.9+0823
   Spectrum: LogParabola
236         norm:  1.459e+01  1.372e+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:  8.358e-01  1.233e-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.441e+00  1.816e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.06
Ra Dec: 28.497 8.393
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 1.85e-08 +/- 1.74e-08
Energy Flux (Fixed Index): 1.85e-05 +/- 1.74e-05

TS (Fixed Index): 2.06
Ra Dec: 28.497 8.393
Photon Flux Upper Limit: 6.03e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.04e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/273738/likelihoodResults_408931201_409536001_4FGL_J0153.9+0823_weekly_bin281.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) = 9792.63565008
delta logL = 0.225998965545

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9792.63432613
delta logL = 0.227322919513

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.261       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2441       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4301       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83555       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.

 FCN=   9792.634     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      247 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.269        303.81        .26516E-02    .56278E-04
   2  alpha         2.2437        3.4553        .30122        .77443E-04
   3  Normalizat    1.4300        .93893E-01    .61079E-01   -.14377E-04
   4  Prefactor     .83557        .43760E-01    .44178E-01    .19198E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 14.2687
  alpha      = 2.24373
  Normalizat = 1.43002
  Prefactor  = 0.83557
 **********
 **   18 **HESSE 
 **********

 FCN=   9792.634     FROM HESSE     STATUS=OK            33 CALLS      280 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.269        13.060        .10606E-03   -1.4952    
   2  alpha         2.2437        .61718        .16075E-01   -.10269    
   3  Normalizat    1.4300        .18244        .27012E-03   -.79764    
   4  Prefactor     .83557        .11918        .22347E-03   -.98430    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09368e-11
Minuit parameter uncertainties:
  1  13.0627
  2  0.623695
  3  0.182521
  4  0.11922
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/273738': 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) = 9792.63432554
delta logL = 0.227323505773

Extracting fit parameters...

4FGL J0153.9+0823
   Spectrum: LogParabola
236         norm:  1.427e+01  1.306e+01  1.000e-04  1.000e+04 ( 1.000e-13)
237        alpha:  2.244e+00  6.237e-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:  8.356e-01  1.192e-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.430e+00  1.825e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.51
Ra Dec: 28.497 8.393
Photon Index (Free Index): 2.24 +/- 0.62
Photon Flux (Free Index): 3.55e-08 +/- 3.64e-08
Energy Flux (Free Index): 1.60e-05 +/- 1.34e-05

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/273738/cmap_HighResolution_408931201_409536001_4FGL_J0153.9+0823_weekly_bin281.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.04e-05', comment='SUCCESS', photon_flux='1.85e-08', energy_flux2='1.60e-05', photon_flux_error='1.74e-08', dlogl='2.27e-01', energy_flux='1.85e-05', photon_flux2='3.55e-08', job_status='DONE', time_completed='2021-07-04 03:28:31.759979', photon_index_error2='0.62', photon_index2='2.24', ts='2.06', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='6.03e-08', energy_flux_error2='1.34e-05', EG='1.44', time_epoch_completed='1625394511.76', return_code='0', job_id='273738', GAL2='0.84', EG2='1.43', return_code2='0', energy_flux_error='1.74e-05', photon_flux_error2='3.64e-08', ts2='2.51', photon_index='1.82' WHERE bin_id='281' AND source_name='4FGL J0153.9+0823' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 03:28:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 273738: <4FGL_J0153.9+0823_weekly_bin281> in cluster <slac> Done

Job <4FGL_J0153.9+0823_weekly_bin281> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Jul  4 03:12:34 2021
Job was executed on host(s) <bullet0111>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 03:12:35 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:12:35 2021
Terminated at Sun Jul  4 03:28:36 2021
Results reported at Sun Jul  4 03:28:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0153.9+0823_weekly_bin281 28.4972 8.3931 408931201 409536001 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 :                                   739.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             311.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   961 sec.
    Turnaround time :                            962 sec.

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

