/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 102 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 = 7559
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0153.9+0823_daily_bin351
RA = 28.4972, Dec = 8.3931
tmin = 330307201, tmax = 330566401
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='904707', job_status='RUN', time_executed='2021-08-14 20:01:03.951434', time_epoch_executed='1628996463.95' WHERE source_name='4FGL J0153.9+0823' and cadence='daily' and bin_id='351'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/904707

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/904707/ft1_4FGL_J0153.9+0823_daily_bin351.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/904707/ft2_4FGL_J0153.9+0823_daily_bin351.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/904707/ft1_4FGL_J0153.9+0823_daily_bin351.fits outfile=/scratch/kocevski/904707/ft1_filteredMKT_4FGL_J0153.9+0823_daily_bin351.fits ra=28.4972 dec=8.3931 rad=12.0 tmin=330307201.0 tmax=330566401.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.46
user 3.63
sys 4.77

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/904707/ft2_4FGL_J0153.9+0823_daily_bin351.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/904707/ft1_filteredMKT_4FGL_J0153.9+0823_daily_bin351.fits evtable="EVENTS" outfile="/scratch/kocevski/904707/ft1_filtered_4FGL_J0153.9+0823_daily_bin351.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 5.24
user 0.35
sys 4.85

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/904707/ft1_filtered_4FGL_J0153.9+0823_daily_bin351.fits" evtable="EVENTS" scfile=/scratch/kocevski/904707/ft2_4FGL_J0153.9+0823_daily_bin351.fits sctable="SC_DATA" outfile=/scratch/kocevski/904707/ltcube_330307201_330566401_4FGL_J0153.9+0823_daily_bin351.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/904707/ft2_4FGL_J0153.9+0823_daily_bin351.fits
.....................!
real 21.93
user 15.91
sys 5.48

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/904707/ft1_filtered_4FGL_J0153.9+0823_daily_bin351.fits evtable="EVENTS" scfile=/scratch/kocevski/904707/ft2_4FGL_J0153.9+0823_daily_bin351.fits sctable="SC_DATA" expcube=/scratch/kocevski/904707/ltcube_330307201_330566401_4FGL_J0153.9+0823_daily_bin351.fits outfile=/scratch/kocevski/904707/expmap_330307201_330566401_4FGL_J0153.9+0823_daily_bin351.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/904707/ltcube_330307201_330566401_4FGL_J0153.9+0823_daily_bin351.fits
.....................!
real 197.49
user 186.03
sys 10.31

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/904707/ft1_filtered_4FGL_J0153.9+0823_daily_bin351.fits scfile=/scratch/kocevski/904707/ft2_4FGL_J0153.9+0823_daily_bin351.fits outfile=/scratch/kocevski/904707/cmap_330307201_330566401_4FGL_J0153.9+0823_daily_bin351.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 5.14
user 0.39
sys 4.71

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/904707/ft1_filtered_4FGL_J0153.9+0823_daily_bin351.fits scfile=/scratch/kocevski/904707/ft2_4FGL_J0153.9+0823_daily_bin351.fits outfile=/scratch/kocevski/904707/cmap_HighResolution_330307201_330566401_4FGL_J0153.9+0823_daily_bin351.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 5.05
user 0.39
sys 4.61

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.5353       1.0000         .10000E-03   10000.    
     4 'norm      '    27.335       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .51811       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .67301       1.0000         .10000E-03   10000.    
     7 'norm      '    21.356       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.1162       1.0000         .10000E-03   10000.    
     9 'norm      '    .79868       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.7571       1.0000         .10000E-03   10000.    
    12 'Prefactor '    53.750       1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.911       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.0713       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.4160       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .42046       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.2644       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6723.242     FROM MIGRAD    STATUS=CONVERGED     73 CALLS     1159 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.6368        .59995E-06** at limit **
   2  Prefactor     .10001E-03    116.16       -.13339E-04** at limit **
   3  Prefactor     8.5354        5.4383       -.45219E-05   -.11112E-02
   4  norm          27.340        1.2935       -.33483E-06    .87675E-03
   5  Prefactor     .53164        7.6420       -.69879E-06    .11291E-03
   6  Prefactor     .67346        1.9879       -.76162E-07    .18423E-03
   7  norm          21.356        3.0470       -.91388E-06   -.55400E-02
   8  Prefactor     6.1160        3.2400        .38542E-06    .44801E-03
   9  norm          .79868        .89710       -.18711E-06    .15344E-03
  10  Prefactor     .10000E-03    17.355       -.12348E-05** at limit **
  11  Prefactor     3.7569        4.1122        .11303E-05    .13824E-03
  12  Prefactor     53.760        3.3222        .14048E-05   -.63178E-02
  13  Prefactor     17.911        1.1089       -.89381E-07    .36016E-04
  14  Prefactor     2.0807        17.948       -.25231E-04    .78693E-04
  15  Prefactor     9.4152        1.0778        .45891E-06   -.48745E-03
  16  Normalizat    .42042        .19260        .21508E-05    .14976E-03
  17  Prefactor     1.2644        .14395        .12606E-05    .15095E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 8.53536
  norm       = 27.3399
  Prefactor  = 0.531644
  Prefactor  = 0.673457
  norm       = 21.3557
  Prefactor  = 6.116
  norm       = 0.79868
  Prefactor  = 0.0001
  Prefactor  = 3.75688
  Prefactor  = 53.7602
  Prefactor  = 17.911
  Prefactor  = 2.08073
  Prefactor  = 9.41519
  Normalizat = 0.420423
  Prefactor  = 1.2644
 **********
 **   18 **HESSE 
 **********

 FCN=   6723.242     FROM HESSE     STATUS=OK           265 CALLS     1424 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.6365        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    115.43        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.5354        5.5590        .34303E-02   -1.5124    
   4  norm          27.340        20.353        .19156E-02   -1.4662    
   5  Prefactor     .53164        7.6328        .11345E-01   -1.5562    
   6  Prefactor     .67346        2.0042        .11958E-01   -1.5544    
   7  norm          21.356        7.4693        .21668E-02   -1.4783    
   8  Prefactor     6.1160        3.3359        .40584E-02   -1.5213    
   9  norm          .79868        .96438        .18194E-01   -1.5529    
  10  Prefactor     .10000E-03    17.309        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.7569        4.2325        .52073E-02   -1.5320    
  12  Prefactor     53.760        54.601        .13677E-02   -1.4240    
  13  Prefactor     17.911        9.8666        .23659E-02   -1.4861    
  14  Prefactor     2.0807        20.016        .71757E-02   -1.5419    
  15  Prefactor     9.4152        9.3677        .32650E-02   -1.5094    
  16  Normalizat    .42042        .18904        .92539E-01   -1.1626    
  17  Prefactor     1.2644        .13869        .33261E-01   -.84372    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47062e-07
Minuit parameter uncertainties:
  1  2.25717e-05
  2  0.00200308
  3  5.55938
  4  20.3583
  5  4.02911
  6  2.00436
  7  7.46963
  8  3.33602
  9  0.964403
  10  2.23593e-05
  11  4.23285
  12  54.6522
  13  9.86748
  14  12.9125
  15  9.36911
  16  0.189328
  17  0.138731
Done.

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

Extracting fit parameters...

4FGL J0153.9+0823
   Spectrum: LogParabola
236         norm:  2.734e+01  2.036e+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.264e+00  1.387e-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:  4.204e-01  1.893e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.29
Ra Dec: 28.497 8.393
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 3.46e-08 +/- 2.58e-08
Energy Flux (Fixed Index): 3.47e-05 +/- 2.58e-05

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) = 6721.50542954
delta logL = 1.73658543777

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6721.48679153
delta logL = 1.75522344549

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.878       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9509       1.0000          .0000       5.0000    
     3 'Normalizat'    .31956       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2958       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=   6721.487     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      292 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.880        17.411        .11162E-03   -.70480E-04
   2  alpha         2.9513        .74861        .67022E-02    .40369E-03
   3  Normalizat    .31957        .20059        .46683E-03   -.10910E-04
   4  Prefactor     1.2958        .14417        .17972E-03    .36444E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.88
  alpha      = 2.95131
  Normalizat = 0.319575
  Prefactor  = 1.29577
 **********
 **   18 **HESSE 
 **********

 FCN=   6721.487     FROM HESSE     STATUS=OK            25 CALLS      317 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.880        13.720        .44649E-05   -1.4990    
   2  alpha         2.9513        .59287        .13404E-02    .18152    
   3  Normalizat    .31957        .19732        .18673E-04   -1.2169    
   4  Prefactor     1.2958        .14287        .35944E-04   -.83433    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.81414e-10
Minuit parameter uncertainties:
  1  13.7237
  2  0.598774
  3  0.197747
  4  0.142918
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/904707': 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) = 6721.48678916
delta logL = 1.75522581519

Extracting fit parameters...

4FGL J0153.9+0823
   Spectrum: LogParabola
236         norm:  1.288e+01  1.372e+01  1.000e-04  1.000e+04 ( 1.000e-13)
237        alpha:  2.951e+00  5.988e-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.296e+00  1.429e-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:  3.196e-01  1.977e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.02
Ra Dec: 28.497 8.393
Photon Index (Free Index): 2.95 +/- 0.60
Photon Flux (Free Index): 1.29e-07 +/- 6.60e-08
Energy Flux (Free Index): 2.93e-05 +/- 1.26e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.355e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.614e-03 [aplpy.core]
Saving /scratch/kocevski/904707/cmap_HighResolution_330307201_330566401_4FGL_J0153.9+0823_daily_bin351.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.46e-08', energy_flux2='2.93e-05', photon_flux_error='2.58e-08', dlogl='1.76e+00', energy_flux='3.47e-05', photon_flux2='1.29e-07', job_status='DONE', time_completed='2021-08-14 20:10:58.379245', photon_index_error2='0.60', photon_index2='2.95', ts='8.29', fit_tolerance='1e-08', GAL='1.26', photon_index_error='0.00', energy_flux_error2='1.26e-05', EG='0.42', time_epoch_completed='1628997058.38', return_code='0', job_id='904707', GAL2='1.30', EG2='0.32', return_code2='0', energy_flux_error='2.58e-05', photon_flux_error2='6.60e-08', ts2='12.02', photon_index='1.82' WHERE bin_id='351' AND source_name='4FGL J0153.9+0823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 20:10:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0291>
Subject: Job 904707: <4FGL_J0153.9+0823_daily_bin351> in cluster <slac> Done

Job <4FGL_J0153.9+0823_daily_bin351> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Aug 14 19:55:46 2021
Job was executed on host(s) <bullet0291>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 19:57:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 14 19:57:58 2021
Terminated at Sat Aug 14 20:10:59 2021
Results reported at Sat Aug 14 20:10:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0153.9+0823_daily_bin351 28.4972 8.3931 330307201 330566401 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 :                                   661.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             272.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   781 sec.
    Turnaround time :                            913 sec.

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

