aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 94 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 = 7463
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0152.6+0147_daily_bin1684
RA = 28.1614, Dec = 1.7894
tmin = 675820801, tmax = 676080001
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='181001', job_status='RUN', time_executed='2022-06-05 00:08:39.045915', time_epoch_executed='1654412919.05' WHERE source_name='4FGL J0152.6+0147' and cadence='daily' and bin_id='1684'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/181001

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/181001/ft1_4FGL_J0152.6+0147_daily_bin1684.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/181001/ft2_4FGL_J0152.6+0147_daily_bin1684.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/181001/ft1_4FGL_J0152.6+0147_daily_bin1684.fits outfile=/scratch/kocevski/181001/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin1684.fits ra=28.1614 dec=1.7894 rad=12.0 tmin=675820801.0 tmax=676080001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.53
user 4.24
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/181001/ft2_4FGL_J0152.6+0147_daily_bin1684.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/181001/ft2_4FGL_J0152.6+0147_daily_bin1684.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/181001/ft1_filteredMKT_4FGL_J0152.6+0147_daily_bin1684.fits evtable="EVENTS" outfile="/scratch/kocevski/181001/ft1_filtered_4FGL_J0152.6+0147_daily_bin1684.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.52
user 0.35
sys 0.15

Number of photons that the gtmktime cut: 788

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/181001/ft1_filtered_4FGL_J0152.6+0147_daily_bin1684.fits" evtable="EVENTS" scfile=/scratch/kocevski/181001/ft2_4FGL_J0152.6+0147_daily_bin1684.fits sctable="SC_DATA" outfile=/scratch/kocevski/181001/ltcube_675820801_676080001_4FGL_J0152.6+0147_daily_bin1684.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/181001/ft2_4FGL_J0152.6+0147_daily_bin1684.fits
.....................!
real 15.35
user 14.96
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/181001/ft1_filtered_4FGL_J0152.6+0147_daily_bin1684.fits evtable="EVENTS" scfile=/scratch/kocevski/181001/ft2_4FGL_J0152.6+0147_daily_bin1684.fits sctable="SC_DATA" expcube=/scratch/kocevski/181001/ltcube_675820801_676080001_4FGL_J0152.6+0147_daily_bin1684.fits outfile=/scratch/kocevski/181001/expmap_675820801_676080001_4FGL_J0152.6+0147_daily_bin1684.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/181001/ltcube_675820801_676080001_4FGL_J0152.6+0147_daily_bin1684.fits
.....................!
real 191.33
user 186.31
sys 4.57

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 173 point sources and 0 extended sources

Setting source of interest to:
4FGL J0152.6+0147 @ 28.1614 1.7894

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/181001/ft1_filtered_4FGL_J0152.6+0147_daily_bin1684.fits scfile=/scratch/kocevski/181001/ft2_4FGL_J0152.6+0147_daily_bin1684.fits outfile=/scratch/kocevski/181001/cmap_675820801_676080001_4FGL_J0152.6+0147_daily_bin1684.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.1614 yref=1.7894 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.58
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/181001/ft1_filtered_4FGL_J0152.6+0147_daily_bin1684.fits scfile=/scratch/kocevski/181001/ft2_4FGL_J0152.6+0147_daily_bin1684.fits outfile=/scratch/kocevski/181001/cmap_HighResolution_675820801_676080001_4FGL_J0152.6+0147_daily_bin1684.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.1614 yref=1.7894 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.60
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/181001/ft1_filtered_4FGL_J0152.6+0147_daily_bin1684.fits evtable="EVENTS" scfile=/scratch/kocevski/181001/ft2_4FGL_J0152.6+0147_daily_bin1684.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/181001/Model_4FGL_J0152.6+0147_daily_bin1684.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/181001/ft1_filtered_4FGL_J0152.6+0147_daily_bin1684.fits.....................!
real 94.65
user 92.39
sys 1.48

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/181001/ft1_filtered_4FGL_J0152.6+0147_daily_bin1684.fits', '/scratch/kocevski/181001/ft2_4FGL_J0152.6+0147_daily_bin1684.fits', expMap='/scratch/kocevski/181001/expmap_675820801_676080001_4FGL_J0152.6+0147_daily_bin1684.fits', expCube='/scratch/kocevski/181001/ltcube_675820801_676080001_4FGL_J0152.6+0147_daily_bin1684.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/181001/Model_4FGL_J0152.6+0147_daily_bin1684.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0152.6+0147'

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.406e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  1.984e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
239        Scale:  2.408e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/181001/ft1_filtered_4FGL_J0152.6+0147_daily_bin1684.fits
Spacecraft file(s): /scratch/kocevski/181001/ft2_4FGL_J0152.6+0147_daily_bin1684.fits
Exposure map: /scratch/kocevski/181001/expmap_675820801_676080001_4FGL_J0152.6+0147_daily_bin1684.fits
Exposure cube: /scratch/kocevski/181001/ltcube_675820801_676080001_4FGL_J0152.6+0147_daily_bin1684.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/181001/Model_4FGL_J0152.6+0147_daily_bin1684.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) = 8192.16437697

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    50.928       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.1612       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.552       1.0000         .10000E-03   10000.    
     7 'norm      '    13.845       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.5720       1.0000         .10000E-03   10000.    
    10 'norm      '    12.346       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .24176E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.0227       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.1469       1.0000         .10000E-03   10000.    
    14 'norm      '    3.4143       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.588       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0123       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .85229       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5470E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8192.162     FROM MIGRAD    STATUS=CONVERGED    420 CALLS     2043 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    55.859       -.18728E-05** at limit **
   2  norm          50.928        4.0976        .38490E-07    .14283E-03
   3  Prefactor     .10000E-03    42.000       -.30163E-05** at limit **
   4  Prefactor     2.1594        7.3417       -.90890E-06    .14881E-03
   5  Prefactor     .10000E-03    10.876        .10672E-06** at limit **
   6  Prefactor     11.551        25.221       -.30886E-07    .89481E-05
   7  norm          13.845        6.3334        .28787E-06    .18911E-03
   8  Prefactor     .10000E-03    64.469        .49082E-05** at limit **
   9  Prefactor     3.5719        3.2974       -.41780E-07    .30769E-04
  10  norm          12.347        11.224        .77790E-07    .19134E-04
  11  Prefactor     .10000E-03    15.179        .59677E-05** at limit **
  12  norm          6.0232        4.0008        .25095E-06    .17971E-03
  13  Prefactor     1.1473        2.5785       -.57032E-06    .11883E-03
  14  norm          3.4143        1.0441       -.16949E-07    .19188E-03
  15  Prefactor     .10000E-03    14.067        .22345E-05** at limit **
  16  Prefactor     .10000E-03    24.184        .19082E-05** at limit **
  17  Prefactor     11.587        11.329       -.61519E-06    .21578E-03
  18  Prefactor     .10000E-03    11.115       -.23278E-06** at limit **
  19  Normalizat    1.0123        .16951        .30962E-06    .12195E-03
  20  Prefactor     .85234        .13591        .58066E-06    .13192E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 50.9279
  Prefactor  = 0.0001
  Prefactor  = 2.15944
  Prefactor  = 0.0001
  Prefactor  = 11.5513
  norm       = 13.8448
  Prefactor  = 0.000100001
  Prefactor  = 3.57191
  norm       = 12.3472
  Prefactor  = 0.0001
  norm       = 6.02322
  Prefactor  = 1.1473
  norm       = 3.41427
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.5873
  Prefactor  = 0.0001
  Normalizat = 1.01229
  Prefactor  = 0.852337
 **********
 **   18 **HESSE 
 **********

 FCN=   8192.162     FROM HESSE     STATUS=OK           297 CALLS     2340 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    56.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          50.928        4.0904        .24414E-03   -1.4279    
   3  Prefactor     .10000E-03    42.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.1594        7.4031        .28019E-03   -1.5414    
   5  Prefactor     .10000E-03    11.174        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.551        25.217        .11787E-03   -1.5028    
   7  norm          13.845        6.3574        .10765E-03   -1.4964    
   8  Prefactor     .10000E-03    65.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.5719        3.2991        .15310E-03   -1.5330    
  10  norm          12.347        11.219        .11400E-03   -1.5005    
  11  Prefactor     .10000E-03    15.166        .33999E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.0232        3.9873        .14142E-03   -1.5217    
  13  Prefactor     1.1473        2.5896        .20639E-03   -1.5494    
  14  norm          3.4143        1.0448        .10946E-03   -1.5338    
  15  Prefactor     .10000E-03    14.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    24.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     11.587        11.440        .58842E-03   -1.5027    
  18  Prefactor     .10000E-03    11.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0123        .19537        .29438E-03   -.92620    
  20  Prefactor     .85234        .15604        .25653E-03   -.97827    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33896e-10
Minuit parameter uncertainties:
  1  0.000262621
  2  4.09039
  3  0.000291488
  4  7.40623
  5  2.70094e-05
  6  25.2405
  7  6.35767
  8  0.000556177
  9  3.29922
  10  11.2206
  11  0.000140641
  12  3.9875
  13  2.58982
  14  1.04477
  15  0.000162416
  16  0.000170604
  17  11.4422
  18  1.45526e-05
  19  0.195512
  20  0.156119
Done.

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

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  3.572e+00  3.299e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  1.984e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
239        Scale:  2.408e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  8.523e-01  1.561e-01  0.000e+00  1.000e+01 ( 1.000e+00)
545        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
546        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
543   Normalization:  1.012e+00  1.955e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.21
Ra Dec: 28.161 1.789
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 2.00e-08 +/- 1.84e-08
Energy Flux (Fixed Index): 1.44e-05 +/- 1.33e-05

TS (Fixed Index): 3.21
Ra Dec: 28.161 1.789
Photon Flux Upper Limit: 6.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.17e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/181001/likelihoodResults_675820801_676080001_4FGL_J0152.6+0147_daily_bin1684.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) = 8191.9141978
delta logL = 0.248128130988

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8191.90325793
delta logL = 0.25906799842

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8980       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5446       1.0000          .0000       10.000    
     3 'Normalizat'    .98755       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86276       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5470E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8191.903     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      319 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8977        31.613        .75482E-02    .23850E-03
   2  Index         2.5449        3.0255        .10467        .20790E-03
   3  Normalizat    .98745        .68799E-01    .67275E-01    .35822E-03
   4  Prefactor     .86284        .47602E-01    .44529E-01    .92121E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.89771
  Index      = 2.54486
  Normalizat = 0.987447
  Prefactor  = 0.862845
 **********
 **   18 **HESSE 
 **********

 FCN=   8191.903     FROM HESSE     STATUS=OK            31 CALLS      350 TOTAL
                     EDM=   .42E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8977        3.8824        .92056E-04   -1.5432    
   2  Index         2.5449        1.0488        .62618E-02   -.51327    
   3  Normalizat    .98745        .19766        .29758E-03   -.93452    
   4  Prefactor     .86284        .15642        .25507E-03   -.97452    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.15851e-08
Minuit parameter uncertainties:
  1  3.88287
  2  1.05923
  3  0.197808
  4  0.156497
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/181001': 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) = 8191.90325771
delta logL = 0.259068223589

Extracting fit parameters...

4FGL J0152.6+0147
   Spectrum: PowerLaw
237    Prefactor:  1.898e+00  3.883e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        Index:  2.545e+00  1.059e+00  0.000e+00  1.000e+01 (-1.000e+00)
239        Scale:  2.408e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  8.628e-01  1.565e-01  0.000e+00  1.000e+01 ( 1.000e+00)
545        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
546        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
543   Normalization:  9.874e-01  1.978e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.73
Ra Dec: 28.161 1.789
Photon Index (Free Index): 2.54 +/- 1.06
Photon Flux (Free Index): 4.03e-08 +/- 4.44e-08
Energy Flux (Free Index): 1.12e-05 +/- 9.19e-06

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/181001/cmap_HighResolution_675820801_676080001_4FGL_J0152.6+0147_daily_bin1684.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.17e-03', comment='SUCCESS', photon_flux='2.00e-08', energy_flux2='1.12e-05', photon_flux_error='1.84e-08', dlogl='2.59e-01', energy_flux='1.44e-05', photon_flux2='4.03e-08', job_status='DONE', time_completed='2022-06-05 00:21:09.038033', photon_index_error2='1.06', photon_index2='2.54', ts='3.21', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='6.90e-08', energy_flux_error2='9.19e-06', EG='1.01', time_epoch_completed='1654413669.04', return_code='0', job_id='181001', GAL2='0.86', EG2='0.99', return_code2='0', energy_flux_error='1.33e-05', photon_flux_error2='4.44e-08', ts2='3.73', photon_index='1.98' WHERE bin_id='1684' AND source_name='4FGL J0152.6+0147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jun  5 00:21:09 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 181001: <4FGL_J0152.6+0147_daily_bin1684> in cluster <slac> Done

Job <4FGL_J0152.6+0147_daily_bin1684> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Jun  5 00:04:48 2022
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jun  5 00:06:48 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jun  5 00:06:48 2022
Terminated at Sun Jun  5 00:21:09 2022
Results reported at Sun Jun  5 00:21:09 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.6+0147_daily_bin1684 28.1614 1.7894 675820801 676080001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0152.6+0147 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   746.49 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             286.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   862 sec.
    Turnaround time :                            981 sec.

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

