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


Performing analysis on: 4FGL_J0153.9+0823_daily_bin159
RA = 28.4972, Dec = 8.3931
tmin = 280540801, tmax = 280800001
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='904403', job_status='RUN', time_executed='2021-08-14 19:58:59.095511', time_epoch_executed='1628996339.1' WHERE source_name='4FGL J0153.9+0823' and cadence='daily' and bin_id='159'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/904403

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/904403/ft1_4FGL_J0153.9+0823_daily_bin159.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/904403/ft2_4FGL_J0153.9+0823_daily_bin159.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/904403/ft1_4FGL_J0153.9+0823_daily_bin159.fits outfile=/scratch/kocevski/904403/ft1_filteredMKT_4FGL_J0153.9+0823_daily_bin159.fits ra=28.4972 dec=8.3931 rad=12.0 tmin=280540801.0 tmax=280800001.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.37
user 3.29
sys 1.00

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/904403/ft1_filtered_4FGL_J0153.9+0823_daily_bin159.fits" evtable="EVENTS" scfile=/scratch/kocevski/904403/ft2_4FGL_J0153.9+0823_daily_bin159.fits sctable="SC_DATA" outfile=/scratch/kocevski/904403/ltcube_280540801_280800001_4FGL_J0153.9+0823_daily_bin159.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/904403/ft2_4FGL_J0153.9+0823_daily_bin159.fits
.....................!
real 13.14
user 11.90
sys 1.19

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/904403/ft1_filtered_4FGL_J0153.9+0823_daily_bin159.fits evtable="EVENTS" scfile=/scratch/kocevski/904403/ft2_4FGL_J0153.9+0823_daily_bin159.fits sctable="SC_DATA" expcube=/scratch/kocevski/904403/ltcube_280540801_280800001_4FGL_J0153.9+0823_daily_bin159.fits outfile=/scratch/kocevski/904403/expmap_280540801_280800001_4FGL_J0153.9+0823_daily_bin159.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/904403/ltcube_280540801_280800001_4FGL_J0153.9+0823_daily_bin159.fits
.....................!
real 191.98
user 185.10
sys 6.23

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/904403/ft1_filtered_4FGL_J0153.9+0823_daily_bin159.fits scfile=/scratch/kocevski/904403/ft2_4FGL_J0153.9+0823_daily_bin159.fits outfile=/scratch/kocevski/904403/cmap_280540801_280800001_4FGL_J0153.9+0823_daily_bin159.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.47
user 0.36
sys 0.93

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/904403/ft1_filtered_4FGL_J0153.9+0823_daily_bin159.fits scfile=/scratch/kocevski/904403/ft2_4FGL_J0153.9+0823_daily_bin159.fits outfile=/scratch/kocevski/904403/cmap_HighResolution_280540801_280800001_4FGL_J0153.9+0823_daily_bin159.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.37
user 0.39
sys 0.92

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11792E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .20989E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10482E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    9.3263       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.0768       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .15504E-01   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.0889       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.1250       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.0040       1.0000         .10000E-03   10000.    
    12 'Prefactor '    37.305       1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.241       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10717E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .15912E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.0628       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .96329       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=   7206.857     FROM MIGRAD    STATUS=CONVERGED    387 CALLS     1668 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.6351        .90712E-02** at limit **
   2  Prefactor     .10005E-03    22.218        .90712E-02** at limit **
   3  Prefactor     .10000E-03    3.0531        .90712E-02** at limit **
   4  norm          9.2929        11.973        .32808E-02   -.29791E-03
   5  Prefactor     5.0875        5.0513        .44613E-02    .22566E-02
   6  Prefactor     .54518E-01    1.1531        .62094E-01    .29842E-03
   7  norm          .10000E-03    2.8173        .90712E-02** at limit **
   8  Prefactor     .10000E-03    1.8703        .90712E-02** at limit **
   9  norm          1.0891        .72035        .11474E-01    .33785E-03
  10  Prefactor     8.2109        26.247        .35164E-02    .54895E-04
  11  Prefactor     2.0050        5.6122        .73130E-02    .73662E-03
  12  Prefactor     36.476        84.295        .16405E-02   -.18538E-04
  13  Prefactor     13.288        11.812        .27519E-02   -.12735E-02
  14  Prefactor     .10005E-03    22.151        .90712E-02** at limit **
  15  Prefactor     .10000E-03    7.4553        .90712E-02** at limit **
  16  Normalizat    1.0625        .17126        .63859E-01    .98608E-05
  17  Prefactor     .96319        .11947        .45807E-01    .53739E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100045
  Prefactor  = 0.0001
  norm       = 9.29293
  Prefactor  = 5.0875
  Prefactor  = 0.0545183
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.08911
  Prefactor  = 8.21086
  Prefactor  = 2.005
  Prefactor  = 36.4761
  Prefactor  = 13.2884
  Prefactor  = 0.000100053
  Prefactor  = 0.0001
  Normalizat = 1.06252
  Prefactor  = 0.963186
 **********
 **   18 **HESSE 
 **********

 FCN=   7206.857     FROM HESSE     STATUS=OK           223 CALLS     1891 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.6796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10005E-03    22.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.1207        .14480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          9.2929        11.978        .13123E-03   -1.5098    
   5  Prefactor     5.0875        5.0482        .89225E-03   -1.5257    
   6  Prefactor     .54518E-01    28.257        .17265E-02   -1.5661    
   7  norm          .10000E-03    2.8428        .13907E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.9164        .22559E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.0891        .70528        .56423E-04   -1.5499    
  10  Prefactor     8.2109        26.160        .14065E-03   -1.5135    
  11  Prefactor     2.0050        5.5368        .29252E-03   -1.5425    
  12  Prefactor     36.476        84.062        .65619E-04   -1.4499    
  13  Prefactor     13.288        11.727        .11008E-03   -1.4979    
  14  Prefactor     .10005E-03    22.303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.5913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.0625        .19621        .28246E-03   -.90964    
  17  Prefactor     .96319        .13850        .20182E-03   -.93967    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.48658e-09
Minuit parameter uncertainties:
  1  6.08615e-06
  2  0.00201053
  3  3.12156e-07
  4  11.9809
  5  5.04867
  6  2.48125
  7  3.81707e-06
  8  2.28644e-06
  9  0.705281
  10  26.1969
  11  5.53817
  12  84.3365
  13  11.7293
  14  0.00216518
  15  2.33604e-07
  16  0.196342
  17  0.138547
Done.

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

Extracting fit parameters...

4FGL J0153.9+0823
   Spectrum: LogParabola
236         norm:  9.293e+00  1.198e+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.632e-01  1.385e-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:  1.063e+00  1.963e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.06
Ra Dec: 28.497 8.393
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 1.18e-08 +/- 1.52e-08
Energy Flux (Fixed Index): 1.18e-05 +/- 1.52e-05

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

Saving results to:
/scratch/kocevski/904403/likelihoodResults_280540801_280800001_4FGL_J0153.9+0823_daily_bin159.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) = 7206.68076638
delta logL = 0.176285352269

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7206.68013276
delta logL = 0.176918970338

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.8946       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3658       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0660       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96306       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=   7206.680     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      231 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.8818        13.454        .33599E-02    .12928E-03
   2  alpha         1.3650        .71083        .48466       -.34135E-04
   3  Normalizat    1.0653        .16952        .63781E-01    .93311E-03
   4  Prefactor     .96332        .11644        .45804E-01    .12709E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 8.88183
  alpha      = 1.36503
  Normalizat = 1.06532
  Prefactor  = 0.963322
 **********
 **   18 **HESSE 
 **********

 FCN=   7206.680     FROM HESSE     STATUS=OK            29 CALLS      260 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.8818        11.759        .13439E-03   -1.5112    
   2  alpha         1.3650        .72337        .21580E-01   -.47124    
   3  Normalizat    1.0653        .19446        .28212E-03   -.90873    
   4  Prefactor     .96332        .13404        .20179E-03   -.93962    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06526e-09
Minuit parameter uncertainties:
  1  11.7622
  2  0.736733
  3  0.194588
  4  0.134089
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/904403': 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) = 7206.68012484
delta logL = 0.176926893407

Extracting fit parameters...

4FGL J0153.9+0823
   Spectrum: LogParabola
236         norm:  8.882e+00  1.176e+01  1.000e-04  1.000e+04 ( 1.000e-13)
237        alpha:  1.365e+00  7.367e-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.633e-01  1.341e-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:  1.065e+00  1.946e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.42
Ra Dec: 28.497 8.393
Photon Index (Free Index): 1.37 +/- 0.74
Photon Flux (Free Index): 7.05e-09 +/- 1.09e-08
Energy Flux (Free Index): 2.32e-05 +/- 3.77e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/904403/cmap_HighResolution_280540801_280800001_4FGL_J0153.9+0823_daily_bin159.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.48e-05', comment='SUCCESS', photon_flux='1.18e-08', energy_flux2='2.32e-05', photon_flux_error='1.52e-08', dlogl='1.77e-01', energy_flux='1.18e-05', photon_flux2='7.05e-09', job_status='DONE', time_completed='2021-08-14 20:09:10.324061', photon_index_error2='0.74', photon_index2='1.37', ts='1.06', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='5.47e-08', energy_flux_error2='3.77e-05', EG='1.06', time_epoch_completed='1628996950.32', return_code='0', job_id='904403', GAL2='0.96', EG2='1.07', return_code2='0', energy_flux_error='1.52e-05', photon_flux_error2='1.09e-08', ts2='1.42', photon_index='1.82' WHERE bin_id='159' AND source_name='4FGL J0153.9+0823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 20:09:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0303>
Subject: Job 904403: <4FGL_J0153.9+0823_daily_bin159> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0153.9+0823_daily_bin159 28.4972 8.3931 280540801 280800001 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 :                                   621.49 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            830 sec.

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

