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


Performing analysis on: 4FGL_J0153.9+0823_daily_bin500
RA = 28.4972, Dec = 8.3931
tmin = 368928001, tmax = 369187201
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='905974', job_status='RUN', time_executed='2021-08-14 20:04:41.162107', time_epoch_executed='1628996681.16' WHERE source_name='4FGL J0153.9+0823' and cadence='daily' and bin_id='500'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/905974

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/905974/ft1_4FGL_J0153.9+0823_daily_bin500.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/905974/ft2_4FGL_J0153.9+0823_daily_bin500.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/905974/ft1_4FGL_J0153.9+0823_daily_bin500.fits outfile=/scratch/kocevski/905974/ft1_filteredMKT_4FGL_J0153.9+0823_daily_bin500.fits ra=28.4972 dec=8.3931 rad=12.0 tmin=368928001.0 tmax=369187201.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.78
user 3.20
sys 5.43

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/905974/ft2_4FGL_J0153.9+0823_daily_bin500.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/905974/ft1_filteredMKT_4FGL_J0153.9+0823_daily_bin500.fits evtable="EVENTS" outfile="/scratch/kocevski/905974/ft1_filtered_4FGL_J0153.9+0823_daily_bin500.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.70
user 0.36
sys 5.26

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/905974/ft1_filtered_4FGL_J0153.9+0823_daily_bin500.fits" evtable="EVENTS" scfile=/scratch/kocevski/905974/ft2_4FGL_J0153.9+0823_daily_bin500.fits sctable="SC_DATA" outfile=/scratch/kocevski/905974/ltcube_368928001_369187201_4FGL_J0153.9+0823_daily_bin500.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/905974/ft2_4FGL_J0153.9+0823_daily_bin500.fits
.....................!
real 19.07
user 12.81
sys 6.14

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/905974/ft1_filtered_4FGL_J0153.9+0823_daily_bin500.fits evtable="EVENTS" scfile=/scratch/kocevski/905974/ft2_4FGL_J0153.9+0823_daily_bin500.fits sctable="SC_DATA" expcube=/scratch/kocevski/905974/ltcube_368928001_369187201_4FGL_J0153.9+0823_daily_bin500.fits outfile=/scratch/kocevski/905974/expmap_368928001_369187201_4FGL_J0153.9+0823_daily_bin500.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/905974/ltcube_368928001_369187201_4FGL_J0153.9+0823_daily_bin500.fits
.....................!
real 198.24
user 185.67
sys 12.02

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/905974/ft1_filtered_4FGL_J0153.9+0823_daily_bin500.fits scfile=/scratch/kocevski/905974/ft2_4FGL_J0153.9+0823_daily_bin500.fits outfile=/scratch/kocevski/905974/cmap_368928001_369187201_4FGL_J0153.9+0823_daily_bin500.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.77
user 0.39
sys 5.23

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/905974/ft1_filtered_4FGL_J0153.9+0823_daily_bin500.fits scfile=/scratch/kocevski/905974/ft2_4FGL_J0153.9+0823_daily_bin500.fits outfile=/scratch/kocevski/905974/cmap_HighResolution_368928001_369187201_4FGL_J0153.9+0823_daily_bin500.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.67
user 0.40
sys 5.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .41252       1.0000         .10000E-03   10000.    
     4 'norm      '    11.114       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .34836       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.7732       1.0000         .10000E-03   10000.    
     9 'norm      '    .68642       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.2953       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10395E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.9877       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    .78599       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.2812       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=   8158.724     FROM MIGRAD    STATUS=CONVERGED    327 CALLS     1371 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.1245        .20576E-06** at limit **
   2  Prefactor     .10000E-03    11.186        .35320E-06** at limit **
   3  Prefactor     .41297        2.8269        .16977E-06   -.77475E-03
   4  norm          11.110        13.915       -.12581E-05   -.16416E-03
   5  Prefactor     .10000E-03    2.7296       -.96842E-07** at limit **
   6  Prefactor     .10000E-03    1.4258        .10396E-09** at limit **
   7  norm          .34790        4.0428        .17969E-05   -.67619E-03
   8  Prefactor     3.7721        2.5721        .20829E-06    .25325E-04
   9  norm          .68648        .53193        .26983E-07    .11314E-03
  10  Prefactor     4.2852        19.086       -.99139E-05   -.27870E-03
  11  Prefactor     .10000E-03    6.3254       -.17584E-05** at limit **
  12  Prefactor     .10000E-03    15.707        .20409E-07** at limit **
  13  Prefactor     5.9864        9.1194        .23304E-05   -.75170E-03
  14  Prefactor     .10000E-03    5.6302        .13296E-05** at limit **
  15  Prefactor     .10000E-03    4.0513       -.39777E-06** at limit **
  16  Normalizat    .78582        .17023        .12053E-06    .15308E-05
  17  Prefactor     1.2813        .12172       -.20961E-06    .40010E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.412966
  norm       = 11.1098
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.347901
  Prefactor  = 3.77205
  norm       = 0.686477
  Prefactor  = 4.28516
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.98643
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.785818
  Prefactor  = 1.28133
 **********
 **   18 **HESSE 
 **********

 FCN=   8158.724     FROM HESSE     STATUS=OK           225 CALLS     1596 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.1272        .15594E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .41297        3.2184        .31527E-03   -1.5579    
   4  norm          11.110        13.987        .12018E-03   -1.5041    
   5  Prefactor     .10000E-03    2.7497        .14570E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.4663        .21042E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .34790        4.6666        .37005E-03   -1.5590    
   8  Prefactor     3.7721        2.5676        .11122E-03   -1.5320    
   9  norm          .68648        .55829        .55820E-03   -1.5542    
  10  Prefactor     4.2852        20.835        .19439E-03   -1.5294    
  11  Prefactor     .10000E-03    6.4713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.9864        10.018        .82047E-03   -1.5219    
  14  Prefactor     .10000E-03    5.6845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.0677        .17754E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .78582        .18842        .33129E-03   -1.0060    
  17  Prefactor     1.2813        .13601        .19050E-03   -.83864    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.47746e-09
Minuit parameter uncertainties:
  1  6.90255e-06
  2  2.38832e-05
  3  2.30561
  4  13.9909
  5  3.17873e-06
  6  2.49072e-06
  7  2.54821
  8  2.56763
  9  0.558291
  10  18.908
  11  0.00010482
  12  9.70182e-06
  13  10.0212
  14  8.11541e-05
  15  1.24752e-05
  16  0.188576
  17  0.136048
Done.

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

Extracting fit parameters...

4FGL J0153.9+0823
   Spectrum: LogParabola
236         norm:  1.111e+01  1.399e+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.281e+00  1.360e-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:  7.858e-01  1.886e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/905974/likelihoodResults_368928001_369187201_4FGL_J0153.9+0823_daily_bin500.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) = 8158.26663888
delta logL = 0.457547064168

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8158.26281283
delta logL = 0.461373111168

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.2467       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5770       1.0000          .0000       5.0000    
     3 'Normalizat'    .76653       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2843       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=   8158.263     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      302 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.2448        13.221        .13961E-03    .37166E-03
   2  alpha         2.5768        .93646        .14733E-01    .53810E-04
   3  Normalizat    .76650        .18873        .33506E-03   -.31765E-03
   4  Prefactor     1.2844        .13448        .19022E-03   -.96674E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.24482
  alpha      = 2.57679
  Normalizat = 0.766497
  Prefactor  = 1.28438
 **********
 **   18 **HESSE 
 **********

 FCN=   8158.263     FROM HESSE     STATUS=OK            25 CALLS      327 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.2448        11.341        .55843E-05   -1.5134    
   2  alpha         2.5768        .80773        .58931E-03    .30719E-01
   3  Normalizat    .76650        .18808        .13402E-04   -1.0132    
   4  Prefactor     1.2844        .13423        .38045E-04   -.83773    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.97642e-10
Minuit parameter uncertainties:
  1  11.3442
  2  0.822497
  3  0.188238
  4  0.134266
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/905974': 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) = 8158.26281208
delta logL = 0.461373864302

Extracting fit parameters...

4FGL J0153.9+0823
   Spectrum: LogParabola
236         norm:  8.245e+00  1.134e+01  1.000e-04  1.000e+04 ( 1.000e-13)
237        alpha:  2.577e+00  8.225e-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.284e+00  1.343e-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:  7.665e-01  1.882e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.85
Ra Dec: 28.497 8.393
Photon Index (Free Index): 2.58 +/- 0.82
Photon Flux (Free Index): 3.83e-08 +/- 4.06e-08
Energy Flux (Free Index): 1.16e-05 +/- 1.06e-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/905974/cmap_HighResolution_368928001_369187201_4FGL_J0153.9+0823_daily_bin500.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.86e-05', comment='SUCCESS', energy_flux2='1.16e-05', dlogl='4.61e-01', photon_flux2='3.83e-08', job_status='DONE', time_completed='2021-08-14 20:16:17.493244', photon_index_error2='0.82', photon_index2='2.58', ts='0.93', fit_tolerance='1e-08', GAL='1.28', photon_index_error='0.00', photon_flux_upper_limit='5.85e-08', energy_flux_error2='1.06e-05', EG='0.79', time_epoch_completed='1628997377.49', return_code='0', job_id='905974', GAL2='1.28', EG2='0.77', return_code2='0', photon_flux_error2='4.06e-08', ts2='1.85', photon_index='1.82' WHERE bin_id='500' AND source_name='4FGL J0153.9+0823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 20:16:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 905974: <4FGL_J0153.9+0823_daily_bin500> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0153.9+0823_daily_bin500 28.4972 8.3931 368928001 369187201 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 :                                   774.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            954 sec.

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

