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


Performing analysis on: 4FGL_J0153.9+0823_daily_bin513
RA = 28.4972, Dec = 8.3931
tmin = 372297601, tmax = 372556801
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='905995', job_status='RUN', time_executed='2021-08-14 20:04:59.483662', time_epoch_executed='1628996699.48' WHERE source_name='4FGL J0153.9+0823' and cadence='daily' and bin_id='513'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/905995

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/905995/ft1_4FGL_J0153.9+0823_daily_bin513.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/905995/ft2_4FGL_J0153.9+0823_daily_bin513.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/905995/ft1_4FGL_J0153.9+0823_daily_bin513.fits outfile=/scratch/kocevski/905995/ft1_filteredMKT_4FGL_J0153.9+0823_daily_bin513.fits ra=28.4972 dec=8.3931 rad=12.0 tmin=372297601.0 tmax=372556801.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 4.61
user 3.10
sys 1.46

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/905995/ft1_filtered_4FGL_J0153.9+0823_daily_bin513.fits" evtable="EVENTS" scfile=/scratch/kocevski/905995/ft2_4FGL_J0153.9+0823_daily_bin513.fits sctable="SC_DATA" outfile=/scratch/kocevski/905995/ltcube_372297601_372556801_4FGL_J0153.9+0823_daily_bin513.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/905995/ft2_4FGL_J0153.9+0823_daily_bin513.fits
.....................!
real 13.98
user 12.19
sys 1.74

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/905995/ft1_filtered_4FGL_J0153.9+0823_daily_bin513.fits evtable="EVENTS" scfile=/scratch/kocevski/905995/ft2_4FGL_J0153.9+0823_daily_bin513.fits sctable="SC_DATA" expcube=/scratch/kocevski/905995/ltcube_372297601_372556801_4FGL_J0153.9+0823_daily_bin513.fits outfile=/scratch/kocevski/905995/expmap_372297601_372556801_4FGL_J0153.9+0823_daily_bin513.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/905995/ltcube_372297601_372556801_4FGL_J0153.9+0823_daily_bin513.fits
.....................!
real 193.28
user 186.67
sys 6.18

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/905995/ft1_filtered_4FGL_J0153.9+0823_daily_bin513.fits scfile=/scratch/kocevski/905995/ft2_4FGL_J0153.9+0823_daily_bin513.fits outfile=/scratch/kocevski/905995/cmap_372297601_372556801_4FGL_J0153.9+0823_daily_bin513.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.80
user 0.41
sys 1.37

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/905995/ft1_filtered_4FGL_J0153.9+0823_daily_bin513.fits scfile=/scratch/kocevski/905995/ft2_4FGL_J0153.9+0823_daily_bin513.fits outfile=/scratch/kocevski/905995/cmap_HighResolution_372297601_372556801_4FGL_J0153.9+0823_daily_bin513.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.82
user 0.39
sys 1.38

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    9.0113       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.5018       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    10.472       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .44581       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.1310       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.563       1.0000         .10000E-03   10000.    
    14 'Prefactor '    31.696       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    .90796       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .95986       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5607.369     FROM MIGRAD    STATUS=CONVERGED    331 CALLS     1547 TOTAL
                     EDM=   .55E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.4932         .0000    ** at limit **
   2  Prefactor     .10000E-03    15.438         .0000    ** at limit **
   3  Prefactor     .10000E-03    1.5837         .0000    ** at limit **
   4  norm          9.0113        10.817         .0000        .27315E-05
   5  Prefactor     1.5016        6.8640         .0000        .19979E-01
   6  Prefactor     .10000E-03    1.9467         .0000    ** at limit **
   7  norm          10.472        6.7365         .0000        .14877E-03
   8  Prefactor     .10000E-03    2.0976         .0000    ** at limit **
   9  norm          .44572        .48632         .0000       -.66063E-03
  10  Prefactor     .10000E-03    8.6528         .0000    ** at limit **
  11  Prefactor     7.1296        10.026         .0000        .35863E-03
  12  Prefactor     .10000E-03    26.531         .0000    ** at limit **
  13  Prefactor     11.566        12.959         .0000       -.33866E-03
  14  Prefactor     31.696        23.385         .0000       -.29002E-03
  15  Prefactor     .10000E-03    5.7492         .0000    ** at limit **
  16  Normalizat    .90825        .19083         .0000        .10740E-03
  17  Prefactor     .95971        .13415         .0000        .26993E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.01131
  Prefactor  = 1.50164
  Prefactor  = 0.0001
  norm       = 10.4721
  Prefactor  = 0.0001
  norm       = 0.44572
  Prefactor  = 0.0001
  Prefactor  = 7.12961
  Prefactor  = 0.0001
  Prefactor  = 11.5655
  Prefactor  = 31.6956
  Prefactor  = 0.0001
  Normalizat = 0.908246
  Prefactor  = 0.959705
 **********
 **   18 **HESSE 
 **********

 FCN=   5607.369     FROM HESSE     STATUS=OK           219 CALLS     1766 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.5268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.5869        .92022E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          9.0113        10.813        .13352E-03   -1.5107    
   5  Prefactor     1.5016        6.8294        .17469E-02   -1.5463    
   6  Prefactor     .10000E-03    1.9826        .10191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          10.472        6.7160        .12381E-03   -1.5061    
   8  Prefactor     .10000E-03    2.1587        .21129E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .44572        .47468        .52939E-04   -1.5574    
  10  Prefactor     .10000E-03    8.6569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.1296        10.000        .15022E-03   -1.5174    
  12  Prefactor     .10000E-03    26.538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.566        12.902        .11781E-03   -1.5028    
  14  Prefactor     31.696        23.389        .71171E-04   -1.4581    
  15  Prefactor     .10000E-03    5.7662        .17532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .90825        .22314        .28961E-03   -.96171    
  17  Prefactor     .95971        .15806        .19335E-03   -.94085    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10659e-09
Minuit parameter uncertainties:
  1  0.000293379
  2  0.000163914
  3  1.90768e-05
  4  10.8158
  5  6.40577
  6  4.38319e-06
  7  6.71651
  8  2.54839e-05
  9  0.474679
  10  3.94859e-05
  11  10.0026
  12  3.93854e-05
  13  12.9051
  14  23.3955
  15  0.000105399
  16  0.223365
  17  0.158137
Done.

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

Extracting fit parameters...

4FGL J0153.9+0823
   Spectrum: LogParabola
236         norm:  9.011e+00  1.082e+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:  9.597e-01  1.581e-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.082e-01  2.234e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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

Saving results to:
/scratch/kocevski/905995/likelihoodResults_372297601_372556801_4FGL_J0153.9+0823_daily_bin513.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) = 5606.93667447
delta logL = 0.431938649426

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5606.89075969
delta logL = 0.477853427486

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.9332       1.0000         .10000E-03   10000.    
     2 'alpha     '    .98615       1.0000          .0000       5.0000    
     3 'Normalizat'    .91234       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96010       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=   5606.891     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      216 TOTAL
                     EDM=   .85E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.9281        6.6576        .41214E-02   -.70710E-04
   2  alpha         .98661        .55776        .48077       -.30917E-04
   3  Normalizat    .91240        .18951        .65327E-01    .14647E-04
   4  Prefactor     .96013        .13045        .45766E-01    .31929E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.92811
  alpha      = 0.986607
  Normalizat = 0.912404
  Prefactor  = 0.96013
 **********
 **   18 **HESSE 
 **********

 FCN=   5606.891     FROM HESSE     STATUS=OK            33 CALLS      249 TOTAL
                     EDM=   .36E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.9281        8.6499        .16486E-03   -1.5221    
   2  alpha         .98661        .73796        .20661E-01   -.65021    
   3  Normalizat    .91240        .22194        .28896E-03   -.96026    
   4  Prefactor     .96013        .15299        .19327E-03   -.94071    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.64484e-12
Minuit parameter uncertainties:
  1  8.65171
  2  0.756019
  3  0.222165
  4  0.153056
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/905995': 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) = 5606.89075832
delta logL = 0.477854797459

Extracting fit parameters...

4FGL J0153.9+0823
   Spectrum: LogParabola
236         norm:  5.928e+00  8.652e+00  1.000e-04  1.000e+04 ( 1.000e-13)
237        alpha:  9.866e-01  7.560e-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:  9.601e-01  1.531e-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.124e-01  2.222e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.69
Ra Dec: 28.497 8.393
Photon Index (Free Index): 0.99 +/- 0.76
Photon Flux (Free Index): 4.52e-09 +/- 5.77e-09
Energy Flux (Free Index): 4.02e-05 +/- 6.58e-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/905995/cmap_HighResolution_372297601_372556801_4FGL_J0153.9+0823_daily_bin513.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.70e-05', comment='SUCCESS', photon_flux='1.14e-08', energy_flux2='4.02e-05', photon_flux_error='1.37e-08', dlogl='4.78e-01', energy_flux='1.14e-05', photon_flux2='4.52e-09', job_status='DONE', time_completed='2021-08-14 20:14:08.270213', photon_index_error2='0.76', photon_index2='0.99', ts='1.74', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='5.70e-08', energy_flux_error2='6.58e-05', EG='0.91', time_epoch_completed='1628997248.27', return_code='0', job_id='905995', GAL2='0.96', EG2='0.91', return_code2='0', energy_flux_error='1.37e-05', photon_flux_error2='5.77e-09', ts2='2.69', photon_index='1.82' WHERE bin_id='513' AND source_name='4FGL J0153.9+0823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 20:14:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0141>
Subject: Job 905995: <4FGL_J0153.9+0823_daily_bin513> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0153.9+0823_daily_bin513 28.4972 8.3931 372297601 372556801 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 :                                   566.45 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             229.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   792 sec.
    Turnaround time :                            822 sec.

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

