/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 143 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7396
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0153.9+0823_daily_bin385
RA = 28.4972, Dec = 8.3931
tmin = 339120001, tmax = 339379201
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='904759', job_status='RUN', time_executed='2021-08-14 20:01:31.127601', time_epoch_executed='1628996491.13' WHERE source_name='4FGL J0153.9+0823' and cadence='daily' and bin_id='385'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/904759

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

Retrieving the FT1 file...

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

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

Retrieving 52 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/904759/ft1_4FGL_J0153.9+0823_daily_bin385.fits


Retrieving the FT1 file...

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

Retrieving 52 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/904759/ft2_4FGL_J0153.9+0823_daily_bin385.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/904759/ft1_4FGL_J0153.9+0823_daily_bin385.fits outfile=/scratch/kocevski/904759/ft1_filteredMKT_4FGL_J0153.9+0823_daily_bin385.fits ra=28.4972 dec=8.3931 rad=12.0 tmin=339120001.0 tmax=339379201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 8.52
user 6.04
sys 2.41

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/904759/ft2_4FGL_J0153.9+0823_daily_bin385.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/904759/ft1_filteredMKT_4FGL_J0153.9+0823_daily_bin385.fits evtable="EVENTS" outfile="/scratch/kocevski/904759/ft1_filtered_4FGL_J0153.9+0823_daily_bin385.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 2.65
user 0.35
sys 2.23

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/904759/ft1_filtered_4FGL_J0153.9+0823_daily_bin385.fits" evtable="EVENTS" scfile=/scratch/kocevski/904759/ft2_4FGL_J0153.9+0823_daily_bin385.fits sctable="SC_DATA" outfile=/scratch/kocevski/904759/ltcube_339120001_339379201_4FGL_J0153.9+0823_daily_bin385.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/904759/ft2_4FGL_J0153.9+0823_daily_bin385.fits
.....................!
real 14.90
user 12.04
sys 2.72

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/904759/ft1_filtered_4FGL_J0153.9+0823_daily_bin385.fits evtable="EVENTS" scfile=/scratch/kocevski/904759/ft2_4FGL_J0153.9+0823_daily_bin385.fits sctable="SC_DATA" expcube=/scratch/kocevski/904759/ltcube_339120001_339379201_4FGL_J0153.9+0823_daily_bin385.fits outfile=/scratch/kocevski/904759/expmap_339120001_339379201_4FGL_J0153.9+0823_daily_bin385.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/904759/ltcube_339120001_339379201_4FGL_J0153.9+0823_daily_bin385.fits
.....................!
real 193.78
user 185.48
sys 7.24

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/904759/ft1_filtered_4FGL_J0153.9+0823_daily_bin385.fits scfile=/scratch/kocevski/904759/ft2_4FGL_J0153.9+0823_daily_bin385.fits outfile=/scratch/kocevski/904759/cmap_339120001_339379201_4FGL_J0153.9+0823_daily_bin385.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 2.65
user 0.38
sys 2.23

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/904759/ft1_filtered_4FGL_J0153.9+0823_daily_bin385.fits scfile=/scratch/kocevski/904759/ft2_4FGL_J0153.9+0823_daily_bin385.fits outfile=/scratch/kocevski/904759/cmap_HighResolution_339120001_339379201_4FGL_J0153.9+0823_daily_bin385.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 2.61
user 0.39
sys 2.20

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    27.591       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.9561       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    7.5714       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .85003       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.1901       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.979       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.9537       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .89517       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.1043       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=   5006.213     FROM MIGRAD    STATUS=CONVERGED    326 CALLS     1352 TOTAL
                     EDM=   .82E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.080         .0000    ** at limit **
   2  Prefactor     .10000E-03    17.100         .0000    ** at limit **
   3  Prefactor     .10000E-03    1.7123         .0000    ** at limit **
   4  norm          27.591        23.105         .0000        .31096E-03
   5  Prefactor     6.9562        9.0697         .0000        .28117E-02
   6  Prefactor     .10000E-03    1.0536         .0000    ** at limit **
   7  norm          7.5713        5.4807         .0000       -.47472E-03
   8  Prefactor     .84956        2.4133         .0000        .87949E-03
   9  norm          .10000E-03    .29930         .0000    ** at limit **
  10  Prefactor     .10000E-03    7.4283         .0000    ** at limit **
  11  Prefactor     1.1907        7.8660         .0000        .22706E-01
  12  Prefactor     .10000E-03    24.786         .0000    ** at limit **
  13  Prefactor     .10000E-03    3.0706         .0000    ** at limit **
  14  Prefactor     14.978        15.555         .0000        .14167E-03
  15  Prefactor     1.9520        8.1557         .0000        .45316E-03
  16  Normalizat    .89518        .20147         .0000        .63101E-04
  17  Prefactor     1.1042        .14827         .0000        .94969E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 27.5907
  Prefactor  = 6.95618
  Prefactor  = 0.0001
  norm       = 7.57131
  Prefactor  = 0.84956
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.19065
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 14.9782
  Prefactor  = 1.95199
  Normalizat = 0.895184
  Prefactor  = 1.10424
 **********
 **   18 **HESSE 
 **********

 FCN=   5006.213     FROM HESSE     STATUS=OK           217 CALLS     1569 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    17.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.7143        .90414E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          27.591        23.102        .76269E-04   -1.4657    
   5  Prefactor     6.9562        9.0577        .76056E-03   -1.5180    
   6  Prefactor     .10000E-03    1.0649        .70888E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.5713        5.4678        .13438E-03   -1.5158    
   8  Prefactor     .84956        2.3930        .17534E-03   -1.5524    
   9  norm          .10000E-03    .30854        .75545E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.4322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.1907        7.9662        .18927E-02   -1.5490    
  12  Prefactor     .10000E-03    24.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.0792        .12103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.978        15.547        .10349E-03   -1.4934    
  15  Prefactor     1.9520        8.1440        .29686E-03   -1.5429    
  16  Normalizat    .89518        .22859        .29427E-03   -.96630    
  17  Prefactor     1.1042        .16861        .19070E-03   -.89331    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.50653e-10
Minuit parameter uncertainties:
  1  3.8297e-05
  2  0.000116791
  3  7.7342e-06
  4  23.1098
  5  9.05944
  6  8.76536e-06
  7  5.46816
  8  2.39324
  9  1.60269e-06
  10  5.35421e-06
  11  6.16047
  12  0.000253023
  13  2.30361e-05
  14  15.5507
  15  7.97584
  16  0.228838
  17  0.168688
Done.

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

Extracting fit parameters...

4FGL J0153.9+0823
   Spectrum: LogParabola
236         norm:  2.759e+01  2.311e+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.104e+00  1.687e-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.952e-01  2.288e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.69
Ra Dec: 28.497 8.393
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 3.50e-08 +/- 2.93e-08
Energy Flux (Fixed Index): 3.50e-05 +/- 2.93e-05

TS (Fixed Index): 2.69
Ra Dec: 28.497 8.393
Photon Flux Upper Limit: 1.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.04e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/904759/likelihoodResults_339120001_339379201_4FGL_J0153.9+0823_daily_bin385.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) = 5004.92267298
delta logL = 1.29024735991

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5004.91227837
delta logL = 1.30064196976

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.056       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9038       1.0000          .0000       5.0000    
     3 'Normalizat'    .80837       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1315       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=   5004.912     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      247 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.056        131.94        .27714E-02    .43111E-03
   2  alpha         2.9038        3.8205        .18214        .70774E-04
   3  Normalizat    .80832        .11467        .69510E-01    .17532E-04
   4  Prefactor     1.1315        .62001E-01    .36496E-01   -.36699E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 13.0563
  alpha      = 2.90381
  Normalizat = 0.808324
  Prefactor  = 1.13153
 **********
 **   18 **HESSE 
 **********

 FCN=   5004.912     FROM HESSE     STATUS=OK            33 CALLS      280 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.056        20.882        .11085E-03   -1.4985    
   2  alpha         2.9038        .87543        .72349E-02    .16223    
   3  Normalizat    .80832        .24030        .30757E-03   -.99761    
   4  Prefactor     1.1315        .16611        .18835E-03   -.88465    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.13528e-09
Minuit parameter uncertainties:
  1  20.8932
  2  0.894924
  3  0.240619
  4  0.166182
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/904759': 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) = 5004.91227835
delta logL = 1.30064198736

Extracting fit parameters...

4FGL J0153.9+0823
   Spectrum: LogParabola
236         norm:  1.306e+01  2.089e+01  1.000e-04  1.000e+04 ( 1.000e-13)
237        alpha:  2.904e+00  8.949e-01  0.000e+00  5.000e+00 ( 1.000e+00)
238         beta:  7.988e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
239           Eb:  1.487e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
546    Prefactor:  1.132e+00  1.662e-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.083e-01  2.406e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.35
Ra Dec: 28.497 8.393
Photon Index (Free Index): 2.90 +/- 0.89
Photon Flux (Free Index): 1.18e-07 +/- 7.85e-08
Energy Flux (Free Index): 2.77e-05 +/- 1.61e-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/904759/cmap_HighResolution_339120001_339379201_4FGL_J0153.9+0823_daily_bin385.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-04', comment='SUCCESS', photon_flux='3.50e-08', energy_flux2='2.77e-05', photon_flux_error='2.93e-08', dlogl='1.30e+00', energy_flux='3.50e-05', photon_flux2='1.18e-07', job_status='DONE', time_completed='2021-08-14 20:10:44.739986', photon_index_error2='0.89', photon_index2='2.90', ts='2.69', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='1.04e-07', energy_flux_error2='1.61e-05', EG='0.90', time_epoch_completed='1628997044.74', return_code='0', job_id='904759', GAL2='1.13', EG2='0.81', return_code2='0', energy_flux_error='2.93e-05', photon_flux_error2='7.85e-08', ts2='5.35', photon_index='1.82' WHERE bin_id='385' AND source_name='4FGL J0153.9+0823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 20:10:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 904759: <4FGL_J0153.9+0823_daily_bin385> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0153.9+0823_daily_bin385 28.4972 8.3931 339120001 339379201 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 :                                   583.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             272.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   742 sec.
    Turnaround time :                            896 sec.

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

