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


Performing analysis on: 4FGL_J0153.9+0823_daily_bin982
RA = 28.4972, Dec = 8.3931
tmin = 493862401, tmax = 494121601
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='907843', job_status='RUN', time_executed='2021-08-14 20:11:03.612756', time_epoch_executed='1628997063.61' WHERE source_name='4FGL J0153.9+0823' and cadence='daily' and bin_id='982'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/907843

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/907843/ft1_4FGL_J0153.9+0823_daily_bin982.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/907843/ft2_4FGL_J0153.9+0823_daily_bin982.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/907843/ft1_4FGL_J0153.9+0823_daily_bin982.fits outfile=/scratch/kocevski/907843/ft1_filteredMKT_4FGL_J0153.9+0823_daily_bin982.fits ra=28.4972 dec=8.3931 rad=12.0 tmin=493862401.0 tmax=494121601.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 3.93
user 3.37
sys 0.53

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/907843/ft2_4FGL_J0153.9+0823_daily_bin982.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/907843/ft1_filteredMKT_4FGL_J0153.9+0823_daily_bin982.fits evtable="EVENTS" outfile="/scratch/kocevski/907843/ft1_filtered_4FGL_J0153.9+0823_daily_bin982.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 0.83
user 0.34
sys 0.47

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/907843/ft1_filtered_4FGL_J0153.9+0823_daily_bin982.fits" evtable="EVENTS" scfile=/scratch/kocevski/907843/ft2_4FGL_J0153.9+0823_daily_bin982.fits sctable="SC_DATA" outfile=/scratch/kocevski/907843/ltcube_493862401_494121601_4FGL_J0153.9+0823_daily_bin982.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/907843/ft2_4FGL_J0153.9+0823_daily_bin982.fits
.....................!
real 13.66
user 12.99
sys 0.64

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/907843/ft1_filtered_4FGL_J0153.9+0823_daily_bin982.fits evtable="EVENTS" scfile=/scratch/kocevski/907843/ft2_4FGL_J0153.9+0823_daily_bin982.fits sctable="SC_DATA" expcube=/scratch/kocevski/907843/ltcube_493862401_494121601_4FGL_J0153.9+0823_daily_bin982.fits outfile=/scratch/kocevski/907843/expmap_493862401_494121601_4FGL_J0153.9+0823_daily_bin982.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/907843/ltcube_493862401_494121601_4FGL_J0153.9+0823_daily_bin982.fits
.....................!
real 192.25
user 186.42
sys 5.30

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/907843/ft1_filtered_4FGL_J0153.9+0823_daily_bin982.fits scfile=/scratch/kocevski/907843/ft2_4FGL_J0153.9+0823_daily_bin982.fits outfile=/scratch/kocevski/907843/cmap_493862401_494121601_4FGL_J0153.9+0823_daily_bin982.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 0.88
user 0.38
sys 0.46

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/907843/ft1_filtered_4FGL_J0153.9+0823_daily_bin982.fits scfile=/scratch/kocevski/907843/ft2_4FGL_J0153.9+0823_daily_bin982.fits outfile=/scratch/kocevski/907843/cmap_HighResolution_493862401_494121601_4FGL_J0153.9+0823_daily_bin982.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 0.87
user 0.39
sys 0.47

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.2440       1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.444       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    8.5015       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    16.441       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .13436E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    45.888       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.9116       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.2088       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .88237       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=   6889.751     FROM MIGRAD    STATUS=CONVERGED    319 CALLS     1475 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.2444        7.6278        .55376E-06   -.43966E-04
   2  Prefactor     16.475        61.549        .67695E-04   -.38519E-05
   3  Prefactor     .10000E-03    1.9851        .15712E-07** at limit **
   4  norm          8.4995        11.388        .17828E-06   -.29863E-04
   5  Prefactor     .10000E-03    2.4140        .51886E-07** at limit **
   6  Prefactor     .10000E-03    .74121        .41844E-07** at limit **
   7  norm          16.441        5.6593        .62634E-06   -.32470E-04
   8  Prefactor     .10000E-03    .93107        .26189E-07** at limit **
   9  norm          .13786E-01    .37199        .16642E-06   -.23449E-02
  10  Prefactor     .10000E-03    6.2909        .42921E-08** at limit **
  11  Prefactor     .10000E-03    4.4109       -.19818E-08** at limit **
  12  Prefactor     .10000E-03    34.350        .17138E-06** at limit **
  13  Prefactor     45.890        13.452        .36078E-06   -.33873E-04
  14  Prefactor     .10000E-03    27.756        .49900E-07** at limit **
  15  Prefactor     5.9081        13.243        .55429E-06   -.88464E-04
  16  Normalizat    1.2087        .18540       -.34249E-05    .20143E-04
  17  Prefactor     .88248        .12602       -.31494E-06   -.20654E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.24436
  Prefactor  = 16.4746
  Prefactor  = 0.0001
  norm       = 8.49948
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.4413
  Prefactor  = 0.0001
  norm       = 0.0137861
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.8897
  Prefactor  = 0.0001
  Prefactor  = 5.90805
  Normalizat = 1.20867
  Prefactor  = 0.882481
 **********
 **   18 **HESSE 
 **********

 FCN=   6889.751     FROM HESSE     STATUS=OK           223 CALLS     1698 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.2444        7.6244        .14903E-03   -1.5170    
   2  Prefactor     16.475        61.346        .98768E-04   -1.4896    
   3  Prefactor     .10000E-03    1.9933        .11419E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          8.4995        11.389        .13748E-03   -1.5125    
   5  Prefactor     .10000E-03    2.4231        .12593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    .74497        .69769E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          16.441        5.6587        .98777E-04   -1.4897    
   8  Prefactor     .10000E-03    .95147        .78165E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .13786E-01    2.4225        .98168E-03   -1.5685    
  10  Prefactor     .10000E-03    6.2977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.4325        .17005E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    34.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     45.890        13.438        .59188E-04   -1.4352    
  14  Prefactor     .10000E-03    28.741        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.9081        13.249        .16516E-03   -1.5222    
  16  Normalizat    1.2087        .21197        .28093E-03   -.86335    
  17  Prefactor     .88248        .14490        .21757E-03   -.96756    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.12749e-09
Minuit parameter uncertainties:
  1  7.62539
  2  61.5821
  3  3.06772e-06
  4  11.3915
  5  4.70633e-06
  6  3.06707e-06
  7  5.65893
  8  2.47347e-06
  9  0.364181
  10  6.48471e-06
  11  2.60063e-06
  12  2.17931e-05
  13  13.4385
  14  8.94422e-05
  15  13.2555
  16  0.212124
  17  0.144965
Done.

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

Extracting fit parameters...

4FGL J0153.9+0823
   Spectrum: LogParabola
236         norm:  8.499e+00  1.139e+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.825e-01  1.450e-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.209e+00  2.121e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.05
Ra Dec: 28.497 8.393
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 1.08e-08 +/- 1.44e-08
Energy Flux (Fixed Index): 1.08e-05 +/- 1.45e-05

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

Saving results to:
/scratch/kocevski/907843/likelihoodResults_493862401_494121601_4FGL_J0153.9+0823_daily_bin982.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) = 6889.65916134
delta logL = 0.0920637252166

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6889.65854336
delta logL = 0.0926817044619

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.7976       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4517       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2124       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88112       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=   6889.659     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      224 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.7976        15.932        .33784E-02   -.11263E-02
   2  alpha         1.4522        .92558        .47045       -.26289E-04
   3  Normalizat    1.2128        .18450        .63417E-01    .13164E-05
   4  Prefactor     .88104        .12434        .44764E-01    .13485E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.79761
  alpha      = 1.45221
  Normalizat = 1.21278
  Prefactor  = 0.881044
 **********
 **   18 **HESSE 
 **********

 FCN=   6889.659     FROM HESSE     STATUS=OK            31 CALLS      255 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.7976        11.514        .13514E-03   -1.5115    
   2  alpha         1.4522        .76945        .24029E-01   -.43247    
   3  Normalizat    1.2128        .20967        .28051E-03   -.86209    
   4  Prefactor     .88104        .14218        .21771E-03   -.96807    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98934e-09
Minuit parameter uncertainties:
  1  11.5166
  2  0.785008
  3  0.209814
  4  0.142244
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/907843': 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) = 6889.65853972
delta logL = 0.0926853409765

Extracting fit parameters...

4FGL J0153.9+0823
   Spectrum: LogParabola
236         norm:  8.798e+00  1.152e+01  1.000e-04  1.000e+04 ( 1.000e-13)
237        alpha:  1.452e+00  7.850e-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:  8.810e-01  1.422e-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.213e+00  2.098e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.23
Ra Dec: 28.497 8.393
Photon Index (Free Index): 1.45 +/- 0.79
Photon Flux (Free Index): 7.42e-09 +/- 1.14e-08
Energy Flux (Free Index): 1.92e-05 +/- 3.52e-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/907843/cmap_HighResolution_493862401_494121601_4FGL_J0153.9+0823_daily_bin982.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.44e-05', comment='SUCCESS', photon_flux='1.08e-08', energy_flux2='1.92e-05', photon_flux_error='1.44e-08', dlogl='9.27e-02', energy_flux='1.08e-05', photon_flux2='7.42e-09', job_status='DONE', time_completed='2021-08-14 20:20:55.952228', photon_index_error2='0.79', photon_index2='1.45', ts='1.05', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='5.43e-08', energy_flux_error2='3.52e-05', EG='1.21', time_epoch_completed='1628997655.95', return_code='0', job_id='907843', GAL2='0.88', EG2='1.21', return_code2='0', energy_flux_error='1.45e-05', photon_flux_error2='1.14e-08', ts2='1.23', photon_index='1.82' WHERE bin_id='982' AND source_name='4FGL J0153.9+0823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 20:20:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 907843: <4FGL_J0153.9+0823_daily_bin982> in cluster <slac> Done

Job <4FGL_J0153.9+0823_daily_bin982> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Aug 14 20:05:54 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 20:08:13 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 14 20:08:13 2021
Terminated at Sat Aug 14 20:20:56 2021
Results reported at Sat Aug 14 20:20:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0153.9+0823_daily_bin982 28.4972 8.3931 493862401 494121601 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 :                                   596.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             305.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   763 sec.
    Turnaround time :                            902 sec.

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

