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


Performing analysis on: 4FGL_J0153.9+0823_daily_bin584
RA = 28.4972, Dec = 8.3931
tmin = 390700801, tmax = 390960001
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='906109', job_status='RUN', time_executed='2021-08-14 20:05:21.842338', time_epoch_executed='1628996721.84' WHERE source_name='4FGL J0153.9+0823' and cadence='daily' and bin_id='584'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/906109

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

Retrieving the FT1 file...

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

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

Retrieving 52 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/906109/ft1_4FGL_J0153.9+0823_daily_bin584.fits


Retrieving the FT1 file...

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

Retrieving 52 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/906109/ft2_4FGL_J0153.9+0823_daily_bin584.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/906109/ft1_4FGL_J0153.9+0823_daily_bin584.fits outfile=/scratch/kocevski/906109/ft1_filteredMKT_4FGL_J0153.9+0823_daily_bin584.fits ra=28.4972 dec=8.3931 rad=12.0 tmin=390700801.0 tmax=390960001.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 10.86
user 6.94
sys 3.85

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/906109/ft2_4FGL_J0153.9+0823_daily_bin584.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/906109/ft1_filteredMKT_4FGL_J0153.9+0823_daily_bin584.fits evtable="EVENTS" outfile="/scratch/kocevski/906109/ft1_filtered_4FGL_J0153.9+0823_daily_bin584.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 4.14
user 0.33
sys 3.78

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/906109/ft1_filtered_4FGL_J0153.9+0823_daily_bin584.fits" evtable="EVENTS" scfile=/scratch/kocevski/906109/ft2_4FGL_J0153.9+0823_daily_bin584.fits sctable="SC_DATA" outfile=/scratch/kocevski/906109/ltcube_390700801_390960001_4FGL_J0153.9+0823_daily_bin584.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/906109/ft2_4FGL_J0153.9+0823_daily_bin584.fits
.....................!
real 16.89
user 12.45
sys 4.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/906109/ft1_filtered_4FGL_J0153.9+0823_daily_bin584.fits evtable="EVENTS" scfile=/scratch/kocevski/906109/ft2_4FGL_J0153.9+0823_daily_bin584.fits sctable="SC_DATA" expcube=/scratch/kocevski/906109/ltcube_390700801_390960001_4FGL_J0153.9+0823_daily_bin584.fits outfile=/scratch/kocevski/906109/expmap_390700801_390960001_4FGL_J0153.9+0823_daily_bin584.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/906109/ltcube_390700801_390960001_4FGL_J0153.9+0823_daily_bin584.fits
.....................!
real 196.76
user 185.94
sys 10.09

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/906109/ft1_filtered_4FGL_J0153.9+0823_daily_bin584.fits scfile=/scratch/kocevski/906109/ft2_4FGL_J0153.9+0823_daily_bin584.fits outfile=/scratch/kocevski/906109/cmap_390700801_390960001_4FGL_J0153.9+0823_daily_bin584.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 4.17
user 0.37
sys 3.69

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/906109/ft1_filtered_4FGL_J0153.9+0823_daily_bin584.fits scfile=/scratch/kocevski/906109/ft2_4FGL_J0153.9+0823_daily_bin584.fits outfile=/scratch/kocevski/906109/cmap_HighResolution_390700801_390960001_4FGL_J0153.9+0823_daily_bin584.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 4.09
user 0.38
sys 3.68

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5969       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.3944       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.1678       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.1874       1.0000         .10000E-03   10000.    
     7 'norm      '    7.1692       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.2144       1.0000         .10000E-03   10000.    
     9 'norm      '    .53072       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.182       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.7609       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .23026E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    .98202       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.1327       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=   6538.540     FROM MIGRAD    STATUS=CONVERGED    343 CALLS     1429 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5950        9.1520       -.73971E-05   -.18228E-04
   2  Prefactor     3.3775        98.800        .16276E-04   -.58535E-04
   3  Prefactor     .10000E-03    1.8799        .97062E-09** at limit **
   4  norm          .10000E-03    14.574       -.84153E-07** at limit **
   5  Prefactor     4.1663        5.7587       -.73558E-06   -.92600E-04
   6  Prefactor     1.1876        2.6688       -.40563E-06   -.93544E-03
   7  norm          7.1694        5.4411       -.16783E-05    .30155E-03
   8  Prefactor     7.2150        3.8510       -.17677E-06   -.27774E-03
   9  norm          .53066        .85556       -.30686E-06   -.19792E-02
  10  Prefactor     10.179        28.606        .12295E-04   -.15581E-03
  11  Prefactor     .10000E-03    2.0742        .28955E-07** at limit **
  12  Prefactor     3.6688        120.61       -.12823E-04    .94025E-05
  13  Prefactor     .10000E-03    4.9064        .33665E-07** at limit **
  14  Prefactor     .10000E-03    4.0282       -.61832E-07** at limit **
  15  Prefactor     .10000E-03    3.7055       -.29126E-07** at limit **
  16  Normalizat    .98201        .19983        .51882E-07    .46344E-04
  17  Prefactor     1.1328        .13680        .35430E-06    .38246E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.59497
  Prefactor  = 3.37747
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.16634
  Prefactor  = 1.18761
  norm       = 7.16942
  Prefactor  = 7.21505
  norm       = 0.530665
  Prefactor  = 10.1789
  Prefactor  = 0.0001
  Prefactor  = 3.66879
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.982005
  Prefactor  = 1.13277
 **********
 **   18 **HESSE 
 **********

 FCN=   6538.540     FROM HESSE     STATUS=OK           229 CALLS     1658 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5950        9.3564        .25319E-03   -1.5386    
   2  Prefactor     3.3775        96.507        .21960E-03   -1.5340    
   3  Prefactor     .10000E-03    1.8910        .10826E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    14.780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.1663        5.7603        .19742E-03   -1.5300    
   6  Prefactor     1.1876        2.6679        .18905E-03   -1.5490    
   7  norm          7.1694        5.4207        .14981E-03   -1.5172    
   8  Prefactor     7.2150        3.8388        .10325E-03   -1.5171    
   9  norm          .53066        .79115        .91446E-03   -1.5562    
  10  Prefactor     10.179        28.184        .12557E-03   -1.5070    
  11  Prefactor     .10000E-03    2.0768        .11371E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.6688        120.92        .20818E-03   -1.5325    
  13  Prefactor     .10000E-03    40.716        .34363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.0292        .15850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.7164        .15201E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .98201        .22381        .31222E-03   -.93636    
  17  Prefactor     1.1328        .15447        .20182E-03   -.88426    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39602e-09
Minuit parameter uncertainties:
  1  9.36163
  2  36.172
  3  9.7963e-07
  4  6.20974e-06
  5  5.76103
  6  2.66816
  7  5.42112
  8  3.83895
  9  0.79117
  10  28.2212
  11  3.9804e-07
  12  42.2172
  13  0.000247172
  14  7.86319e-06
  15  2.30369e-06
  16  0.224023
  17  0.154534
Done.

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

Extracting fit parameters...

4FGL J0153.9+0823
   Spectrum: LogParabola
236         norm:  1.000e-04  6.210e-06  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.133e+00  1.545e-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.820e-01  2.240e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/906109/likelihoodResults_390700801_390960001_4FGL_J0153.9+0823_daily_bin584.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): 102
logL (Free Index) = 6538.54039681
delta logL = -0.00032244331851

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6538.54008201
delta logL = -7.6447331594e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10393E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2313       1.0000          .0000       5.0000    
     3 'Normalizat'    .98200       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1328       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6538.540     FROM MIGRAD    STATUS=FAILED        98 CALLS      286 TOTAL
                     EDM=   .84E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12763E-03    219.48        .21665E-02** at limit **
   2  alpha         2.6942        2.9345        .50000        .13919E-04
   3  Normalizat    .98200        .24403E-01    .31222E-03   -.14434E-03
   4  Prefactor     1.1328        .16912E-01    .20182E-03   -.22044E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6538.540     FROM SIMPLEX   STATUS=PROGRESS     126 CALLS      412 TOTAL
                     EDM=   .61E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11462E-03    219.48        .42878E-03** at limit **
   2  alpha         2.6937        2.9345        .31585E-03    .13919E-04
   3  Normalizat    .98199        .24403E-01    .50179E-05   -.14434E-03
   4  Prefactor     1.1328        .16912E-01    .33743E-05   -.22044E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6538.540     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      507 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    20.147        .86658E-03** at limit **
   2  alpha         1.3061        2.5671        .50000        .88880E-07
   3  Normalizat    .98200        .21944        .24978E-05   -.26672E-03
   4  Prefactor     1.1328        .15218        .80727E-05   -.39038E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  alpha      = 1.30606
  Normalizat = 0.982004
  Prefactor  = 1.13277
 **********
 **   18 **HESSE 
 **********

 FCN=   6538.540     FROM HESSE     STATUS=OK            29 CALLS      536 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    16.220        .17332E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.3061        2.8754        .50000       -.49789    
   3  Normalizat    .98200        .21565        .49955E-06   -.93636    
   4  Prefactor     1.1328        .15027        .16145E-05   -.88426    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.66036e-10
Minuit parameter uncertainties:
  1  0.000380624
  2  289.116
  3  0.215838
  4  0.150331
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/906109': 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) = 6538.54007409
delta logL = 2.72770193988e-07

Extracting fit parameters...

4FGL J0153.9+0823
   Spectrum: LogParabola
236         norm:  1.000e-04  3.806e-04  1.000e-04  1.000e+04 ( 1.000e-13)
237        alpha:  1.306e+00  2.891e+02  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.133e+00  1.503e-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.820e-01  2.158e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 28.497 8.393

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/906109/cmap_HighResolution_390700801_390960001_4FGL_J0153.9+0823_daily_bin584.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.31e-05', job_status='DONE', photon_flux_upper_limit='4.31e-08', time_completed='2021-08-14 20:16:22.031685', job_id='906109', GAL2='1.13', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1628997382.03', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='2.73e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='584' AND source_name='4FGL J0153.9+0823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 20:16:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 906109: <4FGL_J0153.9+0823_daily_bin584> in cluster <slac> Done

Job <4FGL_J0153.9+0823_daily_bin584> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 14 20:00:38 2021
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 20:01:46 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:01:46 2021
Terminated at Sat Aug 14 20:16:23 2021
Results reported at Sat Aug 14 20:16:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0153.9+0823_daily_bin584 28.4972 8.3931 390700801 390960001 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 :                                   713.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             300.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   876 sec.
    Turnaround time :                            945 sec.

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

