/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 49 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 = 7386
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0153.9+0823_daily_bin216
RA = 28.4972, Dec = 8.3931
tmin = 295315201, tmax = 295574401
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='904491', job_status='RUN', time_executed='2021-08-14 19:58:38.170687', time_epoch_executed='1628996318.17' WHERE source_name='4FGL J0153.9+0823' and cadence='daily' and bin_id='216'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/904491

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/904491/ft1_4FGL_J0153.9+0823_daily_bin216.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/904491/ft2_4FGL_J0153.9+0823_daily_bin216.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/904491/ft1_4FGL_J0153.9+0823_daily_bin216.fits outfile=/scratch/kocevski/904491/ft1_filteredMKT_4FGL_J0153.9+0823_daily_bin216.fits ra=28.4972 dec=8.3931 rad=12.0 tmin=295315201.0 tmax=295574401.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 6.11
user 2.15
sys 3.92

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/904491/ft2_4FGL_J0153.9+0823_daily_bin216.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/904491/ft1_filteredMKT_4FGL_J0153.9+0823_daily_bin216.fits evtable="EVENTS" outfile="/scratch/kocevski/904491/ft1_filtered_4FGL_J0153.9+0823_daily_bin216.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 4.72
user 0.33
sys 4.28

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/904491/ft1_filtered_4FGL_J0153.9+0823_daily_bin216.fits" evtable="EVENTS" scfile=/scratch/kocevski/904491/ft2_4FGL_J0153.9+0823_daily_bin216.fits sctable="SC_DATA" outfile=/scratch/kocevski/904491/ltcube_295315201_295574401_4FGL_J0153.9+0823_daily_bin216.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/904491/ft2_4FGL_J0153.9+0823_daily_bin216.fits
.....................!
real 17.91
user 13.34
sys 4.52

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/904491/ft1_filtered_4FGL_J0153.9+0823_daily_bin216.fits evtable="EVENTS" scfile=/scratch/kocevski/904491/ft2_4FGL_J0153.9+0823_daily_bin216.fits sctable="SC_DATA" expcube=/scratch/kocevski/904491/ltcube_295315201_295574401_4FGL_J0153.9+0823_daily_bin216.fits outfile=/scratch/kocevski/904491/expmap_295315201_295574401_4FGL_J0153.9+0823_daily_bin216.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/904491/ltcube_295315201_295574401_4FGL_J0153.9+0823_daily_bin216.fits
.....................!
real 198.63
user 186.71
sys 11.29

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/904491/ft1_filtered_4FGL_J0153.9+0823_daily_bin216.fits scfile=/scratch/kocevski/904491/ft2_4FGL_J0153.9+0823_daily_bin216.fits outfile=/scratch/kocevski/904491/cmap_295315201_295574401_4FGL_J0153.9+0823_daily_bin216.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=28.4972 yref=8.3931 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 4.65
user 0.37
sys 4.22

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/904491/ft1_filtered_4FGL_J0153.9+0823_daily_bin216.fits scfile=/scratch/kocevski/904491/ft2_4FGL_J0153.9+0823_daily_bin216.fits outfile=/scratch/kocevski/904491/cmap_HighResolution_295315201_295574401_4FGL_J0153.9+0823_daily_bin216.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=28.4972 yref=8.3931 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 4.62
user 0.39
sys 4.19

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    62.895       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.5428       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.5858       1.0000         .10000E-03   10000.    
     4 'norm      '    .53566       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.6182       1.0000         .10000E-03   10000.    
     7 'norm      '    5.3476       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.930       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    94.331       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10819E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.4930       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    .97575       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.1420       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=   8598.530     FROM MIGRAD    STATUS=CONVERGED    335 CALLS     1613 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     62.895        18.076       -.22095E-05    .36202E-04
   2  Prefactor     5.5283        79.287       -.51253E-04   -.45109E-05
   3  Prefactor     4.5858        3.4785        .61700E-06   -.12942E-03
   4  norm          .39716        8.8910       -.22219E-05    .43029E-04
   5  Prefactor     .10000E-03    3.4585       -.36187E-07** at limit **
   6  Prefactor     4.6173        3.3183        .38649E-06   -.22396E-03
   7  norm          5.3475        4.7640       -.25574E-05   -.18178E-03
   8  Prefactor     .10000E-03    1.1313        .55015E-06** at limit **
   9  norm          .10000E-03    .20511       -.12188E-06** at limit **
  10  Prefactor     13.928        20.287        .19146E-05    .18381E-04
  11  Prefactor     .10000E-03    3.1925        .27221E-06** at limit **
  12  Prefactor     94.273        75.488       -.55223E-04   -.11722E-04
  13  Prefactor     .10000E-03    27.866        .14664E-05** at limit **
  14  Prefactor     4.4877        15.496        .91359E-06   -.18391E-04
  15  Prefactor     .10000E-03    7.1781        .49340E-06** at limit **
  16  Normalizat    .97572        .17387        .31812E-05    .21566E-03
  17  Prefactor     1.1421        .12063        .32154E-05    .14263E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 62.8949
  Prefactor  = 5.52828
  Prefactor  = 4.58583
  norm       = 0.39716
  Prefactor  = 0.0001
  Prefactor  = 4.61728
  norm       = 5.34755
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 13.928
  Prefactor  = 0.0001
  Prefactor  = 94.2732
  Prefactor  = 0.000100003
  Prefactor  = 4.48772
  Prefactor  = 0.000100001
  Normalizat = 0.975721
  Prefactor  = 1.14205
 **********
 **   18 **HESSE 
 **********

 FCN=   8598.530     FROM HESSE     STATUS=OK           229 CALLS     1842 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     62.895        18.085        .50598E-04   -1.4120    
   2  Prefactor     5.5283        79.834        .17065E-03   -1.5238    
   3  Prefactor     4.5858        3.4751        .14610E-03   -1.5280    
   4  norm          .39716        99.396        .53231E-02   -1.5582    
   5  Prefactor     .10000E-03    3.4863        .16833E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.6173        3.3138        .13361E-03   -1.5278    
   7  norm          5.3475        4.7629        .17379E-03   -1.5245    
   8  Prefactor     .10000E-03    1.1556        .96261E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .31101        .81650E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.928        20.242        .10732E-03   -1.4961    
  11  Prefactor     .10000E-03    3.2063        .16178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     94.273        75.484        .20690E-03   -1.3763    
  13  Prefactor     .10000E-03    28.991        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.4877        15.462        .18995E-03   -1.5284    
  15  Prefactor     .10000E-03    7.2707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .97572        .19465        .31331E-03   -.93848    
  17  Prefactor     1.1421        .13612        .20400E-03   -.88134    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7004e-09
Minuit parameter uncertainties:
  1  18.087
  2  42.0839
  3  3.47523
  4  12.5856
  5  1.78001e-06
  6  3.31394
  7  4.76328
  8  7.02553e-05
  9  7.16515e-06
  10  20.2517
  11  2.59621e-05
  12  75.561
  13  0.000549618
  14  15.4758
  15  0.000151129
  16  0.19479
  17  0.136159
Done.

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

Extracting fit parameters...

4FGL J0153.9+0823
   Spectrum: LogParabola
236         norm:  3.972e-01  1.259e+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.142e+00  1.362e-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.757e-01  1.948e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/904491/likelihoodResults_295315201_295574401_4FGL_J0153.9+0823_daily_bin216.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) = 8598.31146951
delta logL = 0.218350131745

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8598.23865635
delta logL = 0.291163282824

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5138       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0631       1.0000          .0000       5.0000    
     3 'Normalizat'    .95210       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1436       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=   8598.239     FROM MIGRAD    STATUS=FAILED        97 CALLS      280 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5138        237.11        .97407E-03   -.10906E-02
   2  alpha         3.0628        2.6817        .16837E-01    .16067E-04
   3  Normalizat    .95223        .20661        .31675E-03    .43070E-06
   4  Prefactor     1.1436        .15073        .20385E-03    .61346E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8598.239     FROM SIMPLEX   STATUS=UNCHANGED     85 CALLS      365 TOTAL
                     EDM=   .93E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5138        237.11        .17564E-03   -.10906E-02
   2  alpha         3.0628        2.6817        .20977E-02    .16067E-04
   3  Normalizat    .95223        .20661        .22182E-03    .43070E-06
   4  Prefactor     1.1436        .15073        .98942E-04    .61346E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8598.239     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      397 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5141        6.5096        .38963E-04   -.53630E-03
   2  alpha         3.0628        1.1626        .67350E-03   -.44361E-04
   3  Normalizat    .95223        .19271        .12670E-04    .14357E-04
   4  Prefactor     1.1436        .13347        .81542E-05    .23423E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.51406
  alpha      = 3.06275
  Normalizat = 0.952227
  Prefactor  = 1.14357
 **********
 **   18 **HESSE 
 **********

 FCN=   8598.239     FROM HESSE     STATUS=OK            23 CALLS      420 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5141        6.3936        .15585E-05   -1.5391    
   2  alpha         3.0628        1.1433        .26940E-04    .22705    
   3  Normalizat    .95223        .19268        .25340E-05   -.94649    
   4  Prefactor     1.1436        .13338        .16308E-05   -.88086    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59991e-10
Minuit parameter uncertainties:
  1  6.39535
  2  1.19009
  3  0.192817
  4  0.133423
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/904491': 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) = 8598.23865609
delta logL = 0.291163550888

Extracting fit parameters...

4FGL J0153.9+0823
   Spectrum: LogParabola
236         norm:  2.514e+00  6.395e+00  1.000e-04  1.000e+04 ( 1.000e-13)
237        alpha:  3.063e+00  1.190e+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:  1.144e+00  1.334e-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.522e-01  1.928e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/904491/cmap_HighResolution_295315201_295574401_4FGL_J0153.9+0823_daily_bin216.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.68e-05', job_status='DONE', photon_flux_upper_limit='4.68e-08', time_completed='2021-08-14 20:10:52.983033', job_id='904491', GAL2='1.14', fit_tolerance='1e-08', EG2='0.95', EG='0.98', time_epoch_completed='1628997052.98', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='2.91e-01', ts2='0.60', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='216' AND source_name='4FGL J0153.9+0823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 20:10:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0011>
Subject: Job 904491: <4FGL_J0153.9+0823_daily_bin216> in cluster <slac> Done

Job <4FGL_J0153.9+0823_daily_bin216> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Aug 14 19:55:28 2021
Job was executed on host(s) <bullet0011>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 19:56:15 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:56:15 2021
Terminated at Sat Aug 14 20:10:54 2021
Results reported at Sat Aug 14 20:10:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0153.9+0823_daily_bin216 28.4972 8.3931 295315201 295574401 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 :                                   798.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             306.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            926 sec.

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

