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


Performing analysis on: 4FGL_J0153.9+0823_daily_bin671
RA = 28.4972, Dec = 8.3931
tmin = 413251201, tmax = 413510401
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='906250', job_status='RUN', time_executed='2021-08-14 20:06:13.229818', time_epoch_executed='1628996773.23' WHERE source_name='4FGL J0153.9+0823' and cadence='daily' and bin_id='671'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/906250

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/906250/ft1_4FGL_J0153.9+0823_daily_bin671.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/906250/ft2_4FGL_J0153.9+0823_daily_bin671.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/906250/ft1_4FGL_J0153.9+0823_daily_bin671.fits outfile=/scratch/kocevski/906250/ft1_filteredMKT_4FGL_J0153.9+0823_daily_bin671.fits ra=28.4972 dec=8.3931 rad=12.0 tmin=413251201.0 tmax=413510401.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 6.44
user 5.47
sys 0.91

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/906250/ft2_4FGL_J0153.9+0823_daily_bin671.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/906250/ft1_filteredMKT_4FGL_J0153.9+0823_daily_bin671.fits evtable="EVENTS" outfile="/scratch/kocevski/906250/ft1_filtered_4FGL_J0153.9+0823_daily_bin671.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.18
user 0.34
sys 0.82

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/906250/ft1_filtered_4FGL_J0153.9+0823_daily_bin671.fits" evtable="EVENTS" scfile=/scratch/kocevski/906250/ft2_4FGL_J0153.9+0823_daily_bin671.fits sctable="SC_DATA" outfile=/scratch/kocevski/906250/ltcube_413251201_413510401_4FGL_J0153.9+0823_daily_bin671.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/906250/ft2_4FGL_J0153.9+0823_daily_bin671.fits
.....................!
real 14.83
user 13.74
sys 1.04

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/906250/ft1_filtered_4FGL_J0153.9+0823_daily_bin671.fits evtable="EVENTS" scfile=/scratch/kocevski/906250/ft2_4FGL_J0153.9+0823_daily_bin671.fits sctable="SC_DATA" expcube=/scratch/kocevski/906250/ltcube_413251201_413510401_4FGL_J0153.9+0823_daily_bin671.fits outfile=/scratch/kocevski/906250/expmap_413251201_413510401_4FGL_J0153.9+0823_daily_bin671.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/906250/ltcube_413251201_413510401_4FGL_J0153.9+0823_daily_bin671.fits
.....................!
real 191.92
user 185.82
sys 5.63

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/906250/ft1_filtered_4FGL_J0153.9+0823_daily_bin671.fits scfile=/scratch/kocevski/906250/ft2_4FGL_J0153.9+0823_daily_bin671.fits outfile=/scratch/kocevski/906250/cmap_413251201_413510401_4FGL_J0153.9+0823_daily_bin671.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.19
user 0.39
sys 0.77

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/906250/ft1_filtered_4FGL_J0153.9+0823_daily_bin671.fits scfile=/scratch/kocevski/906250/ft2_4FGL_J0153.9+0823_daily_bin671.fits outfile=/scratch/kocevski/906250/cmap_HighResolution_413251201_413510401_4FGL_J0153.9+0823_daily_bin671.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.23
user 0.39
sys 0.81

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1253       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.9175       1.0000         .10000E-03   10000.    
     4 'norm      '    18.182       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10273E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .77694       1.0000         .10000E-03   10000.    
     7 'norm      '    3.0811       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.6213       1.0000         .10000E-03   10000.    
     9 'norm      '    1.0199       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    35.548       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .53383       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.001       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .94707       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0655       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=   4015.185     FROM MIGRAD    STATUS=CONVERGED    340 CALLS     1603 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1235        11.226        .66822E-06   -.65329E-04
   2  Prefactor     .10000E-03    58.342       -.46991E-06** at limit **
   3  Prefactor     6.9164        6.7499       -.76569E-06   -.72927E-04
   4  norm          18.176        21.879       -.29986E-05    .81177E-05
   5  Prefactor     .10000E-03    14.174       -.23118E-05** at limit **
   6  Prefactor     .77628        1.6586       -.18291E-06   -.68574E-03
   7  norm          3.0814        4.8206       -.12655E-06   -.12546E-03
   8  Prefactor     2.6216        3.6828       -.67384E-06   -.33265E-03
   9  norm          1.0192        1.5775       -.20584E-06   -.71326E-03
  10  Prefactor     .10000E-03    12.099       -.14924E-05** at limit **
  11  Prefactor     .10000E-03    10.518        .88605E-07** at limit **
  12  Prefactor     35.560        69.209        .19514E-04    .17176E-04
  13  Prefactor     .44938        6.7998       -.97649E-06   -.10847E-04
  14  Prefactor     .10000E-03    13.540        .36525E-05** at limit **
  15  Prefactor     13.004        12.732       -.28041E-05    .16708E-04
  16  Normalizat    .94717        .24890        .67731E-06    .76001E-04
  17  Prefactor     1.0656        .16695        .68751E-07    .15568E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.1235
  Prefactor  = 0.0001
  Prefactor  = 6.91636
  norm       = 18.176
  Prefactor  = 0.0001
  Prefactor  = 0.776279
  norm       = 3.08139
  Prefactor  = 2.62156
  norm       = 1.01924
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.5605
  Prefactor  = 0.449378
  Prefactor  = 0.0001
  Prefactor  = 13.0044
  Normalizat = 0.947167
  Prefactor  = 1.06558
 **********
 **   18 **HESSE 
 **********

 FCN=   4015.185     FROM HESSE     STATUS=OK           229 CALLS     1832 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1235        11.199        .17759E-03   -1.5255    
   2  Prefactor     .10000E-03    58.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.9164        6.7675        .15254E-03   -1.5182    
   4  norm          18.176        21.889        .93930E-04   -1.4855    
   5  Prefactor     .10000E-03    14.515        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .77628        1.3678        .11619E-02   -1.5532    
   7  norm          3.0814        4.8045        .16698E-03   -1.5357    
   8  Prefactor     2.6216        3.6839        .13493E-03   -1.5384    
   9  norm          1.0192        1.5664        .90983E-04   -1.5506    
  10  Prefactor     .10000E-03    12.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     35.560        69.037        .67215E-04   -1.4515    
  13  Prefactor     .44938        48.137        .31167E-02   -1.5574    
  14  Prefactor     .10000E-03    13.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.004        12.704        .11109E-03   -1.4987    
  16  Normalizat    .94717        .28359        .30040E-03   -.94822    
  17  Prefactor     1.0656        .19235        .19524E-03   -.90574    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11091e-08
Minuit parameter uncertainties:
  1  11.2033
  2  7.29855e-06
  3  6.76823
  4  21.899
  5  4.3198e-05
  6  1.36783
  7  4.80512
  8  3.68418
  9  1.56651
  10  3.17203e-06
  11  1.08149e-05
  12  69.1928
  13  9.30863
  14  1.32416e-06
  15  12.7069
  16  0.28404
  17  0.192479
Done.

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

Extracting fit parameters...

4FGL J0153.9+0823
   Spectrum: LogParabola
236         norm:  1.818e+01  2.190e+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.066e+00  1.925e-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:  9.472e-01  2.840e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.24
Ra Dec: 28.497 8.393
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 2.30e-08 +/- 2.77e-08
Energy Flux (Fixed Index): 2.31e-05 +/- 2.78e-05

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

Saving results to:
/scratch/kocevski/906250/likelihoodResults_413251201_413510401_4FGL_J0153.9+0823_daily_bin671.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) = 4015.18202729
delta logL = 0.00271172754628

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4015.18177752
delta logL = 0.00296149846508

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.727       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8924       1.0000          .0000       5.0000    
     3 'Normalizat'    .94513       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0662       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=   4015.182     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      223 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.727        800.65        .23782E-02    .31058E-03
   2  alpha         1.8925        2.8711        .42804        .62473E-04
   3  Normalizat    .94504        .14757        .67974E-01    .91706E-05
   4  Prefactor     1.0663        .63062E-01    .39040E-01   -.79415E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 17.7268
  alpha      = 1.89249
  Normalizat = 0.945037
  Prefactor  = 1.06629
 **********
 **   18 **HESSE 
 **********

 FCN=   4015.182     FROM HESSE     STATUS=OK            31 CALLS      254 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.727        22.741        .95127E-04   -1.4866    
   2  alpha         1.8925        .92710        .15740E-01   -.24546    
   3  Normalizat    .94504        .27227        .30070E-03   -.94895    
   4  Prefactor     1.0663        .18750        .19518E-03   -.90551    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.97996e-10
Minuit parameter uncertainties:
  1  22.7526
  2  0.951311
  3  0.272671
  4  0.187616
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/906250': 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) = 4015.18177746
delta logL = 0.0029615555909

Extracting fit parameters...

4FGL J0153.9+0823
   Spectrum: LogParabola
236         norm:  1.773e+01  2.275e+01  1.000e-04  1.000e+04 ( 1.000e-13)
237        alpha:  1.892e+00  9.513e-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.066e+00  1.876e-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:  9.450e-01  2.727e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.25
Ra Dec: 28.497 8.393
Photon Index (Free Index): 1.89 +/- 0.95
Photon Flux (Free Index): 2.48e-08 +/- 3.75e-08
Energy Flux (Free Index): 2.12e-05 +/- 3.51e-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/906250/cmap_HighResolution_413251201_413510401_4FGL_J0153.9+0823_daily_bin671.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.88e-05', comment='SUCCESS', photon_flux='2.30e-08', energy_flux2='2.12e-05', photon_flux_error='2.77e-08', dlogl='2.96e-03', energy_flux='2.31e-05', photon_flux2='2.48e-08', job_status='DONE', time_completed='2021-08-14 20:14:32.171605', photon_index_error2='0.95', photon_index2='1.89', ts='1.24', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='9.87e-08', energy_flux_error2='3.51e-05', EG='0.95', time_epoch_completed='1628997272.17', return_code='0', job_id='906250', GAL2='1.07', EG2='0.95', return_code2='0', energy_flux_error='2.78e-05', photon_flux_error2='3.75e-08', ts2='1.25', photon_index='1.82' WHERE bin_id='671' AND source_name='4FGL J0153.9+0823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 20:14:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 906250: <4FGL_J0153.9+0823_daily_bin671> in cluster <slac> Done

Job <4FGL_J0153.9+0823_daily_bin671> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 14 20:00:49 2021
Job was executed on host(s) <bullet0282>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 20:02:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 14 20:02:40 2021
Terminated at Sat Aug 14 20:14:33 2021
Results reported at Sat Aug 14 20:14:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0153.9+0823_daily_bin671 28.4972 8.3931 413251201 413510401 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 :                                   508.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             269.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   712 sec.
    Turnaround time :                            824 sec.

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

