/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 142 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 = 7316
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0153.9+0823_daily_bin26
RA = 28.4972, Dec = 8.3931
tmin = 246067201, tmax = 246326401
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='903193', job_status='RUN', time_executed='2021-08-14 19:55:54.385077', time_epoch_executed='1628996154.39' WHERE source_name='4FGL J0153.9+0823' and cadence='daily' and bin_id='26'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/903193

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/903193/ft1_4FGL_J0153.9+0823_daily_bin26.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/903193/ft2_4FGL_J0153.9+0823_daily_bin26.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/903193/ft1_4FGL_J0153.9+0823_daily_bin26.fits outfile=/scratch/kocevski/903193/ft1_filteredMKT_4FGL_J0153.9+0823_daily_bin26.fits ra=28.4972 dec=8.3931 rad=12.0 tmin=246067201.0 tmax=246326401.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 2.43
user 1.30
sys 1.07

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/903193/ft1_filtered_4FGL_J0153.9+0823_daily_bin26.fits" evtable="EVENTS" scfile=/scratch/kocevski/903193/ft2_4FGL_J0153.9+0823_daily_bin26.fits sctable="SC_DATA" outfile=/scratch/kocevski/903193/ltcube_246067201_246326401_4FGL_J0153.9+0823_daily_bin26.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/903193/ft2_4FGL_J0153.9+0823_daily_bin26.fits
.....................!
real 15.63
user 14.23
sys 1.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/903193/ft1_filtered_4FGL_J0153.9+0823_daily_bin26.fits evtable="EVENTS" scfile=/scratch/kocevski/903193/ft2_4FGL_J0153.9+0823_daily_bin26.fits sctable="SC_DATA" expcube=/scratch/kocevski/903193/ltcube_246067201_246326401_4FGL_J0153.9+0823_daily_bin26.fits outfile=/scratch/kocevski/903193/expmap_246067201_246326401_4FGL_J0153.9+0823_daily_bin26.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/903193/ltcube_246067201_246326401_4FGL_J0153.9+0823_daily_bin26.fits
.....................!
real 192.40
user 185.93
sys 6.01

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/903193/ft1_filtered_4FGL_J0153.9+0823_daily_bin26.fits scfile=/scratch/kocevski/903193/ft2_4FGL_J0153.9+0823_daily_bin26.fits outfile=/scratch/kocevski/903193/cmap_246067201_246326401_4FGL_J0153.9+0823_daily_bin26.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.42
user 0.37
sys 1.03

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/903193/ft1_filtered_4FGL_J0153.9+0823_daily_bin26.fits scfile=/scratch/kocevski/903193/ft2_4FGL_J0153.9+0823_daily_bin26.fits outfile=/scratch/kocevski/903193/cmap_HighResolution_246067201_246326401_4FGL_J0153.9+0823_daily_bin26.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.43
user 0.37
sys 1.04

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.050       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11491E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.3403       1.0000         .10000E-03   10000.    
     4 'norm      '    1.3049       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.4341       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .27288       1.0000         .10000E-03   10000.    
     7 'norm      '    2.1753       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .57053       1.0000         .10000E-03   10000.    
     9 'norm      '    5.8601       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .15416E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10238E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .22635E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10550E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .14510E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    .89008       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .89183       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=   5943.161     FROM MIGRAD    STATUS=CONVERGED    336 CALLS     1404 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.047        9.5299       -.45709E-06   -.69551E-05
   2  Prefactor     .10000E-03    27.994        .40674E-05** at limit **
   3  Prefactor     7.3381        5.0632       -.18815E-05   -.10313E-03
   4  norm          1.2514        5.3141        .16294E-05   -.56404E-03
   5  Prefactor     5.4205        6.4201       -.37861E-05   -.10699E-03
   6  Prefactor     .26180        1.3294       -.15776E-06    .28128E-03
   7  norm          2.1753        2.7335        .22135E-06    .73890E-04
   8  Prefactor     .57107        1.9855       -.25487E-06   -.19327E-03
   9  norm          5.8601        1.2896       -.20578E-08    .87355E-04
  10  Prefactor     .10000E-03    27.681        .20943E-05** at limit **
  11  Prefactor     .10000E-03    4.9591        .57515E-07** at limit **
  12  Prefactor     .10000E-03    46.512       -.37361E-05** at limit **
  13  Prefactor     .10000E-03    26.217       -.28715E-05** at limit **
  14  Prefactor     .10000E-03    11.035       -.52446E-05** at limit **
  15  Prefactor     .10000E-03    10.342        .53316E-05** at limit **
  16  Normalizat    .88993        .17552        .12376E-05    .26302E-04
  17  Prefactor     .89195        .12118       -.10778E-06    .78885E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.0465
  Prefactor  = 0.0001
  Prefactor  = 7.33806
  norm       = 1.25139
  Prefactor  = 5.42046
  Prefactor  = 0.261805
  norm       = 2.17533
  Prefactor  = 0.571068
  norm       = 5.8601
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.889932
  Prefactor  = 0.891952
 **********
 **   18 **HESSE 
 **********

 FCN=   5943.161     FROM HESSE     STATUS=OK           223 CALLS     1627 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.047        9.5328        .12640E-03   -1.5074    
   2  Prefactor     .10000E-03    28.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.3381        5.0661        .13888E-03   -1.5166    
   4  norm          1.2514        49.610        .19322E-02   -1.5484    
   5  Prefactor     5.4205        6.4300        .17238E-03   -1.5242    
   6  Prefactor     .26180        4.8638        .16833E-02   -1.5606    
   7  norm          2.1753        2.7188        .13810E-03   -1.5413    
   8  Prefactor     .57107        1.9805        .19207E-03   -1.5557    
   9  norm          5.8601        1.2911        .39503E-04   -1.5224    
  10  Prefactor     .10000E-03    27.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.0034        .16759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    46.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    27.375        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .88993        .19796        .27644E-03   -.96815    
  17  Prefactor     .89195        .13802        .19266E-03   -.96423    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.44327e-09
Minuit parameter uncertainties:
  1  9.53421
  2  2.44249e-05
  3  5.06641
  4  15.7717
  5  6.43081
  6  2.25664
  7  2.719
  8  1.9807
  9  1.29115
  10  2.14469e-05
  11  1.82465e-06
  12  4.36223e-05
  13  7.24835e-06
  14  3.06461e-05
  15  4.08175e-06
  16  0.198119
  17  0.138075
Done.

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

Extracting fit parameters...

4FGL J0153.9+0823
   Spectrum: LogParabola
236         norm:  1.251e+00  1.577e+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:  8.920e-01  1.381e-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:  8.899e-01  1.981e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/903193/likelihoodResults_246067201_246326401_4FGL_J0153.9+0823_daily_bin26.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) = 5941.32565023
delta logL = 1.83494836822

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5941.32162386
delta logL = 1.83897473991

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7858       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.7740       1.0000          .0000       5.0000    
     3 'Normalizat'    .77737       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92516       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5941.322     FROM MIGRAD    STATUS=FAILED        97 CALLS      275 TOTAL
                     EDM=   .28E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7823        29.519        .15654E-03   -.16406E-03
   2  alpha         3.7749        4.2761        .83012E-02    .30142E-03
   3  Normalizat    .77735        .19815        .29379E-03   -.89388E-05
   4  Prefactor     .92517        .13893        .18928E-03   -.10511E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5941.322     FROM SIMPLEX   STATUS=UNCHANGED     82 CALLS      357 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7823        29.519        .21515E-03   -.16406E-03
   2  alpha         3.7749        4.2761        .31190E-02    .30142E-03
   3  Normalizat    .77735        .19815        .22981E-03   -.89388E-05
   4  Prefactor     .92517        .13893        .17148E-03   -.10511E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5941.322     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      395 TOTAL
                     EDM=   .18E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7823        6.0267        .62617E-05   -.99494E-04
   2  alpha         3.7749        1.3830        .16602E-02   -.47386E-05
   3  Normalizat    .77735        .20578        .11752E-04   -.44501E-05
   4  Prefactor     .92517        .14076        .75711E-05   -.60064E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.7823
  alpha      = 3.77491
  Normalizat = 0.777352
  Prefactor  = 0.92517
 **********
 **   18 **HESSE 
 **********

 FCN=   5941.322     FROM HESSE     STATUS=OK            23 CALLS      418 TOTAL
                     EDM=   .92E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7823        4.7943        .12523E-05   -1.5441    
   2  alpha         3.7749        1.1340        .66409E-04    .53515    
   3  Normalizat    .77735        .20464        .23503E-05   -1.0091    
   4  Prefactor     .92517        .13962        .15142E-05   -.95267    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.17552e-13
Minuit parameter uncertainties:
  1  4.79529
  2  1.19448
  3  0.204838
  4  0.139669
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/903193': 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) = 5941.32162355
delta logL = 1.83897505022

Extracting fit parameters...

4FGL J0153.9+0823
   Spectrum: LogParabola
236         norm:  1.782e+00  4.795e+00  1.000e-04  1.000e+04 ( 1.000e-13)
237        alpha:  3.775e+00  1.194e+00  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.252e-01  1.397e-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.774e-01  2.048e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.92
Ra Dec: 28.497 8.393
Photon Index (Free Index): 3.77 +/- 1.19
Photon Flux (Free Index): 1.10e-07 +/- 6.89e-08
Energy Flux (Free Index): 1.83e-05 +/- 1.17e-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/903193/cmap_HighResolution_246067201_246326401_4FGL_J0153.9+0823_daily_bin26.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.02e-05', comment='SUCCESS', energy_flux2='1.83e-05', dlogl='1.84e+00', photon_flux2='1.10e-07', job_status='DONE', time_completed='2021-08-14 20:05:09.752078', photon_index_error2='1.19', photon_index2='3.77', ts='0.01', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='6.01e-08', energy_flux_error2='1.17e-05', EG='0.89', time_epoch_completed='1628996709.75', return_code='0', job_id='903193', GAL2='0.93', EG2='0.78', return_code2='0', photon_flux_error2='6.89e-08', ts2='3.92', photon_index='1.82' WHERE bin_id='26' AND source_name='4FGL J0153.9+0823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 20:05:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0197>
Subject: Job 903193: <4FGL_J0153.9+0823_daily_bin26> in cluster <slac> Done

Job <4FGL_J0153.9+0823_daily_bin26> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Aug 14 19:50:53 2021
Job was executed on host(s) <bullet0197>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 19:53:07 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:53:07 2021
Terminated at Sat Aug 14 20:05:10 2021
Results reported at Sat Aug 14 20:05:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0153.9+0823_daily_bin26 28.4972 8.3931 246067201 246326401 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 :                                   568.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             311.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   723 sec.
    Turnaround time :                            857 sec.

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

